Debian Codegraph @

texmf-dist/source/fonts/cfr-lm/cfr-lm.dtx

raw
1 % \iffalse meta-comment
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % cfr-lm.dtx
4 % Additions and changes Copyright (C) 2008-2025 Clea F. Rees.
5 % Code from skeleton.dtx Copyright (C) 2015-2024 Scott Pakin (see below).
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either version 1.3c
9 % of this license or (at your option) any later version.
10 % The latest version of this license is in
11 % https://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions of LaTeX
13 % version 2008-05-04 or later.
14 %
15 % This work has the LPPL maintenance status `maintained'.
16 %
17 % The Current Maintainer of this work is Clea F. Rees.
18 %
19 % This work consists of all files listed in manifest.txt.
20 %
21 % The file cfr-lm.dtx is a derived work under the terms of the
22 % LPPL. It is based on version 2.4 of skeleton.dtx which is part of
23 % dtxtut by Scott Pakin. A copy of dtxtut, including the
24 % unmodified version of skeleton.dtx is available from
25 % https://www.ctan.org/pkg/dtxtut and released under the LPPL.
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 % \fi
28 %
29 % \iffalse
30 %<*driver>
31 \RequirePackage{svn-prov}
32 % ref. ateb Max Chernoff: https://tex.stackexchange.com/a/723294/
33 % ^^A \def\MakePrivateLetters{\makeatletter\ExplSyntaxOn\endlinechar13}
34 % ^^A \def\MyMakePrivateLetters{\makeatletter\ExplSyntaxOn\endlinechar13}
35 \ExplSyntaxOn
36 % ^^A sylwad yannisl: https://tex.stackexchange.com/questions/723293/how-can-i-get-automatic-code-indexing-of-expl3-in-ltxdoc/723294#comment1799661_723294
37 % ^^A \ExplSyntaxOn \cs_gset:Npn \MakePrivateLetters { \char_set_catcode_letter:N \@ \char_set_catcode_letter:N _ \char_set_catcode_letter:N \: } \ExplSyntaxOff`
38 \cs_new_nopar:Npn \MyMakePrivateLetters
39 {
40 \char_set_catcode_letter:N \@
41 \char_set_catcode_letter:N _
42 \char_set_catcode_letter:N \:
43 }
44 \ExplSyntaxOff
45 \ProvidesFileSVN{$Id: cfr-lm.dtx 11038 2025-06-21 18:26:04Z cfrees $}[v1.9 \revinfo][\filebase DTX: Latin Modern for 8-bit engines]
46 \DefineFileInfoSVN[cfr-lm]
47 \documentclass[10pt,british]{ltxdoc}
48 % l3doc loads fancyvrb
49 % fancyvrb overwrites svn-prov's macros without warning
50 % restore \fileversion \filerev in case we're using l3doc
51 \GetFileInfoSVN{cfr-lm}
52 \EnableCrossrefs
53 \CodelineIndex
54 \RecordChanges
55 % \OnlyDescription
56 \DoNotIndex{\verb,\ProvidesPackageSVN,\NeedsTeXFormat,\ProcessKeyOptions,\revinfo,\filebase,\filename,\filedate,\RequirePackage,\usepackage,\DefineFileInfoSVN,\GetFileInfoSVN,\ProvidesPackageSVN,\documentclass,\MakeAutoQuote,\parindent,\par,\smallskip,\setlength,\bigskip,\maketitle,\title,\author,\date,\ExplSyntaxOn,\ExplSyntaxOff}
57 \usepackage{babel}
58 \pdfmapfile{-clm.map} % not necessary for installed package
59 \pdfmapfile{+clm.map} % not necessary for installed package
60 \usepackage[rm={lining,proportional},sf={lining,proportional},tt={mono,lining,tabular}]{cfr-lm}
61 %^^A *** PAID Â TRIO DEFNYDDIO LTMARKS YN LLE EXTRAMARKS MEWN UNRHYW DOGFEN A DDEFNYDDIO HI MULTICOLS (YN CYNNWYS LTXDOC AC UNRHYW UN Â MYNEGAI YN ÔL BOB DEBYG!!! ***
62 \usepackage{fancyhdr,extramarks}
63 \usepackage[plain]{fancyref}
64 \usepackage{fixfoot}
65 \usepackage{array,tabularx}
66 \usepackage{longtable}
67 \usepackage{enumitem}
68 \usepackage[referable]{threeparttablex}
69 \makeatletter
70 \def\TPT@measurement{% ateb David Carlisle: https://tex.stackexchange.com/a/370691/
71 \ifdim\wd\@tempboxb<\TPTminimum
72 \hsize \TPTminimum
73 \else
74 \hsize\wd\@tempboxb
75 \fi
76 \xdef\TPT@hsize{\hsize\the\hsize \noexpand\@parboxrestore}\TPT@hsize
77 \ifx\TPT@docapt\@undefined\else
78 \TPT@docapt \vskip.2\baselineskip
79 \fi \par
80 \dimen@\dp\@tempboxb % new
81 \box\@tempboxb
82 \ifvmode \prevdepth\dimen@ \fi% was \z@ not \dimen@
83 }
84 \renewlist{tablenotes}{enumerate}{1}
85 \setlist[tablenotes]{label=\tnote{\alph*},ref=\alph*,itemsep=\z@,topsep=\z@skip,partopsep=\z@skip,parsep=\z@,itemindent=\z@,labelindent=\tabcolsep,labelsep=.2em,leftmargin=*,align=left,before={\unskip\medskip\footnotesize}}
86 \makeatother
87 \usepackage{booktabs}
88 \usepackage{multirow}
89 \usepackage{xcolor}
90 \usepackage{xurl}
91 \urlstyle{sf}
92 \usepackage{microtype}
93 \usepackage[a4paper,headheight=14pt,marginparwidth=45mm,hmarginratio=4:1,vscale=.8,hscale=.7,verbose]{geometry} % use 14pt for 11pt text, 15pt for 12pt text
94 \usepackage{csquotes}
95 \MakeAutoQuote{‘}{’}
96 \MakeAutoQuote*{“}{”}
97 \usepackage{caption}
98 \DeclareCaptionFont{lf}{\sffamily\plstyle}
99 \captionsetup[table]{labelfont=lf}
100 % sicrhau hyperindex=false: llwytho CYN bookmark
101 \usepackage{hypdoc}% ateb Ulrike Fischer: https://tex.stackexchange.com/a/695555/
102 \usepackage{bookmark}
103 \hypersetup{%
104 colorlinks=true,
105 citecolor={moss},
106 extension=pdf,
107 linkcolor={strawberry},
108 linktocpage=true,
109 pdfcreator={TeX},
110 pdfproducer={pdfeTeX},
111 urlcolor={blueberry}%
112 }
113 \NewDocElement[%
114 idxtype=opt.,
115 idxgroup=options,
116 printtype=\textit{opt.},
117 ]{Opt}{option}
118 \NewDocElement[%
119 idxtype=alt.,
120 idxgroup=alternates,
121 printtype=\textit{alt.},
122 ]{Alt}{alternate}
123 \NewDocElement[%
124 idxtype=lig.,
125 idxgroup=ligatures,
126 printtype=\textit{lig.},
127 ]{Lig}{ligature}
128 \NewDocElement[%
129 idxtype=sw.,
130 idxgroup=swashes,
131 printtype=\textit{sw.},
132 ]{Sw}{swash}
133 \NewDocElement[%
134 idxtype=pkg.,
135 idxgroup=,
136 printtype=\textit{pkg.},
137 ]{Pkg}{package}
138 \NewDocElement[%
139 idxtype=fd.,
140 idxgroup=fds,
141 printtype=\textit{fd.},
142 ]{Fd}{fdfile}
143 \NewDocElement[%
144 idxtype=drv.,
145 idxgroup=drivers,
146 printtype=\textit{drv.},
147 ]{Drv}{driver}
148 \NewDocElement[%
149 idxtype=map,
150 idxgroup=map files,
151 printtype=\textit{map},
152 ]{Map}{mapfile}
153 \NewDocElement[%
154 idxtype=etx,
155 idxgroup=font encodings,
156 printtype=\textit{etx},
157 ]{Etx}{encoding}
158 \NewDocumentCommand \val { m }
159 {%
160 {\ttfamily =\,\meta{#1}}%
161 }
162 \ExplSyntaxOn
163 \NewDocumentCommand \vals { m }
164 {
165 {
166 \ttfamily = \,
167 \clist_use:nn { #1 } { \textbar }
168 }
169 }
170 \keys_define:nn { clm / doc }
171 {
172 unknown .code:n = {
173 \cs_if_free:cT { \l_keys_key_str }
174 {
175 \tl_gset:cn { \l_keys_key_str } { #1 }
176 }
177 },
178 }
179 \NewDocumentCommand \clmdocset { +m }
180 {
181 \keys_set:nn { clm / doc } { #1 }
182 }
183 \ExplSyntaxOff
184 \clmdocset{%
185 bug={\href{https://codeberg.org/cfr/nfssext/issues}{\textsc{bugtracker}}},
186 codeberg={\href{https://codeberg.org/cfr/nfssext}{\textsc{codeberg}}},
187 github={\href{https://github.com/cfr42/nfssext}{\textsc{github}}},
188 ctan={\href{https://ctan.org/}{\textsc{ctan}}},
189 }
190 % \usepackage{cleveref}
191 \newcommand*{\gust}{\textsc{Gust}}
192 \newcommand*{\lpack}[1]{\textsf{#1}}
193 \newcommand*{\fgroup}[1]{\textsf{#1}}
194 \newcommand*{\fname}[1]{\textsf{#1}}
195 \newcommand*{\file}[1]{\texttt{#1}}
196 \title{\filebase}
197 \author{Clea F. Rees\thanks{%
198 Bug tracker:
199 \href{https://codeberg.org/cfr/nfssext/issues}{\url{codeberg.org/cfr/nfssext/issues}}
200 \textbar{} Code:
201 \href{https://codeberg.org/cfr/nfssext}{\url{codeberg.org/cfr/nfssext}}
202 \textbar{} Mirror:
203 \href{https://github.com/cfr42/nfssext}{\url{github.com/cfr42/nfssext}}%
204 }}
205 %^^A \date{\fileversion~\filetoday}
206 \date{\fileversion~\filedate}
207 \pagestyle{fancy}
208 \fancyhf{}
209 % ^^A \fancyhf[rh]{\itshape\filetoday}
210 % ^^A \fancyhf[rh]{\itshape\fileversion}
211 % ^^A \fancyhf[ch]{\itshape Support for Latin Modern}
212 % ^^A\fancyhf[lf]{\itshape\fileversion}
213 % ^^A \fancyhf[cf]{\itshape--- \thepage~/~\lastpage{} ---}
214 \ExplSyntaxOn
215 \tl_new:N \l__cfrlm_doc_ffont_tl
216 \tl_new:N \l__cfrlm_doc_hfont_tl
217 \tl_set:Nn \l__cfrlm_doc_ffont_tl {\itshape\plstyle}
218 \tl_set:Nn \l__cfrlm_doc_hfont_tl {\itshape\plstyle}
219 % ref. fancyhdr (or see tc3 ref'd there?)
220 \renewcommand \sectionmark[1]{\markboth{\thesection{} ~ #1}{}}
221 \renewcommand \subsectionmark[1]{\markright{\arabic{subsection} ~ #1}}
222 \fancyhf[lh]
223 {
224 \bool_set_false:N \l_tmpa_bool
225 \l__cfrlm_doc_hfont_tl
226 \hbox_overlap_right:n %^^A \rlap
227 {
228 \nouppercase
229 {
230 \firstleftmark
231 }
232 }
233 \skip_horizontal:n { \g__cfrlm_doc_offset_dim }
234 \nouppercase
235 {
236 \tl_if_blank:eF { \mark_use_first:nn { page } { 2e-right } }
237 {
238 \__cfrlm_doc_lreq:
239 }
240 }
241 }
242 \cs_new_nopar:Nn \__cfrlm_doc_lreq:
243 { % ^^A david carlisle: https://chat.stackexchange.com/transcript/message/66321842#66321842
244 % ^^A neu Ulrike Fischer: https://chat.stackexchange.com/transcript/message/66321730#66321730
245 % ^^A -> \protected@edef\cfrlm@tmpa{\firstleftmark}\protected@edef\cfrlm@tmpb{\firstrightmark}\if_tl_eq:NNTF \cfrlm@tmpa \cfrlm@tmpb {} { \firstrightmark }
246 \group_begin:
247 \let\protect\noexpand
248 \tl_if_eq:eeTF { \firstleftmark } { \firstrightmark } { \group_end: } { \group_end: \firstrightmark }
249 % ^^A neu ... { } { \let\protect\relax \firstrightmark } \group_end:
250 }
251 \fancyhf[rh]
252 {
253 \l__cfrlm_doc_hfont_tl
254 \nouppercase
255 {
256 \lastleftmark
257 }
258 }
259 \fancyhf[rf]
260 {
261 \l__cfrlm_doc_hfont_tl
262 \nouppercase
263 {
264 \thepage{} ~ / ~ \lastpage{}
265 }
266 }
267 \fancyhf[lf]
268 {
269 \l__cfrlm_doc_ffont_tl
270 \hbox_overlap_right:n %^^A \rlap
271 {
272 \filebase
273 }
274 \skip_horizontal:n { \g__cfrlm_doc_offset_dim }
275 \nouppercase
276 {
277 \fileversion
278 }
279 }
280 \dim_new:N \g__cfrlm_doc_offset_dim
281 \hook_gput_code:nnn { begindocument } {.}
282 {
283 \dim_gset:Nn \g__cfrlm_doc_offset_dim { \marginparwidth + \marginparsep }
284 \fancyheadoffset[lh,lf]{ \g__cfrlm_doc_offset_dim }
285 }
286 \hook_gput_code:nnn {shipout/lastpage} {.}
287 {
288 \property_record:nn {t:lastpage}{abspage,page,pagenum}
289 }
290 \cs_new_protected_nopar:Npn \lastpage
291 {
292 \property_ref:nn {t:lastpage}{page}
293 }
294 \cs_new_eq:NN \OrigMakePrivateLetters \MakePrivateLetters
295 \ExplSyntaxOff
296 \definecolor{strawberry}{rgb}{1.000,0.000,0.502}
297 \definecolor{blueberry}{rgb}{0.000,0.000,1.000}
298 \definecolor{moss}{rgb}{0.000,0.502,0.251}
299 \begin{document}
300 \let\MakePrivateLetters\MyMakePrivateLetters
301 \DocInput{\filename}
302 \end{document}
303 %</driver>
304 % \fi
305 %
306 %
307 % \changes{v0.9? 2008-10-26}{2008/10/26}{%
308 % First public release.}
309 % \changes{v1.0? 2008-12-22}{2008/12/22}{}
310 % \changes{v1.1? 2010-05-27}{2010/05/27}{%
311 % Update for Latin Modern 2.004.
312 % Tweak generation of virtual fonts to improve accent placement by adjusting for peculiarities in \lpack{lm} distribution.}
313 % \changes{v1.3 2010-05-31}{2010/05/31}{%
314 % Now with added documentation\!}
315 % \changes{v1.3 2010-07-14}{2010/07/14}{%
316 % Very minor update to ensure encoding files are unique.
317 % Change map file and \file{manifest.txt} accordingly.}
318 % \changes{v1.5 2015-02-01}{2015/02/01}{%
319 % Correct two typos in \file{.fd} files.
320 % Make corresponding changes to typos in source \file{-drv.tex} files.
321 % In most cases, the changes will have no effect.
322 % However, in some cases, the errors might have caused inappropriate font substitutions and could cause compilation failures in unusual circumstances.}
323 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
324 % Belated update for (New) NFSS.%
325 % }
326 % \changes{\fileversion}{\filedate}{%
327 % Try switching to DTX/INS.
328 % Use \lpack{l3build}.%
329 % }
330 %
331 %
332 %
333 %
334 % \maketitle\thispagestyle{empty}
335 % \pdfinfo{%
336 % /Creator (TeX)
337 % /Producer (pdfTeX)
338 % /Author (Clea F.\ Rees)
339 % /Title (cfr-lm)
340 % /Subject (TeX)
341 % /Keywords (TeX,LaTeX,font,fonts,tex,latex,LatinModern,Latin Modern,latinmodern,cfr-lm,lm,LM,osf,OSF,figure,figures,digit,digits,proportional,tabular,lining,oldstyle,Latin,Modern,Clea,Rees)}
342 % \pdfcatalog{%
343 % /URL ()
344 % /PageMode /UseOutlines}
345 % \setlength{\parindent}{0pt}
346 % \setlength{\parskip}{0.5em}
347 %
348 %
349 % \begin{abstract}
350 % \noindent\lpack{cfr-lm} offers enhanced support for Latin Modern 2.004 in \TeX/\LaTeX{} on 8-bit engines\footnote{%
351 % It is not required, does not support and should not be loaded with Unicode engines.
352 % Indeed, it was largely written because I wanted to use features easily accessible on Unicode engines while continuing to compile with pdf\TeX{}, which was significantly more reliable at the time and is still considerably faster.%
353 % }.
354 % A number of features of the Latin Modern fonts are not easily accessible via the default \TeX/\LaTeX\ support provided in the official distribution.
355 % This package aims to provide \TeX/\LaTeX\ support for a number of these features including various styles of digits, upright italic and oblique small-caps shapes, and alternative weights and widths.
356 % It also supports the variable width typewriter, ‘dunhill’ and ‘quotation’ fonts.
357 % If \lpack{microtype} is loaded, the package ensures the custom settings designed for Computer and Latin Modern are loaded.
358 % \end{abstract}
359 %
360 % \tableofcontents
361 %
362 %
363 % \section{Introduction}
364 %
365 % This document explains how to use the \lpack{cfr-lm} package to access advanced features of the Latin Modern fonts not otherwise supported by the official \lpack{lm} distribution.
366 % These features include various styles of digits, upright italic and oblique small-caps italic, alternative weights and widths, and Latin Modern Mono Prop (variable width typewriter), Dunhill and Sans Quotation.
367 % By default, the \LaTeX\ package provided by \path{cfr-lm.sty} uses proportional oldstyle digits and variable width typewriter but this can be changed by passing appropriate options when loading the package.
368 % The package also supports using e.g.\ different styles of digits within a document so it is possible to use proportional oldstyle digits by default, say, but tabular lining digits within a particular table.
369 % Finally, a command to access the zeroslash character is provided.
370 %
371 % \changes{v1.3}{2010/05/27}{%
372 % Update for version 2.004 of Latin Modern.%
373 % }
374 % \lpack{cfr-lm} version 1.3 requires version 2.004 of \textsc{gust}'s Latin Modern fonts, including the support package provided for \TeX.
375 % The fonts and \TeX\ support are included in many \TeX\ distributions or may be obtained from \url{http://www.gust.org.pl/projects/e-foundry/latin-modern} or your nearest \ctan{} mirror.
376 %
377 % \lpack{cfr-lm} consists of all files listed in \lpack{manifest.txt}\ and these files are released under the \LaTeX\ Project Public Licence as explained in the included licensing notices.
378 %
379 % \changes{v1.3}{2010/05/27}{%
380 % Improved option handling due almost entirely to Enrico Gregorio.
381 % Improved accent placement for faked glyphs thanks in considerable part to Lars Hellström's patience.
382 % Ignore all font dimensions in the \textsc{afm} files and take them from the \textsc{tfm}s released with Latin Modern instead.%
383 % }
384 % Version 1.3 of the package benefited greatly from feedback provided by Enrico Gregorio, who essentially rewrote the style file using \lpack{keyval} to show me how I ought to be setting the various options up, and Lars Hellström who demonstrated considerable patience in answering my many questions about using \lpack{fontinst} and some peculiarities of the Latin Modern fonts.
385 % I hope the changes in the production of the virtual fonts will improve accent placement in ‘faked’ glyphs (i.e.\ in the case of characters not included in the \textsc{ec}/\textsc{t1} font encoding which \TeX\ therefore creates by combining glyphs which are included).
386 % The changes involve ignoring all font dimensions given in the \textsc{afm} files and taking them from the relevant \textsc{tfm} files supplied with Latin Modern instead.
387 % The exception to this is the value of \verb|acccapheight| which is set to zero in the \textsc{tfm}s.
388 % The current virtual font setup uses \lpack{fontinst}'s default value in this case.
389 %
390 % \changes{v1.4}{2014/03/04}{%
391 % Use family-specific settings for \lpack{microtype}.%
392 % }
393 % If you load \lpack{microtype}, version 1.4 and later will automatically figure out the family-specific settings to use.
394 % This is done using aliases which tell \lpack{microtype} to treat the virtual fonts provided by this package in the same way it treats Latin Modern and Computer Modern Roman.
395 % See \fref{sec:mt} for details.
396 %
397 % \section{Requirements}\label{sec:require}
398 %
399 % In addition to the usual suspects (\LaTeX\ etc.), the \LaTeX\ support provided by \path{cfr-lm.sty} requires:
400 % \begin{itemize}
401 % \item \lpack{lm}: Latin Modern version 2.004\footnote{This package should not be used with any other version of Latin Modern due to likely changes to the font metrics, glyph names etc.}
402 % \item \lpack{nfssext-cfr}
403 % \end{itemize}
404 %
405 % If you wish to compile (as opposed to read) the package documentation, additional, packages are required.
406 % See \path{cfr-lm.dtx} for details.
407 %
408 % If you wish to recreate the font support files from the base \lpack{lm} package, the easiest option is to download the source from \codeberg{} or \github{}.
409 % You can, however, also recreate the font files by hand using the sources included in the \ctan{} archive alone\footnote{%
410 % The font definition files will be functionally equivalent to those included in the package, but the spacing in some \cs{DeclareFontFamily} lines will differ because \lpack{fontinst} doesn't write arguments passed to \cs{installfamily} verbatim to the output stream..
411 % Other files should be equivalent modulo commented lines.%
412 % }.
413 %
414 % \section{Limitations}
415 %
416 % Unlike the official \TeX\ support for Latin Modern, \lpack{cfr-lm} supports only the \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings for text.
417 % Also unlike the official support, the \textsc{ec}/\textsc{t1} support depends entirely on virtual fonts.
418 % If virtual fonts have disadvantages, then, whatever those disadvantages may be, \lpack{cfr-lm} will inherit them.
419 % This does not apply to the \textsc{ts1} encoding or to mathematics, since these rely purely on the support provided by the official distribution so should be identical.
420 %
421 % \LaTeX{} does not recognise the fonts provided by this package, including the \textsc{ts1} encoding but excluding the mathematics, \emph{as} Latin Modern.
422 % This is problematic because newer kernels treat Computer Modern and Latin Modern differently, but only if they are accessed using the default names.
423 % This causes at least two complications.
424
425 % First, the kernel responds to \lpack{cfr-lm} far more ‘noisily’ than one would like, especially since the noise is entirely unnecessary.
426 % The warnings occur because \LaTeX{} switches the default bold series from \texttt{bx} to \texttt{b} unless the document fonts are on a list which includes Latin Modern only by the names provided by \lpack{lmodern}.
427 % As far as I can tell, the ‘noise’ is merely annoying: the actual fonts used and the final output are unaffected, since the kernel tries \texttt{bx} if \texttt{b} is unavailable, though there is presumably some impact on compilation time.
428 % In any case, the new version of \lpack{nfssext-cfr} now patches the code the kernel executes at the beginning of the \texttt{document} environment by simply adding the appropriate names to the list of Computer and Latin Modern families.
429 %
430 % Second, the virtual fonts provided by this package aren't recognised as supporting the \texttt{ts1} encoding, so \lpack{cfr-lm} needs to specify this specifically on newer kernels\footnote{On older kernels, the package continues to load \lpack{textcomp} as it did before.}.
431 %
432 % \section{Font setup}
433 %
434 % As explained above, the fonts use the \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings.
435 % The provision for the \textsc{ts1} and mathematics encodings simply calls the support provided by \lpack{lm}.
436 % The \lpack{cfr-lm} support simply ensures that access is provided automatically when the \textsc{t1}-encoded virtual fonts it provides are active.
437 %
438 % \subsection{Font families}
439 %
440 % \Fref{tab:fonts} list the font families provided for use in the \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings.
441 % \begin{table}
442 % \centering
443 % \begin{threeparttable}
444 % \caption{Font families}\label{tab:fonts}
445 % \begin{tabular}{>{\raggedright}p{.2\textwidth}ll>{\raggedright\arraybackslash}l}
446 % \toprule
447 % \textbf{LM Names} & \textbf{Family} & \textbf{Digits/figures} & \textbf{Notes}\tabularnewline\midrule
448 % \multirow{4}{.2\textwidth}{Latin Modern Roman}%
449 % & \fgroup{clm} & tabular, lining & similar to \lpack{lm} \verb|rm| default\tabularnewline
450 % & \fgroup{clm2} & proportional, lining & \tabularnewline
451 % & \fgroup{clmj} & tabular, oldstyle & \tabularnewline
452 % & \fgroup{clm2j} & proportional, oldstyle & \lpack{cfr-lm} \verb|rm| default\tabularnewline\midrule
453 % \multirow{4}{.2\textwidth}{Latin Modern Sans}%
454 % & \fgroup{clms} & tabular, lining & similar to \lpack{lm} \verb|sf| default\tabularnewline
455 % & \fgroup{clm2s} & proportional, lining & \tabularnewline
456 % & \fgroup{clmjs} & tabular, oldstyle & \tabularnewline
457 % & \fgroup{clm2js} & proportional, oldstyle & \lpack{cfr-lm} \verb|sf| default\tabularnewline\midrule
458 % \multirow{2}{.2\textwidth}{Latin Modern Mono\tnotex{tn:dupes}}%
459 % & \fgroup{clmt}, \fgroup{clm2t} & tabular, lining & similar to \lpack{lm} \verb|tt| default\tabularnewline
460 % & \fgroup{clmjt}, \fgroup{clm2jt} & tabular, oldstyle & \tabularnewline\midrule
461 % \multirow{4}{.2\textwidth}{Latin Modern Mono Prop\tnotex{tn:monoprop}}%
462 % & \fgroup{clmv} & tabular, lining & \tabularnewline
463 % & \fgroup{clm2v} & proportional, lining & \tabularnewline
464 % & \fgroup{clmjv} & tabular, oldstyle & \tabularnewline
465 % & \fgroup{clm2jv} & proportional, oldstyle & \lpack{cfr-lm} \verb|tt| default\tabularnewline\midrule
466 % \multirow{4}{.2\textwidth}{Latin Modern Sans Quotation} %
467 % & \fgroup{clmqs} & tabular, lining & \tabularnewline
468 % & \fgroup{clm2qs} & proportional, lining & \tabularnewline
469 % & \fgroup{clmjqs} & tabular, oldstyle & \tabularnewline
470 % & \fgroup{clm2jqs} & proportional, oldstyle & \tabularnewline\midrule
471 % \multirow{4}{.2\textwidth}{Latin Modern Roman Dunhill}%^^A\multirow{nrows}[bigstruts]{width}[fixup]{text}; or * for {width}
472 % & \fgroup{clmd} & tabular, lining & \tabularnewline
473 % & \fgroup{clm2d} & proportional, lining & \tabularnewline
474 % & \fgroup{clmdj} & tabular, oldstyle & \tabularnewline
475 % & \fgroup{clm2dj} & proportional, oldstyle & \tabularnewline
476 % \bottomrule
477 % \end{tabular}
478 % \begin{tablenotes}
479 % \item\label{tn:dupes}The duplication in \TeX\ name here is to avoid \TeX\ complaining if commands to use proportional digits are issued while one of these fonts is active and to ensure that it is possible to switch smoothly to these fonts if another font with proportional digits is active.
480 % \item\label{tn:monoprop}Despite the apparent contradiction in their name, this is variable-width typewriter.
481 % \end{tablenotes}
482 % \end{threeparttable}
483 % \end{table}
484 %
485 % \subsection{Shapes, Weights and Widths}
486 %
487 % Shape, eight and width availability is shown in \fref{tab:sww}.
488 % \begin{table}
489 % \centering
490 % \caption{Shapes, weights \& widths}\label{tab:sww}
491 % \begin{tabular} {l>{\raggedright}p{.1\textwidth}>{\raggedright}p{.1\textwidth}>{\raggedright}p{.25\textwidth}}
492 % \toprule
493 % \textbf{family} & \textbf{widths} & \textbf{weights} & \textbf{shapes}\tabularnewline\midrule
494 % \fgroup{clm}, \fgroup{clm2}, \fgroup{clmj}, \fgroup{clm2j} & standard & normal & upright, oblique,\\italic, upright italic,\\small-caps,\\oblique small-caps\tabularnewline
495 % & & bold & upright, oblique, italic\tabularnewline
496 % & & demi & upright, oblique\tabularnewline\midrule
497 % \fgroup{clms}, \fgroup{clm2s}, \fgroup{clmjs}, \fgroup{clm2js} & standard & normal & upright, oblique\tabularnewline
498 % & & bold & upright, oblique\tabularnewline\cmidrule{2-4}
499 % & condensed & demi & upright, oblique\tabularnewline\midrule
500 % \fgroup{clmt}, \fgroup{clm2t}, \fgroup{clmjt}, \fgroup{clm2jt} & standard & normal & upright, oblique,\\italic, small-caps,\\oblique small-caps\tabularnewline
501 % & & bold & upright, oblique\tabularnewline
502 % & & light & upright, oblique\tabularnewline\cmidrule{2-4}
503 % & condensed & light & upright, oblique\tabularnewline\midrule
504 % \fgroup{clmv}, \fgroup{clm2v}, \fgroup{clmjv}, \fgroup{clm2jv} & standard & normal & upright, oblique\tabularnewline
505 % & & bold & upright, oblique\tabularnewline
506 % & & light & upright, oblique\tabularnewline\midrule
507 % \fgroup{clmqs}, \fgroup{clm2qs}, \fgroup{clmjqs}, \fgroup{clm2jqs} & & normal & upright, oblique\tabularnewline
508 % & & bold & upright, oblique\tabularnewline\midrule
509 % \fgroup{clmd}, \fgroup{clm2d}, \fgroup{clmdj}, \fgroup{clm2dj} & standard & normal & upright, oblique\tabularnewline
510 % & & bold & upright, oblique\tabularnewline
511 % \bottomrule
512 % \end{tabular}
513 % \end{table}
514 %
515 % Where applicable, oblique small-caps are substituted for italic small-caps; italic or oblique for upright italic; oblique for italic; and upright for small-caps.
516 % This means that some of the commands described in \fref{sec:commands} will fail silently to avoid undue clutter in the log file.
517 %
518 % \section{The \LaTeX\ package}\label{sec:support}
519 %
520 % To load this package, write \verb|\usepackage{cfr-lm}| in your document preamble.
521 % By default, the package will define \fgroup{clm2j}, \fgroup{clm2js} and \fgroup{clm2jv} as the default roman/serif, sans and typewriter fonts but you can control the choice by passing options to the package.
522 %
523 % \begin{table}
524 % \centering
525 % \begin{threeparttable}
526 % \caption{Package options}\label{tab:opts}
527 % \begin{tabular} {>{\ttfamily}llll}
528 % \toprule
529 % \textbf{key} & \textbf{affects} & \textbf{option} & \textbf{possible values} \tabularnewline\midrule
530 % rm & \texttt{oldstyle}/\texttt{osf}\tnotex{tn:lo} & \texttt{true}, \texttt{false} & default roman/serif figure style \tabularnewline
531 % & \texttt{lining}/\texttt{lf}\tnotex{tn:lo} & & \tabularnewline
532 % & \texttt{proportional}/\texttt{prop} & & \tabularnewline
533 % & \texttt{tabular}/\texttt{tab} & & \tabularnewline\midrule
534 % sf & \texttt{oldstyle}/\texttt{osf}\tnotex{tn:lo} & \texttt{true}, \texttt{false} & default sans figure style \tabularnewline
535 % & \texttt{lining}/\texttt{lf}\tnotex{tn:lo} & & \tabularnewline
536 % & \texttt{proportional}/\texttt{prop} & & \tabularnewline
537 % & \texttt{tabular}/\texttt{tab} & & \tabularnewline\midrule
538 % tt & \texttt{oldstyle}/\texttt{osf}\tnotex{tn:lo} & \texttt{true}, \texttt{false} & default typewriter figure style \tabularnewline
539 % & \texttt{lining}/\texttt{lf}\tnotex{tn:lo} & & \tabularnewline
540 % & \texttt{proportional}/\texttt{prop} & & \tabularnewline
541 % & \texttt{tabular}/\texttt{tab} & & \tabularnewline\cmidrule{2-4}
542 % & \texttt{monowidth}/\texttt{mono} & \texttt{true}, \texttt{false} & default typewriter family \tabularnewline
543 % & \texttt{variable}/\texttt{var} & & \tabularnewline\midrule
544 % qt & --- & \texttt{true}, \texttt{false} & nothing unless \verb|\qtfont| is defined \tabularnewline\midrule
545 % nomaths & maths & \texttt{true}, \texttt{false} & default is \texttt{false} \tabularnewline
546 % nomath & & & \tabularnewline
547 % \bottomrule
548 % \end{tabular}
549 % \begin{tablenotes}
550 % \item\label{tn:lo}Lining figures have zero depth i.e.~they stand with their bottoms on the current baseline.
551 % Oldstyle (‘hanging’) figures may have depth as well as height i.e.~they sit on the baseline with their bottoms hanging over the edge.
552 % These options are mutually exclusive and exhaustive.
553 % \item\label{tn:pt}Proportional figures have variable widths, depending on the widths of the digits e.g.~‘1’ is typically narrower than ‘6’.
554 % Tabular figures have standard, constant width i.e.~‘1’ is as wide as ‘6’, so there is typically more space on each side of ‘1’ than ‘6’.
555 % These options are mutually exclusive and exhaustive.
556 % \end{tablenotes}
557 % \end{threeparttable}
558 % \end{table}
559 % The package recognises five keys summarised in \fref{tab:opts} and detailed below.
560 % Three of these keys take various options which take the value true or false.
561 % These control the default style of figures to be used for each of roman/serif, sans and typewriter text, and whether variable or monowidth typewriter will be used by default.
562 %
563 % \DescribeOpt{rm}\val{key-value list}
564 %
565 % Sets the default style of figures for roman (serif).
566 %
567 % \DescribeOpt{rm/oldstyle}\vals{true,false}
568 % \DescribeOpt{rm/osf}
569 %
570 % Whether to use oldstyle/hanging figures by default.
571 %
572 % \DescribeOpt{rm/lining}\vals{true,false}
573 % \DescribeOpt{rm/lf}
574 %
575 % Whether to use lining figures by default.
576 %
577 % Note that \texttt{oldstyle} and \texttt{osf} are equivalent, while \texttt{lining} or \texttt{lf} sets the same option but inverted.
578 % That is, the following are equivalent:
579 % \iffalse
580 %<*verb>
581 % \fi
582 % \begin{verbatim}
583 rm={lining=true}
584 rm={lining}
585 rm={oldstyle=false}
586 rm={osf=false}
587 % \end{verbatim}
588 % \iffalse
589 %</verb>
590 % \fi
591 %
592 % \DescribeOpt{rm/proportional}\vals{true,false}
593 % \DescribeOpt{rm/prop}
594 %
595 % Whether to use proportional figures by default.
596 %
597 % \DescribeOpt{rm/tabular}\vals{true,false}
598 % \DescribeOpt{rm/tab}
599 %
600 % Whether to use tabular figures by default.
601 %
602 % Note that \texttt{proportional} and \texttt{prop} are equivalent, while \texttt{tabular} or \texttt{tab} set the same option but inverted.
603 % That is, the following are equivalent:
604 % \iffalse
605 %<*verb>
606 % \fi
607 % \begin{verbatim}
608 rm={tabular=true}
609 rm={tabular}
610 rm={tab=true}
611 rm={tab}
612 rm={proportional=false}
613 rm={prop=false}
614 % \end{verbatim}
615 % \iffalse
616 %</verb>
617 % \fi
618 %
619 % \DescribeOpt{sf}\val{key-value list}
620 %
621 % Set default figure style for sans serif.
622 %
623 % The available keys and values are identical to those for serif explained above.
624 %
625 % \DescribeOpt{sf/oldstyle}\vals{true,false}
626 % \DescribeOpt{sf/osf}
627 %
628 % Whether to use oldstyle/hanging figures by default.
629 %
630 % \DescribeOpt{sf/lining}\vals{true,false}
631 % \DescribeOpt{sf/lf}
632 %
633 % Whether to use lining figures by default.
634 %
635 % \DescribeOpt{sf/proportional}\vals{true,false}
636 % \DescribeOpt{sf/prop}
637 %
638 % Whether to use proportional figures by default.
639 %
640 % \DescribeOpt{sf/tabular}\vals{true,false}
641 % \DescribeOpt{sf/tab}
642 %
643 % Whether to use tabular figures by default.
644 %
645 % The available keys and values are identical to those for serif explained above.
646 %
647 % \DescribeOpt{tt}\val{key-value list}
648 %
649 % Set defaults for typewriter.
650 % These determine not only the default figure style, but also the default style of other characters.
651 %
652 % The available keys and values for setting the default figure style are identical to those for serif explained above.
653 % The additional keys for choosing between variable- and mono-width typewriter are explained below.
654 %
655 % \DescribeOpt{tt/oldstyle}\vals{true,false}
656 % \DescribeOpt{tt/osf}
657 %
658 % Whether to use oldstyle/hanging figures by default.
659 %
660 % \DescribeOpt{tt/lining}\vals{true,false}
661 % \DescribeOpt{tt/lf}
662 %
663 % Whether to use lining figures by default.
664 %
665 % \DescribeOpt{tt/proportional}\vals{true,false}
666 % \DescribeOpt{tt/prop}
667 %
668 % Whether to use proportional figures by default.
669 %
670 % \DescribeOpt{tt/tabular}\vals{true,false}
671 % \DescribeOpt{tt/tab}
672 %
673 % Whether to use tabular figures by default.
674 %
675 % \DescribeOpt{tt/monowidth}\vals{true,false}
676 % \DescribeOpt{tt/mono}
677 %
678 % Whether to use mono-width typewriter by default.
679 %
680 % \DescribeOpt{tt/variable}\vals{true,false}
681 % \DescribeOpt{tt/var}
682 %
683 % Whether to use variable-width typewriter by default.
684 %
685 % Note that \texttt{variable} and \texttt{var} are equivalent, while \texttt{monowidth} or \texttt{mono} set the same option but inverted.
686 % That is, the following are equivalent:
687 % \iffalse
688 %<*verb>
689 % \fi
690 % \begin{verbatim}
691 tt={monowidth=true}
692 tt={monowidth}
693 tt={mono=true}
694 tt={mono}
695 tt={variable=false}
696 tt={var=false}
697 % \end{verbatim}
698 % \iffalse
699 %</verb>
700 % \fi
701 %
702 % \DescribeOpt{qt}\vals{true,false}
703 % The fourth key itself takes a true or false value but has no effect unless \verb|\qtfont| is already defined\footnote{This key is designed to control use of LM Sans Quotation in conjunction with prior redefinitions of appropriate environments.
704 % Since this is not the sort of redefining a font package should be doing, the option will have absolutely no effect unless you do some prior work to make use of it.
705 % In any case, the font can still be accessed directly using the commands explained in \fref{sec:commands}.}.
706 %
707 % \DescribeOpt{nomaths}\vals{true,false}
708 % \DescribeOpt{nomath}
709 %
710 % Whether to forgo configuration of maths fonts.
711 % Setting this option \texttt{true} or giving it without a value skips that setup.
712 % If the option is not used, the default is to configure the maths fonts i.e.~the default is \texttt{false}.
713 %
714 % The default value in all cases is \verb|true| if an option is given without a value.
715 % For example, \verb|rm={oldstyle=true}| is equivalent to \verb|rm={oldstyle}|.
716 % Many of the options are provided for ease of use but are essentially equivalent.
717 % For example, \verb|proportional=false| is equivalent to \verb|tabular=true|.
718 % This means that the following two commands are equivalent:
719 % \iffalse
720 %<*verb>
721 % \fi
722 % \begin{verbatim}
723 \usepackage[%
724 rm={lining=true,tabular=false},%
725 sf={oldstyle,proportional},%
726 tt={oldstyle=false,proportional=true,monowidth},%
727 nomaths%
728 ]{cfr-lm}
729
730 \usepackage[%
731 rm={oldstyle=false, proportional=true},%
732 sf={lining=false,tabular=false},%
733 tt={lining,proportional,variable=false},%
734 nomaths=true
735 ]{cfr-lm}
736 % \end{verbatim}
737 % \iffalse
738 %</verb>
739 % \fi
740 %
741 % Loading the package without options is equivalent to:
742 % \iffalse
743 %<*verb>
744 % \fi
745 % \begin{verbatim}
746 \usepackage[%
747 rm={oldstyle=true,proportional=true},%
748 sf={oldstyle=true,proportional=true},%
749 tt={oldstyle=true,proportional=true,variable=true},%
750 qt=false,%
751 nomaths=false%
752 ]{cfr-lm}
753 % \end{verbatim}
754 % \iffalse
755 %</verb>
756 % \fi
757 % That is, by default, oldstyle, proportional figures for roman, sans and typewriter text and variable width typewriter will be selected and fonts for mathematics will be configured as for the \lpack{lmodern} package.
758 %
759 % \section{Additional font commands}\label{sec:commands}
760 %
761 % \lpack{cfr-lm}\ loads \lpack{nfssext-cfr}\ which is an extension and modification of the package \lpack{nfssext}\ supplied by Philipp Lehman as part of The Font Installation Guide.
762 % The file extends the font selection commands to facilitate access to various font features.
763 % Both the original and the extension are designed for use with a wide range of fonts.
764 % For this reason, only a subset of the additional commands are relevant to any particular font support package.
765 % Those relevant to \lpack{cfr-lm}\ are described below.
766 %
767 % \subsection{nfssext-cfr}
768 %
769 % These commands are available when \lpack{cfr-lm}\ is loaded.
770 % If for some reason you wish to make them available at any other time, use \verb|\usepackage{nfssext-cfr}| in your document preamble.
771 %
772 % Note that only combinations supported by the fonts will appear as expected because the commands will only have an effect if the active font offers the relevant variant.
773 % For example, trying to switch to a condensed width will have no effect if any of the LM Roman fonts is active.
774 % This means that only a subset of combinations are possible.
775 % In other cases, one of two things should happen.
776 % First, a ‘silent’ substitution may be made.
777 % For example, if you request proportional figures while using monowidth typewriter, tabular figures will be silently substituted.
778 % Second, console messages may warn you that the combination you tried to use isn't available.
779 % If you request titling while using monowidth typewriter, a console message will warn you it was unavailable.
780 % The file \path{clm-test.tex} gives an idea of what's possible and also serves as an example illustrating some of the commands provided by \lpack{cfr-lm} and other ways of accessing the fonts..
781 %
782 % \subsubsection{Widths}
783 %
784 % \begin{table}
785 % \centering
786 % \caption{Width macros}\label{tab:widths}
787 % \begin{tabular}{lll}
788 % \toprule
789 % \textbf{width} & \textbf{width command} & \textbf{text command}\\\midrule
790 % standard & \verb|\regwidth| & \verb|\textrw{}|\\
791 % condensed & \verb|\cdwidth| & \verb|\textcd{}|\\
792 % \bottomrule
793 % \end{tabular}
794 % \end{table}
795 % \DescribeMacro{\regwidth}
796 % \DescribeMacro{\textrw}
797 % \DescribeMacro{\cdwidth}
798 % \DescribeMacro{\textcd}
799 % Additional macros for changing width are listed in \fref{tab:widths}.
800 % To switch to an condensed width until further notice, for example, you could use \verb|\cdwidth|.
801 % Or use \texttt{\cs{texttm}\{\cs{textlg}\{\cs{textcd}\{Hello, world!\}\}\}} to typeset just the text \texttm{\textlg{\textcd{Hello, world!}}} in light-weight condensed monowidth typewriter.
802 %
803 % Note that the easiest way to switch to semi-bold condensed sans is to resort to using \verb|\fontseries| directly.
804 % \iffalse
805 %<*verb>
806 % \fi
807 % \begin{verbatim}
808 \textsf{\fontseries{sbc}\selectfont Semi-bold condensed sans}
809 % \end{verbatim}
810 % \iffalse
811 %</verb>
812 % \fi
813 % produces
814 % \begin{center}
815 % \textsf{\fontseries{sbc}\selectfont Semi-bold condensed sans}
816 % \end{center}
817 % The problem with using the commands provided by \lpack{nfssext-cfr} is that they are designed, like standard commands such as \verb|\scshape|, to change \emph{one} aspect of the font at a time\footnote{%
818 % This is, of course, by design.
819 % The problem with using standard commands such as \cs{bfseries} is that they are designed to change \emph{two} aspects of the font at a time i.e.~width and weight.%
820 % }.
821 % Issuing \verb|\textsf{\textcd{\textsb{}}}| and \verb|\textsf{\textsb{\textcd{}}}| are equivalent to \verb|\textsf{}| because neither standard-width semi-bold nor condensed normal-weight sans is available.
822 % The problem is that each command is processed independently, so both switches fail.
823 %
824 % Similar considerations in the case of light condensed monowidth typewriter mean that the \emph{order} in which commands are issued is critical.
825 % In this case, a light-weight standard-width font is available, but no normal-weight condensed font is provided.
826 % Consequently,
827 % \iffalse
828 %<*verb>
829 % \fi
830 % \begin{verbatim}
831 \texttm{\textlg{\textcd{a successful switch}}}
832 % \end{verbatim}
833 % \iffalse
834 %</verb>
835 % \fi
836 % will produce \texttm{\textlg{\textcd{a successful switch}}} while
837 % \iffalse
838 %<*verb>
839 % \fi
840 % \begin{verbatim}
841 \texttm{\textcd{\textlg{an unsuccessful switch}}}
842 % \end{verbatim}
843 % \iffalse
844 %</verb>
845 % \fi
846 % will result in \texttm{\textcd{\textlg{an unsuccessful switch}}} and a warning in the log.
847 % In this case, the latter command is equivalent to \verb|\texttm{\textlg{}}| because \verb|\textcd{}| can only succeed \emph{after} \verb|\textlg{}|.
848 %
849 % \subsubsection{Weights}
850 %
851 % \begin{table}
852 % \centering
853 % \caption{Weight macros}\label{tab:weights}
854 % \begin{tabular}{lll}
855 % \toprule
856 % \textbf{weight} & \textbf{weight command} & \textbf{text command}\\\midrule
857 % light & \verb|\lgweight| & \verb|\textlg{}|\\
858 % semi-bold & \verb|\sbweight| & \verb|\textsb{}|\\
859 % \bottomrule
860 % \end{tabular}
861 % \end{table}
862 % Additional macros for changing the font weight are given in \fref{tab:weights}.
863 % \iffalse
864 %<*verb>
865 % \fi
866 % \begin{verbatim}
867 \textsb{Semi-bold and \textsl{semi-bold oblique} serif}\\
868 \texttt{\textlg{Light typewriter}}
869 % \end{verbatim}
870 % \iffalse
871 %</verb>
872 % \fi
873 % produces:
874 % \begin{center}
875 % \textsb{Semi-bold and \textsl{semi-bold oblique} serif}\\
876 % \texttt{\textlg{Light typewriter}}
877 % \end{center}
878 %
879 % \subsubsection{Shapes}
880 %
881 % \begin{table}
882 % \centering
883 % \begin{threeparttable}
884 % \caption{Shape macros}\label{tab:shapes}
885 % \begin{tabular}{lll}
886 % \toprule
887 % \textbf{shape} & \textbf{shape command} & \textbf{text command}\\\midrule
888 % oblique small-caps & \verb|\slshape\scshape|\tnotex{tn:all} & \verb|\textsl{\textsc{}}|\tnotex{tn:all} \\
889 % & \verb|\scshape\slshape|\tnotex{tn:all} & \verb|\textsc{\textsl{}}|\tnotex{tn:all} \\
890 % & \verb|\itshape\scshape|\tnotex{tn:all}\tnotex{tn:scsl} & \verb|\textit{\textsc{}}|\tnotex{tn:all}\tnotex{tn:scsl} \\
891 % & \verb|\scshape\itshape|\tnotex{tn:all}\tnotex{tn:scsl} & \verb|\textsc{\textit{}}|\tnotex{tn:all}\tnotex{tn:scsl} \\
892 % & \verb|\sishape|\tnotex{tn:scsl} & \verb|\textsi{}|\tnotex{tn:scsl} \\
893 % upright italic & \verb|\uishape| & \verb|\textui{}|\\
894 % \bottomrule
895 % \end{tabular}
896 % \begin{tablenotes}
897 % \item \label{tn:all}Supported for all versions of \LaTeXe{}.
898 % \item\label{tn:scsl} Actually the command switches to \emph{italic} small-caps but since LM does not offer this, oblique small-caps are substituted.
899 % Unlike their upper/lower-case cousins, small-caps generally look the same whether the font designer calls them ‘italic small-caps’ or ‘pblique small-caps’, so the substitution is in no way second-best in this case.
900 % \end{tablenotes}
901 % \end{threeparttable}
902 % \end{table}
903 % \DescribeMacro{\sishape}
904 % \DescribeMacro{\textsi}
905 % \DescribeMacro{\uishape}
906 % \DescribeMacro{\textui}
907 % Extended shape-changing macros are listed in \fref{tab:shapes}.
908 % \iffalse
909 %<*verb>
910 % \fi
911 % \begin{verbatim}
912 \textsc{\textsl{I \emph{always} avoid a kangaroo.}}\\
913 \textsc{\textit{I \emph{always} avoid a kangaroo.}}\\
914 \textsl{\textsc{I \emph{always} avoid a kangaroo.}}\\
915 \textit{\textsc{I \emph{always} avoid a kangaroo.}}\\
916 \textsi{I \emph{always} avoid a kangaroo.}\\
917 \textui{Nobody is despised who can manage a crocodile.}
918 % \end{verbatim}
919 % \iffalse
920 %</verb>
921 % \fi
922 % produces:
923 % \begin{center}
924 % \textsc{\textsl{I \emph{always} avoid a kangaroo.}}\\
925 % \textsc{\textit{I \emph{always} avoid a kangaroo.}}\\
926 % \textsl{\textsc{I \emph{always} avoid a kangaroo.}}\\
927 % \textit{\textsc{I \emph{always} avoid a kangaroo.}}\\
928 % \textsi{I \emph{always} avoid a kangaroo.}\\
929 % \textui{Nobody is despised who can manage a crocodile.}
930 % \end{center}
931 % if oblique small-caps/upright italic is available for the active font.
932 % If it is not, another shape will be substituted.
933 % \iffalse
934 %<*verb>
935 % \fi
936 % \begin{verbatim}
937 \textsf{\textsc{\slshape The bit about the kangaroo was from Lewis Carroll.}}\\
938 \textbf{\textui{Sylvia snorkeled snappily.}}
939 % \end{verbatim}
940 % \iffalse
941 %</verb>
942 % \fi
943 % produces only:
944 % \begin{center}
945 % \textsf{\textsc{\slshape The bit about the kangaroo was from Lewis Carroll.}}\\
946 % \textbf{\textui{Sylvia snorkeled snappily.}}
947 % \end{center}
948 % where upright sans and bold italic are substituted for italic small-caps sans and bold upright italic since neither is available.
949 % Note that the first substitution produces a warning in the log while the second is done ‘silently’.
950 %
951 % \subsubsection{Figures}
952 %
953 % \begin{table}
954 % \centering
955 % \begin{threeparttable}
956 % \caption{Macros for changing the style of figures.}\label{tab:figs}
957 % \begin{tabular}{lll}
958 % \toprule
959 % \textbf{figure style} & \textbf{style command} & \textbf{text command}\\\midrule
960 % lining\tnotex{tn:l} & \verb|\lstyle| & \verb|\textl{}|\\
961 % oldstyle\tnotex{tn:o} & \verb|\ostyle| & \verb|\texto{}|\\
962 % proportional\tnotex{tn:p} & \verb|\pstyle| & \verb|\textp{}|\\
963 % tabular\tnotex{tn:t} & \verb|\tstyle| & \verb|\textt{}|\\
964 % proportional\tnotex{tn:p}, lining\tnotex{tn:l} & \verb|\plstyle| & \verb|\textpl{}|\\
965 % proportional\tnotex{tn:p}, oldstyle\tnotex{tn:o} & \verb|\postyle| & \verb|\textpo{}|\\
966 % tabular\tnotex{tn:t}, lining\tnotex{tn:l} & \verb|\tlstyle| & \verb|\texttl{}|\\
967 % tabular\tnotex{tn:t}, oldstyle\tnotex{tn:o} & \verb|\tostyle| & \verb|\textto{}|\\
968 % \bottomrule
969 % \end{tabular}
970 % \begin{tablenotes}
971 % \item\label{tn:l}\emph{l}ining figures stand on the current baseline: \textl{0123456789}.
972 % They are generally preferable for use in tabulars, mathematics, code listings, diagrams etc.
973 % Contemporary usage also favours them in text, even though traditional typography would frown on this.
974 % \item\label{tn:o}\emph{o}ldstyle figures sit on or hang from the current baseline: \texto{0123456789}.
975 % They are generally considered more suitable for use in text than lining figure.
976 % \item\label{tn:p}\emph{p}roportional figures take up space in proportion to the actual width of the digit: \textp{0123456789}.
977 % These are generally preferable in most non-specialised contexts.
978 % \item\label{tn:t}\emph{t}abular figures each take up a standard width, regardless of the width of the digit: \textt{0123456789}.
979 % These are better in tabulars where columns of digits should be aligned, code listings set in monowidth typewriter (as is usual) etc.
980 % \end{tablenotes}
981 % \end{threeparttable}
982 % \end{table}
983 %
984 % Commands are provided to change either one or both aspects of digits' style (\fref{tab:figs}.
985 % \DescribeMacro{\lstyle}
986 % \DescribeMacro{\ostyle}
987 % \DescribeMacro{\pstyle}
988 % \DescribeMacro{\tstyle}
989 % The macros all use standard abbreviations and have predictable forms.
990 % Any macro of the form \verb|\|\meta{$\theta$}\verb|style| switches a single aspect of the current digits' style.
991 % \meta{$\theta$} may be one of \verb|l|, \verb|o|, \verb|p| or \verb|t| which represent \emph{l}ining, \emph{o}ldstyle, \emph{p}roportional and \emph{tabular} respectively.
992 %
993 % \DescribeMacro{\textl}
994 % \DescribeMacro{\texto}
995 % \DescribeMacro{\textp}
996 % \DescribeMacro{\textt}
997 % The corresponding text commands have the format \verb|\text|\meta{$\theta$}, where \meta{$\theta$} may take the same values as before.
998 %
999 % In this document, proportional lining figures are used by default for roman/serif and sans, while tabular lining are used for typewriter:
1000 % \begin{center}
1001 % 0123456789\\
1002 % \textsf{0123456789}\\
1003 % \texttt{0123456789}
1004 % \end{center}
1005 % but oldstyle figures are also accessible.
1006 % For example:
1007 % \iffalse
1008 %<*verb>
1009 % \fi
1010 % \begin{verbatim}
1011 \texto{0123456789}\\
1012 \textsf{\texto{0123456789}}\\
1013 \texttt{\texto{0123456789}}
1014 % \end{verbatim}
1015 % \iffalse
1016 %</verb>
1017 % \fi
1018 % produces:
1019 % \begin{center}
1020 % \texto{0123456789}\\
1021 % \textsf{\texto{0123456789}}\\
1022 % \texttt{\texto{0123456789}}
1023 % \end{center}
1024 % First, note that it is necessary to reissue \verb|\texto{}| after switching to sans or typewriter text.
1025 % This is because both switching to sans or typewriter and switching to another figure style involves a switch of font family\footnote{Compare a switch in width or weight which does not typically involve a change of active font family.}.
1026 %
1027 % Second, note that the output shows \emph{proportional} oldstyle figures for romand and sans, but \emph{tabular} oldstyle for typewriter, because the command \verb|\texto{}| only changes \emph{one} aspect of the style.
1028 % Because proportional figures were already active for serif and sans, the command switched to proportional oldstyle figures in the first two cases.
1029 % Contrariwise, since tabular figures were active for typewriter, the same command switched to tabular oldstyle figures in the third case.
1030 %
1031 % In many cases, it is convenient to switch or ensure both aspects of digits together e.g.~to ensure tabular lining figures are used in tabulars.
1032 % \DescribeMacro{\plstyle}
1033 % \DescribeMacro{\postyle}
1034 % \DescribeMacro{\tlstyle}
1035 % \DescribeMacro{\tostyle}
1036 % Four macros are provided for this purpose.
1037 % These have the form \verb|\|\meta{$\theta$}\meta{$\beta$}\verb|style|, where \meta{$\theta$} may be either \verb|p| or \verb|t| and \meta{$\beta$} may be either \verb|l| or \verb|o|.
1038 %
1039 % \DescribeMacro{\textpl}
1040 % \DescribeMacro{\textpo}
1041 % \DescribeMacro{\texttl}
1042 % \DescribeMacro{\textto}
1043 % The corresponding text commands have the format \verb|\text|\meta{$\theta$}\meta{$\beta$}.
1044 %
1045
1046 % Taking roman as an example, tabular oldstyle digits may be accessed in several ways:
1047 % \iffalse
1048 %<*verb>
1049 % \fi
1050 % \begin{verbatim}
1051 \texto{\textt{0123456789}}\\
1052 \textt{\texto{0123456789}}\\
1053 \textto{0123456789}
1054 % \end{verbatim}
1055 % \iffalse
1056 %</verb>
1057 % \fi
1058 % will produce three identical lines of figures:
1059 % \begin{center}
1060 % \texto{\textt{0123456789}}\\
1061 % \textt{\texto{0123456789}}\\
1062 % \textto{0123456789}
1063 % \end{center}
1064 %
1065 % \subsubsection{Typewriter variants}
1066 %
1067 % \begin{table}
1068 % \centering
1069 % \caption{Macros for switching to mono-/variable-width typewriter}\label{tab:mvtt}
1070 % \begin{tabular}{lll}
1071 % \toprule
1072 % \textbf{typewriter font} & \textbf{style command} & \textbf{text command}\\\midrule
1073 % variable typewriter & \verb|\tvstyle| & \verb|\texttv{}|\\
1074 % monowidth typewriter & \verb|\tmstyle| & \verb|\texttm{}|\\
1075 % \bottomrule
1076 % \end{tabular}
1077 % \end{table}
1078 % \DescribeMacro{\texttv}
1079 % \DescribeMacro{\tvstyle}
1080 % \DescribeMacro{\texttm}
1081 % \DescribeMacro{\tmstyle}
1082 % In addition to the package options to specify either LM Mono or LM Mono Prop as default (i.e.\ either monowidth or variable-width typewriter), it is possible to access the non-default font using the commands in \fref{tab:mvtt}.
1083 %
1084 % Mono-width is default in this document so
1085 % \iffalse
1086 %<*verb>
1087 % \fi
1088 % \begin{verbatim}
1089 \texttt{This is monowidth width typewriter.}\\
1090 \texttv{This is variable typewriter} \texttm{except this bit at the end.}
1091 % \end{verbatim}
1092 % \iffalse
1093 %</verb>
1094 % \fi
1095 % produces:
1096 % \begin{center}
1097 % \texttt{This is monowidth width typewriter.}\\
1098 % \texttv{This is variable typewriter} \texttm{except this bit at the end.}
1099 % \end{center}
1100 %
1101 % \subsubsection{Latin Modern Sans Quotation}
1102 %
1103 % \begin{table}
1104 % \centering
1105 % \caption{LM Sans Quotation}\label{tab:qt}
1106 % \begin{tabular}{lll}
1107 % \toprule
1108 % sans quotation & \verb|\qtstyle| & \verb|\textqt{}|\\
1109 % \bottomrule
1110 % \end{tabular}
1111 % \end{table}
1112 % \DescribeMacro{\textqt}
1113 % \DescribeMacro{\qtstyle}
1114 % Latin Modern Sans Quotation can be accessed using the macros listed in \fref{tab:qt}.
1115 %
1116 % For example, \verb|\textqt{some text in the font}| will produce \textqt{some text in the font}.
1117 %
1118 % \subsubsection{Latin Modern Roman Dunhill}
1119 %
1120 % \begin{table}
1121 % \centering
1122 % \caption{Latin Modern Roman Dunhill}\label{tab:dunhill}
1123 % \begin{tabular}{lll}
1124 % \toprule
1125 % \textbf{style} & \textbf{style command} & \textbf{text command} \\\midrule
1126 % titling & \verb|\tistyle| & \verb|\textti{}|\\
1127 % \bottomrule
1128 % \end{tabular}
1129 % \end{table}
1130 %
1131 % \DescribeMacro{\textti}
1132 % \DescribeMacro{\tistyle}
1133 % Latin Modern Roman Dunhill can be accessed using the macros listed in \fref{tab:dunhill}.
1134 %
1135 % To ensure the command succeeds independently of the currently active font, you may wish to issue \verb|\normalfont| first.
1136 % For example:
1137 % \iffalse
1138 %<*verb>
1139 % \fi
1140 % \begin{verbatim}
1141 \normalfont\textti{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}\\
1142 \textti{\textsl{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}}
1143 % \end{verbatim}
1144 % \iffalse
1145 %</verb>
1146 % \fi
1147 % produces:
1148 % \begin{center}
1149 % \normalfont\textti{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}\\
1150 % \textti{\textsl{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}}
1151 % \end{center}
1152 %
1153 % \subsection{zeroslash}
1154 %
1155 % \DescribeMacro{\zeroslash}
1156 % \lpack{cfr-lm}\ provides one additional command.
1157 % \verb|\zeroslash| will produce the \zeroslash\ character from the current font.
1158 %
1159 % \section{Microtype}\label{sec:mt}
1160 %
1161 % \changes{v1.4}{2014/03/04}{Use family-specific settings for \lpack{microtype}.}
1162 % Support for family-specific microtypographical features supported by \lpack{microtype}.
1163 % This code will do nothing if you do not load \lpack{microtype}.
1164 % If you do use these features, all regular roman and sans families, together with the sans quotation font, will use the settings for Computer Modern Roman.
1165 % The fallback generic settings will continue to be applied to the typewriter and ‘dunhill’ families.
1166 %
1167 %
1168 % \appendix
1169 %
1170 % \DeclareFixedFootnote \fnupdmap {%
1171 % See, for example, \href{https://tex.stackexchange.com/q/255709/}{Why shouldn't I use \texttt{getnonfreefonts} to install additional fonts? Why shouldn't I use \texttt{updmap} when installing or removing fonts?}.}
1172 %
1173 % \section{Installation}
1174 %
1175 % \textbf{The vast majority of users should IGNORE this section entirely.}
1176 % \lpack{cfr-lm} is included in all major \TeX{} distributions and should be installed as part of your \TeX{} installation.
1177 % Installing the package yourself should be done only as a last resort or an educational exercise.
1178 %
1179 % Note, in particular, that this version of \lpack{cfr-lm} should \textbf{not} be installed on older \LaTeX{} kernels as it is designed to work with the (New) New Font Selection Scheme, as updated around 2020\footnote{%
1180 % The package should\texttrademark{} work fine on older kernels, but the new version is bound to have some bugs and there is no reason to use it on these systems.
1181 % The sole purpose of the update is to accommodate the breaking changes made to font selection.
1182 % If you don't have those changes installed locally, nothing should be broken and the newer version of \lpack{cfr-lm} offers no advantage at all.%
1183 % }.
1184 % Use the initial release of \lpack{cfr-lm} if your installation of \LaTeX{} predates those changes.
1185 %
1186 % Installation varies with \TeX\ distribution so you should consult the documentation which came with your system for details.
1187 % In most cases, you will need to perform three steps:
1188 % \begin{enumerate}
1189 % \item move or copy the package files to appropriate locations on your system;
1190 % \item refresh the \TeX\ database;
1191 % \item incorporate the included map file fragments for the different engines your distribution supports.
1192 % \end{enumerate}
1193 %
1194 % The following instructions assume you are using \TeX~Live\footnote{This includes Mac\TeX\ for OS X users.}.
1195 % They should not be too difficult to adapt if you are using a different distribution.
1196 %
1197 % \subsection{Install the files}
1198 %
1199 % The files should be installed in one of two locations: \emph{either} the local system-wide \TeX\ tree \emph{or} your personal tree.
1200 % If the package is installed system-wide, all users will have access to it.
1201 % On the other hand, you may need privileges you do not have to do this in which case you must use your personal tree.
1202 %
1203 % \textbf{There are serious disadvantages to installing the package into your personal tree.
1204 % In particular, these pertain to use of \verb|updmap --user| rather than \verb|updmap --sys|.
1205 % If you are not aware of these disadvantages, please ensure you are fully cognisant of them before proceeding\fnupdmap.
1206 % Merely removing the package from your personal tree at a later point will \emph{not} undo the effects.}
1207 %
1208 % For \TeX~Live, \verb|kpsewhich -var-value TEXMFLOCAL| will return the path to the local tree and \verb|kpsewhich -var-value TEXMFHOME| the path to your personal tree.
1209 % The package already includes a hierarchy of files to help you install them correctly.
1210 % Ignoring any symbolic link in the top directory, move or copy the files in \path{doc}, \path{fonts} and \path{tex} into the appropriate locations.
1211 % If the tree is initially empty, you can simply move or copy the directories in as they are.
1212 % If the tree already contains other packages, you may need to merge the package hierarchy with the pre-existing one.
1213 % For example, if you already have a \path{doc/fonts} directory, move or copy \path{doc/fonts/cfr-lm} into \path{doc/fonts/}.
1214 % If you have a \path{doc} directory but not a \path{doc/fonts}, move \path{doc/fonts} into \path{doc/}.
1215 %
1216 % \subsection{Refresh the database}
1217 %
1218 % Again, this depends on your distribution. For \TeX~Live, \verb|mktexlsr <path to directory>| for the directory you used in the first step should do the trick.
1219 % Note that you \emph{may} be able to skip this step if you install into your personal tree.
1220 % Whether this is so depends on the details of your set-up.
1221 % As a test, move to a directory containing none of the package files and try \verb|kpsewhich cfr-lm.sty|.
1222 % If the file is found, you don't need to refresh the database; otherwise use \verb|mktexlsr| and then try again.
1223 %
1224 % \subsection{Install the map fragments}
1225 %
1226 % For \TeX~Live, there are at least two ways of doing this.
1227 % The second method varies according to the version of \TeX~Live and instructions are provided accordingly.
1228 % Both methods depend on whether you installed into \verb|TEXMFLOCAL| or \verb|TEXMFHOME|.
1229 % If you installed system-wide, the choice is relatively straightforward --- it obviously makes sense in that case to update the font maps system-wide as well.
1230 %
1231 % If, on the other hand, you installed into your personal tree, the matter is more complex.
1232 % On the one hand, updating the system-wide maps may create difficulties or confusion for other users because while the map files will list the fonts as available, they will not be able to access them.
1233 % On the other hand, maintaining personal font map files can produce difficulties and confusions of its own\fnupdmap.
1234 % Whether it is to be preferred or not is a complex issue and depends on the details of your \TeX\ distribution, local configuration and personal preference.
1235 % The one clear case is that in which you install into your personal tree because you lack the privileges needed to install system-wide.
1236 % In that case, you have no choice but to maintain personal font map files or forgo the use of all fonts not provided by your administrator.
1237 % Other cases are thankfully beyond the scope of this document.
1238 %
1239 % \subsubsection{Method 1}
1240 %
1241 % If you installed the package system-wide, use the command:
1242 % \iffalse
1243 % ^^A ateb Heiko Oberdiek: https://tex.stackexchange.com/a/172896/
1244 % ^^A dyw hwn ddim yn gweithio tu mewn i arg macro!
1245 % ^^A (*wrth gwrs* dyw e ddim yn weithio! wyt ti'n *hollol* dwp?)
1246 %<*verb>
1247 % \fi
1248 \begin{verbatim}
1249 updmap-sys --enable Map=clm.map
1250 \end{verbatim}
1251 % \iffalse
1252 %</verb>
1253 % \fi
1254 %
1255 % If you installed the package in your personal tree, you \emph{may} prefer\fnupdmap:
1256 % \iffalse
1257 %<*verb>
1258 % \fi
1259 \begin{verbatim}
1260 updmap --enable Map=clm.map
1261 \end{verbatim}
1262 % \iffalse
1263 %</verb>
1264 % \fi
1265 % Either way, \verb|updmap| will output a good deal of information after each incantation.
1266 % This is normal.
1267 % Just check that it does not end with an error and that it found the new map file.
1268 %
1269 % \subsubsection{Method 2: \TeX~Live 2008 (and probably earlier)}
1270 %
1271 % If you installed the package system-wide, use \verb|updmap-sys --edit|.
1272 %
1273 % If you installed into your personal tree, you \emph{may} prefer to use \verb|updmap --edit|\fnupdmap.
1274 %
1275 % Either way, a configuration file will be opened which you can edit.
1276 % Move to the end of the file and add the following line:
1277 % \iffalse
1278 %<*verb>
1279 % \fi
1280 \begin{verbatim}
1281 Map clm.map
1282 \end{verbatim}
1283 % \iffalse
1284 %</verb>
1285 % \fi
1286 % When you are done, save the file.
1287 % \verb|updmap| or \verb|updmap-sys| will produce a great deal of output if all is well.
1288 % Just check that it does not end with an error and that \path{clm.map} is found.
1289 %
1290 % \subsubsection{Method 2: \TeX~Live 2009 (and possibly later)}
1291 %
1292 % If you installed the package system-wide, edit or or create \path{TEXMFLOCAL/web2c/updmap-local.cfg} and add the following line to the end of the file:
1293 % \iffalse
1294 %<*verb>
1295 % \fi
1296 \begin{verbatim}
1297 Map clm.map
1298 \end{verbatim}
1299 % \iffalse
1300 %</verb>
1301 % \fi
1302 % Save the file and tell \verb|tlmgr| to merge in your addition using the command:
1303 % \iffalse
1304 %<*verb>
1305 % \fi
1306 \begin{verbatim}
1307 tlmgr generate updmap
1308 \end{verbatim}
1309 % \iffalse
1310 %</verb>
1311 % \fi
1312 % \verb|tlmgr| will then tell you that you need to ensure the changes are propagated correctly by calling \verb|updmap-sys|.
1313 % This should produce a great deal of output.
1314 % Check that it finds the new map file and does not end with an error.
1315 %
1316 % If you installed into your personal tree, you \emph{may} prefer to use \verb|updmap --edit| as described above for \TeX~Live 2008\fnupdmap.
1317 %
1318 % \subsubsection{Method 3: Current/Recent \TeX~Live}
1319 %
1320 % If you installed the package system-wide, tell \cs{updmap} to enable the map file:
1321 % \iffalse
1322 %<*verb>
1323 % \fi
1324 \begin{verbatim}
1325 updmap --sys --enable Map=clm.map
1326 \end{verbatim}
1327 % \iffalse
1328 %</verb>
1329 % \fi
1330 % This should produce a great deal of output.
1331 % Check that it finds the new map file and does not end with an error.
1332 %
1333 % If you installed into your personal tree, you \emph{could} use \verb|updmap --user| in place of \verb|updmap --sys| as described above for \TeX~Live 2008, but this is \textbf{not} recommended\fnupdmap.
1334 %
1335 % To test your installation and that the package works on your system, latex this file (\path{cfr-lm.tex}).
1336 % The console output and/or log should tell you whether any fonts were not found.
1337 % If you are careful not to overwrite it, you may also compare your output with \path{cfr-lm.pdf}.%
1338 %
1339 % \MaybeStop{%
1340 % \def\glossaryname{Change History}%
1341 % \PrintChanges
1342 % \PrintIndex
1343 % }
1344 %
1345 % \makeatletter
1346 % \def\@xobeysp{\leavevmode\penalty100\ }
1347 % \makeatother
1348 %
1349 % \section{Implementation}
1350 %
1351 % You do not need to read the remainder of this document in order to install or use the fonts.
1352 %
1353 % \subsection{\LaTeXe{} package}
1354 %
1355 % \iffalse
1356 %<*sty>
1357 % \fi
1358 % \begin{package}{cfr-lm.sty}
1359 % The \LaTeX{} user interface.
1360 % \begin{macrocode}
1361 \NeedsTeXFormat{LaTeX2e}
1362 \RequirePackage{svn-prov}
1363 \ProvidesPackageSVN[\filebase.sty]{$Id: cfr-lm.dtx 11038 2025-06-21 18:26:04Z cfrees $}[v1.9 \revinfo][Extended support for Latin Modern 2.004]
1364 \DefineFileInfoSVN[clm]
1365 \RequirePackage[T1]{fontenc}
1366 \RequirePackage{nfssext-cfr}[2024/01/01]
1367 % \end{macrocode}
1368 % \lpack{nfssext-cfr} provides \cs{ProcessKeyOptions}, \cs{IfFormatAtLeastTF} on older kernels and ensures font encoding subset declarations are valid in font definition files if the format is post=2020 but not new enough to support them out-of-the-box.
1369 % The declarations themselves are inserted by \texttt{l3build} using \lpack{fontscripts}'s \texttt{fntbuild} and defined in \file{build.lua}\footnote{%
1370 % I've been told this shouldn't be on \ctan, so it isn't, but you can find it on \github.%
1371 % }.
1372 % Note that these declarations do \textbf{not} conform to the recommendations provided by the \LaTeX{} Project's helper script.
1373 % Instead, they pick-up the declarations used by the \LaTeX{} Project for Latin Modern.
1374 % This is done dynamically, so if the developers ever decide to use their script's recommendations for Latin Modern, any changes will be automatically picked up\footnote{%
1375 % On the other hand, if the implementation details of subset handling in the format change, the code in this package may break.
1376 % But that's already true for so much of the code in \lpack{nfssext}/\lpack{nfssext-cfr}, that one more area of fragility probably matters but little.^^A
1377 % }.
1378 % \changes{v1.8}{2025-01-03}{\lpack{nfssext-cfr} enables TC subset declarations in font definition files for ‘in between’ formats.}
1379 % \begin{macrocode}
1380 \IfFormatAtLeastTF {2020-02-02}{%
1381 % \end{macrocode}
1382 % \changes{v1.8}{2025-01-03}{Determine TC encoding subset declarations dynamically and include in font definition files.}
1383 % \changes{v1.8a}{2025-02-10}{Remove TS1 subset defns from fd files and put them back into the sty where they actually work.}
1384 % \changes{v1.9}{2025-06-21}{Re-put TS1 subset defns into fd files and skip them in the sty for current \LaTeXe.}
1385 % \begin{macrocode}
1386 %^^A To get the oldstyle numbers etc.\ used from TS1, we need to set the subset to 0 or 1.
1387 %^^A We follow the kernel's handling of Latin Modern and eschew the builtin circle.
1388 \IfFormatAtLeastTF {2025-06-01}{}{%
1389 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm}{TS1:lmr}%
1390 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2}{TS1:lmr}%
1391 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2d}{TS1:lmdh}%
1392 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2dj}{TS1:lmdh}%
1393 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2j}{TS1:lmr}%
1394 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2jqs}{TS1:lmssq}%
1395 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2js}{TS1:lmssq}%
1396 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2jt}{TS1:lmtt}%
1397 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2jv}{TS1:lmvtt}%
1398 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2qs}{TS1:lmssq}%
1399 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2s}{TS1:lmss}%
1400 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2t}{TS1:lmtt}%
1401 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clm2v}{TS1:lmvtt}%
1402 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmd}{TS1:lmdh}%
1403 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmdj}{TS1:lmdh}%
1404 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmj}{TS1:lmr}%
1405 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmjqs}{TS1:lmssq}%
1406 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmjs}{TS1:lmss}%
1407 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmjt}{TS1:lmtt}%
1408 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmjv}{TS1:lmvtt}%
1409 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmqs}{TS1:lmssq}%
1410 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clms}{TS1:lmss}%
1411 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmt}{TS1:lmtt}%
1412 \ExpandArgs{nnc}\DeclareEncodingSubset{TS1}{clmv}{TS1:lmvtt}%
1413 %%^^A \DeclareEncodingSubset{TS1}{clm}{1}%
1414 %%^^A \DeclareEncodingSubset{TS1}{clm2}{1}%
1415 %%^^A \DeclareEncodingSubset{TS1}{clm2d}{1}%
1416 %%^^A \DeclareEncodingSubset{TS1}{clm2dj}{1}%
1417 %%^^A \DeclareEncodingSubset{TS1}{clm2j}{1}%
1418 %%^^A \DeclareEncodingSubset{TS1}{clm2jqs}{1}%
1419 %%^^A \DeclareEncodingSubset{TS1}{clm2js}{1}%
1420 %%^^A \DeclareEncodingSubset{TS1}{clm2jt}{1}%
1421 %%^^A \DeclareEncodingSubset{TS1}{clm2jv}{1}%
1422 %%^^A \DeclareEncodingSubset{TS1}{clm2qs}{1}%
1423 %%^^A \DeclareEncodingSubset{TS1}{clm2s}{1}%
1424 %%^^A \DeclareEncodingSubset{TS1}{clm2t}{1}%
1425 %%^^A \DeclareEncodingSubset{TS1}{clm2v}{1}%
1426 %%^^A \DeclareEncodingSubset{TS1}{clmd}{1}%
1427 %%^^A \DeclareEncodingSubset{TS1}{clmdj}{1}%
1428 %%^^A \DeclareEncodingSubset{TS1}{clmj}{1}%
1429 %%^^A \DeclareEncodingSubset{TS1}{clmjqs}{1}%
1430 %%^^A \DeclareEncodingSubset{TS1}{clmjs}{1}%
1431 %%^^A \DeclareEncodingSubset{TS1}{clmjt}{1}%
1432 %%^^A \DeclareEncodingSubset{TS1}{clmjv}{1}%
1433 %%^^A \DeclareEncodingSubset{TS1}{clmqs}{1}%
1434 %%^^A \DeclareEncodingSubset{TS1}{clms}{1}%
1435 %%^^A \DeclareEncodingSubset{TS1}{clmt}{1}%
1436 %%^^A \DeclareEncodingSubset{TS1}{clmv}{1}%
1437 }%
1438 }{%
1439 \RequirePackage{textcomp}}
1440 \UndeclareTextCommand{\textperthousand}{T1}
1441 \ExplSyntaxOn
1442 % \end{macrocode}
1443 %
1444 % Parts of this file are based on \file{lmodern.sty} which is included with
1445 % the Latin Modern fonts released by \gust{} and available from
1446 % \url{http://www.gust.org.pl/projects/e-foundry/latin-modern}.
1447 %
1448 % \changes{v1.1? 2010-05-27}{2010/05/27}{%
1449 % Revise package file for more robust and flexible option handling.}
1450 %
1451 % \changes{v1.2 2010-05-?? (unpublished)}{2010/05/??}{%
1452 % See v1.3.}
1453 %
1454 % \changes{v1.3}{2010/05/27}{%
1455 % Improved option handling in v1.2 and v1.3 owes almost everything to Enrico Gregorio.}
1456 %
1457 % \changes{v1.4}{2014-03-04}{%
1458 % Add family-specific support for \lpack{microtype}.}
1459 % This draws also on the documentation for the \lpack{microtype} package and \file{MinionPro.sty}.
1460 % \file{MinionPro.sty} is available as part of the \lpack{minionpro} package and can be obtain from \url{http://mirror.ctan.org/fonts/minionpro}.
1461 % \file{MinionPro.sty} is in the public domain.
1462 % The documentation for \lpack{microtype} is available in English and German from \href{https://ctan.org/pkg/microtype}{\lpack{microtype}}.
1463 % It is part of the \lpack{microtype} package which is itself licensed under the LPPL.
1464 %
1465 % Since removed?
1466 % \changes{v1.6 2015-2020 (unpublished)}{2015/2020}{%
1467 % Fix an undeclared dependency.}
1468 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1469 % Remove dependency on \lpack{xkeyval}.
1470 % Reimplement key-processing in \lpack{expl3}.}
1471 %%
1472 % BEGIN bools
1473 % \begin{macrocode}
1474 \bool_new:N \l__clm_rm_osf_bool
1475 \bool_new:N \l__clm_rm_prop_bool
1476 \bool_new:N \l__clm_sf_osf_bool
1477 \bool_new:N \l__clm_sf_prop_bool
1478 \bool_new:N \l__clm_tt_osf_bool
1479 \bool_new:N \l__clm_tt_prop_bool
1480 \bool_new:N \l__clm_tt_mono_bool
1481 \bool_new:N \l__clm_qt_bool
1482 % \end{macrocode}
1483 % END bools
1484 % \begin{macrocode}
1485 \keys_define:nn { clm }
1486 {
1487 % \end{macrocode}
1488 % \begin{option}{rm/oldstyle}
1489 % boolkey for roman osf/lf
1490 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1491 % Reimplement in \lpack{expl3}.%
1492 % }
1493 % \begin{macrocode}
1494 rm / oldstyle .bool_set:N = \l__clm_rm_osf_bool,
1495 rm / oldstyle .default:n = true,
1496 rm / oldstyle .initial:n = true,
1497 % \end{macrocode}
1498 % \end{option}
1499 % \begin{option}{rm/osf}
1500 % Shorthand
1501 % \changes{v1.7}{2024-08-28}{%
1502 % New shorthand for key.%
1503 % }
1504 % \begin{macrocode}
1505 rm / osf .bool_set:N = \l__clm_rm_osf_bool,
1506 rm / osf .default:n = true,
1507 % \end{macrocode}
1508 % \end{option}
1509 % \begin{option}{rm/lining}
1510 % Inverse
1511 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1512 % Reimplement in \lpack{expl3}.%
1513 % }
1514 % \begin{macrocode}
1515 rm / lining .bool_set_inverse:N = \l__clm_rm_osf_bool,
1516 rm / lining .default:n = true,
1517 % \end{macrocode}
1518 % \end{option}
1519 % \begin{option}{rm/lf}
1520 % Shorthand
1521 % \changes{v1.7}{2024-09-10}{%
1522 % New shorthand for key.%
1523 % }
1524 % \begin{macrocode}
1525 rm / lf .bool_set_inverse:N = \l__clm_rm_osf_bool,
1526 rm / lf .default:n = true,
1527 % \end{macrocode}
1528 % \end{option}
1529 % \begin{option}{rm/proportional}
1530 % boolkey for roman prop/tab figures
1531 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1532 % Reimplement in \lpack{expl3}.%
1533 % }
1534 % \begin{macrocode}
1535 rm / proportional .bool_set:N = \l__clm_rm_prop_bool,
1536 rm / proportional .default:n = true,
1537 rm / proportional .initial:n = true,
1538 % \end{macrocode}
1539 % \end{option}
1540 % \begin{option}{rm/prop}
1541 % Shorthand
1542 % \changes{v1.7}{2024-08-28}{%
1543 % New shorthand for key.%
1544 % }
1545 % \begin{macrocode}
1546 rm / prop .bool_set:N = \l__clm_rm_prop_bool,
1547 rm / prop .default:n = true,
1548 % \end{macrocode}
1549 % \end{option}
1550 % \begin{option}{rm/tabular}
1551 % Inverse
1552 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1553 % Reimplement in \lpack{expl3}.%
1554 % }
1555 % \begin{macrocode}
1556 rm / tabular .bool_set_inverse:N = \l__clm_rm_prop_bool,
1557 rm / tabular .default:n = true,
1558 % \end{macrocode}
1559 % \end{option}
1560 % \begin{option}{rm/tab}
1561 % Shorthand
1562 % \changes{v1.7}{2024-08-28}{%
1563 % New shorthand for key.%
1564 % }
1565 % \begin{macrocode}
1566 rm / tab .bool_set_inverse:N = \l__clm_rm_prop_bool,
1567 rm / tab .default:n = true,
1568 % \end{macrocode}
1569 % \end{option}
1570 % \begin{option}{sf/oldstyle}
1571 % boolkeys for sans osf/lf
1572 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1573 % Reimplement in \lpack{expl3}.%
1574 % }
1575 % \begin{macrocode}
1576 sf / oldstyle .bool_set:N = \l__clm_sf_osf_bool,
1577 sf / oldstyle .default:n = true,
1578 sf / oldstyle .initial:n = true,
1579 % \end{macrocode}
1580 % \end{option}
1581 % \begin{option}{sf/osf}
1582 % Shorthand
1583 % \changes{v1.7}{2024-08-28}{%
1584 % New shorthand for key.%
1585 % }
1586 % \begin{macrocode}
1587 sf / osf .bool_set:N = \l__clm_sf_osf_bool,
1588 sf / osf .default:n = true,
1589 % \end{macrocode}
1590 % \end{option}
1591 % \begin{option}{sf/lining}
1592 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1593 % Reimplement in \lpack{expl3}.%
1594 % }
1595 % Inverse
1596 % \begin{macrocode}
1597 sf / lining .bool_set_inverse:N = \l__clm_sf_osf_bool,
1598 sf / lining .default:n = true,
1599 % \end{macrocode}
1600 % \end{option}
1601 % \begin{option}{sf/lf}
1602 % Shorthand
1603 % \changes{v1.7}{2024-09-10}{%
1604 % New shorthand for key.%
1605 % }
1606 % \begin{macrocode}
1607 sf / lf .bool_set_inverse:N = \l__clm_sf_osf_bool,
1608 sf / lf .default:n = true,
1609 % \end{macrocode}
1610 % \end{option}
1611 % \begin{option}{sf/proportional}
1612 % boolkeys for sans prop/tab figures
1613 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1614 % Reimplement in \lpack{expl3}.%
1615 % }
1616 % \begin{macrocode}
1617 sf / proportional .bool_set:N = \l__clm_sf_prop_bool,
1618 sf / proportional .default:n = true,
1619 sf / proportional .initial:n = true,
1620 % \end{macrocode}
1621 % \end{option}
1622 % \begin{option}{sf/prop}
1623 % Shorthand
1624 % \changes{v1.7}{2024-08-28}{%
1625 % New shorthand for key.%
1626 % }
1627 % \begin{macrocode}
1628 sf / prop .bool_set:N = \l__clm_sf_prop_bool,
1629 sf / prop .default:n = true,
1630 % \end{macrocode}
1631 % \end{option}
1632 % \begin{option}{sf/tabular}
1633 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1634 % Reimplement in \lpack{expl3}.%
1635 % }
1636 % Inverse
1637 % \begin{macrocode}
1638 sf / tabular .bool_set_inverse:N = \l__clm_sf_prop_bool,
1639 sf / tabular .default:n = true,
1640 % \end{macrocode}
1641 % \end{option}
1642 % \begin{option}{sf/tab}
1643 % Shorthand
1644 % \changes{v1.7}{2024-08-28}{%
1645 % New shorthand for key.%
1646 % }
1647 % \begin{macrocode}
1648 sf / tab .bool_set_inverse:N = \l__clm_sf_prop_bool,
1649 sf / tab .default:n = true,
1650 % \end{macrocode}
1651 % \end{option}
1652 % \begin{option}{tt/oldstyle}
1653 % boolkeys for typewriter osf/lf
1654 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1655 % Reimplement in \lpack{expl3}.%
1656 % }
1657 % \begin{macrocode}
1658 tt / oldstyle .bool_set:N = \l__clm_tt_osf_bool,
1659 tt / oldstyle .default:n = true,
1660 tt / oldstyle .initial:n = true,
1661 % \end{macrocode}
1662 % \end{option}
1663 % \begin{option}{tt/osf}
1664 % Shorthand
1665 % \changes{v1.7}{2024-08-28}{%
1666 % New shorthand for key.%
1667 % }
1668 % \begin{macrocode}
1669 tt / osf .bool_set:N = \l__clm_tt_osf_bool,
1670 tt / osf .default:n = true,
1671 % \end{macrocode}
1672 % \end{option}
1673 % \begin{option}{tt/lining}
1674 % Inverse
1675 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1676 % Reimplement in \lpack{expl3}.%
1677 % }
1678 % \begin{macrocode}
1679 tt / lining .bool_set_inverse:N = \l__clm_tt_osf_bool,
1680 tt / lining .default:n = true,
1681 % \end{macrocode}
1682 % \end{option}
1683 % \begin{option}{tt/lf}
1684 % Shorthand
1685 % \changes{v1.7}{2024-09-10}{%
1686 % New shorthand for key.%
1687 % }
1688 % \begin{macrocode}
1689 tt / lf .bool_set_inverse:N = \l__clm_tt_osf_bool,
1690 tt / lf .default:n = true,
1691 % \end{macrocode}
1692 % \end{option}
1693 % \begin{option}{tt/proportional}
1694 % boolkeys for typewriter prop/tab figures
1695 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1696 % Reimplement in \lpack{expl3}.%
1697 % }
1698 % \begin{macrocode}
1699 tt / proportional .bool_set:N = \l__clm_tt_prop_bool,
1700 tt / proportional .default:n = true,
1701 tt / proportional .initial:n = true,
1702 % \end{macrocode}
1703 % \end{option}
1704 % \begin{option}{tt/prop}
1705 % Shorthand
1706 % \changes{v1.7}{2024-08-28}{%
1707 % New shorthand for key.%
1708 % }
1709 % \begin{macrocode}
1710 tt / prop .bool_set:N = \l__clm_tt_prop_bool,
1711 tt / prop .default:n = true,
1712 % \end{macrocode}
1713 % \end{option}
1714 % \begin{option}{tt/tabular}
1715 % Inverse
1716 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1717 % Reimplement in \lpack{expl3}.%
1718 % }
1719 % \begin{macrocode}
1720 tt / tabular .bool_set_inverse:N = \l__clm_tt_prop_bool,
1721 tt / tabular .default:n = true,
1722 % \end{macrocode}
1723 % \end{option}
1724 % \begin{option}{tt/tab}
1725 % Shorthand
1726 % \changes{v1.7}{2024-08-28}{%
1727 % New shorthand for key.%
1728 % }
1729 % \begin{macrocode}
1730 tt / tab .bool_set_inverse:N = \l__clm_tt_prop_bool,
1731 tt / tab .default:n = true,
1732 % \end{macrocode}
1733 % \end{option}
1734 % \begin{option}{tt/monowidth}
1735 % boolkeys for typewriter mono/variable width
1736 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1737 % Reimplement in \lpack{expl3}.%
1738 % }
1739 % \begin{macrocode}
1740 tt / monowidth .bool_set:N = \l__clm_tt_mono_bool,
1741 tt / monowidth .default:n = true,
1742 tt / monowidth .initial:n = false,
1743 % \end{macrocode}
1744 % \end{option}
1745 % \begin{option}{tt/mono}
1746 % Shorthand
1747 % \changes{v1.7}{2024-08-28}{%
1748 % New shorthand for key.%
1749 % }
1750 % \begin{macrocode}
1751 tt / mono .bool_set:N = \l__clm_tt_mono_bool,
1752 tt / mono .default:n = true,
1753 % \end{macrocode}
1754 % \end{option}
1755 % \begin{option}{tt/variable}
1756 % Inverse
1757 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1758 % Reimplement in \lpack{expl3}.%
1759 % }
1760 % \begin{macrocode}
1761 tt / variable .bool_set_inverse:N = \l__clm_tt_mono_bool,
1762 tt / variable .default:n = true,
1763 % \end{macrocode}
1764 % \end{option}
1765 % \begin{option}{tt/var}
1766 % Shorthand
1767 % \changes{v1.7}{2024-08-28}{%
1768 % New shorthand for key.%
1769 % }
1770 % \begin{macrocode}
1771 tt / var .bool_set_inverse:N = \l__clm_tt_mono_bool,
1772 tt / var .default:n = true,
1773 % \end{macrocode}
1774 % \end{option}
1775 % \begin{option}{rm}
1776 % options for roman
1777 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1778 % Reimplement in \lpack{expl3}.%
1779 % }
1780 % \begin{macrocode}
1781 rm .code:n ={
1782 \keys_set:nn { clm / rm } { #1 }
1783 },
1784 rm .value_required:n = true,
1785 rm .usage:n = load,
1786 % \end{macrocode}
1787 % \end{option}
1788 % \begin{option}{sf}
1789 % options for sans
1790 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1791 % Reimplement in \lpack{expl3}.%
1792 % }
1793 % \begin{macrocode}
1794 sf .code:n ={
1795 \keys_set:nn { clm / sf } { #1 }
1796 },
1797 sf .value_required:n = true,
1798 sf .usage:n = load,
1799 % \end{macrocode}
1800 % \end{option}
1801 % \begin{option}{tt}
1802 % options for typewriter
1803 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1804 % Reimplement in \lpack{expl3}.%
1805 % }
1806 % \begin{macrocode}
1807 tt .code:n ={
1808 \keys_set:nn { clm / tt } { #1 }
1809 },
1810 tt .value_required:n = true,
1811 tt .usage:n = load,
1812 % \end{macrocode}
1813 % \end{option}
1814 % \begin{option}{qt}
1815 % note that this option does nothing unless \cs{qtfont} is defined appropriately
1816 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{%
1817 % Reimplement in \lpack{expl3}.%
1818 % }
1819 % \begin{macrocode}
1820 qt .bool_set:N = \l__clm_qt_bool,
1821 qt .default:n = true,
1822 qt .initial:n = false,
1823 qt .usage:n = load,
1824 % \end{macrocode}
1825 % \end{option}
1826 % \begin{option}{nomaths,nomath}
1827 % \changes{v1.9}{2025-06-21}{Follow \file{lmodern.sty}: add \texttt{nomaths}/
1828 % \texttt{nomath} option.}
1829 % Make maths configuration optional.
1830 % \begin{macrocode}
1831 nomaths .bool_set:N = \l__clm_nomaths_bool,
1832 nomaths .default:n = true,
1833 nomaths .initial:n = false,
1834 nomaths .usage:n = load,
1835 nomath .bool_set:N = \l__clm_nomaths_bool,
1836 nomath .default:n = true,
1837 nomath .initial:n = false,
1838 nomath .usage:n = load,
1839 }
1840 % \end{macrocode}
1841 % \end{option}
1842 % \changes{v1.9}{2025-06-21}{Remove redundant provision of
1843 % \cs{IfFormatAtLeastTF} as \lpack{nfssext-cfr} takes care of this, as noted
1844 % above.%
1845 % }
1846 % options override defaults
1847 % \begin{macrocode}
1848 \IfFormatAtLeastTF { 2022-06-01 }
1849 {
1850 \ProcessKeyOptions [ clm ]
1851 }{
1852 \RequirePackage { l3keys2e }
1853 \ProcessKeysOptions { clm }
1854 }
1855 \IfFormatAtLeastTF { 2020-10-01 }{
1856 }{
1857 \RequirePackage { xparse }
1858 \providecommand \ExpandArgs [1]
1859 { \cs_if_exist_use:c { exp_args:N #1 } }
1860 }
1861 % \end{macrocode}
1862 % Translate user/default settings into bits of Berry names.
1863 % \begin{macro}{\rmdefault,\sfdefault,\ttdefault}
1864 % Make LM default for all families, implementing options for each
1865 % \changes{v1.7}{2024-09-11}{%
1866 % Need these to be expanded for \cs{init@series@setup} to recognise families.
1867 % Only need \texttt{tl}s here (not functions).
1868 % Scrap the component \texttt{tl}s, since we're expanding the lot anyhow.}
1869 % \begin{macrocode}
1870 \tl_gset:Ne \rmdefault
1871 {
1872 clm \bool_if:NT \l__clm_rm_prop_bool { 2 }
1873 \bool_if:NT \l__clm_rm_osf_bool { j }
1874 }
1875 \tl_gset:Ne \sfdefault
1876 {
1877 clm \bool_if:NT \l__clm_sf_prop_bool { 2 }
1878 \bool_if:NT \l__clm_sf_osf_bool { j } s
1879 }
1880 \tl_gset:Ne \ttdefault
1881 {
1882 clm \bool_if:NT \l__clm_tt_prop_bool { 2 }
1883 \bool_if:NT \l__clm_tt_osf_bool { j }
1884 \bool_if:NTF \l__clm_tt_mono_bool { t } { v }
1885 }
1886 % \end{macrocode}
1887 % \end{macro}
1888 %
1889 % \begin{macro}{\qtfont}
1890 % Handle the qt option, failing gracefully if somebody has enabled the option without defining \cs{qtfont} appropriately.
1891 % We do this in a hook at the start of the document so we can respond if the required macro is defined after \lpack{\filebase} is loaded.
1892 % It would be nice if there was a more satisfactory approach, but I can't think of one a font package has any business implementing.
1893 % \begin{macrocode}
1894 \hook_gput_code:nnn { begindocument } { . }
1895 {
1896 \bool_if:NT \l__clm_qt_bool
1897 {
1898 \cs_if_exist:NTF { \qtfont }
1899 {
1900 \qtfont{\qtstyle}
1901 }{
1902 \PackageWarning{cfr-lm}
1903 {
1904 Option ~ 'qt' ~ cannot ~ be ~ implemented ~ unless \MessageBreak
1905 '\backslash qtfont' ~ is ~ defined ~ appropriately. ~ This ~ is ~ not \MessageBreak
1906 done ~ automatically ~ to ~ maximise ~ compatibility ~ with ~ other \MessageBreak
1907 classes ~ and ~ packages. ~ The ~ suggested ~ use ~ is ~ to ~ have ~ '\backslash qtfont' \MessageBreak
1908 redefine ~ a command ~ such ~ as ~ '\backslash quotefont' ~ which ~ is ~ initially \MessageBreak
1909 set ~ to ~ some ~ reasonable ~ default ~ and ~ used ~ in ~ the \MessageBreak
1910 definition ~ of ~ the ~ quote ~ and/or ~ quotation ~ environments. \MessageBreak
1911 A ~ font ~ package ~ has ~ no ~ business ~ meddling ~ in ~ such \MessageBreak
1912 things ~ so ~ I'm ~ going ~ to ~ ignore ~ this ~ option
1913 }
1914 }
1915 }
1916 }
1917 %
1918 % \end{macrocode}
1919 % \end{macro}
1920 % Maths setup is ‘based on’ (i.e.~filched from) lmodern.sty
1921 % \changes{v1.9}{2025-06-21}{Maths configuration now optionally disabled.}
1922 % \begin{macrocode}
1923 \bool_if:NF \l__clm_nomaths_bool
1924 {
1925 \SetSymbolFont{operators} {normal}{OT1}{lmr} {m}{n}
1926 \SetSymbolFont{letters} {normal}{OML}{lmm} {m}{it}
1927 \SetSymbolFont{symbols} {normal}{OMS}{lmsy}{m}{n}
1928 \SetSymbolFont{largesymbols}{normal}{OMX}{lmex}{m}{n}
1929 \SetSymbolFont{operators} {bold} {OT1}{lmr} {bx}{n}
1930 \SetSymbolFont{letters} {bold} {OML}{lmm} {b}{it}
1931 \SetSymbolFont{symbols} {bold} {OMS}{lmsy}{b}{n}
1932 \SetSymbolFont{largesymbols}{bold} {OMX}{lmex}{m}{n}
1933 %
1934 \DeclareFontSubstitution{OT1}{lmr}{m}{n}
1935 \DeclareFontSubstitution{OML}{lmm}{m}{it}
1936 \DeclareFontSubstitution{OMS}{lmsy}{m}{n}
1937 \DeclareFontSubstitution{OMX}{lmex}{m}{n}
1938 %
1939 % \end{macrocode}
1940 % \begin{macro}{\mathbf,\mathsf,\mathit,\mathtt}
1941 % maths alphabets
1942 % \begin{macrocode}
1943 \SetMathAlphabet{\mathbf}{normal}{OT1}{lmr}{bx}{n}
1944 \SetMathAlphabet{\mathsf}{normal}{OT1}{lmss}{m}{n}
1945 \SetMathAlphabet{\mathit}{normal}{OT1}{lmr}{m}{it}
1946 \SetMathAlphabet{\mathtt}{normal}{OT1}{lmtt}{m}{n}
1947 \SetMathAlphabet{\mathbf}{bold} {OT1}{lmr}{bx}{n}
1948 \SetMathAlphabet{\mathsf}{bold} {OT1}{lmss}{bx}{n}
1949 \SetMathAlphabet{\mathit}{bold} {OT1}{lmr}{bx}{it}
1950 \SetMathAlphabet{\mathtt}{bold} {OT1}{lmtt}{m}{n}
1951 %
1952 % \end{macrocode}
1953 % \end{macro}
1954 % \begin{macro}{\mathsterling}
1955 % \mbox{}
1956 % \begin{macrocode}
1957 \def\mathsterling{\mathit{\mathchar"70BF}}
1958 }
1959 \ExplSyntaxOff
1960 % \end{macrocode}
1961 % \end{macro}
1962 % \begin{macro}{\dotdigitenc,\textdde}
1963 % \changes{v1.1}{2010/05/27?}{%
1964 % New macros required to define \cs{zeroslash}.}
1965 % \begin{macrocode}
1966 \DeclareRobustCommand{\dotdigitenc}{%
1967 \not@math@alphabet\dotdigitenc\relax
1968 \fontencoding{U}\selectfont}
1969 \DeclareTextFontCommand{\textdde}{\dotdigitenc}
1970 % \end{macrocode}
1971 % \end{macro}
1972 % \begin{macro}{\zeroslash}
1973 % \changes{v1.1}{2010/05/02?}{%
1974 % \cs{zeroslash} is provided to access the slashed zero.}
1975 % The slashed zero.
1976 % \begin{macrocode}
1977 \newcommand*{\zeroslash}{\textdde{\char 250}}
1978 % \end{macrocode}
1979 % \end{macro}
1980 %
1981 % Partly from \lpack{microtype} docs; partly from \lpack{MinionPro} package
1982 %
1983 % We need to set up aliases for the font families created by \lpack{cfr-lm} so that
1984 % \lpack{microtype} recognises them as similar to Computer Modern Roman.
1985 %
1986 % T1 families in cfr-lm: clm clm2 clm2d clm2dj clm2j clm2jqs clm2js clm2jt
1987 % clm2jv clm2qs clm2s clm2t clm2v clmd clmdj clmj clmjqs clmjs clmjt clmjv
1988 % clmqs clms clmt clmv
1989 %
1990 % See variants set in \lpack{nfssext-cfr}
1991 %
1992 % Ref: \url{https://tex.stackexchange.com/a/75440}
1993 % \begin{macrocode}
1994 \ExplSyntaxOn
1995 % \end{macrocode}
1996 % ^^A \begin{macro}{\__clm_microtype_hook:}
1997 % \changes{v1.4 2014-03-04}{2014/03/04}{New macro to hold \lpack{microtype} aliases.}
1998 % \changes{v1.6 2020-2024 (unpublished)}{2020/2024}{Switch to \lpack{expl3}.}
1999 % Aliases for \lpack{microtype} so fonts get the same custom treatment they do with \lpack{lm}.
2000 % \changes{\fileversion}{\filedate}{Remove alias cs and just define the hook.}
2001 % \begin{macrocode}
2002 \cs_new_nopar:Nn \__clm_microtype_hook:
2003 {
2004 \clist_map_inline:nn
2005 {
2006 clm,clm2,clm2j,clmj,% roman
2007 clms,clm2js,clm2s,clmjs,% sans
2008 clmqs,clm2jqs,clm2qs,clmjqs%
2009 % clm2d,clm2dj,clmd,clmdj,% leave unaliased?
2010 % clm2jv,clmjv,clm2v,clmv,% leave unaliased?
2011 % clmt,clm2t,clmjt,clm2jt% leave unaliased?
2012 }{
2013 \DeclareMicrotypeAlias { ##1 } { cmr }
2014 }
2015 }
2016 % \end{macrocode}
2017 % ^^A \end{macro}
2018 % If \cs{Microtype@Hook} exists, add our material to it; if not, create it.
2019 % \begin{macrocode}
2020 \@ifpackageloaded{microtype}
2021 {
2022 \__clm_microtype_hook:
2023 }{
2024 \cs_if_free:cTF { Microtype@Hook }
2025 {% MinionPro has \global before this
2026 \cs_new_eq:NN \Microtype@Hook \__clm_microtype_hook:
2027 }{
2028 \g@addto@macro\Microtype@Hook{\__clm_microtype_hook:}
2029 }
2030 }
2031 \ExplSyntaxOff
2032 % \end{macrocode}
2033 % ^^A paid â chynnwys \endinput - docstrip yn chwilio amddo fe yn arbennigol
2034 % ^^A & bydd doctrip yn ei ychwanegu fe beth bynnag
2035 % ^^A (Martin Scharrer: https://tex.stackexchange.com/a/28997/)
2036 % \begin{macrocode}
2037 %% end cfr-lm.sty
2038 % \end{macrocode}
2039 % \end{package}
2040 % \iffalse
2041 %</sty>
2042 % \fi
2043 %
2044 % The remaining files are not used directly, but are required to generate the files which allow \TeX{} and \LaTeX{} to use the fonts.
2045 % The sources use \verb|fontinst| and are documented in \file{\filebase-build.dtx} with (sometimes sparse) comments.
2046 % While you can install these files into a \TeX{} tree, they are not required for typesetting.
2047 %
2048 %
2049 %\Finale
2050 % ^^A vim: tw=0: