| 1 |
%% $Id: termes-otf-doc.tex 637 2022-10-17 06:33:15Z herbert $ |
| 2 |
\listfiles |
| 3 |
\documentclass[ngerman,spanish,polish,english,a4paper]{article} |
| 4 |
\usepackage{termes-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 Termes 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{termes-otf} supports the following OpenType fonts: |
| 64 |
\begin{verbatim} |
| 65 |
texgyretermes-regular.otf |
| 66 |
texgyretermes-bold.otf |
| 67 |
texgyretermes-italic.otf |
| 68 |
texgyretermes-bolditalic.otf |
| 69 |
texgyretermes-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{texgyretermes}[ |
| 77 |
RawFeature = {\termes@figurealign;\termes@figurestyle}, |
| 78 |
Scale = \termesRM@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\termesOsF{texgyretermes}[ |
| 97 |
RawFeature = {+onum}, |
| 98 |
Scale = \termesRM@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\termesTLF{texgyretermes}[ |
| 117 |
RawFeature = {+tnum;-onum}, |
| 118 |
Scale = \termesRM@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{Examples} |
| 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 |
\end{tabular} |
| 260 |
|
| 261 |
|
| 262 |
|
| 263 |
%\lstset{extendedchars} |
| 264 |
|
| 265 |
\begin{externalDocument}[ |
| 266 |
% grfOptions={width=0.5\linewidth}, |
| 267 |
frame, |
| 268 |
compiler=lualatex, |
| 269 |
crop, |
| 270 |
force=true, |
| 271 |
runs=2, |
| 272 |
code, |
| 273 |
docType=latex, |
| 274 |
frame, |
| 275 |
showFilename, |
| 276 |
ExampleDir=Examples, |
| 277 |
% align=\centering, |
| 278 |
% lstOptions={columns=flexible} |
| 279 |
]{Termes} |
| 280 |
\documentclass{article} |
| 281 |
\pagestyle{empty} |
| 282 |
%StartVisiblePreamble |
| 283 |
\usepackage[osf]{termes-otf} |
| 284 |
%StopVisiblePreamble |
| 285 |
\begin{document} |
| 286 |
0000111122223333444455556666777788889999\par abcdefghijklmn |
| 287 |
\end{document} |
| 288 |
\end{externalDocument} |
| 289 |
|
| 290 |
|
| 291 |
\begin{externalDocument}[ |
| 292 |
% grfOptions={width=0.5\linewidth}, |
| 293 |
compiler=lualatex, |
| 294 |
crop, |
| 295 |
force=true, |
| 296 |
runs=1, |
| 297 |
code, |
| 298 |
docType=latex, |
| 299 |
frame, |
| 300 |
% showFilename, |
| 301 |
% align=\centering, |
| 302 |
%lstOptions={columns=flexible} |
| 303 |
]{Termes} |
| 304 |
\documentclass{article} |
| 305 |
\pagestyle{empty} |
| 306 |
%StartVisiblePreamble |
| 307 |
\usepackage[lining]{termes-otf} |
| 308 |
%StopVisiblePreamble |
| 309 |
\begin{document} |
| 310 |
0000111122223333444455556666777788889999\par |
| 311 |
\addfontfeatures{RawFeature=-lnum;+onum} |
| 312 |
0000111122223333444455556666777788889999 |
| 313 |
\end{document} |
| 314 |
\end{externalDocument} |
| 315 |
|
| 316 |
|
| 317 |
|
| 318 |
\begin{externalDocument}[ |
| 319 |
frame, |
| 320 |
compiler=lualatex, |
| 321 |
crop, |
| 322 |
force=true, |
| 323 |
runs=1, |
| 324 |
code, |
| 325 |
docType=latex, |
| 326 |
frame, |
| 327 |
% showFilename, |
| 328 |
% align=\centering, |
| 329 |
%lstOptions={columns=flexible} |
| 330 |
]{Termes} |
| 331 |
\documentclass{article} |
| 332 |
\pagestyle{empty} |
| 333 |
%StartVisiblePreamble |
| 334 |
\usepackage[t=false]{termes-otf} |
| 335 |
%StopVisiblePreamble |
| 336 |
\begin{document} |
| 337 |
0000111122223333444455556666777788889999\par |
| 338 |
\addfontfeatures{RawFeature=+tnum}%L |
| 339 |
0000111122223333444455556666777788889999 |
| 340 |
\end{document} |
| 341 |
\end{externalDocument} |
| 342 |
|
| 343 |
|
| 344 |
|
| 345 |
|
| 346 |
|
| 347 |
|
| 348 |
\begin{externalDocument}[ |
| 349 |
% grfOptions={width=0.5\linewidth}, |
| 350 |
frame,compiler=lualatex, |
| 351 |
crop, |
| 352 |
force=true, |
| 353 |
runs=2,code,docType=latex, |
| 354 |
frame, |
| 355 |
% showFilename, |
| 356 |
% align=\centering, |
| 357 |
% lstOptions={columns=flexible} |
| 358 |
]{Termes} |
| 359 |
\documentclass{article} |
| 360 |
\pagestyle{empty} |
| 361 |
%StartVisiblePreamble |
| 362 |
\usepackage[p]{termes-otf} |
| 363 |
%StopVisiblePreamble |
| 364 |
\begin{document} |
| 365 |
0000111122223333444455556666777788889999\par |
| 366 |
\addfontfeatures{RawFeature=-pnum}% |
| 367 |
0000111122223333444455556666777788889999 |
| 368 |
\end{document} |
| 369 |
\end{externalDocument} |
| 370 |
|
| 371 |
\section{Features} |
| 372 |
|
| 373 |
|
| 374 |
\begin{lstlisting}[basicstyle=\ttfamily\small] |
| 375 |
bash-3.2$ otfinfo -f texgyretermes-regular.otf |
| 376 |
aalt Access All Alternates |
| 377 |
c2sc Small Capitals From Capitals |
| 378 |
cpsp Capital Spacing |
| 379 |
dlig Discretionary Ligatures |
| 380 |
frac Fractions |
| 381 |
kern Kerning |
| 382 |
liga Standard Ligatures |
| 383 |
lnum Lining Figures |
| 384 |
onum Oldstyle Figures |
| 385 |
pnum Proportional Figures |
| 386 |
salt Stylistic Alternates |
| 387 |
size Optical Size |
| 388 |
smcp Small Capitals |
| 389 |
ss01 Stylistic Set 1 |
| 390 |
ss02 Stylistic Set 2 |
| 391 |
ss03 Stylistic Set 3 |
| 392 |
ss04 Stylistic Set 4 |
| 393 |
tnum Tabular Figures |
| 394 |
zero Slashed Zero\end{lstlisting} |
| 395 |
|
| 396 |
%$ |
| 397 |
|
| 398 |
|
| 399 |
\subsection{Capitals to Small Caps} |
| 400 |
|
| 401 |
The macro \Lcs{Lctosc}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LCtoSC+} and \Lcs{LCtoSC-} for |
| 402 |
a global change of capitals to small caps. |
| 403 |
|
| 404 |
\begin{externalDocument}[ |
| 405 |
% grfOptions={width=0.5\linewidth}, |
| 406 |
frame,compiler=lualatex, |
| 407 |
crop, |
| 408 |
force=true, |
| 409 |
runs=2,code,docType=latex, |
| 410 |
frame, |
| 411 |
% showFilename, |
| 412 |
% align=\centering, |
| 413 |
% lstOptions={columns=flexible} |
| 414 |
]{Termes} |
| 415 |
\documentclass{article} |
| 416 |
\pagestyle{empty} |
| 417 |
\parindent=0pt |
| 418 |
%StartVisiblePreamble |
| 419 |
\usepackage{termes-otf} |
| 420 |
\usepackage{xcolor} |
| 421 |
%StopVisiblePreamble |
| 422 |
\begin{document} |
| 423 |
Termes Font ŐŰÉÁÄ \Lctosc{Termes Font ŐŰÉÁÄ}\\ |
| 424 |
\LCtoSC+ Termes Font ŐŰÉÁÄ |
| 425 |
\end{document} |
| 426 |
\end{externalDocument} |
| 427 |
|
| 428 |
|
| 429 |
|
| 430 |
\subsection{Capitals to Small Caps and small captitals} |
| 431 |
|
| 432 |
The macro \Lcs{Lctosmcp}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LCtoSMCP+} and \Lcs{LCtoSMCP-} for |
| 433 |
a global change of capitals to small caps. |
| 434 |
|
| 435 |
\begin{externalDocument}[ |
| 436 |
% grfOptions={width=0.5\linewidth}, |
| 437 |
frame,compiler=lualatex, |
| 438 |
crop, |
| 439 |
force=true, |
| 440 |
runs=2,code,docType=latex, |
| 441 |
frame, |
| 442 |
% showFilename, |
| 443 |
% align=\centering, |
| 444 |
% lstOptions={columns=flexible} |
| 445 |
]{Termes} |
| 446 |
\documentclass{article} |
| 447 |
\pagestyle{empty} |
| 448 |
\parindent=0pt |
| 449 |
%StartVisiblePreamble |
| 450 |
\usepackage{termes-otf} |
| 451 |
\usepackage{xcolor} |
| 452 |
%StopVisiblePreamble |
| 453 |
\begin{document} |
| 454 |
Termes Font ŐŰÉÁÄ \Lctosmcp{Termes Font ŐŰÉÁÄ}\\ |
| 455 |
\LCtoSMCP+ Termes Font ŐŰÉÁÄ |
| 456 |
\end{document} |
| 457 |
\end{externalDocument} |
| 458 |
|
| 459 |
\subsection{Ligatures} |
| 460 |
|
| 461 |
The macros \Lcs{Lliga}\Largb{arg} (standard ligatures), \Lcs{Lhlig}\Largb{arg} (historical ligatures), |
| 462 |
\Lcs{Ldlig}\Largb{arg} (discretionary ligatures) |
| 463 |
are for a local change of \emph{arg} and \Lcs{LLIGA+}/\Lcs{LLIGA-}, \Lcs{LHLIG+}/\Lcs{LHLIG-}, and \Lcs{LDLIG+}/\Lcs{LDIG-} for |
| 464 |
a global change of capitals to small caps relative to the current group. |
| 465 |
|
| 466 |
\begin{externalDocument}[ |
| 467 |
% grfOptions={width=0.5\linewidth}, |
| 468 |
frame,compiler=lualatex, |
| 469 |
crop, |
| 470 |
force=true, |
| 471 |
runs=2,code,docType=latex, |
| 472 |
frame, |
| 473 |
% showFilename, |
| 474 |
% align=\centering, |
| 475 |
% lstOptions={columns=flexible} |
| 476 |
]{Termes} |
| 477 |
\documentclass{article} |
| 478 |
\pagestyle{empty} |
| 479 |
\parindent=0pt |
| 480 |
%StartVisiblePreamble |
| 481 |
\usepackage{termes-otf} |
| 482 |
\usepackage{xcolor} |
| 483 |
%StopVisiblePreamble |
| 484 |
\begin{document}%\LLIGA+ % Default |
| 485 |
ff, fff, fi, ffi, fl, ffl |
| 486 |
|
| 487 |
\LLIGA- ff, fff, fi, ffi, fl, ffl |
| 488 |
\end{document} |
| 489 |
\end{externalDocument} |
| 490 |
|
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
\subsection{Capital spacing, uppercase kerning} |
| 495 |
|
| 496 |
\begin{externalDocument}[ |
| 497 |
% grfOptions={width=0.5\linewidth}, |
| 498 |
frame,compiler=lualatex, |
| 499 |
crop, |
| 500 |
force=true, |
| 501 |
runs=2,code,docType=latex, |
| 502 |
frame, |
| 503 |
% showFilename, |
| 504 |
% align=\centering, |
| 505 |
% lstOptions={columns=flexible} |
| 506 |
]{Termes} |
| 507 |
\documentclass{article} |
| 508 |
\pagestyle{empty} |
| 509 |
\parindent=0pt |
| 510 |
%StartVisiblePreamble |
| 511 |
\usepackage{termes-otf} |
| 512 |
\usepackage{xcolor} |
| 513 |
%StopVisiblePreamble |
| 514 |
\begin{document} |
| 515 |
IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.\\ |
| 516 |
\textcolor{red}{\Lcpsp{IN THE BEGINNING GOD CREATED THE HEAVENS AND THE EARTH.}} |
| 517 |
|
| 518 |
\makebox[0pt][l]{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 |
\end{document} |
| 521 |
\end{externalDocument} |
| 522 |
|
| 523 |
|
| 524 |
\subsection{Stylistic Alternates} |
| 525 |
|
| 526 |
The macro \Lcs{Lsalt}\Largb{arg} is for a local change of \emph{arg} and \Lcs{LSALT+} and \Lcs{LSALT-} for |
| 527 |
the alternate characters. |
| 528 |
|
| 529 |
\begin{externalDocument}[ |
| 530 |
% grfOptions={width=0.5\linewidth}, |
| 531 |
frame,compiler=lualatex, |
| 532 |
crop, |
| 533 |
force=true, |
| 534 |
runs=2,code,docType=latex, |
| 535 |
usefancyvrb, |
| 536 |
frame, |
| 537 |
% showFilename, |
| 538 |
% align=\centering, |
| 539 |
% lstOptions={columns=flexible} |
| 540 |
]{Termes} |
| 541 |
\documentclass{article} |
| 542 |
\pagestyle{empty} |
| 543 |
\parindent=0pt |
| 544 |
%StartVisiblePreamble |
| 545 |
\usepackage{termes-otf} |
| 546 |
%StopVisiblePreamble |
| 547 |
\begin{document} |
| 548 |
θκφ \quad \Lsalt{θκφ} \quad\LSALT+ θκφ \quad\LSALT- θκφ |
| 549 |
\end{document} |
| 550 |
\end{externalDocument} |
| 551 |
|
| 552 |
|
| 553 |
% ss01 Stylistic Set 1 |
| 554 |
% ss02 Stylistic Set 2 |
| 555 |
% ss03 Stylistic Set 3 |
| 556 |
% ss04 Stylistic Set 4 |
| 557 |
% ss10 Stylistic Set 10 |
| 558 |
|
| 559 |
\subsection{Stylistic Sets} |
| 560 |
|
| 561 |
\iffalse |
| 562 |
|
| 563 |
|
| 564 |
|
| 565 |
|
| 566 |
|
| 567 |
¡“¶¢[]|{}≠¿' |
| 568 |
«∑€®†Ω¨⁄øπ•± |
| 569 |
å‚∂ƒ©ªº∆@œæ |
| 570 |
\≈ç√∫~µ∞…– |
| 571 |
--- |
| 572 |
≥¬”#£fi^\˜·¯˙˚ |
| 573 |
»„‰¸˝ˇÁÛØ∏°’ |
| 574 |
ÅÍ™ÏÌÓıˆflŒÆ |
| 575 |
‡ÙÇ◊‹›˘˛÷— |
| 576 |
\fi |
| 577 |
|
| 578 |
There is a short command \Lcs{Lssxx}\Largb{text} for the seven stylistic sets, where xx is the number of the set (two digits) |
| 579 |
and \textit{text} the local argument: |
| 580 |
|
| 581 |
\begin{externalDocument}[ |
| 582 |
% grfOptions={width=0.5\linewidth}, |
| 583 |
frame,compiler=lualatex, |
| 584 |
crop, |
| 585 |
force=true, |
| 586 |
usefancyvrb, |
| 587 |
runs=2,code,docType=latex, |
| 588 |
frame, |
| 589 |
% showFilename, |
| 590 |
% align=\centering, |
| 591 |
% lstOptions={columns=flexible} |
| 592 |
]{Termes} |
| 593 |
\documentclass{article} |
| 594 |
\pagestyle{empty} |
| 595 |
\parindent=0pt |
| 596 |
%StartVisiblePreamble |
| 597 |
\usepackage{termes-otf} |
| 598 |
%StopVisiblePreamble |
| 599 |
\begin{document} |
| 600 |
εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \Lss01{εμφ πρθ Īī@©⁄¶® ̄}\par |
| 601 |
@©⁄¶® $\rightarrow$ \Lss02{@©⁄¶®}\par |
| 602 |
εμφπρθ $\rightarrow$ \Lss03{εμφ πρθ}\par |
| 603 |
Īī̄ $\rightarrow$ \Lss04{Īī̄}\par |
| 604 |
\end{document} |
| 605 |
\end{externalDocument} |
| 606 |
|
| 607 |
For a global change of the stylistic set one can use the command \Lcs{LSSxx}, where xx |
| 608 |
is again the number of the set. |
| 609 |
|
| 610 |
\begin{externalDocument}[ |
| 611 |
% grfOptions={width=0.5\linewidth}, |
| 612 |
frame,compiler=lualatex, |
| 613 |
crop, |
| 614 |
usefancyvrb, |
| 615 |
force=true, |
| 616 |
runs=2,code,docType=latex, |
| 617 |
frame, |
| 618 |
% showFilename, |
| 619 |
% align=\centering, |
| 620 |
% lstOptions={columns=flexible} |
| 621 |
]{Termes} |
| 622 |
\documentclass{article} |
| 623 |
\pagestyle{empty} |
| 624 |
%StartVisiblePreamble |
| 625 |
\usepackage{termes-otf} |
| 626 |
%StopVisiblePreamble |
| 627 |
\begin{document} |
| 628 |
εμφ πρθ Īī@©⁄¶® ̄ $\rightarrow$ \LSS01 εμφ πρθ Īī@©⁄¶® ̄ |
| 629 |
\end{document} |
| 630 |
\end{externalDocument} |
| 631 |
|
| 632 |
|
| 633 |
|
| 634 |
\begin{externalDocument}[ |
| 635 |
frame,compiler=lualatex, |
| 636 |
crop, |
| 637 |
force=true, |
| 638 |
usefancyvrb, |
| 639 |
runs=2,code,docType=latex, |
| 640 |
frame, |
| 641 |
% lstOptions={columns=flexible} |
| 642 |
]{Termes} |
| 643 |
\documentclass{article} |
| 644 |
\pagestyle{empty} |
| 645 |
%StartVisiblePreamble |
| 646 |
\usepackage{termes-otf} |
| 647 |
%StopVisiblePreamble |
| 648 |
\begin{document} |
| 649 |
@©⁄¶® $\rightarrow$ \LSS02 @©⁄¶® |
| 650 |
\end{document} |
| 651 |
\end{externalDocument} |
| 652 |
|
| 653 |
%≈*\string\|\{\}[]\char"2016÷=≠>≥<≤¬-±\times()+\char"2213\slash |
| 654 |
%\char"2A7D\char"2A7E≤≥\times \par |
| 655 |
|
| 656 |
|
| 657 |
%sflining (sflf) or sfoldstyle (sfosf, osfss) |
| 658 |
%sftabular (sft) or sfproportional (sfp) |
| 659 |
|
| 660 |
%\section{New text macros} |
| 661 |
% |
| 662 |
%\Lcs{textsup}\Largb{text} for superiors: |
| 663 |
% |
| 664 |
%\begin{verbatim} |
| 665 |
%7\textsup{th} floor |
| 666 |
%\end{verbatim} |
| 667 |
|
| 668 |
%7\textsup{th} floor |
| 669 |
|
| 670 |
|
| 671 |
\subsection{Zero} |
| 672 |
|
| 673 |
|
| 674 |
\begin{externalDocument}[ |
| 675 |
% grfOptions={width=0.5\linewidth}, |
| 676 |
frame,compiler=lualatex, |
| 677 |
crop, |
| 678 |
force=true, |
| 679 |
runs=2,code,docType=latex, |
| 680 |
frame, |
| 681 |
% showFilename, |
| 682 |
% align=\centering, |
| 683 |
lstOptions={columns=flexible}]{Termes} |
| 684 |
\documentclass{article} |
| 685 |
\pagestyle{empty} |
| 686 |
\parindent=0pt |
| 687 |
%StartVisiblePreamble |
| 688 |
\usepackage{termes-otf} |
| 689 |
%StopVisiblePreamble |
| 690 |
\begin{document} |
| 691 |
0 \addfontfeature{RawFeature=+zero}0 |
| 692 |
\end{document} |
| 693 |
\end{externalDocument} |
| 694 |
|
| 695 |
|
| 696 |
|
| 697 |
|
| 698 |
|
| 699 |
|
| 700 |
\section{Font commands} |
| 701 |
Instead of using the command \Lcs{fontspec} for changing to a different type of |
| 702 |
a Heros font, one can use a predefinded command: |
| 703 |
|
| 704 |
\begin{tabular}{@{}ll} |
| 705 |
\Lcs{termes} & Main font\\ |
| 706 |
\Lcs{termesOsF} & Old style proportional figures\\ |
| 707 |
\Lcs{termesTLF} & Lining and monospaced figures\\ |
| 708 |
\end{tabular} |
| 709 |
|
| 710 |
|
| 711 |
\begin{externalDocument}[ |
| 712 |
frame,compiler=lualatex, |
| 713 |
crop, |
| 714 |
force=true, |
| 715 |
runs=2,code,docType=latex, |
| 716 |
frame, |
| 717 |
usefancyvrb, |
| 718 |
% lstOptions={columns=flexible} |
| 719 |
]{Termes} |
| 720 |
\documentclass{article} |
| 721 |
\pagestyle{empty} |
| 722 |
%StartVisiblePreamble |
| 723 |
\usepackage{termes-otf} |
| 724 |
%StopVisiblePreamble |
| 725 |
\begin{document} |
| 726 |
\noindent01234567890123456789 -- The default\\ |
| 727 |
{\termesOsF 01234567890123456789 -- Old stye Figures}\\ |
| 728 |
{\termesTLF 01234567890123456789 -- Tabular Lining Figures}\\ |
| 729 |
\end{document} |
| 730 |
\end{externalDocument} |
| 731 |
|
| 732 |
|
| 733 |
|
| 734 |
\section{Math mode} |
| 735 |
|
| 736 |
|
| 737 |
%bash-3.2$ otfinfo -f --script=math texgyretermes-math.otf |
| 738 |
%aalt Access All Alternates |
| 739 |
%dtls <unknown feature> |
| 740 |
%ssty <unknown feature> |
| 741 |
|
| 742 |
\subsection{Example} |
| 743 |
|
| 744 |
\noindent\fbox{% |
| 745 |
\begin{minipage}{\dimexpr\textwidth-2\fboxsep-2\fboxrule} |
| 746 |
\textbf{Theorem 1 (Residue Theorem).} |
| 747 |
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 |
| 748 |
% |
| 749 |
\[ |
| 750 |
\mathop{\symup{Res}}\limits_{z=a}f(z) = \mathop{\mathrm{Res}}\limits_a f |
| 751 |
= \frac{1}{2\pi\symup{i}} \int\limits_C f(z)\,\symup dz, |
| 752 |
\] |
| 753 |
% |
| 754 |
where $C\subset D\backslash\{a\}$ is a closed line |
| 755 |
$ n(C,a)=1$ (e.\,g. a counterclockwise circle loop). |
| 756 |
|
| 757 |
\medskip |
| 758 |
$\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O |
| 759 |
\Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$ |
| 760 |
$\mathsf{ABCDabcd1234}$ |
| 761 |
|
| 762 |
$a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j |
| 763 |
k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p |
| 764 |
\rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $ |
| 765 |
|
| 766 |
$xyz \infty \propto \emptyset y=f(x)$ |
| 767 |
\hfill$\sum\int\prod\displaystyle~\prod\int\sum~ |
| 768 |
\textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$ |
| 769 |
|
| 770 |
\boldmath |
| 771 |
$\symup{A} \Lambda \Delta \nabla \symup{B C D} \Sigma \symup{E F} \Gamma \symup{G H I J} K L M N O |
| 772 |
\Theta \Omega \symup{P} \Phi \Pi \Xi \mathtt{Q R S T} U V W X Y \Upsilon \Psi \symup{Z}$ |
| 773 |
$\mathsf{ABCDabcd1234}$ |
| 774 |
|
| 775 |
$a\alpha b \beta c \partial d \delta e \epsilon \varepsilon f \zeta \xi g \gamma h \hbar \iota i \imath j |
| 776 |
k \kappa l \ell \lambda m n \eta \theta \vartheta o \sigma \varsigma \phi \varphi \wp p |
| 777 |
\rho \varrho q r s t \tau \pi u \mu \nu v \upsilon w \omega \varpi $ |
| 778 |
|
| 779 |
$xyz \infty \propto \emptyset y=f(x)$ |
| 780 |
\hfill$\sum\int\prod\displaystyle~\prod\int\sum~ |
| 781 |
\textstyle\sum_a^b\int_a^b\prod_a^b~ \displaystyle\sum_a^b\int\limits_a^b\prod_a^b$ |
| 782 |
\unboldmath |
| 783 |
\end{minipage}} |
| 784 |
|
| 785 |
|
| 786 |
There exists an optional argument \texttt{math} for setting features only for the math font, |
| 787 |
for example \texttt{+aalt} for slightly wider characters: |
| 788 |
|
| 789 |
|
| 790 |
\begin{externalDocument}[ |
| 791 |
% grfOptions={width=0.5\linewidth}, |
| 792 |
frame,compiler=lualatex, |
| 793 |
crop, |
| 794 |
force=true, |
| 795 |
runs=2,code,docType=latex, |
| 796 |
frame, |
| 797 |
% showFilename, |
| 798 |
% align=\centering, |
| 799 |
% lstOptions={columns=flexible} |
| 800 |
]{Termes} |
| 801 |
\documentclass{article} |
| 802 |
\pagestyle{empty} |
| 803 |
%StartVisiblePreamble |
| 804 |
\usepackage{termes-otf} |
| 805 |
%StopVisiblePreamble |
| 806 |
\begin{document} |
| 807 |
$\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta |
| 808 |
\eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu |
| 809 |
\nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma |
| 810 |
\tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega |
| 811 |
\Omega$ |
| 812 |
|
| 813 |
{\setmathfont[Script=Math,RawFeature=+aalt]{texgyretermes-math.otf} |
| 814 |
$\alpha\beta\gamma\delta\Delta\epsilon\varepsilon\zeta |
| 815 |
\eta\theta\Theta\vartheta\iota\kappa\lambda\Lambda\mu |
| 816 |
\nu\xi\Xi\pi\Pi\varpi\rho\varrho\sigma\Sigma\varsigma |
| 817 |
\tau\upsilon\Upsilon\phi\Phi\varphi\chi\psi\Psi\omega |
| 818 |
\Omega$ |
| 819 |
} |
| 820 |
\end{document} |
| 821 |
\end{externalDocument} |
| 822 |
|
| 823 |
|
| 824 |
|
| 825 |
\subsection{Integrals} |
| 826 |
If you do not like the small integral symbols from Schola then use the package |
| 827 |
option \Loption{libertinus}. Then these symbols are taken from Libertinus Math. |
| 828 |
|
| 829 |
|
| 830 |
\begin{externalDocument}[ |
| 831 |
frame,compiler=lualatex, |
| 832 |
crop, |
| 833 |
force=true, |
| 834 |
runs=2,code,docType=latex, |
| 835 |
frame, |
| 836 |
usefancyvrb, |
| 837 |
% lstOptions={columns=flexible} |
| 838 |
]{Schola} |
| 839 |
\documentclass{article} |
| 840 |
\pagestyle{empty} |
| 841 |
%StartVisiblePreamble |
| 842 |
\usepackage[libertinus]{termes-otf}% use integrals from Libertinus |
| 843 |
%StopVisiblePreamble |
| 844 |
\begin{document} |
| 845 |
The integrals from Libertinus Math: |
| 846 |
\[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \] |
| 847 |
|
| 848 |
The default integrals from Schola: |
| 849 |
\setmathfont{texgyreschola-math.otf} |
| 850 |
\[ \int_\gamma\iint\iiint\iiiint\oint\oiint\oiiint\frac{f(x)}{z-a} \] |
| 851 |
\end{document} |
| 852 |
\end{externalDocument} |
| 853 |
|
| 854 |
|
| 855 |
|
| 856 |
|
| 857 |
|
| 858 |
|
| 859 |
|
| 860 |
|
| 861 |
|
| 862 |
\clearpage |
| 863 |
\newgeometry{margin=1cm,bmargin=2cm} |
| 864 |
|
| 865 |
\section{The fontlist} |
| 866 |
\subsection{The font list of Termes text} |
| 867 |
|
| 868 |
\rmfamily |
| 869 |
\begin{multicols}{5} |
| 870 |
\begin{luacode*} |
| 871 |
local f = fontloader.open('/Users/voss/Links/fonts/opentype/public/tex-gyre/texgyretermes-regular.otf') |
| 872 |
print("Max glyphs: "..f.glyphmax) |
| 873 |
local glyphs = {} |
| 874 |
for i = 0, f.glyphmax - 1 do |
| 875 |
local g = f.glyphs[i] |
| 876 |
if g then |
| 877 |
table.insert(glyphs, {name = g.name, unicode = g.unicode}) |
| 878 |
end |
| 879 |
end |
| 880 |
table.sort(glyphs, function (a,b) return (a.unicode < b.unicode) end) |
| 881 |
for i = 1, #glyphs do |
| 882 |
tex.sprint('\\scriptsize'..glyphs[i].unicode .. ': ') |
| 883 |
if (glyphs[i].unicode > 0) then |
| 884 |
tex.sprint('{\\char' .. glyphs[i].unicode .. '}'); |
| 885 |
end |
| 886 |
tex.sprint(' {\\scriptsize (') |
| 887 |
tex.sprint(-2, glyphs[i].name) |
| 888 |
tex.sprint(')}\\\\') |
| 889 |
end |
| 890 |
fontloader.close(f) |
| 891 |
\end{luacode*} |
| 892 |
\end{multicols} |
| 893 |
|
| 894 |
\subsection{The font list of Termes math} |
| 895 |
|
| 896 |
|
| 897 |
\begingroup |
| 898 |
\catcode`\%=12 |
| 899 |
\gdef\perCent{%} |
| 900 |
\endgroup |
| 901 |
|
| 902 |
%\UnicodeMathSymbol{"00021}{\mathexclam }{\mathclose}{exclamation mark}% |
| 903 |
\begin{multicols}{3} |
| 904 |
\def\UnicodeMathSymbol#1#2#3#4{\scriptsize\texttt{#1}: $#2{}$ (#4) \\} |
| 905 |
\input{unicode-math-table} |
| 906 |
\end{multicols} |
| 907 |
|
| 908 |
|
| 909 |
\clearpage\restoregeometry |
| 910 |
|
| 911 |
|
| 912 |
|
| 913 |
|
| 914 |
\printindex |
| 915 |
|
| 916 |
|
| 917 |
\end{document} |