~ubuntu-branches/ubuntu/saucy/goldencheetah/saucy

« back to all changes in this revision

Viewing changes to doc/contrib/palatino.tex

  • Committer: Package Import Robot
  • Author(s): KURASHIKI Satoru
  • Date: 2013-08-18 07:02:45 UTC
  • mfrom: (4.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20130818070245-zgdvb47e1k3mtgil
Tags: 3.0-3
debian/control: remove needless dependency. (Closes: #719571)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
@c palatino.tex -- TeXinfo macros to set the default Roman font to Palatino
 
2
@c
 
3
@def@palatinoversion{2003-04-01.00}
 
4
@c
 
5
@c Copyright (C) 2003  Free Software Foundation, Inc.
 
6
@c
 
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.
 
11
@c
 
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.
 
16
@c
 
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.
 
21
@c
 
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-*-
 
25
@c     @input palatino
 
26
 
 
27
@message{Loading palatino [version @palatinoversion]:}
 
28
 
 
29
@c Turn on the normal TeX command characters.
 
30
@catcode`\=0
 
31
\catcode`\%=14
 
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
 
34
% section.
 
35
\catcode`\#=6
 
36
\let\setfontorig=\setfont
 
37
\def\setfont#1#2#3#4{\font#1=#2#3 at #4}
 
38
\catcode`\#=\other
 
39
 
 
40
% Set Palatino as the default roman font face
 
41
\def\rmfontprefix{ppl}
 
42
 
 
43
% Only define roman font attributes here.
 
44
\def\rmshape{r}
 
45
\def\rmbshape{b}
 
46
\def\bfshape{b}
 
47
\def\bxshape{b}
 
48
\def\itshape{ri}
 
49
\def\itbshape{bi}
 
50
\def\slshape{ro}
 
51
\def\slbshape{bo}
 
52
\def\scshape{rc}
 
53
\def\scbshape{bc}
 
54
 
 
55
\ifx\bigger\relax
 
56
  % not really supported.
 
57
  \def\mainmagstep{12pt}
 
58
  \setfont\textrm\rmfontprefix\rmshape{\mainmagstep}
 
59
\else
 
60
  \def\mainmagstep{10pt}
 
61
  \setfont\textrm\rmfontprefix\rmshape{\mainmagstep}
 
62
\fi
 
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
 
72
 
 
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}
 
76
 
 
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
 
85
 
 
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
 
94
 
 
95
% Fonts for title page:
 
96
\setfont\titlerm\rmfontprefix\rmbshape{18pt}
 
97
\setfont\titleit\rmfontprefix\itbshape{18pt}
 
98
\setfont\titlesl\rmfontprefix\slbshape{18pt}
 
99
\let\titlebf=\titlerm
 
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}
 
105
 
 
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}
 
110
\let\chapbf=\chaprm
 
111
\setfont\chapsc\rmfontprefix\scbshape{17.28pt}
 
112
\font\chapi=zppler7m at 17.28pt
 
113
\font\chapsy=zppler7y at 17.28pt
 
114
 
 
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}
 
119
\let\secbf\secrm
 
120
\setfont\secsc\rmfontprefix\scbshape{14.4pt}
 
121
\font\seci=zppler7m at 14.4pt
 
122
\font\secsy=zppler7y at 14.4pt
 
123
 
 
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}
 
128
\let\ssecbf\ssecrm
 
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.
 
134
 
 
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}
 
139
 
 
140
% Set keyfont as well.
 
141
\setfont\keyrm\rmfontprefix\rmshape{8pt}
 
142
\font\keysy=zppler7y at 9pt
 
143
 
 
144
\let\setfont=\setfontorig
 
145
\def\setfontorig{\relax}
 
146
 
 
147
% Restore the TeXinfo character set.
 
148
\catcode`\\=\active
 
149
@catcode`@%=@other
 
150
 
 
151
@c Set initial fonts (again)
 
152
@textfonts
 
153
@rm
 
154
 
 
155
@c Local variables:
 
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: "}"
 
161
@c End: