| 1 |
%% $Id: plex-otf-doc.tex 1052 2025-01-02 12:10:37Z herbert $ |
| 2 |
% |
| 3 |
% Copying and distribution of this file, with or without modification, |
| 4 |
% are permitted in any medium, without royalty. |
| 5 |
|
| 6 |
\listfiles |
| 7 |
\PassOptionsToPackage{table}{xcolor} |
| 8 |
\documentclass[fontsize=11pt,paper=a4,twoside=on,abstract=on,usegeometry]{scrartcl} |
| 9 |
%\usepackage[a4paper,twoside]{geometry} |
| 10 |
|
| 11 |
\usepackage{unicode-math} |
| 12 |
\usepackage[RM={Scale=0.94}, |
| 13 |
SS={Scale=0.94}, |
| 14 |
SScon={Scale=0.94}, |
| 15 |
TT={Scale=MatchLowercase,FakeStretch=0.9}, |
| 16 |
DefaultFeatures={Ligatures=TeX} |
| 17 |
]{plex-otf} |
| 18 |
\usepackage{unicodefonttable} |
| 19 |
\usepackage[english]{babel} |
| 20 |
%\usepackage[autostyle]{csquotes} |
| 21 |
%\DeclareQuoteStyle{polish}{,,}{''}{«}{»} |
| 22 |
|
| 23 |
\usepackage{biblatex} |
| 24 |
\addbibresource{\jobname.bib} |
| 25 |
\usepackage{array,multido} |
| 26 |
\usepackage{metalogo} % for \XeTeX logo |
| 27 |
\usepackage{booktabs} % for examples |
| 28 |
\usepackage{xltabular} % for examples |
| 29 |
|
| 30 |
\usepackage{geometry,multicol,hvlogos} % for Wikipedia W |
| 31 |
\usepackage{hvextern} % for examples |
| 32 |
\setkeys{hv}{moveToExampleDir,ExampleDir=Examples, |
| 33 |
showFilename,verbose} |
| 34 |
|
| 35 |
\usepackage{listings} |
| 36 |
\lstset{columns=fixed,basicstyle=\ttfamily\small} |
| 37 |
|
| 38 |
\pagestyle{headings} |
| 39 |
|
| 40 |
\usepackage[colorlinks,hyperfootnotes=false]{hyperref} |
| 41 |
% define \code for url-like breaking of typewriter fragments. |
| 42 |
\ifx\nolinkurl\undefined \let\code\url \else \let\code\nolinkurl \fi |
| 43 |
|
| 44 |
% Define \cs to prepend a backslash, and be unbreakable: |
| 45 |
\DeclareRobustCommand\cs[1]{\mbox{\texttt{\char`\\#1}}} |
| 46 |
|
| 47 |
\begin{filecontents*}{demotext0.sty} |
| 48 |
\newcounter{famcnt}\setcounter{famcnt}{0} |
| 49 |
\newcommand\CMD[1]{\texttt{\textbackslash#1}} |
| 50 |
\newcommand\blindtext[1][\rmfamily,\sffamily,\sffamilyCon,\ttfamily]{% |
| 51 |
\expandafter\@for\expandafter\next\expandafter:\expandafter=#1\do{% |
| 52 |
\next |
| 53 |
\noindent |
| 54 |
\ifcase\thefamcnt \CMD{rmfamily }\or \CMD{sffamily }\or \CMD{sffamilyCon }\or\CMD{ttfamily }\fi |
| 55 |
\CMD{normalfont}: |
| 56 |
Sphinx of black quartz judge my vow.\par |
| 57 |
\CMD{bfseries}: |
| 58 |
{\bfseries Voyez le brick géant que j’examine près du wharf.\par} |
| 59 |
\CMD{itshape}: |
| 60 |
{\itshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 61 |
\CMD{slshape}: |
| 62 |
{\slshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 63 |
\CMD{bfseries\textbackslash itshape}: |
| 64 |
{\bfseries\itshape Pójdźże, kiń tę chmurność w głąb flaszy!\par} |
| 65 |
\CMD{bfseries\textbackslash slshape}: |
| 66 |
{\bfseries\slshape Pójdźże, kiń tę chmurność w głąb flaszy!\par}\medskip |
| 67 |
\stepcounter{famcnt}}} |
| 68 |
\end{filecontents*} |
| 69 |
|
| 70 |
|
| 71 |
\begin{filecontents*}{demotext1.sty} |
| 72 |
\newcounter{famcnt}\setcounter{famcnt}{0} |
| 73 |
\newcommand\CMD[1]{\texttt{\textbackslash#1}} |
| 74 |
\newcommand\blindtext[1][\rmfamily,\sffamily,\sffamilyCon,\ttfamily]{% |
| 75 |
\expandafter\@for\expandafter\next\expandafter:\expandafter=#1\do{% |
| 76 |
\next |
| 77 |
\noindent |
| 78 |
\ifcase\thefamcnt \CMD{rmfamily }\or \CMD{sffamily }\or \CMD{sffamilyCon }\or\CMD{ttfamily }\fi |
| 79 |
\CMD{normalfont}: |
| 80 |
Sphinx of black quartz judge my vow. \par |
| 81 |
\CMD{itshape}: |
| 82 |
{\itshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 83 |
\CMD{slshape}: |
| 84 |
{\slshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 85 |
\medskip |
| 86 |
\stepcounter{famcnt}}} |
| 87 |
\end{filecontents*} |
| 88 |
|
| 89 |
|
| 90 |
\begin{filecontents*}{demotext2.sty} |
| 91 |
\newcounter{famcnt}\setcounter{famcnt}{0} |
| 92 |
\newcommand\CMD[1]{\texttt{\textbackslash#1}} |
| 93 |
\newcommand\blindtext[1][\rmfamily,\sffamily,\sffamilyCon,\ttfamily]{% |
| 94 |
\expandafter\@for\expandafter\next\expandafter:\expandafter=#1\do{% |
| 95 |
\next |
| 96 |
\noindent |
| 97 |
\ifcase\thefamcnt \CMD{rmfamily }\or \CMD{sffamily }\or \CMD{sffamilyCon }\or\CMD{ttfamily }\fi |
| 98 |
\CMD{normalfont}: |
| 99 |
Sphinx of black quartz judge my vow. |
| 100 |
\ifnum\thefamcnt<2 \textsc{Sphinx of black quartz judge my vow.}\fi\par |
| 101 |
\CMD{bfseries}: |
| 102 |
{\bfseries Voyez le brick géant que j’examine près du wharf. |
| 103 |
\ifnum\thefamcnt<2 \textsc{Voyez le brick géant que j’examine près du wharf.}\fi\par} |
| 104 |
\CMD{itshape}: |
| 105 |
{\itshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln. |
| 106 |
\ifnum\thefamcnt<2 \textsc{Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.}\fi\par} |
| 107 |
{\slshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 108 |
\CMD{bfseries\textbackslash itshape}: |
| 109 |
{\bfseries\itshape Pójdźże, kiń tę chmurność w głąb flaszy! |
| 110 |
\ifnum\thefamcnt<2 \textsc{Pójdźże, kiń tę chmurność w głąb flaszy!}\fi\par} |
| 111 |
{\bfseries\slshape Vom Ödipuskomplex maßlos gequält, übt Wilfried zyklisches Jodeln.\par} |
| 112 |
\stepcounter{famcnt}}} |
| 113 |
\end{filecontents*} |
| 114 |
|
| 115 |
|
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
\title{Support for the IBM Plex OpenType fonts -- Text and Math} |
| 120 |
\author{Herbert Voß} |
| 121 |
\begin{document} |
| 122 |
\maketitle |
| 123 |
\tableofcontents |
| 124 |
|
| 125 |
\begin{abstract} |
| 126 |
»With our new corporate typeface, IBM Plex, comes a new set of guidance and best practices. |
| 127 |
IBM typography is international and modern to reflect our brand and our design principles.«~\cite{git} |
| 128 |
\end{abstract} |
| 129 |
|
| 130 |
\vfill |
| 131 |
Thanks to: Alexander Gast; Manfred Sielhorst: |
| 132 |
|
| 133 |
\newpage |
| 134 |
|
| 135 |
\section{Introduction} |
| 136 |
|
| 137 |
|
| 138 |
The package \texttt{plex-otf} supports all families with specific optional |
| 139 |
arguments: |
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
\begin{tabular}{@{} >{\ttfamily}l l l @{}}\\\toprule |
| 145 |
\emph{name} & \emph{value} &\emph{meaning}\\\midrule |
| 146 |
mono & true/false & use only the IBM Plex Mono\\ |
| 147 |
serif & true/false & use only the IBM Plex Serif\\ |
| 148 |
sans & true/false & use only the IBM Plex Sans\\ |
| 149 |
math & true/false & use the Plex Math \\ |
| 150 |
RM & code & options for IBM Plex Serif\\ |
| 151 |
SS & code & options for IBM Plex Sans\\ |
| 152 |
SScon & code & options for IBM Plex Sans Condensed\\ |
| 153 |
TT & code & options for IBM Plex Mono\\ |
| 154 |
MM & code & options for IBM Plex Math\\ |
| 155 |
%semibold & true/false & use SemiBold instead of Bold\\ |
| 156 |
RMSCfont & font & font name for small caps\\ |
| 157 |
SSSCfont & font & font name for small caps\\ |
| 158 |
DefaultFeatures & code & for all font styles\\\bottomrule |
| 159 |
\end{tabular} |
| 160 |
|
| 161 |
\bigskip |
| 162 |
For this documentation |
| 163 |
we use instead: |
| 164 |
|
| 165 |
\begin{verbatim} |
| 166 |
\usepackage[RM={Scale=0.94}, |
| 167 |
SS={Scale=0.94}, |
| 168 |
SScon={Scale=0.94}, |
| 169 |
TT={Scale=MatchLowercase,FakeStretch=0.9}, |
| 170 |
DefaultFeatures={Ligatures=Common}]{plex-otf} |
| 171 |
\end{verbatim} |
| 172 |
|
| 173 |
|
| 174 |
%\clearpage |
| 175 |
|
| 176 |
|
| 177 |
|
| 178 |
|
| 179 |
|
| 180 |
\section{Features} |
| 181 |
|
| 182 |
|
| 183 |
\subsection{Alternate styles} |
| 184 |
|
| 185 |
The stylistic sets are available for example by |
| 186 |
|
| 187 |
\begin{verbatim} |
| 188 |
\usepackage[..., |
| 189 |
RM={StylisticSet=1}, |
| 190 |
...]{plex-otf} |
| 191 |
\end{verbatim} |
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
\subsubsection{StylisticSet=1: simple lowercase a} |
| 197 |
\paragraph{Serif} |
| 198 |
{(Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and |
| 199 |
\fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=1,Scale=0.94]a% |
| 200 |
\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}} |
| 201 |
|
| 202 |
\paragraph{Sans Serif} |
| 203 |
{\sffamily (Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and |
| 204 |
\fontspec{IBMPlexSans-Regular.otf}[StylisticSet=1,Scale=0.94]a% |
| 205 |
\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}} |
| 206 |
|
| 207 |
\paragraph{Mono} |
| 208 |
{\ttfamily (Default a\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}) and |
| 209 |
\fontspec{IBMPlexMono-Regular.otf}[StylisticSet=1,Scale=0.94]a% |
| 210 |
\multido{\iA=224+1}{6}{\symbol{\iA}}\symbol{257}\symbol{259}\symbol{261}} |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
\subsubsection{StylisticSet=2: simple lowercase g} |
| 215 |
|
| 216 |
\paragraph{Serif} |
| 217 |
{(Default g) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=2,Scale=0.94]g} |
| 218 |
|
| 219 |
\paragraph{Sans Serif} |
| 220 |
{\textsf{(Default g) and }\fontspec{IBMPlexSans-Regular.otf}[StylisticSet=2,Scale=0.94]g} |
| 221 |
|
| 222 |
\paragraph{Mono} |
| 223 |
{\texttt{(Default g) and }\fontspec{IBMPlexMono-Regular.otf}[StylisticSet=2,Scale=0.94]g} |
| 224 |
|
| 225 |
\subsubsection{StylisticSet=3: slashed zero} |
| 226 |
|
| 227 |
{(Default 0) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=3,Scale=0.94]0} |
| 228 |
|
| 229 |
\subsubsection{StylisticSet=4: dotted zero} |
| 230 |
|
| 231 |
{(Default 0) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=4,Scale=0.94]0} |
| 232 |
|
| 233 |
\subsubsection{StylisticSet=4: special lowercase eszett} |
| 234 |
|
| 235 |
\paragraph{Serif} |
| 236 |
{(Default ß) and \fontspec{IBMPlexSerif-Regular.otf}[StylisticSet=5,Scale=0.94]ß} |
| 237 |
|
| 238 |
\paragraph{Sans Serif} |
| 239 |
{\sffamily(Default ß) and \fontspec{IBMPlexSans-Regular.otf}[StylisticSet=5,Scale=0.94]ß} |
| 240 |
|
| 241 |
\paragraph{Mono} |
| 242 |
{\ttfamily(Default ß) and \fontspec{IBMPlexMono-Regular.otf}[StylisticSet=5,Scale=0.94]ß} |
| 243 |
|
| 244 |
|
| 245 |
\subsection{Captital german eszett} |
| 246 |
It is available with \verb|\SS|$\rightarrow$\SS$\rightarrow$\textsf{\SS}$\rightarrow$\texttt{\SS} |
| 247 |
(Serif, Sans-Serif, Mono) |
| 248 |
|
| 249 |
|
| 250 |
\subsection{Vertical position} |
| 251 |
|
| 252 |
\begin{externalDocument}[ |
| 253 |
% grfOptions={width=\linewidth}, |
| 254 |
frame, |
| 255 |
compiler=lualatex, |
| 256 |
crop, |
| 257 |
force=true, |
| 258 |
runs=2,code,docType=latex, |
| 259 |
frame, |
| 260 |
showFilename, |
| 261 |
align=\centering, |
| 262 |
]{plex-otf} |
| 263 |
\documentclass{article} |
| 264 |
\pagestyle{empty} |
| 265 |
%StartVisiblePreamble |
| 266 |
\usepackage[DefaultFeatures={Scale=0.94}]{plex-otf} |
| 267 |
%StopVisiblePreamble |
| 268 |
\begin{document} |
| 269 |
{\addfontfeature{VerticalPosition=Superior} |
| 270 |
Superior: 1234567890\par} |
| 271 |
{\addfontfeatures{VerticalPosition=Numerator} |
| 272 |
Numerator: 1234567890\par} |
| 273 |
{\addfontfeatures{VerticalPosition=Denominator} |
| 274 |
Denominator: 1234567890\par} |
| 275 |
\addfontfeatures{VerticalPosition=ScientificInferior} |
| 276 |
Scientific Inferior: 1234567890 |
| 277 |
\end{document} |
| 278 |
\end{externalDocument} |
| 279 |
|
| 280 |
|
| 281 |
|
| 282 |
\subsection{Fractions} |
| 283 |
|
| 284 |
\begin{externalDocument}[ |
| 285 |
% grfOptions={width=\linewidth}, |
| 286 |
frame, |
| 287 |
compiler=lualatex, |
| 288 |
crop, |
| 289 |
force=true, |
| 290 |
runs=2,code,docType=latex, |
| 291 |
frame, |
| 292 |
showFilename, |
| 293 |
align=\centering, |
| 294 |
]{plex-otf} |
| 295 |
\documentclass{article} |
| 296 |
\usepackage[a4paper]{geometry} |
| 297 |
\pagestyle{empty} |
| 298 |
%StartVisiblePreamble |
| 299 |
\usepackage[DefaultFeatures={Scale=0.94}]{plex-otf} |
| 300 |
%StopVisiblePreamble |
| 301 |
\begin{document} |
| 302 |
1/3 2/3 1/5 2/5 \ldots \par |
| 303 |
\addfontfeatures{Fractions=On} |
| 304 |
1/3 2/3 1/5 2/5 3/5 4/5 1/6 5/6 1/7 1/9 1/8 3/8 5/8 7/8\par |
| 305 |
123456/3215731 |
| 306 |
\end{document} |
| 307 |
\end{externalDocument} |
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
\section{Font macros} |
| 314 |
|
| 315 |
The package defines the following macros which sets only the regular and italic font |
| 316 |
or the bold and bold italic font. |
| 317 |
|
| 318 |
\noindent |
| 319 |
\minipage[t]{0.3\linewidth} |
| 320 |
\begin{verbatim} |
| 321 |
Serif: |
| 322 |
\PlexExtraLightRM |
| 323 |
\PlexLightRM |
| 324 |
\PlexThinRM |
| 325 |
\PlexMediumRM |
| 326 |
\PlexTextRM |
| 327 |
\PlexSemiBoldRM |
| 328 |
\end{verbatim} |
| 329 |
\endminipage\hfill |
| 330 |
\minipage[t]{0.3\linewidth} |
| 331 |
\begin{verbatim} |
| 332 |
Sans Serif: |
| 333 |
\PlexExtraLightSS |
| 334 |
\PlexLightSS |
| 335 |
\PlexThinSS |
| 336 |
\PlexMediumSS |
| 337 |
\PlexTextSS |
| 338 |
\PlexSemiBoldSS |
| 339 |
\end{verbatim} |
| 340 |
\endminipage\hfill |
| 341 |
\minipage[t]{0.3\linewidth} |
| 342 |
\begin{verbatim} |
| 343 |
Sans Serif Condensed: |
| 344 |
\PlexExtraLightSScon |
| 345 |
\PlexLightSScon |
| 346 |
\PlexThinSScon |
| 347 |
\PlexMediumSScon |
| 348 |
\PlexTextSScon |
| 349 |
\PlexSemiBoldSScon |
| 350 |
\end{verbatim} |
| 351 |
\endminipage |
| 352 |
|
| 353 |
\begin{verbatim} |
| 354 |
Mono: |
| 355 |
\PlexExtraLightTT |
| 356 |
\PlexLightTT |
| 357 |
\PlexThinTT |
| 358 |
\PlexMediumTT |
| 359 |
\PlexTextTT |
| 360 |
\PlexSemiBoldTT |
| 361 |
\end{verbatim} |
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
|
| 366 |
\medskip |
| 367 |
These macros refer to the following styles: |
| 368 |
|
| 369 |
\begin{tabular}{@{}l l} |
| 370 |
ExtraLight & Upright, Italic \\ |
| 371 |
Light & Upright, Italic \\ |
| 372 |
Thin & Upright, Italic \\ |
| 373 |
Medium & Upright, Italic \\ |
| 374 |
Text & Upright, Italic \\ |
| 375 |
SemiBold & Bold, BoldItalic |
| 376 |
\end{tabular} |
| 377 |
|
| 378 |
|
| 379 |
|
| 380 |
\begin{externalDocument}[ |
| 381 |
% grfOptions={width=\linewidth}, |
| 382 |
frame, |
| 383 |
compiler=lualatex, |
| 384 |
crop, |
| 385 |
force=true, |
| 386 |
runs=2,code,docType=latex, |
| 387 |
frame, |
| 388 |
showFilename, |
| 389 |
align=\centering, |
| 390 |
]{plex-otf} |
| 391 |
\documentclass{article} |
| 392 |
\usepackage[a4paper]{geometry} |
| 393 |
\usepackage[ngerman]{babel} |
| 394 |
\usepackage[autostyle]{csquotes} |
| 395 |
\newcommand\demo{Some text in the default font style IBM Plex Serif } |
| 396 |
\pagestyle{empty} |
| 397 |
%StartVisiblePreamble |
| 398 |
\usepackage[DefaultFeatures={Scale=0.94}]{plex-otf} |
| 399 |
%StopVisiblePreamble |
| 400 |
\begin{document} |
| 401 |
\demo\ Regular\par {\PlexTextRM\demo\ Text\par} {\PlexLightRM\demo\ Light\par} |
| 402 |
{\PlexExtraLightRM\demo\ ExtraLight\par} {\PlexThinRM\demo\ Thin} |
| 403 |
\end{document} |
| 404 |
\end{externalDocument} |
| 405 |
|
| 406 |
|
| 407 |
\section{Special symbols} |
| 408 |
|
| 409 |
\begin{tabular}{@{}l@{ $\rightarrow$ }l @{\qquad} l@{ $\rightarrow$ }l @{}} |
| 410 |
%\verb|\IBM| & \IBM & \verb|\upleftarrow| & \upleftarrow\\ |
| 411 |
%\verb|\IBM[1]| & \IBM[1]& |
| 412 |
\multicolumn{2}{c}{} & \verb|\uprightarrow| & \uprightarrow\\ |
| 413 |
%\verb|\IBM[2]| & \IBM[2]& |
| 414 |
\multicolumn{2}{c}{} & \verb|\downleftarrow| & \downleftarrow\\ |
| 415 |
%\verb|\IBM[3]| & \IBM[3]& |
| 416 |
\multicolumn{2}{c}{} & \verb|\downrightarrow| & \downrightarrow\\ |
| 417 |
%\verb|\IBM[4]| & \IBM[4]& |
| 418 |
\multicolumn{2}{c}{} & \verb|\leftturn| & \leftturn\\ |
| 419 |
\verb|\CE| & \CE & \verb|\rightturn| & \rightturn\\ |
| 420 |
\verb|\FCC| & \FCC & \verb|\fullleftturn| & \fullleftturn \\ |
| 421 |
\multicolumn{2}{c}{} & \verb|\fullrightturn| & \fullrightturn\\ |
| 422 |
\end{tabular} |
| 423 |
|
| 424 |
|
| 425 |
|
| 426 |
\section{Examples without special Settings} |
| 427 |
|
| 428 |
\subsection{The default} |
| 429 |
|
| 430 |
By default the Plex font family has no small caps and no special slanted version. |
| 431 |
|
| 432 |
\begin{externalDocument}[ |
| 433 |
grfOptions={width=\linewidth}, |
| 434 |
frame, |
| 435 |
compiler=lualatex, |
| 436 |
crop, |
| 437 |
force, |
| 438 |
runs=2,code,docType=latex, |
| 439 |
frame, |
| 440 |
showFilename, |
| 441 |
align=\centering, |
| 442 |
]{plex-otf} |
| 443 |
\documentclass{article} |
| 444 |
\usepackage[a4paper]{geometry} |
| 445 |
\usepackage[ngerman]{babel} |
| 446 |
\usepackage[autostyle]{csquotes} |
| 447 |
\usepackage{demotext0} |
| 448 |
\pagestyle{empty} |
| 449 |
%StartVisiblePreamble |
| 450 |
\usepackage[DefaultFeatures={Scale=0.94}]{plex-otf} |
| 451 |
%StopVisiblePreamble |
| 452 |
\begin{document} |
| 453 |
\blindtext |
| 454 |
\end{document} |
| 455 |
\end{externalDocument} |
| 456 |
|
| 457 |
\clearpage |
| 458 |
|
| 459 |
\subsection{Semibold} |
| 460 |
|
| 461 |
\begin{externalDocument}[ |
| 462 |
grfOptions={width=\linewidth}, |
| 463 |
frame, |
| 464 |
compiler=lualatex, |
| 465 |
crop, |
| 466 |
force, |
| 467 |
runs=2,code,docType=latex, |
| 468 |
frame, |
| 469 |
showFilename, |
| 470 |
align=\centering, |
| 471 |
]{plex-otf} |
| 472 |
\documentclass{article} |
| 473 |
\usepackage[a4paper]{geometry} |
| 474 |
\usepackage[ngerman]{babel} |
| 475 |
\usepackage[autostyle]{csquotes} |
| 476 |
\pagestyle{empty} |
| 477 |
\usepackage{demotext0} |
| 478 |
%StartVisiblePreamble |
| 479 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 480 |
RMstyle=Semibold, |
| 481 |
SSstyle=Semibold, |
| 482 |
SSconstyle=Semibold, |
| 483 |
TTstyle=Semibold]{plex-otf} |
| 484 |
%StopVisiblePreamble |
| 485 |
\begin{document} |
| 486 |
\blindtext |
| 487 |
\end{document} |
| 488 |
\end{externalDocument} |
| 489 |
|
| 490 |
\clearpage |
| 491 |
|
| 492 |
|
| 493 |
|
| 494 |
\subsection{Thin} |
| 495 |
|
| 496 |
This makes only sense with the the \verb|Semibold| feature or not using bold characters. |
| 497 |
|
| 498 |
\begin{externalDocument}[ |
| 499 |
grfOptions={width=\linewidth}, |
| 500 |
frame, |
| 501 |
compiler=lualatex, |
| 502 |
crop, |
| 503 |
force, |
| 504 |
runs=2,code,docType=latex, |
| 505 |
frame, |
| 506 |
showFilename, |
| 507 |
align=\centering, |
| 508 |
]{plex-otf} |
| 509 |
\documentclass{article} |
| 510 |
\usepackage[a4paper]{geometry} |
| 511 |
\usepackage[ngerman]{babel} |
| 512 |
\usepackage[autostyle]{csquotes} |
| 513 |
\pagestyle{empty} |
| 514 |
\usepackage{demotext1} |
| 515 |
%StartVisiblePreamble |
| 516 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 517 |
RMstyle=Thin, |
| 518 |
SSstyle=Thin, |
| 519 |
SSconstyle=Thin, |
| 520 |
TTstyle=Thin]{plex-otf} |
| 521 |
%StopVisiblePreamble |
| 522 |
\begin{document} |
| 523 |
\blindtext |
| 524 |
\end{document} |
| 525 |
\end{externalDocument} |
| 526 |
|
| 527 |
\clearpage |
| 528 |
|
| 529 |
|
| 530 |
\subsection{Extra Light} |
| 531 |
|
| 532 |
This makes only sense with the the \verb|Semibold| feature or not using bold characters. |
| 533 |
|
| 534 |
|
| 535 |
|
| 536 |
|
| 537 |
|
| 538 |
\begin{externalDocument}[ |
| 539 |
grfOptions={width=\linewidth}, |
| 540 |
frame, |
| 541 |
compiler=lualatex, |
| 542 |
crop, |
| 543 |
force, |
| 544 |
runs=2,code,docType=latex, |
| 545 |
frame, |
| 546 |
showFilename, |
| 547 |
align=\centering, |
| 548 |
]{plex-otf} |
| 549 |
\documentclass{article} |
| 550 |
\usepackage[a4paper]{geometry} |
| 551 |
\usepackage[ngerman]{babel} |
| 552 |
\usepackage[autostyle]{csquotes} |
| 553 |
\pagestyle{empty} |
| 554 |
\usepackage{demotext1} |
| 555 |
%StartVisiblePreamble |
| 556 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 557 |
RMstyle=ExtraLight, |
| 558 |
SSstyle=ExtraLight, |
| 559 |
SSconstyle=ExtraLight, |
| 560 |
TTstyle=ExtraLight]{plex-otf} |
| 561 |
%StopVisiblePreamble |
| 562 |
\begin{document} |
| 563 |
\blindtext |
| 564 |
\end{document} |
| 565 |
\end{externalDocument} |
| 566 |
|
| 567 |
\clearpage |
| 568 |
|
| 569 |
|
| 570 |
\subsection{Light} |
| 571 |
|
| 572 |
This makes only sense with the the \verb|Semibold| feature or not using bold characters. |
| 573 |
|
| 574 |
\begin{externalDocument}[ |
| 575 |
grfOptions={width=\linewidth}, |
| 576 |
frame, |
| 577 |
compiler=lualatex, |
| 578 |
crop, |
| 579 |
force, |
| 580 |
runs=2,code,docType=latex, |
| 581 |
frame, |
| 582 |
showFilename, |
| 583 |
align=\centering, |
| 584 |
]{plex-otf} |
| 585 |
\documentclass{article} |
| 586 |
\usepackage[a4paper]{geometry} |
| 587 |
\usepackage[ngerman]{babel} |
| 588 |
\usepackage[autostyle]{csquotes} |
| 589 |
\pagestyle{empty} |
| 590 |
\usepackage{demotext1} |
| 591 |
%StartVisiblePreamble |
| 592 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 593 |
RMstyle=Light, |
| 594 |
SSstyle=Light, |
| 595 |
SSconstyle=Light, |
| 596 |
TTstyle=Light]{plex-otf} |
| 597 |
%StopVisiblePreamble |
| 598 |
\begin{document} |
| 599 |
\blindtext |
| 600 |
\end{document} |
| 601 |
\end{externalDocument} |
| 602 |
|
| 603 |
%\newpage |
| 604 |
|
| 605 |
\clearpage |
| 606 |
|
| 607 |
\subsection{Medium} |
| 608 |
|
| 609 |
This makes sense with the the \verb|Semibold| feature. |
| 610 |
|
| 611 |
\begin{externalDocument}[ |
| 612 |
grfOptions={width=\linewidth}, |
| 613 |
frame, |
| 614 |
compiler=lualatex, |
| 615 |
crop, |
| 616 |
force, |
| 617 |
runs=2,code,docType=latex, |
| 618 |
frame, |
| 619 |
showFilename, |
| 620 |
align=\centering, |
| 621 |
]{plex-otf} |
| 622 |
\documentclass{article} |
| 623 |
\usepackage[a4paper]{geometry} |
| 624 |
\usepackage[ngerman]{babel} |
| 625 |
\usepackage[autostyle]{csquotes} |
| 626 |
\pagestyle{empty} |
| 627 |
\usepackage{demotext0} |
| 628 |
%StartVisiblePreamble |
| 629 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 630 |
RMstyle={Medium,Semibold}, |
| 631 |
SSstyle={Medium,Semibold}, |
| 632 |
SSconstyle={Medium,Semibold}, |
| 633 |
TTstyle={Medium,Semibold}]{plex-otf} |
| 634 |
%StopVisiblePreamble |
| 635 |
\begin{document} |
| 636 |
\blindtext |
| 637 |
\end{document} |
| 638 |
\end{externalDocument} |
| 639 |
|
| 640 |
\newpage |
| 641 |
|
| 642 |
\subsection{Text} |
| 643 |
|
| 644 |
This makes sense with the the \verb|Semibold| feature. |
| 645 |
|
| 646 |
\begin{externalDocument}[ |
| 647 |
grfOptions={width=\linewidth}, |
| 648 |
frame, |
| 649 |
compiler=lualatex, |
| 650 |
crop, |
| 651 |
force, |
| 652 |
runs=2,code,docType=latex, |
| 653 |
frame, |
| 654 |
showFilename, |
| 655 |
align=\centering, |
| 656 |
]{plex-otf} |
| 657 |
\documentclass{article} |
| 658 |
\usepackage[a4paper]{geometry} |
| 659 |
\usepackage[ngerman]{babel} |
| 660 |
\usepackage[autostyle]{csquotes} |
| 661 |
\pagestyle{empty} |
| 662 |
\usepackage{demotext0} |
| 663 |
%StartVisiblePreamble |
| 664 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 665 |
RMstyle={Text,Semibold}, |
| 666 |
SSstyle={Text,Semibold}, |
| 667 |
SSconstyle={Text,Semibold}, |
| 668 |
TTstyle={Text,Semibold}]{plex-otf} |
| 669 |
%StopVisiblePreamble |
| 670 |
\begin{document} |
| 671 |
\blindtext |
| 672 |
\end{document} |
| 673 |
\end{externalDocument} |
| 674 |
|
| 675 |
\section{Examples with using Small Caps fonts} |
| 676 |
As already mentioned, the Plex font family has no small caps. If you need one then you can define another |
| 677 |
font for the small caps. If the font has to structure like the \TeX\ Gyre fonts: |
| 678 |
|
| 679 |
\begin{verbatim} |
| 680 |
texgyreheros-regular.otf |
| 681 |
texgyreheros-bold.otf |
| 682 |
texgyreheros-italic.otf |
| 683 |
texgyreheros-bolditalic.otf |
| 684 |
\end{verbatim} |
| 685 |
|
| 686 |
|
| 687 |
then you have to define all combinations yourself |
| 688 |
|
| 689 |
\begin{verbatim} |
| 690 |
\usepackage[SS={ SmallCapsFont = texgyreheros-regular, |
| 691 |
SmallCapsFeatures = {Letters=SmallCaps,Scale=MatchUppercase}, |
| 692 |
BoldFeatures = { SmallCapsFont=texgyreheros-bold}, |
| 693 |
ItalicFeatures = { SmallCapsFont=texgyreheros-italic}, |
| 694 |
BoldItalicFeatures= { SmallCapsFont=texgyreheros-bolditalic}}]{plex-otf} |
| 695 |
\end{verbatim} |
| 696 |
|
| 697 |
|
| 698 |
%\clearpage |
| 699 |
|
| 700 |
|
| 701 |
\begin{externalDocument}[ |
| 702 |
grfOptions={width=\linewidth}, |
| 703 |
frame, |
| 704 |
compiler=lualatex, |
| 705 |
crop, |
| 706 |
force, |
| 707 |
runs=2,code,docType=latex, |
| 708 |
frame, |
| 709 |
showFilename, |
| 710 |
align=\centering, |
| 711 |
]{plex-otf} |
| 712 |
\documentclass{article} |
| 713 |
\usepackage[a4paper]{geometry} |
| 714 |
\usepackage[ngerman]{babel} |
| 715 |
\usepackage[autostyle]{csquotes} |
| 716 |
\usepackage{demotext2} |
| 717 |
\pagestyle{empty} |
| 718 |
%StartVisiblePreamble |
| 719 |
\usepackage[DefaultFeatures={Scale=0.94}, |
| 720 |
RMSCfont=texgyretermes, SSSCfont=texgyreheros]{plex-otf} |
| 721 |
%StopVisiblePreamble |
| 722 |
\begin{document} |
| 723 |
\blindtext |
| 724 |
\end{document} |
| 725 |
\end{externalDocument} |
| 726 |
|
| 727 |
|
| 728 |
|
| 729 |
\section{Math examples} |
| 730 |
|
| 731 |
There is only the regular version of the math font \cs{mathnormal}. The bold version is |
| 732 |
faked by the option \texttt{FakeBold}: |
| 733 |
|
| 734 |
\begin{verbatim} |
| 735 |
\setmathfont[\PlexMM@features,version=normal]{IBMPlexMath-Regular.otf} |
| 736 |
\setmathfont[\PlexMM@features,FakeBold=3,version=bold]{IBMPlexMath-Regular.otf} |
| 737 |
\end{verbatim} |
| 738 |
|
| 739 |
|
| 740 |
|
| 741 |
\begin{verbatim} |
| 742 |
Here's some text. And here's some math: |
| 743 |
\[ |
| 744 |
\phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2} |
| 745 |
\] |
| 746 |
And now bold math: |
| 747 |
\boldmath |
| 748 |
\[ |
| 749 |
\phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2} |
| 750 |
\] |
| 751 |
\unboldmath |
| 752 |
|
| 753 |
$f(x)=13\int$ \boldmath$f(x)=13 \int$\unboldmath |
| 754 |
|
| 755 |
Euro and copyright symbols are available: \texteuro\ \textcopyright. |
| 756 |
\end{verbatim} |
| 757 |
|
| 758 |
Here's some text. And here's some math: |
| 759 |
\[ |
| 760 |
\phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2} |
| 761 |
\] |
| 762 |
And now bold math: |
| 763 |
|
| 764 |
\boldmath |
| 765 |
\[ |
| 766 |
\phi(x)=\int_{-\infty}^{x} e^{-x^{2}/2} |
| 767 |
\] |
| 768 |
\unboldmath |
| 769 |
|
| 770 |
$f(x)=13\int$ \boldmath$f(x)=13 \int$\unboldmath |
| 771 |
|
| 772 |
Euro and copyright symbols are available: \texteuro\ \textcopyright. |
| 773 |
|
| 774 |
|
| 775 |
|
| 776 |
%\clearpage |
| 777 |
%\newgeometry{%margin=1cm,bmargin=2cm, |
| 778 |
% lmargin=1cm,rmargin=1cm,includeheadfoot} |
| 779 |
|
| 780 |
\section{Closing} |
| 781 |
The font list of this documentation is: |
| 782 |
|
| 783 |
\scriptsize\ttfamily |
| 784 |
\expandafter\IfFileExists\expandafter{\jobname.fonts}% |
| 785 |
{\lstinputlisting{\jobname.fonts}}{} |
| 786 |
|
| 787 |
\normalfont\rmfamily |
| 788 |
|
| 789 |
|
| 790 |
|
| 791 |
\clearpage |
| 792 |
\restoregeometry |
| 793 |
\section{The font files} |
| 794 |
|
| 795 |
The fonts are saved in the systems font directory or in the TDS |
| 796 |
(\TeX\ Directory Structure): % list of this documentation is: |
| 797 |
%\rightmargin=-1cm |
| 798 |
|
| 799 |
\begin{multicols}{2} |
| 800 |
\runExtCmd[redirect]{ls fonts/}{\jobname} |
| 801 |
\end{multicols} |
| 802 |
|
| 803 |
%\scriptsize\ttfamily |
| 804 |
%\expandafter\IfFileExists\expandafter{\jobname.fonts}% |
| 805 |
% {\lstinputlisting[xrightmargin=-1cm]{\jobname.fonts}}{} |
| 806 |
|
| 807 |
%\normalfont\rmfamily |
| 808 |
|
| 809 |
%\rightmargin=0cm |
| 810 |
|
| 811 |
|
| 812 |
|
| 813 |
\clearpage |
| 814 |
\newgeometry{%margin=1cm,bmargin=2cm, |
| 815 |
tmargin=1cm,bmargin=1cm,includeheadfoot} |
| 816 |
|
| 817 |
\section{The Glyphs} |
| 818 |
\subsection{Default Serif style} |
| 819 |
|
| 820 |
\defaultfontfeatures{Ligatures=TeXOff} |
| 821 |
|
| 822 |
|
| 823 |
Command: \cs{rmfamily} |
| 824 |
|
| 825 |
\displayfonttable{IBMPlexSerif-Regular.otf}%[Scale=0.95] |
| 826 |
|
| 827 |
|
| 828 |
\subsection{Default Sans style} |
| 829 |
Command: \cs{sffamily} |
| 830 |
|
| 831 |
|
| 832 |
\displayfonttable{IBMPlexSans-Regular.otf}%[Scale=0.95] |
| 833 |
|
| 834 |
\subsection{Default Sans Condensed style} |
| 835 |
Command: \cs{sffamilyCon} |
| 836 |
|
| 837 |
\displayfonttable{IBMPlexSansCondensed-Regular.otf}%[Scale=0.95] |
| 838 |
|
| 839 |
\subsection{Default Mono style} |
| 840 |
|
| 841 |
Command: \cs{ttfamily} |
| 842 |
\displayfonttable{IBMPlexMono-Regular.otf}%[Scale=0.95] |
| 843 |
|
| 844 |
|
| 845 |
|
| 846 |
\nocite{*} |
| 847 |
\printbibliography |
| 848 |
\end{document} |