Debian Codegraph @

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

raw
1 %% $Id: schola-otf-doc.tex 636 2022-10-17 05:56:11Z herbert $
2 \listfiles
3 \documentclass[ngerman,spanish,polish,english,a4paper]{article}
4 \usepackage{schola-otf}
5 \usepackage{heros-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 Schola 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{schola-otf} supports the following OpenType fonts:
64 \begin{verbatim}
65 texgyreschola-regular.otf
66 texgyreschola-bold.otf
67 texgyreschola-italic.otf
68 texgyreschola-bolditalic.otf
69 texgyreschola-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{texgyreschola}[
77 RawFeature = {\schola@figurealign;\schola@figurestyle},
78 Scale = \scholaRM@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\scholaOsF{texgyreschola}[
97 RawFeature = {+onum},
98 Scale = \scholaRM@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\scholaTLF{texgyreschola}[
117 RawFeature = {+tnum;-onum},
118 Scale = \scholaRM@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=false,
272 runs=2,
273 code,
274 docType=latex,
275 frame,
276 showFilename,
277 ExampleDir=Examples,
278 % align=\centering,
279 % lstOptions={columns=flexible}
280 ]{Schola}
281 \documentclass{article}
282 \pagestyle{empty}
283 %StartVisiblePreamble
284 \usepackage[osf]{schola-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=false,
297 runs=1,
298 code,
299 docType=latex,
300 frame,
301 % showFilename,
302 % align=\centering,
303 %lstOptions={columns=flexible}
304 ]{Schola}
305 \documentclass{article}
306 \pagestyle{empty}
307 %StartVisiblePreamble
308 \usepackage[lining]{schola-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=false,
325 runs=1,
326 code,
327 docType=latex,
328 frame,
329 % showFilename,
330 % align=\centering,
331 %lstOptions={columns=flexible}
332 ]{Schola}
333 \documentclass{article}
334 \pagestyle{empty}
335 %StartVisiblePreamble
336 \usepackage[t=false]{schola-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=false,
355 runs=2,code,docType=latex,
356 frame,
357 % showFilename,
358 % align=\centering,
359 % lstOptions={columns=flexible}
360 ]{Schola}
361 \documentclass{article}
362 \pagestyle{empty}
363 %StartVisiblePreamble
364 \usepackage[p]{schola-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 texgyreschola-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=false,
412 runs=2,code,docType=latex,
413 frame,
414 % showFilename,
415 % align=\centering,
416 % lstOptions={columns=flexible}
417 ]{Schola}
418 \documentclass{article}
419 \pagestyle{empty}
420 \parindent=0pt
421 %StartVisiblePreamble
422 \usepackage{schola-otf}
423 \usepackage{xcolor}
424 %StopVisiblePreamble
425 \begin{document}
426 Schola Font ŐŰÉÁÄ \Lctosc{Schola Font ŐŰÉÁÄ}\\
427 \LCtoSC+ Schola 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=false,
443 runs=2,code,docType=latex,
444 frame,
445 % showFilename,
446 % align=\centering,
447 % lstOptions={columns=flexible}
448 ]{Schola}
449 \documentclass{article}
450 \pagestyle{empty}
451 \parindent=0pt
452 %StartVisiblePreamble
453 \usepackage{schola-otf}
454 \usepackage{xcolor}
455 %StopVisiblePreamble
456 \begin{document}
457 Schola Font ŐŰÉÁÄ \Lctosmcp{Schola Font ŐŰÉÁÄ}\\
458 \LCtoSMCP+ Schola 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=false,
474 runs=2,code,docType=latex,
475 frame,
476 % showFilename,
477 % align=\centering,
478 % lstOptions={columns=flexible}
479 ]{Schola}
480 \documentclass{article}
481 \pagestyle{empty}
482 \parindent=0pt
483 %StartVisiblePreamble
484 \usepackage{schola-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=false,
504 runs=2,code,docType=latex,
505 frame,
506 % showFilename,
507 % align=\centering,
508 % lstOptions={columns=flexible}
509 ]{Schola}
510 \documentclass{article}
511 \pagestyle{empty}
512 \parindent=0pt
513 %StartVisiblePreamble
514 \usepackage{schola-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=false,
537 runs=2,code,docType=latex,
538 usefancyvrb,
539 frame,
540 % showFilename,
541 % align=\centering,
542 % lstOptions={columns=flexible}
543 ]{Schola}
544 \documentclass{article}
545 \pagestyle{empty}
546 \parindent=0pt
547 %StartVisiblePreamble
548 \usepackage{schola-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 seven stylistic sets, where xx is the number of the set (two digits)
582 and \textit{text} the local argument:
583
584 \begin{externalDocument}[
585 % grfOptions={width=0.5\linewidth},
586 frame,compiler=lualatex,
587 crop,
588 force=false,
589 usefancyvrb,
590 runs=2,code,docType=latex,
591 frame,
592 % showFilename,
593 % align=\centering,
594 % lstOptions={columns=flexible}
595 ]{Schola}
596 \documentclass{article}
597 \pagestyle{empty}
598 \parindent=0pt
599 %StartVisiblePreamble
600 \usepackage{schola-otf}
601 %StopVisiblePreamble
602 \begin{document}
603 εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \Lss01{εμφ πρθ Īī@©⁄¶® ̄}\par
604 @©⁄¶® $\rightarrow$ \Lss02{@©⁄¶®}\par
605 εμφπρθ $\rightarrow$ \Lss03{εμφ πρθ}\par
606 Īī̄ $\rightarrow$ \Lss04{Īī̄}\par
607 \end{document}
608 \end{externalDocument}
609
610 For a global change of the stylistic set one can use the command \Lcs{LSSxx}, where xx
611 is again the number of the set.
612
613 \begin{externalDocument}[
614 % grfOptions={width=0.5\linewidth},
615 frame,compiler=lualatex,
616 crop,
617 usefancyvrb,
618 force=false,
619 runs=2,code,docType=latex,
620 frame,
621 % showFilename,
622 % align=\centering,
623 % lstOptions={columns=flexible}
624 ]{Schola}
625 \documentclass{article}
626 \pagestyle{empty}
627 %StartVisiblePreamble
628 \usepackage{schola-otf}
629 %StopVisiblePreamble
630 \begin{document}
631 εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \LSS01 εμφ πρθ Īī@©⁄¶® ̄
632 \end{document}
633 \end{externalDocument}
634
635
636
637 \begin{externalDocument}[
638 frame,compiler=lualatex,
639 crop,
640 force=false,
641 usefancyvrb,
642 runs=2,code,docType=latex,
643 frame,
644 % lstOptions={columns=flexible}
645 ]{Schola}
646 \documentclass{article}
647 \pagestyle{empty}
648 %StartVisiblePreamble
649 \usepackage{schola-otf}
650 %StopVisiblePreamble
651 \begin{document}
652 @©⁄¶® $\rightarrow$ \LSS02 @©⁄¶®
653 \end{document}
654 \end{externalDocument}
655
656 \iffalse
657 ≤¡“¶¢[]|{}≠¿'
658 «∑€®†Ω¨⁄øπ•±
659 å‚∂ƒ©ªº∆@œæ
660 \≈ç√∫~µ∞…–
661 ---
662 ≥¬”#£fi^\˜·¯˙˚
663 »„‰¸˝ˇÁÛØ∏°’
664 ÅÍ™ÏÌÓıˆflŒÆ
665 ‡ÙÇ◊‹›˘˛÷—
666 \fi
667
668
669 %\section{New text macros}
670 %
671 %\Lcs{textsup}\Largb{text} for superiors:
672 %
673 %\begin{verbatim}
674 %7\textsup{th} floor
675 %\end{verbatim}
676
677 %7\textsup{th} floor
678
679
680 \section{Font commands}
681 Instead of using the command \Lcs{fontspec} for changing to a different type of
682 a Schola font, one can use a predefinded command:
683
684 \begin{verbatim}
685 \schola (default)
686 \scholaOsF (Old style proportional figures)
687 \scholaTLF (tabular lining figures)
688 \end{verbatim}
689
690 \begin{externalDocument}[
691 frame,compiler=lualatex,
692 crop,
693 force=true,
694 usefancyvrb,
695 runs=2,code,docType=latex,
696 frame,
697 % lstOptions={columns=flexible}
698 ]{Schola}
699 \documentclass{article}
700 \pagestyle{empty}
701 %StartVisiblePreamble
702 \usepackage{schola-otf}
703 %StopVisiblePreamble
704 \begin{document}
705 The default setting with 123456. \scholaOsF Now with 123456 and
706 \scholaTLF now with 123456 \schola and back to the default 123456.
707 \end{document}
708 \end{externalDocument}
709
710
711
712
713
714 \section{Math mode}
715
716
717 %bash-3.2$ otfinfo -f --script=math texgyreschola-math.otf
718 %aalt Access All Alternates
719 %dtls <unknown feature>
720 %ssty <unknown feature>
721
722
723 \subsection{Example for schola math}
724
725
726 \noindent\fbox{%
727 \begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule}
728 \textbf{Theorem 1 (Residue Theorem).}
729 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
730 %
731 \[
732 \mathop{\symup{Res}}\limits_{z=a}f(z) = \mathop{\mathrm{Res}}\limits_a f
733 = \frac{1}{2\pi\symup{i}} \int\limits_C f(z)\,\symup dz,
734 \]
735 %
736 where $C\subset D\backslash\{a\}$ is a closed line
737 $ n(C,a)=1$ (e.\,g. a counterclockwise circle loop).
738
739 \medskip
740 $\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O
741 \Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$
742 $\mathsf{ABCDabcd1234}$
743
744 $a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j
745 k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p
746 \rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $
747
748 $xyz \infty \propto \emptyset y=f(x)$
749 \hfill$\sum\int\prod\displaystyle~\prod\int\sum~
750 \textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$
751
752 \boldmath
753 $\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O
754 \Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$
755 $\mathsf{ABCDabcd1234}$
756
757 $a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j
758 k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p
759 \rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $
760
761 $xyz \infty \propto \emptyset y=f(x)$
762 \hfill$\sum\int\prod\displaystyle~\prod\int\sum~
763 \textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$
764 \unboldmath
765 \end{minipage}}
766
767
768 There exists an optional argument \texttt{math} for setting features only for the math font,
769 for example \texttt{+aalt} for slightly wider characters:
770
771
772 \begin{externalDocument}[
773 % grfOptions={width=0.5\linewidth},
774 frame,compiler=lualatex,
775 crop,
776 force=true,
777 runs=2,code,docType=latex,
778 frame,
779 % showFilename,
780 % align=\centering,
781 % lstOptions={columns=flexible}
782 ]{Schola}
783 \documentclass{article}
784 \pagestyle{empty}
785 %StartVisiblePreamble
786 \usepackage{schola-otf}
787 %StopVisiblePreamble
788 \begin{document}
789 $\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta
790 \eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu
791 \nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma
792 \tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega
793 \Omega$
794
795 {\setmathfont[Script=Math,RawFeature=+aalt]{texgyreschola-math.otf}
796 $\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta
797 \eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu
798 \nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma
799 \tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega
800 \Omega$
801 }
802 \end{document}
803 \end{externalDocument}
804
805
806
807 \subsection{Integrals}
808 If you do not like the small integral symbols from Schola then use the package
809 option \Loption{libertinus}. Then these symbols are taken from Libertinus Math.
810
811
812 \begin{externalDocument}[
813 frame,compiler=lualatex,
814 crop,
815 force=true,
816 runs=2,code,docType=latex,
817 frame,
818 usefancyvrb,
819 % lstOptions={columns=flexible}
820 ]{Schola}
821 \documentclass{article}
822 \pagestyle{empty}
823 %StartVisiblePreamble
824 \usepackage[libertinus]{schola-otf}% use integrals from Libertinus
825 %StopVisiblePreamble
826 \begin{document}
827 The integrals from Libertinus Math:
828 \[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \]
829
830 The default integrals from Schola:
831 \setmathfont{texgyreschola-math.otf}
832 \[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \]
833 \end{document}
834 \end{externalDocument}
835
836
837
838
839
840
841
842
843
844 \clearpage
845 \newgeometry{margin=1cm,bmargin=2cm}
846
847 \section{The font list of Schola Regular}
848
849 \begin{multicols}{5}
850 \begin{luacode*}
851 local f = fontloader.open('/Users/voss/Links/fonts/opentype/public/tex-gyre/texgyreschola-regular.otf')
852 print("Max glyphs: "..f.glyphmax)
853 local glyphs = {}
854 for i = 0, f.glyphmax - 1 do
855 local g = f.glyphs[i]
856 if g then
857 table.insert(glyphs, {name = g.name, unicode = g.unicode})
858 end
859 end
860 table.sort(glyphs, function (a,b) return (a.unicode < b.unicode) end)
861 for i = 1, #glyphs do
862 tex.sprint('\\scriptsize'..glyphs[i].unicode .. ': ')
863 if (glyphs[i].unicode > 0) then
864 tex.sprint('{\\char' .. glyphs[i].unicode .. '}');
865 end
866 tex.sprint(' {\\scriptsize (')
867 tex.sprint(-2, glyphs[i].name)
868 tex.sprint(')}\\\\')
869 end
870 fontloader.close(f)
871 \end{luacode*}
872 \end{multicols}
873
874
875
876
877 \section{The font list of Schola Math}
878
879
880 \begingroup
881 \catcode`\%=12
882 \gdef\perCent{%}
883 \endgroup
884
885 %\UnicodeMathSymbol{"00021}{\mathexclam }{\mathclose}{exclamation mark}%
886 \begin{multicols}{3}
887 \def\UnicodeMathSymbol#1#2#3#4{\scriptsize\texttt{#1}: $#2{}$ (#4) \\}
888 \input{unicode-math-table}
889 \end{multicols}
890
891
892 \clearpage\restoregeometry
893
894 \printindex
895
896
897
898
899 \end{document}