Debian Codegraph @

texmf-dist/doc/fonts/bonum-otf/bonum-otf-doc.tex

raw
1 %% $Id: bonum-otf-doc.tex 925 2024-07-23 17:47:45Z herbert $
2 \listfiles
3 \documentclass[ngerman,spanish,polish,english,a4paper]{article}
4 \usepackage{heros-otf}
5 \usepackage{bonum-otf}
6 \setmonofont[Scale=MatchLowercase,FakeStretch=0.88]{AnonymousPro}
7 \usepackage{babel}
8 \usepackage{geometry}
9 \usepackage{booktabs}
10 \usepackage{xltabular}
11 \usepackage{listings}
12 \usepackage{xspace}
13 \usepackage{setspace}
14 \usepackage{xltabular}
15 \usepackage{marginnote}
16 \usepackage{xcolor,url}
17 \usepackage{varioref,multido}
18 \newcommand\Macro[1]{\texttt{\textbackslash#1}}
19 \newcommand\textstyleVariable[1]{\texttt{#1}}
20 \newcommand\textgerman[1]{\foreignlanguage{ngerman}{\texttt{#1}}}
21 \usepackage{hvextern}
22 \lstset{basicstyle=\ttfamily\small}
23 %\setkeys{hv}{lstOptions={basicstyle=\Mono\small,columns=fixed}}
24 \setkeys{hv}{moveToExampleDir,ExampleDir=Examples,showFilename,verbose}
25
26 \usepackage[imakeidx]{xindex}
27 \makeindex[title=Index]
28
29 \newenvironment{demoquote}
30 {\begingroup
31 \setlength{\topsep}{0pt}
32 \setlength{\partopsep}{0pt}
33 \list{}{\rightmargin\leftmargin}%
34 \item\relax}
35 {\endlist\endgroup}
36
37 \def\Lcs#1{\texttt{\textbackslash#1}\index{#1@\texttt{\textbackslash#1}}}
38 \def\Largb#1{\texttt{\{}\textit{#1}\texttt{\}}}
39 \def\Lpack#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Package!#1@\texttt{#1}}}
40 \def\testfeature#1#2#3{{\fontspec[RawFeature={+#2}]{#1}#3\relax}}
41 \def\Loption#1{\texttt{#1}\index{#1@\texttt{#1}}\index{Option!#1@\texttt{#1}}}
42 \def\SUP{\addfontfeatures{RawFeature={+sups}}}
43
44 \usepackage{multicol,luacode}
45 \setlength{\columnsep}{0.3cm}
46 \setlength{\columnseprule}{0.1pt}
47
48
49 \title{The \TeX\ Gyre Bonum OpenType font}
50 \author{Herbert Voß}
51 \usepackage{parskip}
52 \parindent=0pt
53
54
55 \begin{document}
56 \maketitle
57
58
59
60
61 \section{The default setting}
62
63 The \LaTeX\ package \Lpack{bonum-otf} supports the following OpenType fonts:
64 \begin{verbatim}
65 texgyrebonum-regular.otf
66 texgyrebonum-bold.otf
67 texgyrebonum-italic.otf
68 texgyrebonum-bolditalic.otf
69 texgyrebonum-math.otf
70 \end{verbatim}
71
72 The fonts are free available and part of any \TeX-distribution.
73
74
75 \begin{verbatim}
76 \setmainfont{texgyrebonum}[
77 RawFeature = {\bonum@figurealign;\bonum@figurestyle},
78 Scale = \bonumRM@scale ,
79 UprightFont = *-regular,
80 ItalicFont = *-italic,
81 ItalicFeatures = { SmallCapsFont = *-italic },
82 SlantedFont = *-regular,
83 SlantedFeatures= {FakeSlant=0.2},
84 BoldFont = *-bold,
85 BoldFeatures = { SmallCapsFont = *-Bold },
86 BoldItalicFont = *-bolditalic,
87 BoldItalicFeatures = { SmallCapsFont = *-bolditalic },
88 BoldSlantedFont= *-bold,
89 BoldSlantedFeatures= {FakeSlant=0.2, SmallCapsFont = *-bold },
90 SmallCapsFont = *-regular,
91 % SmallCapsFeatures={RawFeature=+smcp},
92 SmallCapsFeatures={Letters=SmallCaps},
93 Extension = .otf
94 ]
95
96 \newfontfamily\bonumOsF{texgyrebonum}[
97 RawFeature = {+onum},
98 Scale = \bonumRM@scale ,
99 UprightFont = *-regular,
100 ItalicFont = *-italic,
101 ItalicFeatures = { SmallCapsFont = *-italic },
102 SlantedFont = *-regular,
103 SlantedFeatures= {FakeSlant=0.2},
104 BoldFont = *-bold,
105 BoldFeatures = { SmallCapsFont = *-Bold },
106 BoldItalicFont = *-bolditalic,
107 BoldItalicFeatures = { SmallCapsFont = *-bolditalic },
108 BoldSlantedFont= *-bold,
109 BoldSlantedFeatures= {FakeSlant=0.2, SmallCapsFont = *-bold },
110 SmallCapsFont = *-regular,
111 % SmallCapsFeatures={RawFeature=+smcp},
112 SmallCapsFeatures={Letters=SmallCaps},
113 Extension = .otf
114 ]
115
116 \newfontfamily\bonumTLF{texgyrebonum}[
117 RawFeature = {+tnum;-onum},
118 Scale = \bonumRM@scale ,
119 UprightFont = *-regular,
120 ItalicFont = *-italic,
121 ItalicFeatures = { SmallCapsFont = *-italic },
122 SlantedFont = *-regular,
123 SlantedFeatures= {FakeSlant=0.2},
124 BoldFont = *-bold,
125 BoldFeatures = { SmallCapsFont = *-Bold },
126 BoldItalicFont = *-bolditalic,
127 BoldItalicFeatures = { SmallCapsFont = *-bolditalic },
128 BoldSlantedFont= *-bold,
129 BoldSlantedFeatures= {FakeSlant=0.2, SmallCapsFont = *-bold },
130 SmallCapsFont = *-regular,
131 % SmallCapsFeatures={RawFeature=+smcp},
132 SmallCapsFeatures={Letters=SmallCaps},
133 Extension = .otf
134 ]
135 \end{verbatim}
136
137
138 \section{The serif font}
139
140 \selectlanguage{polish}
141 \marginnote{mdseries\\upright}
142 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
143 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
144 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
145 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
146 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
147 Taka Albo tace Usta pęk ucha.
148
149 \marginnote{\normalfont bfseries\\upright}\bfseries
150 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
151 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
152 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
153 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
154 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
155 Taka Albo tace Usta pęk ucha.
156
157
158 \marginnote{\normalfont mdseries\\itshape}\normalfont\itshape
159 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
160 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
161 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
162 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
163 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
164 Taka Albo tace Usta pęk ucha.
165
166 \marginnote{\normalfont bfseries\\itshape}\bfseries
167 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
168 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
169 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
170 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
171 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
172 Taka Albo tace Usta pęk ucha.
173
174 \normalfont
175 \marginnote{\normalfont mdseries\\slshape}\normalfont\slshape
176 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
177 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
178 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
179 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
180 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
181 Taka Albo tace Usta pęk ucha.
182
183 \marginnote{\normalfont bfseries\\slshape}\bfseries
184 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
185 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
186 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
187 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
188 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
189 Taka Albo tace Usta pęk ucha.
190
191 \normalfont
192 \marginnote{\normalfont mdseries\\upright\\scshape}\scshape
193 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
194 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
195 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
196 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
197 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
198 Taka Albo tace Usta pęk ucha.
199
200 \marginnote{\normalfont bfseries\\upright\\scshape}\bfseries
201 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
202 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
203 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
204 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
205 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
206 Taka Albo tace Usta pęk ucha.
207
208 \mdseries
209 \marginnote{\normalfont mdseries\\itshape\\scshape}\itshape
210 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
211 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
212 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
213 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
214 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
215 Taka Albo tace Usta pęk ucha.
216
217 \marginnote{\normalfont bfseries\\itshape\\scshape}\bfseries
218 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
219 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
220 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
221 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
222 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
223 Taka Albo tace Usta pęk ucha.
224
225 \marginnote{\normalfont mdseries\\slshape\\scspape}\mdseries
226 \slshape
227 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
228 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
229 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
230 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
231 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
232 Taka Albo tace Usta pęk ucha.
233
234 \marginnote{\normalfont bfseries\\slshape\\scspape}\bfseries
235 Honoru myśliwych zaraza Rymsza Libijskich wszystkich Wożny przerywał szczodroty
236 opowiadań. Cesarskich znaczy rączy muchom malarstwie spisem różowemi zacnie
237 urządzał. Nasze Praga stare żeś Żyje cnoty Tabor. Mówcy pokój Również śmieléj
238 wionęła jarzynach liczne drogą jastrząb słowo zabawy odjechał życie. Dano
239 ojcu Wyprowadzają kuca dramatycznych myśliwskiém bór pęk żyt maja Wiec. Nię
240 Taka Albo tace Usta pęk ucha.
241
242
243
244 \normalfont\normalsize
245 \selectlanguage{english}
246
247 \section{Package options}
248
249 Possible optional arguments are
250
251 \noindent
252 \begin{tabular}{@{} >{\ttfamily}l l @{}}
253 oldstyle, osf & old-style figures \\
254 lining, nf, lf & lining figures (default)\\
255 proportional, p & varying-width figures\\
256 tabular, t & fixed-width figures (default)\\
257 ScaleRM & scaling for the serif font, preset to 1\\
258 defaultfeatures & presetting of features only for rmfamily\\
259 libertinus & use integral symbols from Libertinus Math
260 \end{tabular}
261
262
263
264 %\lstset{extendedchars}
265
266 \begin{externalDocument}[
267 % grfOptions={width=0.5\linewidth},
268 frame,
269 compiler=lualatex,
270 crop,
271 force=true,
272 runs=2,
273 code,
274 docType=latex,
275 frame,
276 showFilename,
277 ExampleDir=Examples,
278 % align=\centering,
279 % lstOptions={columns=flexible}
280 ]{bonum}
281 \documentclass{article}
282 \pagestyle{empty}
283 %StartVisiblePreamble
284 \usepackage[osf]{bonum-otf}
285 %StopVisiblePreamble
286 \begin{document}
287 0000111122223333444455556666777788889999\par abcdefghijklmn
288 \end{document}
289 \end{externalDocument}
290
291
292 \begin{externalDocument}[
293 % grfOptions={width=0.5\linewidth},
294 compiler=lualatex,
295 crop,
296 force=true,
297 runs=1,
298 code,
299 docType=latex,
300 frame,
301 % showFilename,
302 % align=\centering,
303 %lstOptions={columns=flexible}
304 ]{bonum}
305 \documentclass{article}
306 \pagestyle{empty}
307 %StartVisiblePreamble
308 \usepackage[lining]{bonum-otf}
309 %StopVisiblePreamble
310 \begin{document}
311 0000111122223333444455556666777788889999\par
312 \addfontfeatures{RawFeature=-lnum;+onum}%
313 0000111122223333444455556666777788889999
314 \end{document}
315 \end{externalDocument}
316
317
318
319
320 \begin{externalDocument}[
321 frame,
322 compiler=lualatex,
323 crop,
324 force=true,
325 runs=1,
326 code,
327 docType=latex,
328 frame,
329 % showFilename,
330 % align=\centering,
331 %lstOptions={columns=flexible}
332 ]{bonum}
333 \documentclass{article}
334 \pagestyle{empty}
335 %StartVisiblePreamble
336 \usepackage[t=false]{bonum-otf}
337 %StopVisiblePreamble
338 \begin{document}
339 0000111122223333444455556666777788889999\par
340 \addfontfeatures{RawFeature=+tnum}%L
341 0000111122223333444455556666777788889999
342 \end{document}
343 \end{externalDocument}
344
345
346
347
348
349
350 \begin{externalDocument}[
351 % grfOptions={width=0.5\linewidth},
352 frame,compiler=lualatex,
353 crop,
354 force=true,
355 runs=2,code,docType=latex,
356 frame,
357 % showFilename,
358 % align=\centering,
359 % lstOptions={columns=flexible}
360 ]{bonum}
361 \documentclass{article}
362 \pagestyle{empty}
363 %StartVisiblePreamble
364 \usepackage[p]{bonum-otf}
365 %StopVisiblePreamble
366 \begin{document}
367 0000111122223333444455556666777788889999\par
368 \addfontfeatures{RawFeature=-pnum}%
369 0000111122223333444455556666777788889999
370 \end{document}
371 \end{externalDocument}
372
373 \section{Features}
374
375
376 \begin{lstlisting}[basicstyle=\ttfamily\small]
377 bash-3.2$ otfinfo -f texgyrebonum-regular.otf
378 aalt Access All Alternates
379 c2sc Small Capitals From Capitals
380 cpsp Capital Spacing
381 dlig Discretionary Ligatures
382 frac Fractions
383 kern Kerning
384 liga Standard Ligatures
385 lnum Lining Figures
386 onum Oldstyle Figures
387 pnum Proportional Figures
388 salt Stylistic Alternates
389 size Optical Size
390 smcp Small Capitals
391 ss01 Stylistic Set 1
392 ss02 Stylistic Set 2
393 ss03 Stylistic Set 3
394 ss04 Stylistic Set 4
395 tnum Tabular Figures
396 zero Slashed Zero
397 \end{lstlisting}
398
399 %$
400
401
402 \subsection{Capitals to Small Caps}
403
404 The macro \Lcs{Lctosc}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LCtoSC+} and \Lcs{LCtoSC-} for
405 a global change of capitals to small caps.
406
407 \begin{externalDocument}[
408 % grfOptions={width=0.5\linewidth},
409 frame,compiler=lualatex,
410 crop,
411 force=true,
412 runs=2,code,docType=latex,
413 frame,
414 % showFilename,
415 % align=\centering,
416 % lstOptions={columns=flexible}
417 ]{bonum}
418 \documentclass{article}
419 \pagestyle{empty}
420 \parindent=0pt
421 %StartVisiblePreamble
422 \usepackage{bonum-otf}
423 \usepackage{xcolor}
424 %StopVisiblePreamble
425 \begin{document}
426 bonum Font ŐŰÉÁÄ \Lctosc{bonum Font ŐŰÉÁÄ}\\
427 \LCtoSC+ bonum Font ŐŰÉÁÄ
428 \end{document}
429 \end{externalDocument}
430
431
432
433 \subsection{Capitals to Small Caps and small captitals}
434
435 The macro \Lcs{Lctosmcp}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LCtoSMCP+} and \Lcs{LCtoSMCP-} for
436 a global change of capitals to small caps.
437
438 \begin{externalDocument}[
439 % grfOptions={width=0.5\linewidth},
440 frame,compiler=lualatex,
441 crop,
442 force=true,
443 runs=2,code,docType=latex,
444 frame,
445 % showFilename,
446 % align=\centering,
447 % lstOptions={columns=flexible}
448 ]{bonum}
449 \documentclass{article}
450 \pagestyle{empty}
451 \parindent=0pt
452 %StartVisiblePreamble
453 \usepackage{bonum-otf}
454 \usepackage{xcolor}
455 %StopVisiblePreamble
456 \begin{document}
457 bonum Font ŐŰÉÁÄ \Lctosmcp{bonum Font ŐŰÉÁÄ}\\
458 \LCtoSMCP+ bonum Font ŐŰÉÁÄ
459 \end{document}
460 \end{externalDocument}
461
462 \subsection{Ligatures}
463
464 The macros \Lcs{Lliga}\Largb{arg} (standard ligatures), \Lcs{Lhlig}\Largb{arg} (historical ligatures),
465 \Lcs{Ldlig}\Largb{arg} (discretionary ligatures)
466 are for a local change of \emph{arg} and \Lcs{LLIGA+}/\Lcs{LLIGA-}, \Lcs{LHLIG+}/\Lcs{LHLIG-}, and \Lcs{LDLIG+}/\Lcs{LDIG-} for
467 a global change of capitals to small caps relative to the current group.
468
469 \begin{externalDocument}[
470 % grfOptions={width=0.5\linewidth},
471 frame,compiler=lualatex,
472 crop,
473 force=true,
474 runs=2,code,docType=latex,
475 frame,
476 % showFilename,
477 % align=\centering,
478 % lstOptions={columns=flexible}
479 ]{bonum}
480 \documentclass{article}
481 \pagestyle{empty}
482 \parindent=0pt
483 %StartVisiblePreamble
484 \usepackage{bonum-otf}
485 \usepackage{xcolor}
486 %StopVisiblePreamble
487 \begin{document}%\LLIGA+ % Default
488 ff, fi, ffi, fl
489
490 \LLIGA- ff, fi, ffi, fl
491 \end{document}
492 \end{externalDocument}
493
494
495
496
497 \subsection{Capital spacing, uppercase kerning}
498
499 \begin{externalDocument}[
500 % grfOptions={width=0.5\linewidth},
501 frame,compiler=lualatex,
502 crop,
503 force=true,
504 runs=2,code,docType=latex,
505 frame,
506 % showFilename,
507 % align=\centering,
508 % lstOptions={columns=flexible}
509 ]{bonum}
510 \documentclass{article}
511 \pagestyle{empty}
512 \parindent=0pt
513 %StartVisiblePreamble
514 \usepackage{bonum-otf}
515 \usepackage{xcolor}
516 %StopVisiblePreamble
517 \begin{document}
518 IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.\\
519 \textcolor{red}{\Lcpsp{IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.}}
520
521 \makebox[0pt][l]{IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.}%
522 \textcolor{red}{\LCPSP IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.}
523 \end{document}
524 \end{externalDocument}
525
526
527 \subsection{Stylistic Alternates}
528
529 The macro \Lcs{Lsalt}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LSALT+} and \Lcs{LSALT-} for
530 the alternate characters.
531
532 \begin{externalDocument}[
533 % grfOptions={width=0.5\linewidth},
534 frame,compiler=lualatex,
535 crop,
536 force=true,
537 runs=2,code,docType=latex,
538 usefancyvrb,
539 frame,
540 % showFilename,
541 % align=\centering,
542 % lstOptions={columns=flexible}
543 ]{bonum}
544 \documentclass{article}
545 \pagestyle{empty}
546 \parindent=0pt
547 %StartVisiblePreamble
548 \usepackage{bonum-otf}
549 %StopVisiblePreamble
550 \begin{document}
551 θκφ \quad \Lsalt{θκφ} \quad\LSALT+ θκφ \quad\LSALT- θκφ
552 \end{document}
553 \end{externalDocument}
554
555
556 % ss01 Stylistic Set 1
557 % ss02 Stylistic Set 2
558 % ss03 Stylistic Set 3
559 % ss04 Stylistic Set 4
560 % ss10 Stylistic Set 10
561
562 \subsection{Stylistic Sets}
563
564 \iffalse
565
566
567
568
569
570 ¡“¶¢[]|{}≠¿'
571 «∑€®†Ω¨⁄øπ•±
572 å‚∂ƒ©ªº∆@œæ
573 \≈ç√∫~µ∞…–
574 ---
575 ≥¬”#£fi^\˜·¯˙˚
576 »„‰¸˝ˇÁÛØ∏°’
577 ÅÍ™ÏÌÓıˆflŒÆ
578 ‡ÙÇ◊‹›˘˛÷—
579 \fi
580
581 There is a short command \Lcs{Lssxx}\Largb{text} for the four stylistic sets,
582 where xx is the number of the set (two digits)
583 and \textit{text} the local argument:
584
585 \begin{externalDocument}[
586 % grfOptions={width=0.5\linewidth},
587 frame,compiler=lualatex,
588 crop,
589 force=true,
590 usefancyvrb,
591 runs=2,code,docType=latex,
592 frame,
593 % showFilename,
594 % align=\centering,
595 % lstOptions={columns=flexible}
596 ]{bonum}
597 \documentclass{article}
598 \pagestyle{empty}
599 \parindent=0pt
600 %StartVisiblePreamble
601 \usepackage{bonum-otf}
602 %StopVisiblePreamble
603 \begin{document}
604 εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \Lss01{εμφ πρθ Īī@©⁄¶® ̄}\par
605 @©⁄¶® $\rightarrow$ \Lss02{@©⁄¶®}\par
606 εμφπρθ $\rightarrow$ \Lss03{εμφ πρθ}\par
607 Īī̄ $\rightarrow$ \Lss04{Īī̄}\par
608 \end{document}
609 \end{externalDocument}
610
611 For a global change of the stylistic set one can use the command \Lcs{LSSxx}, where xx
612 is again the number of the set.
613
614 \begin{externalDocument}[
615 % grfOptions={width=0.5\linewidth},
616 frame,compiler=lualatex,
617 crop,
618 usefancyvrb,
619 force=true,
620 runs=2,code,docType=latex,
621 frame,
622 % showFilename,
623 % align=\centering,
624 % lstOptions={columns=flexible}
625 ]{bonum}
626 \documentclass{article}
627 \pagestyle{empty}
628 %StartVisiblePreamble
629 \usepackage{bonum-otf}
630 %StopVisiblePreamble
631 \begin{document}
632 εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \LSS01 εμφ πρθ Īī@©⁄¶® ̄
633 \end{document}
634 \end{externalDocument}
635
636
637
638 \begin{externalDocument}[
639 frame,compiler=lualatex,
640 crop,
641 force=true,
642 usefancyvrb,
643 runs=2,code,docType=latex,
644 frame,
645 % lstOptions={columns=flexible}
646 ]{bonum}
647 \documentclass{article}
648 \pagestyle{empty}
649 %StartVisiblePreamble
650 \usepackage{bonum-otf}
651 %StopVisiblePreamble
652 \begin{document}
653 @©⁄¶® $\rightarrow$ \LSS02 @©⁄¶®
654 \end{document}
655 \end{externalDocument}
656
657 \iffalse
658 ≤¡“¶¢[]|{}≠¿'
659 «∑€®†Ω¨⁄øπ•±
660 å‚∂ƒ©ªº∆@œæ
661 \≈ç√∫~µ∞…–
662 ---
663 ≥¬”#£fi^\˜·¯˙˚
664 »„‰¸˝ˇÁÛØ∏°’
665 ÅÍ™ÏÌÓıˆflŒÆ
666 ‡ÙÇ◊‹›˘˛÷—
667 \fi
668
669
670 %\section{New text macros}
671 %
672 %\Lcs{textsup}\Largb{text} for superiors:
673 %
674 %\begin{verbatim}
675 %7\textsup{th} floor
676 %\end{verbatim}
677
678 %7\textsup{th} floor
679
680
681 \section{Font commands}
682 Instead of using the command \Lcs{fontspec} for changing to a different type of
683 a bonum font, one can use a predefinded command:
684
685 \begin{verbatim}
686 \bonum (default)
687 \bonumOsF (Old style proportional figures)
688 \bonumTLF (tabular lining figures)
689 \end{verbatim}
690
691 \begin{externalDocument}[
692 frame,compiler=lualatex,
693 crop,
694 force=true,
695 usefancyvrb,
696 runs=2,code,docType=latex,
697 frame,
698 % lstOptions={columns=flexible}
699 ]{bonum}
700 \documentclass{article}
701 \pagestyle{empty}
702 %StartVisiblePreamble
703 \usepackage{bonum-otf}
704 %StopVisiblePreamble
705 \begin{document}
706 The default setting with 123456. \bonumOsF Now with 123456 and
707 \bonumTLF now with 123456 \bonum and back to the default 123456.
708 \end{document}
709 \end{externalDocument}
710
711
712
713
714
715 \section{Math mode}
716
717
718 %bash-3.2$ otfinfo -f --script=math texgyrebonum-math.otf
719 %aalt Access All Alternates
720 %dtls <unknown feature>
721 %ssty <unknown feature>
722
723
724 \subsection{Example for bonum math}
725
726
727 \noindent\fbox{%
728 \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
729 \textbf{Theorem 1 (Residue Theorem).}
730 Let $f$ be analytic in the region $G$ except for the isolated singularities $a_1,a_2,\ldots,a_m$. If $\gamma$ is a closed rectifiable curve in $G$ which does not pass through any of the points $a_k$ and if $\gamma\approx 0$ in $G$ then
731 %
732 \[
733 \mathop{\symup{Res}}\limits_{z=a}f(z) = \mathop{\mathrm{Res}}\limits_a f
734 = \frac{1}{2\pi\symup{i}} \int\limits_C f(z)\,\symup dz,
735 \]
736 %
737 where $C\subset D\backslash\{a\}$ is a closed line
738 $ n(C,a)=1$ (e.\,g. a counterclockwise circle loop).
739
740 \medskip
741 $\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O
742 \Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$
743 $\mathsf{ABCDabcd1234}$
744
745 $a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j
746 k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p
747 \rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $
748
749 $xyz \infty \propto \emptyset y=f(x)$
750 \hfill$\sum\int\prod\displaystyle~\prod\int\sum~
751 \textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$
752
753 \boldmath
754 $\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O
755 \Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$
756 $\mathsf{ABCDabcd1234}$
757
758 $a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j
759 k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p
760 \rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $
761
762 $xyz \infty \propto \emptyset y=f(x)$
763 \hfill$\sum\int\prod\displaystyle~\prod\int\sum~
764 \textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$
765 \unboldmath
766 \end{minipage}}
767
768
769 There exists an optional argument \texttt{math} for setting features only for the math font,
770 for example \texttt{+aalt} for slightly wider characters:
771
772
773 \begin{externalDocument}[
774 % grfOptions={width=0.5\linewidth},
775 frame,compiler=lualatex,
776 crop,
777 force=true,
778 runs=2,code,docType=latex,
779 frame,
780 % showFilename,
781 % align=\centering,
782 % lstOptions={columns=flexible}
783 ]{bonum}
784 \documentclass{article}
785 \pagestyle{empty}
786 %StartVisiblePreamble
787 \usepackage{bonum-otf}
788 %StopVisiblePreamble
789 \begin{document}
790 $\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta
791 \eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu
792 \nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma
793 \tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega
794 \Omega$
795
796 {\setmathfont[Script=Math,RawFeature=+aalt]{texgyrebonum-math.otf}
797 $\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta
798 \eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu
799 \nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma
800 \tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega
801 \Omega$
802 }
803 \end{document}
804 \end{externalDocument}
805
806
807
808 \subsection{Integrals}
809 If you do not like the small integral symbols from bonum then use the package
810 option \Loption{libertinus}. Then these symbols are taken from Libertinus Math.
811
812
813 \begin{externalDocument}[
814 frame,compiler=lualatex,
815 crop,
816 force=true,
817 runs=2,code,docType=latex,
818 frame,
819 usefancyvrb,
820 % lstOptions={columns=flexible}
821 ]{bonum}
822 \documentclass{article}
823 \pagestyle{empty}
824 %StartVisiblePreamble
825 \usepackage[libertinus]{bonum-otf}% use integrals from Libertinus
826 %StopVisiblePreamble
827 \begin{document}
828 The integrals from Libertinus Math:
829 \[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \]
830
831 The default integrals from bonum:
832 \setmathfont{texgyrebonum-math.otf}
833 \[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \]
834 \end{document}
835 \end{externalDocument}
836
837
838
839
840
841
842
843
844
845 \clearpage
846 \newgeometry{margin=1cm,bmargin=2cm}
847
848 \section{The font list of bonum Regular}
849
850 \begin{multicols}{5}
851 \begin{luacode*}
852 local f = fontloader.open('/Users/voss/Links/fonts/opentype/public/tex-gyre/texgyrebonum-regular.otf')
853 print("Max glyphs: "..f.glyphmax)
854 local glyphs = {}
855 for i = 0, f.glyphmax - 1 do
856 local g = f.glyphs[i]
857 if g then
858 table.insert(glyphs, {name = g.name, unicode = g.unicode})
859 end
860 end
861 table.sort(glyphs, function (a,b) return (a.unicode < b.unicode) end)
862 for i = 1, #glyphs do
863 tex.sprint('\\scriptsize'..glyphs[i].unicode .. ': ')
864 if (glyphs[i].unicode > 0) then
865 tex.sprint('{\\char' .. glyphs[i].unicode .. '}');
866 end
867 tex.sprint(' {\\scriptsize (')
868 tex.sprint(-2, glyphs[i].name)
869 tex.sprint(')}\\\\')
870 end
871 fontloader.close(f)
872 \end{luacode*}
873 \end{multicols}
874
875
876
877
878 \section{The font list of bonum Math}
879
880
881 \begingroup
882 \catcode`\%=12
883 \gdef\perCent{%}
884 \endgroup
885
886 %\UnicodeMathSymbol{"00021}{\mathexclam }{\mathclose}{exclamation mark}%
887 \begin{multicols}{3}
888 \def\UnicodeMathSymbol#1#2#3#4{\scriptsize\texttt{#1}: $#2{}$ (#4) \\}
889 \input{unicode-math-table}
890 \end{multicols}
891
892
893 \clearpage\restoregeometry
894
895 \printindex
896
897
898
899
900 \end{document}