Debian Codegraph @

texmf-dist/doc/latex/bxnewfont/README.md

raw symbols SCIP
1 BXnewfont Package
2 =================
3
4 LaTeX: Enhanced `\newfont` command
5
6 This package provides a new command `\newfontx`. It is similar to
7 the old (and deprecated) command `\newfont` in function, but is more
8 compatible with NFSS. In particular, one can safely change font size
9 after invoking a font command defined by `\newfontx`. The new command
10 will be useful to users who know much of the old '\newfont` command
11 but are unfamiliar with the detail of NFSS.
12
13 ### System requirement
14
15 * TeX format: LaTeX.
16 * TeX engine: Anything.
17 * Dependent packages: None.
18
19 ### Installation
20
21 - `*.sty` → $TEXMF/tex/latex/BXnewfont
22
23 ### License
24
25 This package is distributed under the MIT License.
26
27 The bxnewfont Package
28 ---------------------
29
30 ### Package Loading
31
32 \usepackage[<option>]{bxdvidriver}
33
34 Available options:
35
36 * `newfont`: Makes `\newfont` an alias of `newfontx`.
37
38 ### Usage
39
40 * `\newfontx\CMD[<encoding>]{<tfm-name><at-clause>}`: Defines `\CMD`
41 to be a “font command” (pseudo-fontdef token). Here the format
42 of the mandatory argument is exactly same as that of `\newfont`
43 (`<at-clause>` can be empty). The optional argument specifies the
44 NFSS encoding name (such as `T1`) of the TFM to be used, and
45 defaults to the current font encoding. (If you don’t know what
46 it means, then you probably need not care about this argument.)
47
48 When the defined `\CMD` command is invoked, the current font will
49 changes to what is specified by the argument, just as the original
50 `\newfont`. But unlike `\newfont`, it does not break consistency
51 of LaTeX NFSS. Specifically, NFSS is set at the following state:
52
53 - The family is what was auto-generated for `\CMD`.
54 - The series is `m` and the shape is `n`.
55 - The encoding and size are what was specified by the arguments
56 of `\newfontx`.
57
58 It means that further use of “LaTeX’s font commands” will
59 probably result in what you will expect. In particular, font size
60 can be safely changed. The use of `\itshape` has no effect ---
61 of course, because LaTeX does not know the TFM name of the italic
62 counterpart --- and no unfavorable effect either.
63
64 * `\newfontx*\CMD[<encoding>]{<tfm-name>}`: Same as the `\newfontx`,
65 except that “font commands” defined by `\newfontx*` does not
66 fix font size (note the absence of `<at-clause>`). Namely, invoking
67 `\CMD` does not change the current font size. This variant surely
68 diverges from the original `\newfont`, but will be more useful.
69
70 Revision History
71 ----------------
72
73 * Version 0.2b ‹2017/05/01›
74 - Change the rule for automatic quoting. Namely, names which are
75 judged as illegal by mktextfm should be quoted.
76 * Version 0.2a ‹2016/08/08›
77 - Now “TFM” names can contain spaces with suitable quoting.
78 This enables one to specify OpenType fonts on Unicode engines.
79 - An experimental command `\newfontjascale` is added.
80 * Version 0.2 ‹2016/03/27›
81 - The first public version.
82
83 --------------------
84 Takayuki YATO (aka. "ZR")
85 http://zrbabbler.sp.land.to/