Debian Codegraph @

texmf-dist/doc/support/epspdf/pstexi.tex

raw
1 % change texinfo fonts
2 % usage: put the following code early in your file,
3 % but after \input texinfo
4
5 %%%%%%%%%%%%%%%%
6 % @tex
7 % \input pstexi
8 % @end tex
9 %
10 % @textfonts
11 % @rm
12 %%%%%%%%%%%%%%%%
13
14 % Set the font macro #1 to the font named #2, adding on the
15 % specified font prefix (normally `cm').
16 % #3 is the font's design size, #4 is a scale factor
17 % \def\setfont#1#2#3#4{\font#1=\fontprefix#2#3 scaled #4}
18 % UPDATE: a new implementation uses a fifth encoding(?) parameter,
19 % which we simply ignore.
20 \newcount\atsize
21 \def\setfont#1#2#3#4#5{%
22 \def\mag{#4}
23 \global\atsize=\mag
24 \global\multiply\atsize #3
25 \global\divide\atsize 1000
26 \global\font#1=#2 at \atsize pt}
27
28 % \fontprefix not usable outside cm/lm/ec
29 \gdef\fontprefix{}
30
31 \gdef\rmshape{pplr7t}
32 \gdef\rmbshape{pplb7t} %where the normal face is bold
33 \gdef\bfshape{pplb7t}
34 \gdef\bxshape{pplb7t}
35 \gdef\ttshape{texnansi-lmtt10}
36 \gdef\ttbshape{texnansi-lmtk10}
37 \gdef\ttslshape{texnansi-lmtto10}
38 \gdef\itshape{pplri7t}
39 \gdef\itbshape{pplbi7t}
40 \gdef\slshape{pplri7t}
41 \gdef\slbshape{pplbi7t}
42 \gdef\sfshape{texnansi-lmss10}
43 \gdef\sfbshape{texnansi-lmssbx10}
44 \gdef\scshape{pplrc7t}
45 \gdef\scbshape{pplbc7t}
46
47 \definetextfontsizexi
48
49 \global\let\subtitlerm=\tenrm