Debian Codegraph @

texmf-dist/doc/fonts/algolrevived/algolrevived-doc.tex

raw
1 % !TEX TS-program = pdflatexmk
2 % Template file for TeXShop by Michael Sharpe, LPPL
3 \documentclass[11pt]{article}
4 \usepackage[margin=1in]{geometry}
5 \usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
6 \usepackage{graphicx}
7 \pdfmapfile{=AlgolRevived.map}
8 %SetFonts
9 % algolrevived
10 \usepackage{algolrevived}
11 \usepackage[T1]{fontenc}
12 \usepackage{textcomp}
13 \usepackage[varqu,varl,scaled=1.04]{zi4}% inconsolata
14 %\usepackage[tt]{algolrevived}
15 %\usepackage{amsmath,amsthm}
16 %\usepackage[libertine,bigdelims,vvarbb]{newtxmath}
17 % option vvarbb gives you stix blackboard bold
18 %SetFonts
19 \usepackage{trace}
20 \usepackage{fonttable}
21 \title{Algol Revived\footnote{Creation of this package was spurred by Barbara Beeton's column in a recent TUGBoat, conveying a request from Jacques Andr\'e for someone to digitize Frutiger's Algol alphabet.}}
22 \author{Michael Sharpe}
23 \date{\today} % Activate to display a given date or no date
24
25 \begin{document}
26 \maketitle
27 \emph{AlgolRevived} is a revival of the (photo)font \emph{Algol} by Adrian Frutiger whose sole use was for printing ALGOL code in a manual. It is not meant to be a general purpose text font---the spacing is not optimized for that, being designed instead for printing computer code, where each letter should be distinct and text ligatures are banished. It seems to work well with the {\tt listings} package, designed for exactly that purpose. Unusually for such a font, it is not monospaced, though perhaps this is no longer the issue it was in the days of FORTRAN.
28
29 Nonetheless, if you don't object to a typewritten appearance, I think the font doesn't really look as bad as you might think it should. (This document uses it as its main text font.)
30
31 Both opentype and type1 fonts are provided, along with LaTeX support files. Most characters in the T1 encoding are provided, except for f-ligatures and the Sami characters Eng, eng. There are no kerning tables, and the spacing is not uniform so that even without hyphenation, lines spread out quite well.
32
33 \textbf{Usage with fontspec:}
34
35 The package provides algolrevived.fontspec, with contents:
36
37 \begin{verbatim}
38 \defaultfontfeatures[algolrevived]
39 {
40 Extension = .otf,
41 UprightFont = AlgolRevived ,
42 BoldFont = AlgolRevived-Medium ,
43 BoldItalicFont = AlgolRevived-MediumSlanted ,
44 ItalicFont = AlgolRevived-Slanted ,
45 }
46 \end{verbatim}
47 which allows you to set up your preamble using simply
48 \begin{verbatim}
49 ...
50 \usepackage{fontspec}
51 \setmainfont{algolrevived} % for use as main font
52 %\setmonofont{algolrevived} % for use as typewriter font only
53 ...
54 \end{verbatim}
55 \newpage
56
57 \textbf{Usage with LaTeX}
58
59 The package offers OT1, LY1, T1 and TS1 encodings, and sets T1 as the default. To change to LY1, you will need something like
60
61 \begin{verbatim}
62 \usepackage{algolrevived}
63 %\usepackage[tt]{algolrevived} for just typewriter
64 \usepackage[LY1]{fontenc}
65 \end{verbatim}
66 The package has two rather different modes, one intended for use as main text and the other intended for use as a typewriter font defining \verb|\ttdefault| for use with Typewriter Text and Verbatim text environments such as \verb|\texttt| and \verb|\verb|. In the example above, {\tt algolrevived} becomes the default Roman font, with the following features, details of which are described in more detail later in this document.
67 \begin{itemize}
68 \item
69 Hyphenation is enabled but may be turned off with the option {\tt nohyphens};
70 \item
71 the asterisk character renders as the high asterisk *. The low asterisk is available using \verb|\textasteriskcentered|, like \textasteriskcentered;
72 \item lining figures do not have a slashed zero: 0123456789;
73 \item
74 there is a {\tt compoundwordmark} in the T1 encoding, and there are {\tt capitalwordmark} and {\tt ascenderwordmark} in the TS1 encoding;
75 \item
76 the TS1 encoding is quite complete and has many additional symbols that are not part of the standard TS1 encoding;
77 \item oldstyle figures are available---they may be made the default using the option {\tt osf} or {\tt oldstyle}, or from the TS1 encoding;
78 \item inferior and superior figures are provided along with a \verb|\textfrac| macro;
79 \item a \verb|\textcircled| macro is provided.
80 \end{itemize}
81
82 \textbf{Usage as Typewriter Font}
83
84 The option {\tt tt} to {\tt algolrevived} changes the mode to {\tt Typewriter} with different behavior.
85 \begin{itemize}
86 \item
87 Hyphenation is suppressed;
88 \item
89 the asterisk is low in this case, with the same effect as \verb|\textasteriskcentered|.
90 \item \verb|\ttdefault| is set to {\tt AlgolRevived-TLF-TT}---in particular, oldstyle figure settings are ignored;
91 \item the default lining figure zero is slashed---you may change this using the option {\tt nozeroslash};
92 \item the figure style macros such as \verb|\textosf| and the \verb|\textcircled| remain available.
93 \end{itemize}
94
95 \newpage
96 \textbf{AlgolRevived-tlf-t1.tfm:}
97 \fonttable{AlgolRevived-tlf-t1--base}
98
99 \newpage
100 \textbf{Package options and macros:}\\
101 The option \texttt{scaled=.95} or \texttt{scale=.95} renders at 95\% of the default size. Option \texttt{tt} species typewriter. The macros \verb|{\sufigures 9}| (same effect as \verb|\textsu{9}|) render the figure as a superscript, \textsu{9}, and similarly with \verb|\infigures|, \verb|\textinf| for inferior figures. (Note that the usual macro \verb|\textin| is being used for the ``belongs to'' glyph, \textin, added as a non-standard part of {\tt textcomp}.)
102
103 The macro \verb|\textcircled| that may be used to construct a circled version of a single letter or numeral using \verb|\textbigcircle| for the encircling glyph. The argument is always constructed from uppercased letters and numerals, so, in effect, you can only construct circled uppercase: \verb|\textcircled{M}| and \verb|\textcircled{m}| have the same effect, namely~\textcircled{M}. Circled numerals are also available: \verb|\textcircled{0}...| produces \textcircled{0}\dots\textcircled{9}.
104 \begin{itemize}
105 \item
106 \verb|\textlf{}| and \verb|{\lfstyle }| give lining figures, as do
107 \verb|\texttlf{}| and \verb|{\tlfstyle }|;
108 \item
109 \verb|\textosf{}| and \verb|{\osfstyle }| give proportional oldstyle figures as do
110 \verb|\texttosf{}| and \verb|{\tosfstyle }|;
111 \item \verb|\textfrac{3}{4}| uses superior and inferior figures to make the fraction \textfrac{3}{4}, and an optional argument is available for the whole number part: \verb|\textfrac[2]{31}{32}| renders as \textfrac[2]{31}{32}. The spacing may be tinkered with by redefining the macro \verb|\textfrac| and by setting the two options {\tt foresolidus} and {\tt aftsolidus} which modify the spacing around the fraction solidus.
112 \end{itemize}
113
114 %2\textfrac{1}{2}\textfrac{2}{3} \textfrac{3}{4} \textfrac{4}{5} \textfrac{5}{6} \textfrac{6}{7} \textfrac{7}{8} \textfrac{8}{9} \textfrac{9}{0} \textfrac{0}{1} \$\textdollar\textdollaroldstyle
115
116 The sty file requires textcomp so there is no need to load it separately. Textcomp adds the following glyphs. (The mathematical symbols in the otherwise vacant slots in positions 192 and up were mostly borrowed from the STIX math fonts, which use the same SIL OFL as this package. The names below were in those cases are the same as the STIX names, prefixed by "text".)
117 \newpage
118
119 \textbf{AlgolRevived-ts1.tfm:}
120 \fonttable{AlgolRevived-ts1}
121 \newpage
122
123 \textbf{List of LaTeX macros to access the TS1 symbols in text mode:}
124
125 \begin{verbatim}
126 0 \capitalgrave
127 1 \capitalacute
128 2 \capitalcircumflex
129 3 \capitaltilde
130 4 \capitaldieresis
131 5 \capitalhungarumlaut
132 6 \capitalring
133 7 \capitalcaron
134 8 \capitalbreve
135 9 \capitalmacron
136 10 \capitaldotaccent
137 11 \capitalcedilla
138 12 \capitalogonek
139 13 \textquotestraightbase
140 18 \textquotestraightdblbase
141 21 \texttwelveudash
142 22 \textthreequartersemdash
143 23 \textcapitalcompwordmark
144 24 \textleftarrow
145 25 \textrightarrow
146 26 \t % tie accent, skewed right
147 27 \capitaltie % skewed right
148 28 \newtie % tie accent centered
149 29 \capitalnewtie % ditto
150 31 \textascendercompwordmark
151 32 \textblank
152 36 \textdollar
153 39 \textquotesingle
154 42 \textasteriskcentered
155 45 \textdblhyphen
156 47 \textfractionsolidus
157 48 \textzerooldstyle
158 49 \textoneoldstyle
159 50 \texttwooldstyle
160 49 \textthreeoldstyle
161 50 \textfouroldstyle
162 51 \textfiveoldstyle
163 52 \textsixoldstyle
164 53 \textsevenoldstyle
165 54 \texteightoldstyle
166 55 \textnineoldstyle
167 60 \textlangle
168 61 \textminus
169 62 \textrangle
170 77 \textmho
171 79 \textbigcircle
172 87 \textohm
173 91 \textlbrackdbl
174 93 \textrbrackdbl
175 94 \textuparrow
176 95 \textdownarrow
177 96 \textasciigrave
178 96 \textasciigrave
179 98 \textborn
180 99 \textdivorced
181 100 \textdied
182 108 \textleaf
183 109 \textmarried
184 110 \textmusicalnote
185 126 \texttildelow
186 127 \textdblhyphenchar
187 128 \textasciibreve
188 129 \textasciicaron
189 130 \textacutedbl
190 131 \textgravedbl
191 132 \textdagger
192 133 \textdaggerdbl
193 134 \textbardbl
194 135 \textperthousand
195 136 \textbullet
196 137 \textcelsius
197 138 \textdollaroldstyle
198 139 \textcentoldstyle
199 140 \textflorin
200 141 \textcolonmonetary
201 142 \textwon
202 143 \textnaira
203 144 \textguarani
204 145 \textpeso
205 146 \textlira
206 147 \textrecipe
207 148 \textinterrobang
208 149 \textinterrobangdown
209 150 \textdong
210 151 \texttrademark
211 152 \textpertenthousand
212 153 \textpilcrow
213 154 \textbaht
214 155 \textnumero
215 156 \textdiscount
216 157 \textestimated
217 158 \textopenbullet
218 159 \textservicemark
219 160 \textlquill
220 161 \textrquill
221 162 \textcent
222 163 \textsterling
223 164 \textcurrency
224 165 \textyen
225 166 \textbrokenbar
226 167 \textsection
227 168 \textasciidieresis
228 169 \textcopyright
229 170 \textordfeminine
230 171 \textcopyleft
231 172 \textlnot
232 173 \textcircledP
233 174 \textregistered
234 175 \textasciimacron
235 176 \textdegree
236 177 \textpm
237 178 \texttwosuperior
238 179 \textthreesuperior
239 181 \textmu
240 182 \textparagraph
241 183 \textperiodcentered
242 184 \textreferencemark
243 185 \textonesuperior
244 186 \textordmasculine
245 187 \textsurd
246 188 \textonequarter
247 189 \textonehalf
248 190 \textthreequarters
249 191 \texteuro
250 192 \textprime
251 193 \textdprime
252 196 \textleftrightarrow
253 197 \textupdownarrow
254 198 \textLeftarrow
255 199 \textUparrow
256 200 \textRightarrow
257 201 \textDownarrow
258 202 \textLeftrightarrow
259 203 \textUpdownarrow
260 204 \textforall
261 205 \textcomplement
262 206 \textpartial
263 207 \textexists
264 208 \textnexists
265 209 \textvarnothing
266 210 \textincrement
267 211 \textnabla
268 212 \textin
269 213 \textnotin
270 214 \texttimes
271 215 \textsmallin
272 216 \textni
273 217 \textnni
274 218 \textsmallni
275 219 \textsmallsetminus
276 220 \textlargebullet
277 221 \textland
278 222 \textlor
279 224 \textcap
280 225 \textcup
281 226 \textcoloneq
282 227 \texteqcolon
283 228 \textneq
284 229 \textequiv
285 230 \textneqiv
286 231 \textleq
287 232 \textgeq
288 233 \textsubset
289 234 \textsupset
290 235 \textnsubset
291 236 \textnsupset
292 237 \textsubseteq
293 238 \textsupseteq
294 239 \textnsubseteq
295 240 \textnsupseteq
296 241 \textsqsubset
297 242 \textsqsubset
298 243 \textsqsupset
299 244 \textsqsubseteq
300 245 \textsqcap
301 246 \textdiv
302 247 \textsqcup
303 \end{verbatim}
304
305 For example, typing in \verb|A\textcoloneq B| results in A\textcoloneq B.
306
307 \textbf{Package Details}
308
309 The package is laid out a bit differently from the typical one, and it may help some to know a few details.
310
311 There are six {\tt fd} files corresponding to each of the text encodings {\tt OT1, T1, LY1}, and two for {\tt TS1}, the text companion encoding. These are:
312 \begin{verbatim}
313 LY1AlgolRevived-Inf.fd
314 LY1AlgolRevived-Sup.fd
315 LY1AlgolRevived-OsF.fd
316 LY1AlgolRevived-TLF.fd
317 LY1AlgolRevived-OsF-TT.fd
318 LY1AlgolRevived-TLF-TT.fd
319 OT1AlgolRevived-Inf.fd
320 OT1AlgolRevived-Sup.fd
321 OT1AlgolRevived-OsF.fd
322 OT1AlgolRevived-TLF.fd
323 OT1AlgolRevived-OsF-TT.fd
324 OT1AlgolRevived-TLF-TT.fd
325 T1AlgolRevived-Inf.fd
326 T1AlgolRevived-Sup.fd
327 T1AlgolRevived-OsF.fd
328 T1AlgolRevived-TLF.fd
329 T1AlgolRevived-OsF-TT.fd
330 T1AlgolRevived-TLF-TT.fd
331 TS1AlgolRevived-OsF.fd
332 TS1AlgolRevived-TLF.fd
333 \end{verbatim}
334
335 The last two have essentially identical effect, each pointing to {\tt tfm} files of the form {\tt AlgolRevived-ts1.tfm}, {\tt AlgolRevived-Medium-ts1.tfm} and so on. These were all crafted with {\tt afm2tfm} because {\tt otftotfm} had repeated problems with distinguishing {\tt dollar} from {\tt dollaroldstyle} and {\tt cent} from {\tt centoldstyle}. To get the compond word marks right involved modifying the afm files after each edit to make their heights correct, then running {\tt afm2tfm} with the {\tt -v} option to get a virtual font which would register those heights correctly.
336
337 Each of the text font encodings have essentially the same structure, so I'll limit my remarks mainly to {\tt T1}. All except the {\tt -TT} were generated by {\tt autoinst}.
338
339 The {\tt -Inf} and {\tt -Sup} are for the inferior and superior letters respectively, while {\tt -TLF} and {\tt OsF} are for the two normal figure styles you might choose from in text mode. The {\tt -TT} case is more interesting, having been generated by {\tt afm2tfm} because {\tt autoinst} and {\tt otftotfm} don't give you much help with making the changes needed for a Typewriter font as distinct from a normal text font. For {\tt T1} and {\tt LY1} encoded fonts, the main difference, aside from lacking f-ligatures and the like, is that the asterisk is low in Typewriter and high in normal text. However, for {\tt OT1}, there are sixteen additional changes required in order to match the typewriter encoding used in {\tt cmtt}.
340
341 Each of the {\tt -TT fd} files points to {\tt tfm} files with names like
342 {\tt AlgolRevived-t1tt.tfm} with no figure style mentioned, because the figure style there is always {\tt TLF}. That is, {\tt T1AlgolRevived-OsF-TT.fd} and
343 {\tt T1AlgolRevived-TLF-TT.fd} have essentially identical contents, but both are required to be there to conform to the LaTeX font selection scheme. There is in all cases a 0 or 1 in the name, signifying the slashed zero (1) or the unslashed 0 (0).
344
345 \end{document}