1
@c palatino.tex -- TeXinfo macros to set the default Roman font to Palatino
3
@def@palatinoversion{2003-04-01.00}
5
@c Copyright (C) 2003 Free Software Foundation, Inc.
7
@c This palatino.tex file is free software; you can redistribute it and/or
8
@c modify it under the terms of the GNU General Public License as
9
@c published by the Free Software Foundation; either version 2, or (at
10
@c your option) any later version.
12
@c This palatino.tex file is distributed in the hope that it will be
13
@c useful, but WITHOUT ANY WARRANTY; without even the implied warranty
14
@c of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15
@c General Public License for more details.
17
@c You should have received a copy of the GNU General Public License
18
@c along with this texinfo.tex file; see the file COPYING. If not, write
19
@c to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
@c Boston, MA 02111-1307, USA.
22
@c You should use this module, go to your root .texi file and make sure
23
@c it reads like this:
24
@c \input texinfo @c -*-texinfo-*-
27
@message{Loading palatino [version @palatinoversion]:}
29
@c Turn on the normal TeX command characters.
32
% Set the font macro #1 to the font named #2#3. #4 is the point size.
33
% We save \setfont as \setfontorig, so we can restore it at the end of this
36
\let\setfontorig=\setfont
37
\def\setfont#1#2#3#4{\font#1=#2#3 at #4}
40
% Set Palatino as the default roman font face
41
\def\rmfontprefix{ppl}
43
% Only define roman font attributes here.
56
% not really supported.
57
\def\mainmagstep{12pt}
58
\setfont\textrm\rmfontprefix\rmshape{\mainmagstep}
60
\def\mainmagstep{10pt}
61
\setfont\textrm\rmfontprefix\rmshape{\mainmagstep}
63
% Instead of cmb10, you many want to use cmbx10.
64
% cmbx10 is a prettier font on its own, but cmb10
65
% looks better when embedded in a line with cmr10.
66
\setfont\textbf\rmfontprefix\bfshape{\mainmagstep}
67
\setfont\textit\rmfontprefix\itshape{\mainmagstep}
68
\setfont\textsl\rmfontprefix\slshape{\mainmagstep}
69
\setfont\textsc\rmfontprefix\scshape{\mainmagstep}
70
\font\texti=zppler7m at \mainmagstep
71
\font\textsy=zppler7y at \mainmagstep
73
% A few fonts for \defun, etc.
74
\setfont\defbf\rmfontprefix\bxshape{10pt} %was 1314
75
\def\df{\let\tentt=\deftt \let\tenbf = \defbf \bf}
77
% Fonts for indices, footnotes, small examples (9pt).
78
\setfont\smallrm\rmfontprefix\rmshape{9pt}
79
\setfont\smallbf\rmfontprefix\bfshape{9pt}
80
\setfont\smallit\rmfontprefix\itshape{9pt}
81
\setfont\smallsl\rmfontprefix\slshape{9pt}
82
\setfont\smallsc\rmfontprefix\scshape{9pt}
83
\font\smalli=zppler7m at 9pt
84
\font\smallsy=zppler7y at 9pt
86
% Fonts for small examples (8pt).
87
\setfont\smallerrm\rmfontprefix\rmshape{8pt}
88
\setfont\smallerbf\rmfontprefix\bfshape{8pt}
89
\setfont\smallerit\rmfontprefix\itshape{8pt}
90
\setfont\smallersl\rmfontprefix\slshape{8pt}
91
\setfont\smallersc\rmfontprefix\scshape{8pt}
92
\font\smalleri=zppler7m at 8pt
93
\font\smallersy=zppler7y at 8pt
95
% Fonts for title page:
96
\setfont\titlerm\rmfontprefix\rmbshape{18pt}
97
\setfont\titleit\rmfontprefix\itbshape{18pt}
98
\setfont\titlesl\rmfontprefix\slbshape{18pt}
100
\setfont\titlesc\rmfontprefix\scbshape{18pt}
101
\font\titlei=zppler7m at 18pt
102
\font\titlesy=zppler7y at 18pt
103
\def\authorrm{\secrm}
104
\def\authortt{\sectt}
106
% Chapter (and unnumbered) fonts (17.28pt).
107
\setfont\chaprm\rmfontprefix\rmbshape{17.28pt}
108
\setfont\chapit\rmfontprefix\itbshape{17.28pt}
109
\setfont\chapsl\rmfontprefix\slbshape{17.28pt}
111
\setfont\chapsc\rmfontprefix\scbshape{17.28pt}
112
\font\chapi=zppler7m at 17.28pt
113
\font\chapsy=zppler7y at 17.28pt
115
% Section fonts (14.4pt).
116
\setfont\secrm\rmfontprefix\rmbshape{14.4pt}
117
\setfont\secit\rmfontprefix\itbshape{14.4pt}
118
\setfont\secsl\rmfontprefix\slbshape{14.4pt}
120
\setfont\secsc\rmfontprefix\scbshape{14.4pt}
121
\font\seci=zppler7m at 14.4pt
122
\font\secsy=zppler7y at 14.4pt
124
% Subsection fonts (13.15pt).
125
\setfont\ssecrm\rmfontprefix\rmbshape{13.15pt}
126
\setfont\ssecit\rmfontprefix\itbshape{13.15pt}
127
\setfont\ssecsl\rmfontprefix\slbshape{13.15pt}
129
\setfont\ssecsc\rmfontprefix\scbshape{13.15pt}
130
\font\sseci=zppler7m at 13.15pt
131
\font\ssecsy=zppler7y at 13.15pt
132
% The smallcaps and symbol fonts should actually be scaled \magstep1.5,
133
% but that is not a standard magnification.
135
% Fonts for short table of contents.
136
\setfont\shortcontrm\rmfontprefix\rmshape{12pt}
137
\setfont\shortcontbf\rmfontprefix\bxshape{12pt}
138
\setfont\shortcontsl\rmfontprefix\slshape{12pt}
140
% Set keyfont as well.
141
\setfont\keyrm\rmfontprefix\rmshape{8pt}
142
\font\keysy=zppler7y at 9pt
144
\let\setfont=\setfontorig
145
\def\setfontorig{\relax}
147
% Restore the TeXinfo character set.
151
@c Set initial fonts (again)
156
@c eval: (add-hook 'write-file-hooks 'time-stamp)
157
@c page-delimiter: "^\\\\message"
158
@c time-stamp-start: "def\\\\palatinoversion{"
159
@c time-stamp-format: "%:y-%02m-%02d.%02H"
160
@c time-stamp-end: "}"