FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Patch "[ 696421 ] Improved ps_fontfile_doc". · gnuplot/gnuplot@dc408ea · GitHub

Repository navigation

Commit dc408ea

Browse files
authored andcommitted
Patch "[ 696421 ] Improved ps_fontfile_doc".
Some text is modified, the symbol table now includes the octal and decimal numbers of the characters. Patch by Harald Harders.
1 parent 2fe15ff commit dc408ea

2 files changed

Lines changed: 96 additions & 54 deletions

File tree

‎ChangeLog‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
2003-04-18 Harald Harders <h.harders@tu-bs.de>
2+
3+
* docs/psdoc/ps_fontfile_doc.tex: Patch "[ 696421 ] Improved
4+
ps_fontfile_doc". Some text is modified, the symbol table now
5+
includes the octal and decimal numbers of the characters.
6+
17
2003-04-18 Petr Mikulik <mikulik@physics.muni.cz>
28

39
* gnuplot.doc unset.c(reset_command): Remove "unset_loadpath()" from

‎docs/psdoc/ps_fontfile_doc.tex‎

Lines changed: 90 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,19 @@
44
\usepackage{longtable}
55
\usepackage{graphicx}
66
\usepackage{array}
7+
\usepackage{calc}
78
%\usepackage[width=18cm,height=24cm]{geometry}
8-
\addtolength{\textwidth}{30mm}
9+
\addtolength{\textwidth}{40mm}
910
\addtolength{\oddsidemargin}{-15mm}
1011

12+
\let\orgcaption\caption
13+
\newlength\tmplength
14+
\newcommand{\captionabove}{%
15+
\setlength{\tmplength}{\abovecaptionskip}%
16+
\setlength{\abovecaptionskip}{\belowcaptionskip}%
17+
\setlength{\belowcaptionskip}{\tmplength}%
18+
\orgcaption}
19+
1120
\font\cmmi=cmmi10
1221
\font\cmr=cmr10
1322
\font\cmti=cmti10
@@ -21,83 +30,90 @@
2130
\font\lasy=lasy10
2231

2332
\newcount\rownum
33+
\newcounter{dezcnt}
34+
35+
\def\dez#1#2#3\empty{\setcounter{dezcnt}{64*#1+8*#2+#3}\thedezcnt}
2436

2537
\newcommand*\row[1]{%
26-
\gdef\zus{}%
38+
\global\let\zus=\empty
2739
\ifnum#1=000
28-
\gdef\zus{, \textbackslash 241}%
40+
\gdef\zus{241}%
2941
\else\ifnum#1=001
30-
\gdef\zus{, \textbackslash 242}%
42+
\gdef\zus{242}%
3143
\else\ifnum#1=002
32-
\gdef\zus{, \textbackslash 243}%
44+
\gdef\zus{243}%
3345
\else\ifnum#1=003
34-
\gdef\zus{, \textbackslash 244}%
46+
\gdef\zus{244}%
3547
\else\ifnum#1=004
36-
\gdef\zus{, \textbackslash 245}%
48+
\gdef\zus{245}%
3749
\else\ifnum#1=005
38-
\gdef\zus{, \textbackslash 246}%
50+
\gdef\zus{246}%
3951
\else\ifnum#1=006
40-
\gdef\zus{, \textbackslash 247}%
52+
\gdef\zus{247}%
4153
\else\ifnum#1=007
42-
\gdef\zus{, \textbackslash 250}%
54+
\gdef\zus{250}%
4355
\else\ifnum#1=010
44-
\gdef\zus{, \textbackslash 251}%
56+
\gdef\zus{251}%
4557
\else\ifnum#1=011
46-
\gdef\zus{, \textbackslash 252}%
58+
\gdef\zus{252}%
4759
\else\ifnum#1=012
48-
\gdef\zus{, \textbackslash 255}%
60+
\gdef\zus{255}%
4961
\else\ifnum#1=013
50-
\gdef\zus{, \textbackslash 256}%
62+
\gdef\zus{256}%
5163
\else\ifnum#1=014
52-
\gdef\zus{, \textbackslash 257}%
64+
\gdef\zus{257}%
5365
\else\ifnum#1=015
54-
\gdef\zus{, \textbackslash 260}%
66+
\gdef\zus{260}%
5567
\else\ifnum#1=016
56-
\gdef\zus{, \textbackslash 261}%
68+
\gdef\zus{261}%
5769
\else\ifnum#1=017
58-
\gdef\zus{, \textbackslash 262}%
70+
\gdef\zus{262}%
5971
\else\ifnum#1=020
60-
\gdef\zus{, \textbackslash 263}%
72+
\gdef\zus{263}%
6173
\else\ifnum#1=021
62-
\gdef\zus{, \textbackslash 264}%
74+
\gdef\zus{264}%
6375
\else\ifnum#1=022
64-
\gdef\zus{, \textbackslash 265}%
76+
\gdef\zus{265}%
6577
\else\ifnum#1=023
66-
\gdef\zus{, \textbackslash 266}%
78+
\gdef\zus{266}%
6779
\else\ifnum#1=024
68-
\gdef\zus{, \textbackslash 267}%
80+
\gdef\zus{267}%
6981
\else\ifnum#1=025
70-
\gdef\zus{, \textbackslash 270}%
82+
\gdef\zus{270}%
7183
\else\ifnum#1=026
72-
\gdef\zus{, \textbackslash 271}%
84+
\gdef\zus{271}%
7385
\else\ifnum#1=027
74-
\gdef\zus{, \textbackslash 272}%
86+
\gdef\zus{272}%
7587
\else\ifnum#1=030
76-
\gdef\zus{, \textbackslash 273}%
88+
\gdef\zus{273}%
7789
\else\ifnum#1=031
78-
\gdef\zus{, \textbackslash 274}%
90+
\gdef\zus{274}%
7991
\else\ifnum#1=032
80-
\gdef\zus{, \textbackslash 275}%
92+
\gdef\zus{275}%
8193
\else\ifnum#1=033
82-
\gdef\zus{, \textbackslash 276}%
94+
\gdef\zus{276}%
8395
\else\ifnum#1=034
84-
\gdef\zus{, \textbackslash 277}%
96+
\gdef\zus{277}%
8597
\else\ifnum#1=035
86-
\gdef\zus{, \textbackslash 300}%
98+
\gdef\zus{300}%
8799
\else\ifnum#1=036
88-
\gdef\zus{, \textbackslash 301}%
100+
\gdef\zus{301}%
89101
\else\ifnum#1=037
90-
\gdef\zus{, \textbackslash 302}%
102+
\gdef\zus{302}%
91103
\else\ifnum#1=040
92-
\gdef\zus{, \textbackslash 303}% and \200
104+
\gdef\zus{303}% and \200
93105
\else\ifnum#1=177
94-
\gdef\zus{, \textbackslash 304}%
106+
\gdef\zus{304}%
95107
\fi\fi\fi\fi\fi\fi\fi
96108
\fi\fi\fi\fi\fi\fi\fi
97109
\fi\fi\fi\fi\fi\fi\fi
98110
\fi\fi\fi\fi\fi\fi\fi
99111
\fi\fi\fi\fi\fi\fi
100-
\textbackslash #1\zus &
112+
\textbackslash #1%
113+
\ifx\zus\empty
114+
\else
115+
, \textbackslash\zus
116+
\fi &
101117
{\cmr\char'#1} &
102118
{\cmti\char'#1} &
103119
{\cmtt\char'#1} &
@@ -111,18 +127,30 @@
111127
\ifodd\rownum \else\qquad\fi
112128
\global\advance\rownum 1
113129
{\raisebox{1.7ex}[0mm][1ex]{\cmex\char'#1}} &
114-
\textbackslash #1\zus \\
130+
\textbackslash #1%
131+
\ifx\zus\empty
132+
\else
133+
, \textbackslash\zus
134+
\fi &
135+
\expandafter\dez#1\empty
136+
\ifx\zus\empty
137+
\else
138+
, \expandafter\dez\zus\empty
139+
\fi \\
115140
}
116141

117142
\begin{document}
118143
\title{Using \TeX\ Fonts in the Gnuplot Postscript Terminal}
119144
\author{Harald Harders, {\ttfamily h.harders@tu-bs.de}}
120-
\date{2002-11-14}
145+
\date{2003-03-03}
121146
\maketitle
122147

148+
\noindent
123149
The Postscript terminal can embed Postscript Type\,1 fonts (with
124150
extensions \verb|.pfa| and \verb|.pfb|) and TrueType fonts (extension
125-
\verb|.ttf|) using the command
151+
\verb|.ttf|)\footnote{If \texttt{.pfb} and \texttt{.ttf} fonts really
152+
can be embedded depends on your gnuplot installation: It needs to be
153+
able to handle pipes.} using the command
126154
\begin{verbatim}
127155
set terminal postscript fontfile '<filename>'
128156
\end{verbatim}
@@ -139,8 +167,8 @@
139167
set xlabel '{/CMMI10 x}'
140168
\end{verbatim}
141169

142-
The font embedding is useful for generating plots to be included in
143-
\LaTeX\ documents.
170+
Among other things, the font embedding is useful for generating plots
171+
to be included in \LaTeX\ documents.
144172
For normal text, the \emph{cm-super} Postscript Type\,1 fonts are a
145173
good choice.
146174
They are available from CTAN servers, e.g.
@@ -149,9 +177,10 @@
149177
\end{verbatim}
150178
The normal upright font with serifes is defined in
151179
\verb|sfrm1000.pfb|, and the font name is \verb|SFRM1000|\footnote{If you
152-
have an old version of the cm-super font, prior 2001-10-14, the font name is
153-
in lowercase letters: \texttt{sfrm1000}.} (The
154-
\verb|1000| means that this font is designed for 10\,pt).
180+
have an old version of the cm-super font, prior 2001-10-14, the font
181+
name is in lowercase letters: \texttt{sfrm1000}. You should update
182+
to a new version.} (The \verb|1000| means that this font is designed
183+
for 10\,pt).
155184
Replace the \verb|rm| by \verb|it|, \verb|bx| or other combinations in
156185
both the file name and the font name (here, in uppercase letters) in order
157186
to get other font shapes.
@@ -162,6 +191,9 @@
162191
%
163192
\begin{table}
164193
\centering
194+
\captionabove{Some fonts in the cm-super font bundle (for a
195+
designsize of 10\,pt)}%
196+
\label{tab:fontnames}%
165197
\begin{tabular}{>{\ttfamily}l>{\ttfamily}ll}
166198
\toprule
167199
\multicolumn{1}{l}{File name}&
@@ -203,9 +235,6 @@
203235
{\ttfamily\scshape Example} \\
204236
\bottomrule
205237
\end{tabular}
206-
\caption{Some fonts in the cm-super font bundle (for a designsize of
207-
10\,pt)}%
208-
\label{tab:fontnames}%
209238
\end{table}
210239

211240
For mathematics the Type\,1 versions of the Computer Modern fonts are
@@ -216,20 +245,27 @@
216245
ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky/pfb/
217246
\end{verbatim}
218247
Here, the font name is the base of the file name in uppercase letters,
219-
e.g. the file \verb|cmmi10.pfb| contains the font \verb|CMMI10|.
248+
e.g.\ the file \verb|cmmi10.pfb| contains the font \verb|CMMI10|.
220249
Since the encoding of these fonts is strange, a table containing all
221250
characters for some fonts follows.
222251
The font \verb|CMEX10| contains large symbols for mathematics. They
223252
overlap sometimes in the table. Since the baseline of the
224253
\verb|CMEX10| font is at the top of the signs, Gnuplot defines a font
225254
\verb|CMEX10-Baseline| with a different baseline if \verb|CMEX10| is
226-
embedded (normaly by using \verb|fontfile 'cmex10.pfb'|.
255+
embedded (normally by using \verb|fontfile 'cmex10.pfb'|.
256+
In contrast to the other fonts, \verb|CMEX10| is only available in the
257+
design size 10\,pt.
227258

259+
You can access all characters of the fonts by typing their octal code.
260+
To get a $\heartsuit$ symbol, you may type:
261+
\begin{verbatim}
262+
set label '{/CMSY10 \176}' at graph 0.5,0.5
263+
\end{verbatim}
228264
Since characters with an octal number below \textbackslash 040 can't
229265
be displayed by some postscript interpreters, these characters are
230266
repeated in the Computer Modern Fonts with a larger code.
231267
Thus, you should use the larger number, where two octal numbers are
232-
given (e.g. \textbackslash 000, \textbackslash 241).
268+
given (e.g.\ \textbackslash 000, \textbackslash 241).
233269
For example, you better use
234270
\begin{verbatim}
235271
set xlabel '{/CMR10 \242}'
@@ -238,16 +274,16 @@
238274
\begin{verbatim}
239275
set xlabel '{/CMR10 \001}'
240276
\end{verbatim}
241-
to get an upright uppercase Delta.
277+
to get an upright uppercase Delta $\Delta$.
242278

243-
\begin{longtable}{lllllllllllll}
279+
\begin{longtable}{lllllllllllllr}
244280
\toprule
245281
Oct& \rotatebox{90}{CMR10}& \rotatebox{90}{CMTI10}&
246282
\rotatebox{90}{CMTT10}& \rotatebox{90}{CMMI10}&
247283
\rotatebox{90}{CMU10}& \rotatebox{90}{CMSS10}&
248284
\rotatebox{90}{CMTEX10}& \rotatebox{90}{CMFF10}&
249285
\rotatebox{90}{CMSY10}& \rotatebox{90}{LASY10}&
250-
\rotatebox{90}{CMEX10-Baseline}& Oct\\
286+
\rotatebox{90}{CMEX10-Baseline}& Oct& Dec\\
251287
\midrule
252288
\endhead
253289
\bottomrule

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL