| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2fe15ff commit dc408ea
2 files changed
| Original file line number | Diff line number | Diff 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 | + | ||
| 1 | 7 | 2003-04-18 Petr Mikulik <mikulik@physics.muni.cz> | |
| 2 | 8 | ||
| 3 | 9 | * gnuplot.doc unset.c(reset_command): Remove "unset_loadpath()" from | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,10 +4,19 @@ | |||
| 4 | 4 | \usepackage{longtable} | |
| 5 | 5 | \usepackage{graphicx} | |
| 6 | 6 | \usepackage{array} | |
| 7 | + \usepackage{calc} | ||
| 7 | 8 | %\usepackage[width=18cm,height=24cm]{geometry} | |
| 8 | - \addtolength{\textwidth}{30mm} | ||
| 9 | + \addtolength{\textwidth}{40mm} | ||
| 9 | 10 | \addtolength{\oddsidemargin}{-15mm} | |
| 10 | 11 | ||
| 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 | + | ||
| 11 | 20 | \font\cmmi=cmmi10 | |
| 12 | 21 | \font\cmr=cmr10 | |
| 13 | 22 | \font\cmti=cmti10 | |
@@ -21,83 +30,90 @@ | |||
| 21 | 30 | \font\lasy=lasy10 | |
| 22 | 31 | ||
| 23 | 32 | \newcount\rownum | |
| 33 | + \newcounter{dezcnt} | ||
| 34 | + | ||
| 35 | + \def\dez#1#2#3\empty{\setcounter{dezcnt}{64*#1+8*#2+#3}\thedezcnt} | ||
| 24 | 36 | ||
| 25 | 37 | \newcommand*\row[1]{% | |
| 26 | - \gdef\zus{}% | ||
| 38 | + \global\let\zus=\empty | ||
| 27 | 39 | \ifnum#1=000 | |
| 28 | - \gdef\zus{, \textbackslash 241}% | ||
| 40 | + \gdef\zus{241}% | ||
| 29 | 41 | \else\ifnum#1=001 | |
| 30 | - \gdef\zus{, \textbackslash 242}% | ||
| 42 | + \gdef\zus{242}% | ||
| 31 | 43 | \else\ifnum#1=002 | |
| 32 | - \gdef\zus{, \textbackslash 243}% | ||
| 44 | + \gdef\zus{243}% | ||
| 33 | 45 | \else\ifnum#1=003 | |
| 34 | - \gdef\zus{, \textbackslash 244}% | ||
| 46 | + \gdef\zus{244}% | ||
| 35 | 47 | \else\ifnum#1=004 | |
| 36 | - \gdef\zus{, \textbackslash 245}% | ||
| 48 | + \gdef\zus{245}% | ||
| 37 | 49 | \else\ifnum#1=005 | |
| 38 | - \gdef\zus{, \textbackslash 246}% | ||
| 50 | + \gdef\zus{246}% | ||
| 39 | 51 | \else\ifnum#1=006 | |
| 40 | - \gdef\zus{, \textbackslash 247}% | ||
| 52 | + \gdef\zus{247}% | ||
| 41 | 53 | \else\ifnum#1=007 | |
| 42 | - \gdef\zus{, \textbackslash 250}% | ||
| 54 | + \gdef\zus{250}% | ||
| 43 | 55 | \else\ifnum#1=010 | |
| 44 | - \gdef\zus{, \textbackslash 251}% | ||
| 56 | + \gdef\zus{251}% | ||
| 45 | 57 | \else\ifnum#1=011 | |
| 46 | - \gdef\zus{, \textbackslash 252}% | ||
| 58 | + \gdef\zus{252}% | ||
| 47 | 59 | \else\ifnum#1=012 | |
| 48 | - \gdef\zus{, \textbackslash 255}% | ||
| 60 | + \gdef\zus{255}% | ||
| 49 | 61 | \else\ifnum#1=013 | |
| 50 | - \gdef\zus{, \textbackslash 256}% | ||
| 62 | + \gdef\zus{256}% | ||
| 51 | 63 | \else\ifnum#1=014 | |
| 52 | - \gdef\zus{, \textbackslash 257}% | ||
| 64 | + \gdef\zus{257}% | ||
| 53 | 65 | \else\ifnum#1=015 | |
| 54 | - \gdef\zus{, \textbackslash 260}% | ||
| 66 | + \gdef\zus{260}% | ||
| 55 | 67 | \else\ifnum#1=016 | |
| 56 | - \gdef\zus{, \textbackslash 261}% | ||
| 68 | + \gdef\zus{261}% | ||
| 57 | 69 | \else\ifnum#1=017 | |
| 58 | - \gdef\zus{, \textbackslash 262}% | ||
| 70 | + \gdef\zus{262}% | ||
| 59 | 71 | \else\ifnum#1=020 | |
| 60 | - \gdef\zus{, \textbackslash 263}% | ||
| 72 | + \gdef\zus{263}% | ||
| 61 | 73 | \else\ifnum#1=021 | |
| 62 | - \gdef\zus{, \textbackslash 264}% | ||
| 74 | + \gdef\zus{264}% | ||
| 63 | 75 | \else\ifnum#1=022 | |
| 64 | - \gdef\zus{, \textbackslash 265}% | ||
| 76 | + \gdef\zus{265}% | ||
| 65 | 77 | \else\ifnum#1=023 | |
| 66 | - \gdef\zus{, \textbackslash 266}% | ||
| 78 | + \gdef\zus{266}% | ||
| 67 | 79 | \else\ifnum#1=024 | |
| 68 | - \gdef\zus{, \textbackslash 267}% | ||
| 80 | + \gdef\zus{267}% | ||
| 69 | 81 | \else\ifnum#1=025 | |
| 70 | - \gdef\zus{, \textbackslash 270}% | ||
| 82 | + \gdef\zus{270}% | ||
| 71 | 83 | \else\ifnum#1=026 | |
| 72 | - \gdef\zus{, \textbackslash 271}% | ||
| 84 | + \gdef\zus{271}% | ||
| 73 | 85 | \else\ifnum#1=027 | |
| 74 | - \gdef\zus{, \textbackslash 272}% | ||
| 86 | + \gdef\zus{272}% | ||
| 75 | 87 | \else\ifnum#1=030 | |
| 76 | - \gdef\zus{, \textbackslash 273}% | ||
| 88 | + \gdef\zus{273}% | ||
| 77 | 89 | \else\ifnum#1=031 | |
| 78 | - \gdef\zus{, \textbackslash 274}% | ||
| 90 | + \gdef\zus{274}% | ||
| 79 | 91 | \else\ifnum#1=032 | |
| 80 | - \gdef\zus{, \textbackslash 275}% | ||
| 92 | + \gdef\zus{275}% | ||
| 81 | 93 | \else\ifnum#1=033 | |
| 82 | - \gdef\zus{, \textbackslash 276}% | ||
| 94 | + \gdef\zus{276}% | ||
| 83 | 95 | \else\ifnum#1=034 | |
| 84 | - \gdef\zus{, \textbackslash 277}% | ||
| 96 | + \gdef\zus{277}% | ||
| 85 | 97 | \else\ifnum#1=035 | |
| 86 | - \gdef\zus{, \textbackslash 300}% | ||
| 98 | + \gdef\zus{300}% | ||
| 87 | 99 | \else\ifnum#1=036 | |
| 88 | - \gdef\zus{, \textbackslash 301}% | ||
| 100 | + \gdef\zus{301}% | ||
| 89 | 101 | \else\ifnum#1=037 | |
| 90 | - \gdef\zus{, \textbackslash 302}% | ||
| 102 | + \gdef\zus{302}% | ||
| 91 | 103 | \else\ifnum#1=040 | |
| 92 | - \gdef\zus{, \textbackslash 303}% and \200 | ||
| 104 | + \gdef\zus{303}% and \200 | ||
| 93 | 105 | \else\ifnum#1=177 | |
| 94 | - \gdef\zus{, \textbackslash 304}% | ||
| 106 | + \gdef\zus{304}% | ||
| 95 | 107 | \fi\fi\fi\fi\fi\fi\fi | |
| 96 | 108 | \fi\fi\fi\fi\fi\fi\fi | |
| 97 | 109 | \fi\fi\fi\fi\fi\fi\fi | |
| 98 | 110 | \fi\fi\fi\fi\fi\fi\fi | |
| 99 | 111 | \fi\fi\fi\fi\fi\fi | |
| 100 | - \textbackslash #1\zus & | ||
| 112 | + \textbackslash #1% | ||
| 113 | + \ifx\zus\empty | ||
| 114 | + \else | ||
| 115 | + , \textbackslash\zus | ||
| 116 | + \fi & | ||
| 101 | 117 | {\cmr\char'#1} & | |
| 102 | 118 | {\cmti\char'#1} & | |
| 103 | 119 | {\cmtt\char'#1} & | |
@@ -111,18 +127,30 @@ | |||
| 111 | 127 | \ifodd\rownum \else\qquad\fi | |
| 112 | 128 | \global\advance\rownum 1 | |
| 113 | 129 | {\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 \\ | ||
| 115 | 140 | } | |
| 116 | 141 | ||
| 117 | 142 | \begin{document} | |
| 118 | 143 | \title{Using \TeX\ Fonts in the Gnuplot Postscript Terminal} | |
| 119 | 144 | \author{Harald Harders, {\ttfamily h.harders@tu-bs.de}} | |
| 120 | - \date{2002-11-14} | ||
| 145 | + \date{2003-03-03} | ||
| 121 | 146 | \maketitle | |
| 122 | 147 | ||
| 148 | + \noindent | ||
| 123 | 149 | The Postscript terminal can embed Postscript Type\,1 fonts (with | |
| 124 | 150 | 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 | ||
| 126 | 154 | \begin{verbatim} | |
| 127 | 155 | set terminal postscript fontfile '<filename>' | |
| 128 | 156 | \end{verbatim} | |
@@ -139,8 +167,8 @@ | |||
| 139 | 167 | set xlabel '{/CMMI10 x}' | |
| 140 | 168 | \end{verbatim} | |
| 141 | 169 | ||
| 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. | ||
| 144 | 172 | For normal text, the \emph{cm-super} Postscript Type\,1 fonts are a | |
| 145 | 173 | good choice. | |
| 146 | 174 | They are available from CTAN servers, e.g. | |
@@ -149,9 +177,10 @@ | |||
| 149 | 177 | \end{verbatim} | |
| 150 | 178 | The normal upright font with serifes is defined in | |
| 151 | 179 | \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). | ||
| 155 | 184 | Replace the \verb|rm| by \verb|it|, \verb|bx| or other combinations in | |
| 156 | 185 | both the file name and the font name (here, in uppercase letters) in order | |
| 157 | 186 | to get other font shapes. | |
@@ -162,6 +191,9 @@ | |||
| 162 | 191 | % | |
| 163 | 192 | \begin{table} | |
| 164 | 193 | \centering | |
| 194 | + \captionabove{Some fonts in the cm-super font bundle (for a | ||
| 195 | + designsize of 10\,pt)}% | ||
| 196 | + \label{tab:fontnames}% | ||
| 165 | 197 | \begin{tabular}{>{\ttfamily}l>{\ttfamily}ll} | |
| 166 | 198 | \toprule | |
| 167 | 199 | \multicolumn{1}{l}{File name}& | |
@@ -203,9 +235,6 @@ | |||
| 203 | 235 | {\ttfamily\scshape Example} \\ | |
| 204 | 236 | \bottomrule | |
| 205 | 237 | \end{tabular} | |
| 206 | - \caption{Some fonts in the cm-super font bundle (for a designsize of | ||
| 207 | - 10\,pt)}% | ||
| 208 | - \label{tab:fontnames}% | ||
| 209 | 238 | \end{table} | |
| 210 | 239 | ||
| 211 | 240 | For mathematics the Type\,1 versions of the Computer Modern fonts are | |
@@ -216,20 +245,27 @@ | |||
| 216 | 245 | ftp://ftp.dante.de/tex-archive/fonts/cm/ps-type1/bluesky/pfb/ | |
| 217 | 246 | \end{verbatim} | |
| 218 | 247 | 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|. | ||
| 220 | 249 | Since the encoding of these fonts is strange, a table containing all | |
| 221 | 250 | characters for some fonts follows. | |
| 222 | 251 | The font \verb|CMEX10| contains large symbols for mathematics. They | |
| 223 | 252 | overlap sometimes in the table. Since the baseline of the | |
| 224 | 253 | \verb|CMEX10| font is at the top of the signs, Gnuplot defines a font | |
| 225 | 254 | \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. | ||
| 227 | 258 | ||
| 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} | ||
| 228 | 264 | Since characters with an octal number below \textbackslash 040 can't | |
| 229 | 265 | be displayed by some postscript interpreters, these characters are | |
| 230 | 266 | repeated in the Computer Modern Fonts with a larger code. | |
| 231 | 267 | 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). | ||
| 233 | 269 | For example, you better use | |
| 234 | 270 | \begin{verbatim} | |
| 235 | 271 | set xlabel '{/CMR10 \242}' | |
@@ -238,16 +274,16 @@ | |||
| 238 | 274 | \begin{verbatim} | |
| 239 | 275 | set xlabel '{/CMR10 \001}' | |
| 240 | 276 | \end{verbatim} | |
| 241 | - to get an upright uppercase Delta. | ||
| 277 | + to get an upright uppercase Delta $\Delta$. | ||
| 242 | 278 | ||
| 243 | - \begin{longtable}{lllllllllllll} | ||
| 279 | + \begin{longtable}{lllllllllllllr} | ||
| 244 | 280 | \toprule | |
| 245 | 281 | Oct& \rotatebox{90}{CMR10}& \rotatebox{90}{CMTI10}& | |
| 246 | 282 | \rotatebox{90}{CMTT10}& \rotatebox{90}{CMMI10}& | |
| 247 | 283 | \rotatebox{90}{CMU10}& \rotatebox{90}{CMSS10}& | |
| 248 | 284 | \rotatebox{90}{CMTEX10}& \rotatebox{90}{CMFF10}& | |
| 249 | 285 | \rotatebox{90}{CMSY10}& \rotatebox{90}{LASY10}& | |
| 250 | - \rotatebox{90}{CMEX10-Baseline}& Oct\\ | ||
| 286 | + \rotatebox{90}{CMEX10-Baseline}& Oct& Dec\\ | ||
| 251 | 287 | \midrule | |
| 252 | 288 | \endhead | |
| 253 | 289 | \bottomrule | |
| Back | FazBrowse Home | New Git URL |
0 commit comments