Debian Codegraph @

texmf-dist/source/latex/chextras/chextras.dtx

raw
1 % \iffalse meta-comment
2 %
3 % Copyright 2010 - 2012 by Boris Oriet <http://boris.oriet.net>
4 %
5 % This file may be distributed and/or modified under the conditions of
6 % the LaTeX Project Public License, either version 1.3c of this license
7 % or (at your option) any later version. The latest version of this
8 % license is in:
9 %
10 % http://www.latex-project.org/lppl.txt
11 %
12 % and version 1.3c or later is part of all distributions of LaTeX
13 % version 2008/05/04 or later.
14 %
15 % This file has the LPPL maintenance status "author-maintained".
16 %
17 % \fi
18 %
19 % \iffalse
20 %<*driver>
21 \ProvidesFile{chextras.dtx}
22 \documentclass[a4paper]{ltxdoc}
23 \usepackage{hypdoc}
24 \usepackage{metalogo}
25 \pdfstringdefDisableCommands{\def\url{}}
26 \makeatletter
27 \let\PrintMacroName\HDorg@PrintMacroName
28 \let\PrintDescribeMacro\HDorg@PrintDescribeMacro
29 \makeatother
30 \setlength\parindent{0pt}
31 \CodelineIndex
32 \RecordChanges
33 \begin{document}
34 \DocInput{chextras.dtx}
35 \end{document}
36 %</driver>
37 % \fi
38 %
39 % \CheckSum{844}
40 %
41 % \CharacterTable
42 % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
43 % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
44 % Digits \0\1\2\3\4\5\6\7\8\9
45 % Exclamation \! Double quote \" Hash (number) \#
46 % Dollar \$ Percent \% Ampersand \&
47 % Acute accent \' Left paren \( Right paren \)
48 % Asterisk \* Plus \+ Comma \,
49 % Minus \- Point \. Solidus \/
50 % Colon \: Semicolon \; Less than \<
51 % Equals \= Greater than \> Question mark \?
52 % Commercial at \@ Left bracket \[ Backslash \\
53 % Right bracket \] Circumflex \^ Underscore \_
54 % Grave accent \` Left brace \{ Vertical bar \|
55 % Right brace \} Tilde \~}
56 %
57 % \changes{v1.0}{2010/10/10}{Initial version}
58 % \changes{v1.01}{2012/07/20}{LuaTeX compatiblity}
59 %
60 % \title{The \textsf{chextras} Package
61 % \thanks{This document corresponds to \textsf{chextras} v1.01, dated 2012/07/20.}}
62 % \author{Boris \textsc{Oriet}\\\url{http://boris.oriet.net}}
63 % \maketitle
64 % \bigskip\bigskip
65 % \tableofcontents
66 % \pagebreak
67 %
68 % \section{Introduction}
69 %
70 % The \textsf{chextras} package is a companion for the \textsf{chletter} document class and
71 % other classes. It is targeted at the Swiss typesetter.\bigskip
72 %
73 % It simplifies the preparation of documents and letters by loading and
74 % setting up font, linguistic and other common packages.\bigskip
75 %
76 % While it is linked to the \textsf{chletter} document class, it is not tied to it
77 % and may be used as a general purpose toolbox for casual writing.\bigskip
78 %
79 % This package is compatible with with \LaTeX, Lua\TeX\ and \XeTeX, trying to take in
80 % account their specifics and setting things up accordingly.\bigskip
81 %
82 % A bunch of options are provided to easily alter the behaviour of loaded
83 % packages. Additional options allow for disabling unnecessary features.
84 %
85 % \section{Usage}
86 %
87 % Ideally, the \textsf{chextras} package is loaded just after the document class.\medskip
88 %
89 % Please be aware that \textbf{sources have to be |utf8| (or |ascii7|) encoded}!
90 %
91 % \begin{verbatim}
92 % \documentclass{chletter}
93 % \usepackage[english]{chextras}
94 % \begin{document}
95 % Hello World!
96 % \end{document}
97 % \end{verbatim}
98 %
99 % \subsection{Options}
100 %
101 % \subsubsection{Font options}
102 %
103 % Fonts and encodings are always loaded. The following options are cumulative.\medskip
104 %
105 % \DescribeMacro{nomath}
106 % This option disables the \textsf{Latin Modern} |T1| math fonts.\smallskip
107 %
108 % \DescribeMacro{lighttt}
109 % This option is to select the light version of \textsf{Latin Modern Mono} at document
110 % level.\smallskip
111 %
112 % \DescribeMacro{variablett}
113 % This option sets the proportional variant of \textsf{Latin Modern Mono} at document
114 % level.\smallskip
115 %
116 % \DescribeMacro{oldstyle}
117 % This option activates the oldstyle figures at document level.
118 %
119 % \subsubsection{Linguistic options}
120 %
121 % \DescribeMacro{german}
122 % \DescribeMacro{french}
123 % \DescribeMacro{italian}
124 % \DescribeMacro{english}
125 % Selecting one of these options will trigger the execution of a linguistic package, either
126 % \textsf{babel} under \LaTeX\ and Lua\TeX, or \textsf{polyglossia} under \XeTeX. To have more
127 % than one language in the document, the appropriate commands supplied by the linguistic
128 % packages should be used.
129 %
130 % \subsubsection{Hyperlinks options}
131 %
132 % \DescribeMacro{black}
133 % \DescribeMacro{gray}
134 % \DescribeMacro{color}
135 % Choosing one of these options will prompt the loading of the \textsf{hyperref} package.
136 % The color will define how the links appear: black, gray or in the default
137 % \textsf{hyperref} colors. Please note that no box is drawn around the links, they are
138 % directly colored.
139 %
140 % \subsubsection{Disable options}
141 %
142 % The default settings provided by the \textsf{chextras} package should be universal enough
143 % for everyday use. However, special cases could require to disable some settings.\medskip
144 %
145 % \DescribeMacro{stdshape}
146 % \LaTeX\ doesn't handle mixed shapes (|\emph{textsc{Hello World!}}|). \textsf{chextras}
147 % provides a shape merging mecanism which can be cancelled by this option.\medskip
148 %
149 % \DescribeMacro{stdspace}
150 % If loaded with the |french| option, the \textsf{chextras} package will alter the punctuation
151 % spacing set by the linguistic packages. This option resets the default spacing.\medskip
152 %
153 % \DescribeMacro{stdfield}
154 % When the \textsf{hyperref} package is loaded, the pdf author, title and subject fields are
155 % filled according to document values. This option prevents this (for privacy).\medskip
156 %
157 % \DescribeMacro{stdparis}
158 % The \textsf{chextras} package sets |\parindent| and |\parskip| to respectively |18pt| and
159 % |9pt|. This option is to use the values defined at class level.\medskip
160 %
161 % \DescribeMacro{stddimen}
162 % Used with any class, \textsf{chextras} sets the dimensions of text to the values given by
163 % \textsf{chletter}. To prevent these changes, the |stddimen| option may be applied.\medskip
164 %
165 % \DescribeMacro{stdmgpar}
166 % The margin paragraph layout is set to the \textsf{chletter} class values, which are absolute
167 % rather than linked to the font size. This option allows to retain the defaults.\medskip
168 %
169 % \DescribeMacro{stdlabel}
170 % List labels are set by the standard classes as a function of the point size. Unless this
171 % option is set, labels are set to fixed values, related to |\parindent|.\medskip
172 %
173 % \DescribeMacro{stdlists}
174 % Lists are adjusted to a more compact layout. The vertical flow is better thanks to rubber
175 % lengths. This option reverts the lists to their class presets.\medskip
176 %
177 % \DescribeMacro{stditems}
178 % Labels are lightened by using endashes at every level. If a combinaison of dashes, bullets,
179 % asterisks and periods is prefered, this option reverts to these defaults.\medskip
180 %
181 % \DescribeMacro{stdskips}
182 % The package makes |\parskip| `stretchable', thus enabling page and column bottom
183 % balancing. This option cancels the alteration of |\parskip|.\medskip
184 %
185 % \DescribeMacro{stdnotes}
186 % The layout of the footnotes is deeply modified in an attempt to get something
187 % visually more pleasing. The standard footnotes are reset by this option.\medskip
188 %
189 % \DescribeMacro{stdrules}
190 % This package sets thinner rules than the \LaTeX\ kernel or the standard classes (|.25pt|
191 % instead of |.4pt|). This option returns the rules to the standard value.
192 %
193 % \subsection{Font selection}
194 %
195 % The \textsf{chextras} package loads the \textsf{Latin Modern} fonts instead of the older
196 % \textsf{Computer Modern} fonts. Moreover, it always uses |utf8| as input encoding, hence
197 % requiring |utf8| (or |ascii7| which is a subset of |utf8|) encoded sources. At lower level,
198 % font mecanisms deeply depend on the engine (\LaTeX, Lua\TeX\ or \XeTeX) and we have to
199 % manage this situation with addtional font definition files. Finally, a little trick converts
200 % the \textsc{alt\,+\,space} character to a |\nobreakspace|, thus enabling correct formatting
201 % of text produced by common word processors.
202 %
203 % \subsubsection{Oldstyle numbers}
204 %
205 % \DescribeMacro{\rmosfamily}
206 % \DescribeMacro{\sfosfamily}
207 % \DescribeMacro{\ttosfamily}
208 % \DescribeMacro{\textrmos}
209 % \DescribeMacro{\textsfos}
210 % \DescribeMacro{\textttos}
211 % These macros take advantage of features included in OpenType \textsf{Latin Modern} fonts.
212 % They don't require the presence of any external package, but rely on specific |.fd| files
213 % packed with \textsf{chextras}. With \LaTeX\ and Lua\TeX, |clm| virtual fonts are used;
214 % with \XeTeX, system fonts are called. |\rmosfamily|, |\sfosfamily| and |ttosfamily| are the
215 % respective oldstyle numbers counterparts of |\rmfamily|, |sffamily| and |ttfamily|. The
216 % commands |\textrmos|, |\textsfos| and |\textttos| are also defined.
217 %
218 % \subsubsection{Slanted capitals}
219 %
220 % \DescribeMacro{\sishape}
221 % \DescribeMacro{\textsi}
222 % Slanted small capitals are available as a |\sishape| with the associated |\textsi| command.
223 % Example: |\textsi{Hello World!}|.
224 %
225 % \subsection{Additions}
226 %
227 % \subsubsection{Compatibility layer for \textsf{chletter}}
228 %
229 % \DescribeMacro{\conc}
230 % The code overhaul between |v1.0| and |v2.0| of the \textsf{chletter} class has led to some
231 % incompatibilities which are remedied here (for example the frequently used |\conc|
232 % macro is not implemented in the new version of \textsf{chletter}.
233 %
234 % \subsubsection{Markup commands}
235 %
236 % \DescribeMacro{\ccname}
237 % \DescribeMacro{\enclname}
238 % These values are localized according to Swiss habits. They are used by the generic letter
239 % classes (standard \textsf{letter} and \textsf{chletter} of course).\medskip
240 %
241 % \DescribeMacro{\authorname}
242 % \DescribeMacro{\titlename}
243 % \DescribeMacro{\datename}
244 % These are shortcuts for \LaTeX\ internals |\@author|, |\@title| and |\@date| (respectively
245 % set by |\author|, |\title| and |\date|). They are here to avoid an extraneous |\makeatletter|.
246 % Please note that |\jobname| is set by the kernel.
247 %
248 % \subsubsection{Formatting commands}
249 %
250 % \DescribeMacro{\up}
251 % \DescribeMacro{\bsc}
252 % \DescribeMacro{\no}
253 % \DescribeMacro{\ier}
254 % These convenient macros are sometimes defined by linguistic or other packages.
255 % |\up| is a shortcut for |\textsuperscript|. |\bsc| means `boxed small caps' and is a
256 % non breaking version of |\textsc|. |\no| is the formal abreviation of french ``num\'ero''.
257 % |\ier| is the formal abbreviation of french ``premier''.\pagebreak
258 %
259 % \section{Compatibility}
260 %
261 % The \textsf{chextras} package acts as a wrapper for some \LaTeX\ characteristics and packages
262 % that are in constant evolution. It is therefore difficult to offer any warranty on the
263 % behaviour of the different package features within different \TeX\ environments.
264 %
265 % \subsection{With distributions}
266 %
267 % The \textsf{chextras} package is intended to be used with the full version of \TeX Live 2012.
268 % It may encounter trouble with earlier versions of \TeX Live or other distributions.
269 %
270 % \subsection{With engines}
271 %
272 % The \textsf{chextras} package is able to take advantage of \LaTeX\ (\textsf{pdftex v1.40}),
273 % Lua\TeX\ (\textsf{luatex v0.70}) and \XeTeX\ (\textsf{xetex v0.9997}).
274 %
275 % \subsection{With regular classes}
276 %
277 % There should be no problem using \textsf{chextras} with any reasonably generic class.
278 % It is intended to be used with \textsf{chletter}, but perfectly
279 % adapts to other standard classes.
280 %
281 % \subsection{With other packages}
282 %
283 % The \textsf{chextras} package at least requires \textsf{fixltx2e~v1.1}, \textsf{lmodern~v1.6}
284 % and \textsf{fontenc~v1.99}; respectively \textsf{inputenc v1.1} (\LaTeX), \textsf{luainputenc~v0.973}
285 % (Lua\TeX) or \textsf{xunicode~v0.95} (\XeTeX). For some additional features, \textsf{chextras}
286 % uses \textsf{babel~v3.8} or \textsf{polyglossia~v1.2.0} and \textsf{hyperref~v6.81}.
287 % These packages would load another bunch of related packages when called (please look at their
288 % respective documentation). Older or newer versions of these packages could break
289 % \textsf{chextras} at some point.\medskip
290 %
291 % \textsf{chextras} aims at avoiding packages overload. The minimum set of
292 % packages and font definitions is invoked by:
293 % |\usepackage[nomath]{chextras}|\medskip
294 %
295 % Please note that under \XeTeX, the \textsf{fontspec} package is not required nor loaded by
296 % the \textsf{chextras} package. This is a design decision which doesn't prevent the user from
297 % adding a |\usepackage{fontspec}| (or more generally a |\usepackage{xltxtra}|), preferably
298 % before the \textsf{chextras} call (in order to keep the |oldstyle| option relevant).\medskip
299 %
300 % There is no known `unintentional' macro clash. Please remember that some macros provided by
301 % the \textsf{chletter} class and the \textsf{babel} |frenchb| language are redefined and that
302 % some values (for example the document margins) are deliberately modified. A bunch of package
303 % options are present to cancel some unwanted alterations.
304 %
305 % \subsection{With text and font encodings}
306 %
307 % The \textsf{chextras} requires |utf8| or |ascii7| sources. There is no provision for any other
308 % encoding scheme. \textsf{Latin Modern v2.004} fonts with the appropriate |T1| (for \LaTeX\ and
309 % Lua\TeX) or |EU1| (for \XeTeX) encodings must be available. For oldstyle figures, the provided
310 % font definitions |t1lmros.fd|, |t1lmssos.fd|, |t1lmttos.fd|, |t1lmvttos.fd|; and |eu1lmros.fd|,
311 % |eu1lmssos.fd|, |eu1lmttos.fd|, |eu1lmvttos.fd|, are needed. Please note that the
312 % \textsf{cfr-lm v1.3} package, while not called by \textsf{chextras}, is required under \LaTeX\
313 % and Lua\TeX\ because of the associated font definitions (|clm| virtual fonts, built upon |lm|
314 % fonts, are used in this case).
315 %
316 % \StopEventually
317 %
318 % \pagebreak
319 %
320 % \section{Implementation}
321 %
322 % The \textsf{chextras} code is mostly pure \LaTeX, with few \TeX\ primitives. It is
323 % however fairly compact. Its main parts are the selection and configuration of the input and
324 % font encodings (\textsf{inputenc} for \LaTeX, \textsf{luainputenc} for Lua\TeX\ or
325 % \textsf{xunicode} for \XeTeX, plus \textsf{fontenc} in any case), the linguistic packages (either
326 % \textsf{babel} or \textsf{polyglossia}), and finally the \textsf{hyperref} package. Another
327 % part of the code handles the document layout settings, taking in account some `disable'
328 % package options. The last part provides a few convenient commands.
329 %
330 % \subsection{Initial code}
331 %
332 % \begin{macrocode}
333 %<*chextras.sty>
334 % \end{macrocode}
335 % \begin{macrocode}
336 \NeedsTeXFormat{LaTeX2e}[1996/06/01]
337 \ProvidesPackage{chextras}[2012/07/20 v1.01 Swiss companion package]
338 % \end{macrocode}
339 %
340 % \subsubsection{Declaring options}
341 %
342 % The following four options are font related and cumulative.
343 %
344 % \begin{macro}{nomath}
345 % The \textsf{lmodern} package takes care of this flag.
346 %
347 % \begin{macrocode}
348 \DeclareOption{nomath}{\PassOptionsToPackage{nomath}{lmodern}}
349 % \end{macrocode}
350 % \end{macro}
351 %
352 % \begin{macro}{lighttt}
353 % Both the \textsf{lmodern} package and \textsf{chextras} font definitions take care of
354 % this flag.
355 %
356 % \begin{macrocode}
357 \DeclareOption{lighttt}{\PassOptionsToPackage{lighttt}{lmodern}}
358 % \end{macrocode}
359 % \end{macro}
360 %
361 % \begin{macro}{variablett}
362 % Both the \textsf{lmodern} package and \textsf{chextras} font definitions take care of
363 % this flag.
364 %
365 % \begin{macrocode}
366 \DeclareOption{variablett}{\PassOptionsToPackage{variablett}{lmodern}}
367 % \end{macrocode}
368 % \end{macro}
369 %
370 % \begin{macro}{oldstyle}
371 % This option involves additional font definitions and is treated at \textsf{chextras} level.
372 %
373 % \begin{macrocode}
374 \DeclareOption{oldstyle}{\old@styletrue}
375 % \end{macrocode}
376 % \end{macro}
377 %
378 % \begin{macro}{german}
379 % \begin{macro}{french}
380 % \begin{macro}{italian}
381 % \begin{macro}{english}
382 % The language options are mutually exclusive. If none of theses options is given, then the
383 % linguistic packages won't be loaded. To use more than one language in the document, one
384 % should use the \textsf{babel} or \textsf{polyglossia} dedicated systems (either pass
385 % languages as global options or |\setotherlanguages|).
386 %
387 % \begin{macrocode}
388 \DeclareOption{german}{\def\load@lang{german}}
389 \DeclareOption{french}{\def\load@lang{french}}
390 \DeclareOption{italian}{\def\load@lang{italian}}
391 \DeclareOption{english}{\def\load@lang{english}}
392 % \end{macrocode}
393 % \end{macro}
394 % \end{macro}
395 % \end{macro}
396 % \end{macro}
397 %
398 % \begin{macro}{black}
399 % \begin{macro}{gray}
400 % \begin{macro}{color}
401 % The color options are mutually exclusive. If none of theses options is given, then the
402 % \textsf{hyperref} package won't be loaded (the `argument carrier' is also a flag). Please
403 % note that the \textsf{graphicx} and \textsf{color} packages will be loaded as a side effect.
404 %
405 % \begin{macrocode}
406 \DeclareOption{black}
407 {\def\load@href%
408 {linkcolor=black,filecolor=black,urlcolor=black}}
409 \DeclareOption{gray}
410 {\def\load@href%
411 {linkcolor=[gray]{0.5},filecolor=[gray]{0.5},urlcolor=[gray]{0.5}}}
412 \DeclareOption{color}
413 {\def\load@href%
414 {}}
415 % \end{macrocode}
416 % \end{macro}
417 % \end{macro}
418 % \end{macro}
419 %
420 % These options simply alter the value of an associated boolean for later retrieval.
421 % \begin{macrocode}
422 \DeclareOption{stdshape}{\std@shapetrue}
423 \DeclareOption{stdspace}{\std@spacetrue}
424 \DeclareOption{stdfield}{\std@fieldtrue}
425 \DeclareOption{stdparis}{\std@paristrue}
426 \DeclareOption{stddimen}{\std@dimentrue}
427 \DeclareOption{stdskips}{\std@skipstrue}
428 \DeclareOption{stdmgpar}{\std@mgpartrue}
429 \DeclareOption{stdlists}{\std@liststrue}
430 \DeclareOption{stdlabel}{\std@labeltrue}
431 \DeclareOption{stditems}{\std@itemstrue}
432 \DeclareOption{stdnotes}{\std@notestrue}
433 \DeclareOption{stdrules}{\std@rulestrue}
434 % \end{macrocode}
435 % \begin{macrocode}
436 \newif\ifold@style
437 % \end{macrocode}
438 % \begin{macrocode}
439 \newif\ifstd@shape
440 \newif\ifstd@space
441 \newif\ifstd@field
442 \newif\ifstd@paris
443 \newif\ifstd@dimen
444 \newif\ifstd@skips
445 \newif\ifstd@mgpar
446 \newif\ifstd@lists
447 \newif\ifstd@label
448 \newif\ifstd@items
449 \newif\ifstd@notes
450 \newif\ifstd@rules
451 % \end{macrocode}
452 %
453 % \subsubsection{Executing options}
454 %
455 % \begin{macrocode}
456 \ProcessOptions\relax
457 % \end{macrocode}
458 %
459 % \subsection{Package loading}
460 %
461 % \subsubsection{Input and font encoding packages}
462 %
463 % Here we test for the engine. In \LaTeX\ and Lua\TeX\ cases, |T1| encoding is set for later
464 % call of \textsf{fontenc}, then the relevant \textsf{inputenc} (with |utf8|) is loaded. The
465 % last line trick converts the |0x00a0| character (\textsc{alt\,+\,space}) to something like
466 % |\nobreakspace|.
467 %
468 % \begin{macrocode}
469 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
470 \def\UTFencname{T1}
471 \expandafter\ifx\csname directlua\endcsname\relax
472 \RequirePackage[utf8]{inputenc}
473 \else
474 \RequirePackage[utf8]{luainputenc}
475 \fi
476 \DeclareUnicodeCharacter{00A0}{\nobreak\space}
477 % \end{macrocode}
478 %
479 % In the \XeTeX\ case, |EU1| encoding is set for later call of \textsf{fontenc}.
480 % \textsf{fontspec} is bypassed by design decision. The last line is the non \textsf{inputenc}
481 % version of the |0x00a0| trick.
482 %
483 % \begin{macrocode}
484 \else
485 \def\UTFencname{EU1}
486 \RequirePackage{xunicode}
487 \catcode`^^a0=\active\def^^a0{\nobreak\space}
488 \fi
489 % \end{macrocode}
490 %
491 % Finally the required packages are loaded.
492 %
493 % \begin{macrocode}
494 \RequirePackage{fixltx2e}
495 \RequirePackage[\UTFencname]{fontenc}
496 \RequirePackage{lmodern}
497 % \end{macrocode}
498 %
499 % \begin{macro}{\rmosfamily}
500 % \begin{macro}{\sfosfamily}
501 % \begin{macro}{\ttosfamily}
502 % \begin{macro}{\textrmos}
503 % \begin{macro}{\textsfos}
504 % \begin{macro}{\textttos}
505 % We previously have set the \textsf{Latin Modern} fonts as the document's default by loading
506 % the \textsf{lmodern} package. The font selection scheme for oldstyle figures is initialized
507 % according to the font definitions provided with this package. Under \XeTeX\ things are
508 % straightforward: we just apply |otf| features; under \LaTeX\ or Lua\TeX\ we relie on the
509 % |clm| virtual fonts from \textsf{cfr-lm} package (see the |.fd| files below for a deeper
510 % sight into those things). The |variablett| option is cryptically treated here!
511 %
512 % \begin{macrocode}
513 \DeclareRobustCommand\rmosfamily{\fontfamily\rmosdefault\selectfont}
514 \DeclareRobustCommand\sfosfamily{\fontfamily\sfosdefault\selectfont}
515 \DeclareRobustCommand\ttosfamily{\fontfamily\ttosdefault\selectfont}
516 \DeclareTextFontCommand{\textrmos}{\rmosfamily}
517 \DeclareTextFontCommand{\textsfos}{\sfosfamily}
518 \DeclareTextFontCommand{\textttos}{\ttosfamily}
519 \edef\rmosdefault{\rmdefault os}
520 \edef\sfosdefault{\sfdefault os}
521 \edef\ttosdefault{\ttdefault os}
522 % \end{macrocode}
523 % \end{macro}
524 % \end{macro}
525 % \end{macro}
526 % \end{macro}
527 % \end{macro}
528 % \end{macro}
529 %
530 % \begin{macro}{oldstyle}
531 % Remember that |\rmdefault|, |\sfdefault| and |\ttdefault| are the NFSS defaults.
532 %
533 % \begin{macrocode}
534 \ifold@style
535 \renewcommand\rmdefault{\rmosdefault}
536 \renewcommand\sfdefault{\sfosdefault}
537 \renewcommand\ttdefault{\ttosdefault}
538 \fi
539 % \end{macrocode}
540 % \end{macro}
541 %
542 % \begin{macro}{stdshape}
543 % \begin{macro}{\sishape}
544 % \begin{macro}{\textsi}
545 % This code is borrowed from \textsf{fontspec v1.18}. Its purpose is to merge
546 % some font shapes in order to support constructs like |\textsc{\emph{Hello World!}}|.
547 % The macros |\sishape| and |\textsi| are defined for direct output of slanted small caps.
548 %
549 % \begin{macrocode}
550 \ifstd@shape\else
551 \def\sidefault{\scdefault\sldefault}
552 \DeclareRobustCommand{\sishape}
553 {\not@math@alphabet\sishape\relax\fontshape\sidefault\selectfont}
554 \DeclareTextFontCommand{\textsi}{\sishape}
555 \newcommand*{\ch@mrg}[3]{\edef\@tempa{#1}\edef\@tempb{#2}%
556 \ifx\f@shape\@tempb
557 \ifcsname\f@encoding/\f@family/\f@series/#3\endcsname
558 \edef\@tempa{#3}\fi\fi\fontshape{\@tempa}\selectfont}
559 \DeclareRobustCommand{\itshape}
560 {\not@math@alphabet\itshape\mathit
561 \ch@mrg\itdefault\scdefault\sidefault}
562 \DeclareRobustCommand{\slshape}
563 {\not@math@alphabet\slshape\relax
564 \ch@mrg\sldefault\scdefault\sidefault}
565 \DeclareRobustCommand{\scshape}
566 {\not@math@alphabet\scshape\relax
567 \ch@mrg\scdefault\itdefault\sidefault}
568 \DeclareRobustCommand{\upshape}
569 {\not@math@alphabet\upshape\relax
570 \ch@mrg\updefault\sidefault\scdefault}
571 \fi
572 % \end{macrocode}
573 % \end{macro}
574 % \end{macro}
575 % \end{macro}
576 %
577 % \subsubsection{Linguistic packages}
578 %
579 % If no linguistic option was given, we do nothing.
580 %
581 % \begin{macrocode}
582 \expandafter\ifx\csname load@lang\endcsname\relax
583 % \end{macrocode}
584 %
585 % \begin{macro}{stdspace}
586 % Otherwise we test for \XeTeX\ and load \textsf{babel} if false, with the selected language
587 % as package option. Please note that to load other languages, the user will have to relie
588 % on global options. Finally, we test for the |frenchb.ldf| language and set up some of its
589 % options according to the boolean |std@space|.
590 %
591 % \begin{macrocode}
592 \else
593 \expandafter\ifx\csname XeTeXrevision\endcsname\relax
594 \RequirePackage[\load@lang]{babel}
595 \expandafter\ifx\csname frenchbsetup\endcsname\relax
596 \else
597 \frenchbsetup{og=«,fg=»,StandardLayout=true,FrenchSuperscripts=false}
598 \ifstd@space\else\frenchbsetup{ThinColonSpace=true}\fi
599 \fi
600 % \end{macrocode}
601 %
602 % In the \XeTeX\ case, we load \textsf{polyglossia} with a dirty trick to prevent it from
603 % calling \textsf{fontspec}. The default language is set with the dedicated command (the user
604 % can load alternate languages with |\setotherlanguages|). Finally, we dispense a heavy patch
605 % to the \textsf{polyglossia} |gloss-french.ldf|, taking in account |std@space|.
606 %
607 % \changes{v1.01}{2012/07/20}{ExplSyntaxOff trick}
608 %
609 % \begin{macrocode}
610 \else
611 \RequirePackage{etoolbox}
612 \RequirePackage{xkeyval}
613 \RequirePackage{makecmds}
614 \let\old@Require\RequirePackage
615 \let\old@ExplsyntaxOn\ExplSyntaxOn\let\old@ExplsyntaxOff\ExplSyntaxOff
616 \def\new@Require#1[#2]{}\def\new@ExplSyntax{}
617 \let\RequirePackage\new@Require
618 \let\ExplSyntaxOn\new@ExplSyntax\let\ExplSyntaxOff\new@ExplSyntax
619 \old@Require[nolocalmarks]{polyglossia}[2010/07/27]
620 \let\RequirePackage\old@Require
621 \let\ExplSyntaxOn\old@ExplSyntaxOn\let\ExplSyntaxOff\old@ExplSyntaxOff
622 \setdefaultlanguage{\load@lang}
623 \def\ch@thn{\nobreak\hskip.166667em plus.083333em minus\z@\relax}
624 \def\ch@gll{\nobreak\hskip.25em plus\z@ minus.083333em\relax}
625 \ifstd@space\def\ch@thk{\nobreak\space\relax}
626 \else\let\ch@thk\ch@thn\fi
627 \addto\french@punctuation
628 {\XeTeXinterchartoks\z@\french@punctthin={\ch@thn}
629 \XeTeXinterchartoks\z@\french@punctthick={\ch@thk}
630 \XeTeXinterchartoks255\french@punctthin={\xpg@unskip\ch@thn}
631 \XeTeXinterchartoks255\french@punctthick={\xpg@unskip\ch@thk}
632 \XeTeXinterchartoks\french@punctguillstart\z@={\ch@gll}
633 \XeTeXinterchartoks\z@\french@punctguillend={\ch@gll}
634 \XeTeXinterchartoks\french@punctguillstart255={\ch@gll\xpg@nospace}
635 \XeTeXinterchartoks255\french@punctguillend={\xpg@unskip\ch@gll}
636 \XeTeXinterchartoks\french@punctguillend\french@punctthin={\ch@thn}
637 \XeTeXinterchartoks\french@punctguillend\french@punctthick={\ch@thk}
638 \XeTeXinterchartoks\french@punctthin\french@punctguillend={\ch@gll}
639 \XeTeXinterchartoks\french@punctthick\french@punctguillend={\ch@gll}}
640 \fi
641 % \end{macrocode}
642 % \end{macro}
643 %
644 % \begin{macro}{\ccname}
645 % \begin{macro}{\enclname}
646 % The following lines are common to the two linguistic systems: |\addto| is implemented in
647 % \textsf{polyglossia} as a shortcut for the \textsf{etoolbox} |\gappto| macro.
648 %
649 % \begin{macrocode}
650 \addto\captionsgerman
651 {\def\ccname{\emph{Vert.}}\def\enclname{\emph{Anl.}}}
652 \addto\captionsfrench
653 {\def\ccname{\emph{Cop.}}\def\enclname{\emph{Ann.}}}
654 \addto\captionsitalian
655 {\def\ccname{\emph{e\,p.c.}}\def\enclname{\emph{All.}}}
656 \addto\captionsenglish
657 {\def\ccname{\emph{c.c.}}\def\enclname{\emph{encl.}}}
658 \fi
659 % \end{macrocode}
660 % \end{macro}
661 % \end{macro}
662 %
663 % \subsubsection{The \textsf{hyperref} package}
664 %
665 % The package is only loaded if a color option is given.
666 %
667 % \begin{macrocode}
668 \expandafter\ifx\csname load@href\endcsname\relax
669 % \end{macrocode}
670 %
671 % \begin{macro}{stdfield}
672 % Unless the |\std@field| boolean is set, the main pdf strings are filled with |\@title|,
673 % |\@author| and |\jobname|. Unwanted garbage in these strings is avoided.
674 %
675 % \begin{macrocode}
676 \else
677 \ifstd@field\def\opts@href{colorlinks,unicode}\else
678 \def\opts@href{colorlinks,unicode,pdfusetitle,pdfsubject=\jobname}
679 \fi
680 \RequirePackage[\opts@href,\load@href]{hyperref}[2010/09/17]
681 \pdfstringdefDisableCommands{\def\up{}}
682 \pdfstringdefDisableCommands{\def\no{}}
683 \pdfstringdefDisableCommands{\def\bsc{}}
684 \pdfstringdefDisableCommands{\def\ier{}}
685 \pdfstringdefDisableCommands{\def\kern{}}
686 \fi
687 % \end{macrocode}
688 % \end{macro}
689 %
690 % \subsection{\LaTeX\ configuration}
691 %
692 % \subsubsection{Glue code for \textsf{chletter}}
693 %
694 % \begin{macro}{\conc}
695 % The following code is intended for users of the document class \textsf{chletter v2.0} who
696 % wish to compile older letters. See \textsf{chletter} documentation for more information.
697 % \begin{macrocode}
698 \@ifclassloaded{chletter}
699 {\@ifclasslater{chletter}{2010/01/01}
700 {\newcommand\conc[2][l]%
701 {\noindent\if#1l\hskip-\oddsidemargin\fi{\bfseries\object{#2}}}
702 \let\letterindent\parindent\let\letterskip\parskip
703 \let\fromheight\titletopheight
704 \let\toheight\titlemidheight
705 \let\stockheight\titlebotheight}{}}
706 % \end{macrocode}
707 % \end{macro}
708 %
709 % \subsubsection{Paragraphing}
710 %
711 % \begin{macro}{stdparis}
712 % Unless the |std@paris| flag is true, these values are adjusted to `continental'
713 % preferences. The same values are used in \textsf{chletter}.
714 %
715 % \begin{macrocode}
716 {\ifstd@paris\else
717 \parindent18\p@\parskip9\p@
718 \fi
719 % \end{macrocode}
720 % \end{macro}
721 %
722 % \subsubsection{Dimensions of text}
723 %
724 % \begin{macro}{stddimen}
725 % The dimensions and margins of the \textsf{chletter} class are not modified.
726 % For other classes they are set here, unless the |std@dimen| flag is true.
727 %
728 % \begin{macrocode}
729 \ifstd@dimen\else
730 \topmargin\z@\headsep24\p@
731 \footskip36\p@\footnotesep12\p@\skip\footins12\p@
732 \textwidth\paperwidth\advance\textwidth-11895300sp
733 \textheight\paperheight\advance\textheight-14093310sp
734 \oddsidemargin36\p@\evensidemargin\z@
735 \fi
736 % \end{macrocode}
737 % \end{macro}
738 %
739 % \subsubsection{Margin paragraphs}
740 %
741 % \begin{macro}{stdmgpar}
742 % The above defined note mark relies on |\marginparsep|, which is adjusted here
743 % along with other margin paragraph settings.
744 %
745 % \begin{macrocode}
746 \ifstd@mgpar\else
747 \marginparwidth48\p@\marginparsep6\p@\marginparpush6\p@
748 \fi
749 % \end{macrocode}
750 % \end{macro}
751 %
752 % \subsubsection{Lists}
753 %
754 % \begin{macro}{stdlabel}
755 % List label width, margin and separation are set by the standard classes as functions of
756 % the point size. We make these values absolute here (if |std@label| is false).
757 %
758 % \begin{macrocode}
759 \ifstd@label\else
760 \labelsep6\p@\labelwidth12\p@\leftmargin18\p@
761 \fi}
762 % \end{macrocode}
763 % \end{macro}
764 %
765 % \begin{macro}{stdlists}
766 % Default \LaTeX\ lists are well known to be space eating. A more compact
767 % layout is provided here, until the |std@lists| flag is set.
768 %
769 % \begin{macrocode}
770 \ifstd@lists\else
771 \topsep\z@ plus1\p@\partopsep\smallskipamount
772 \itemsep\z@ plus1\p@\parsep\smallskipamount
773 \fi
774 % \end{macrocode}
775 % \end{macro}
776 %
777 % \begin{macro}{stditems}
778 % Default list items (as set with |std@items| true) are respectively a bullet, an endash,
779 % an asterisk and a period. We propose a lighter layout with endashes everywhere.
780 %
781 % \begin{macrocode}
782 \ifstd@items\else
783 \def\@listI{}\let\@listi\@listI\let\@listii\@listi
784 \let\@listiii\@listi\let\@listiv\@listi
785 \def\labelitemi{\textbf{\textendash}}\let\labelitemii\labelitemi
786 \let\labelitemiii\labelitemi\let\labelitemiv\labelitemi
787 \fi
788 % \end{macrocode}
789 % \end{macro}
790 %
791 % \subsubsection{Vertical flow}
792 %
793 % \begin{macro}{stdskips}
794 % Adding some stretch to |\parskip| enables easier vertical balancing of text
795 % accross pages and columns. The absolute values are conserved.
796 %
797 % \begin{macrocode}
798 \ifstd@skips\else
799 \advance\parskip by\z@ plus3\p@\ifdim\parskip>3\p@ minus3\p@\fi
800 \advance\skip\footins by\z@ plus6\p@
801 \fi
802 % \end{macrocode}
803 % \end{macro}
804 %
805 % \subsubsection{Notes}
806 %
807 % \begin{macro}{stdnotes}
808 % Footnotes are redefined unless the |std@notes| flag is set. The marker is
809 % put in the margin at a |\marginparsep| distance of the actual note.
810 %
811 % \begin{macrocode}
812 \ifstd@notes\else
813 \let\std@footnotemark\@footnotemark
814 \def\alt@footnotemark{\unskip\thinspace\std@footnotemark}
815 \let\@footnotemark\alt@footnotemark
816 \long\def\@makefntext#1{\settowidth\@tempdima{.\kern\marginparsep}
817 \parindent\z@
818 \advance\parindent-\@tempdima
819 \rule\z@\footnotesep
820 \llap{\@thefnmark}.\kern\marginparsep#1}
821 \fi
822 % \end{macrocode}
823 % \end{macro}
824 %
825 % \subsubsection{Rules}
826 %
827 % \begin{macro}{stdrules}
828 % All \LaTeX\ rules are redefined to be thinner than default (|.25pt| instead of |.4pt|).
829 % The |\foldmark| command is also tuned (see \textsf{chletter} class for more information).
830 %
831 % \begin{macrocode}
832 \ifstd@rules\else
833 \arrayrulewidth.25\p@
834 \fboxrule.25\p@
835 \def\underbar#1{\vtop{\hbox{#1}\hrule\@height.25\p@\kern-.25\p@}}
836 \def\footnoterule%
837 {\kern-3\p@\hrule\@width.4\columnwidth\@height.25\p@\kern2.75\p@}
838 \fi
839 % \end{macrocode}
840 % \end{macro}
841 %
842 % \subsection{New commands}
843 %
844 % \subsubsection{Markup}
845 %
846 % \begin{macro}{\titlename}
847 % \begin{macro}{\authorname}
848 % \begin{macro}{\datename}
849 % These shortcuts are here to avoid unnecessary |\makeatletter| when retrieving the values set
850 % by |\author|, |\title| and |\date|. Please note that an additionnal value |\jobname| is
851 % available at kernel level.
852 % \begin{macrocode}
853 \def\titlename{\@title}
854 \def\authorname{\@author}
855 \def\datename{\@date}
856 % \end{macrocode}
857 % \end{macro}
858 % \end{macro}
859 % \end{macro}
860 %
861 % \subsubsection{Formatting}
862 %
863 % \begin{macro}{\up}
864 % \begin{macro}{\no}
865 % \begin{macro}{\bsc}
866 % \begin{macro}{\ier}
867 % These commands are present in the \textsf{babel} package \textsf{frenchb}. The
868 % \textsf{polyglossia} package doesn't provide comparable commands, so they are defined here.
869 % The \textsf{babel frenchb} definitions are overridden for the sake of straightforwardness
870 % and consistency within documents typeset in multiple languages.
871 %
872 % \begin{macrocode}
873 \let\up\textsuperscript
874 \def\no{n\up{o}\,}
875 \def\bsc#1{\hyphenpenalty\@M\textsc{#1}}
876 \def\ier{\up{er}}
877 % \end{macrocode}
878 % \end{macro}
879 % \end{macro}
880 % \end{macro}
881 % \end{macro}
882 %
883 % \begin{macrocode}
884 %</chextras.sty>
885 % \end{macrocode}
886 %
887 % \pagebreak
888 %
889 % \section{Font definitions}
890 %
891 % Appart from the \textsf{chextras} package itself, eight files are provided to enable oldstyle
892 % numbers in |T1| encoded \textsf{Latin Modern} fonts (for \LaTeX\ and Lua\TeX).
893 %
894 % \setcounter{CodelineNo}{0}
895 %
896 % \begin{macrocode}
897 %<*t1lmros.fd>
898 % \end{macrocode}
899 % \begin{macrocode}
900 \ProvidesFile{t1lmros.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
901 \DeclareFontFamily{T1}{lmros}{}
902 \DeclareFontShape{T1}{lmros}{m}{n}
903 {<-5.5> clmrj8t5
904 <5.5-6.5> clmrj8t6
905 <6.5-7.5> clmrj8t7
906 <7.5-8.5> clmrj8t8
907 <8.5-9.5> clmrj8t9
908 <9.5-11 > clmrj8t10
909 <11-15> clmrj8t12
910 <15-> clmrj8t17}{}
911 \DeclareFontShape{T1}{lmros}{m}{sl}
912 {<-8.5> clmrjo8t8
913 <8.5-9.5> clmrjo8t9
914 <9.5-11> clmrjo8t10
915 <11-15> clmrjo8t12
916 <15-> clmrjo8t17}{}
917 \DeclareFontShape{T1}{lmros}{m}{it}
918 {<-7.5> clmrji8t7
919 <7.5-8.5> clmrji8t8
920 <8.5-9.5> clmrji8t9
921 <9.5-11> clmrji8t10
922 <11-> clmrji8t12}{}
923 \DeclareFontShape{T1}{lmros}{m}{sc}
924 {<-> clmcscj8t10}{}
925 \DeclareFontShape{T1}{lmros}{m}{ui}
926 {<-> clmuj8t10}{}
927 \DeclareFontShape{T1}{lmros}{m}{scsl}
928 {<-> clmcscjo8t10}{}
929 \DeclareFontShape{T1}{lmros}{b}{n}
930 {<-> clmbj8t10}{}
931 \DeclareFontShape{T1}{lmros}{b}{sl}
932 {<-> clmbjo8t10}{}
933 \DeclareFontShape{T1}{lmros}{bx}{n}
934 {<-5.5> clmbxj8t5
935 <5.5-6.5> clmbxj8t6
936 <6.5-7.5> clmbxj8t7
937 <7.5-8.5> clmbxj8t8
938 <8.5-9.5> clmbxj8t9
939 <9.5-11> clmbxj8t10
940 <11-> clmbxj8t12}{}
941 \DeclareFontShape{T1}{lmros}{bx}{it}
942 {<-> clmbxji8t10}{}
943 \DeclareFontShape{T1}{lmros}{bx}{sl}
944 {<-> clmbxjo8t10}{}
945 \DeclareFontShape{T1}{lmros}{b}{it}
946 {<-> sub * lmros/b/sl}{}
947 % \end{macrocode}
948 % \begin{macrocode}
949 %</t1lmros.fd>
950 % \end{macrocode}
951 %
952 % \pagebreak\setcounter{CodelineNo}{0}
953 %
954 % \begin{macrocode}
955 %<*t1lmssos.fd>
956 % \end{macrocode}
957 % \begin{macrocode}
958 \ProvidesFile{t1lmssos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
959 \DeclareFontFamily{T1}{lmssos}{}
960 \DeclareFontShape{T1}{lmssos}{m}{n}
961 {<-8.5> clmssj8t8
962 <8.5-9.5> clmssj8t9
963 <9.5-11> clmssj8t10
964 <11-15.5> clmssj8t12
965 <15.5-> clmssj8t17}{}
966 \DeclareFontShape{T1}{lmssos}{m}{it}
967 {<-> ssub * lmssos/m/sl}{}
968 \DeclareFontShape{T1}{lmssos}{m}{sl}
969 {<-8.5> clmssjo8t8
970 <8.5-9.5> clmssjo8t9
971 <9.5-11> clmssjo8t10
972 <11-15.5> clmssjo8t12
973 <15.5-> clmssjo8t17}{}
974 \DeclareFontShape{T1}{lmssos}{m}{sc}
975 {<-> sub * lmros/m/sc}{}
976 \DeclareFontShape{T1}{lmssos}{b}{n}
977 {<-> ssub * lmssos/bx/n}{}
978 \DeclareFontShape{T1}{lmssos}{b}{sl}
979 {<-> ssub * lmssos/bx/sl}{}
980 \DeclareFontShape{T1}{lmssos}{b}{it}
981 {<-> ssub * lmssos/bx/it}{}
982 \DeclareFontShape{T1}{lmssos}{sbc}{n}
983 {<-> clmssdcj8t10}{}
984 \DeclareFontShape{T1}{lmssos}{sbc}{sl}
985 {<-> clmssdcjo8t10}{}
986 \DeclareFontShape{T1}{lmssos}{sbc}{it}
987 {<-> ssub * lmssos/sbc/sl}{}
988 \DeclareFontShape{T1}{lmssos}{bx}{n}
989 {<-> clmssbxj8t10}{}
990 \DeclareFontShape{T1}{lmssos}{bx}{sl}
991 {<-> clmssbjo8t10}{}
992 \DeclareFontShape{T1}{lmssos}{bx}{it}
993 {<-> ssub * lmssos/bx/sl}{}
994 % \end{macrocode}
995 % \begin{macrocode}
996 %</t1lmssos.fd>
997 % \end{macrocode}
998 %
999 % \bigskip\setcounter{CodelineNo}{0}
1000 %
1001 % \begin{macrocode}
1002 %<*t1lmttos.fd>
1003 % \end{macrocode}
1004 % \begin{macrocode}
1005 \ProvidesFile{t1lmttos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1006 \DeclareFontFamily{T1}{lmttos}{\hyphenchar\font\m@ne}
1007 \ifx\lmtt@use@light@as@normal\@empty
1008 \DeclareFontShape{T1}{lmttos}{sb}{n}
1009 {<-8.5> clmttj8t8
1010 <8.5-9.5> clmttj8t9
1011 <9.5-11> clmttj8t10
1012 <11-> clmttj8t12}{}
1013 \DeclareFontShape{T1}{lmttos}{sb}{it}
1014 {<-> clmttij8t10}{}
1015 \DeclareFontShape{T1}{lmttos}{sb}{sl}
1016 {<-> clmttjo8t10}{}
1017 \DeclareFontShape{T1}{lmttos}{sb}{sc}
1018 {<-> clmtcscj8t10}{}
1019 \DeclareFontShape{T1}{lmttos}{sb}{scsl}
1020 {<-> clmtcsjo8t10}{}
1021 \DeclareFontShape{T1}{lmttos}{m}{n}
1022 {<-> clmtlj8t10}{}
1023 \DeclareFontShape{T1}{lmttos}{m}{it}
1024 {<-> sub * lmttos/l/sl}{}
1025 \DeclareFontShape{T1}{lmttos}{m}{sl}
1026 {<-> clmtljo8t10}{}
1027 \DeclareFontShape{T1}{lmttos}{c}{n}
1028 {<-> clmtlcj8t10}{}
1029 \DeclareFontShape{T1}{lmttos}{c}{it}
1030 {<-> sub * lmttos/lc/sl}{}
1031 \DeclareFontShape{T1}{lmttos}{c}{sl}
1032 {<-> clmtlcjo8t10}{}\else
1033 \DeclareFontShape{T1}{lmttos}{m}{n}
1034 {<-8.5> clmttj8t8
1035 <8.5-9.5> clmttj8t9
1036 <9.5-11> clmttj8t10
1037 <11-> clmttj8t12}{}
1038 \DeclareFontShape{T1}{lmttos}{m}{it}
1039 {<-> clmttij8t10}{}
1040 \DeclareFontShape{T1}{lmttos}{m}{sl}
1041 {<-> clmttjo8t10}{}
1042 \DeclareFontShape{T1}{lmttos}{m}{sc}
1043 {<-> clmtcscj8t10}{}
1044 \DeclareFontShape{T1}{lmttos}{m}{scsl}
1045 {<-> clmtcsjo8t10}{}
1046 \DeclareFontShape{T1}{lmttos}{l}{n}
1047 {<-> clmtlj8t10}{}
1048 \DeclareFontShape{T1}{lmttos}{l}{it}
1049 {<-> sub * lmttos/l/sl}{}
1050 \DeclareFontShape{T1}{lmttos}{l}{sl}
1051 {<-> clmtljo8t10}{}
1052 \DeclareFontShape{T1}{lmttos}{lc}{n}
1053 {<-> clmtlcj8t10}{}
1054 \DeclareFontShape{T1}{lmttos}{lc}{it}
1055 {<-> sub * lmttos/lc/sl}{}
1056 \DeclareFontShape{T1}{lmttos}{lc}{sl}
1057 {<-> clmtlcjo8t10}{}\fi
1058 \DeclareFontShape{T1}{lmttos}{b}{n}
1059 {<-> clmtkj8t10}{}
1060 \DeclareFontShape{T1}{lmttos}{b}{it}
1061 {<-> sub * lmttos/b/sl}{}
1062 \DeclareFontShape{T1}{lmttos}{b}{sl}
1063 {<-> clmtkjo8t10}{}
1064 \DeclareFontShape{T1}{lmttos}{bx}{it}
1065 {<-> sub * lmttos/b/sl}{}
1066 \DeclareFontShape{T1}{lmttos}{bx}{n}
1067 {<-> ssub * lmttos/b/n}{}
1068 \DeclareFontShape{T1}{lmttos}{bx}{sl}
1069 {<-> ssub * lmttos/b/sl}{}
1070 % \end{macrocode}
1071 % \begin{macrocode}
1072 %</t1lmttos.fd>
1073 % \end{macrocode}
1074 %
1075 % \pagebreak\setcounter{CodelineNo}{0}
1076 %
1077 % \begin{macrocode}
1078 %<*t1lmvttos.fd>
1079 % \end{macrocode}
1080 % \begin{macrocode}
1081 \ProvidesFile{t1lmvttos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1082 \DeclareFontFamily{T1}{lmvttos}{}
1083 \ifx\lmtt@use@light@as@normal\@empty
1084 \DeclareFontShape{T1}{lmvttos}{sb}{n}
1085 {<-> clmvttj8t10}{}
1086 \DeclareFontShape{T1}{lmvttos}{sb}{it}
1087 {<-> clmvttjo8t10}{}
1088 \DeclareFontShape{T1}{lmvttos}{sb}{sl}
1089 {<-> sub * lmvttos/sb/it}{}
1090 \DeclareFontShape{T1}{lmvttos}{m}{n}
1091 {<-> clmvtlj8t10}{}
1092 \DeclareFontShape{T1}{lmvttos}{m}{it}
1093 {<-> clmvtljo8t10}{}
1094 \DeclareFontShape{T1}{lmvttos}{m}{sl}
1095 {<-> sub * lmvttos/m/it}{}\else
1096 \DeclareFontShape{T1}{lmvttos}{m}{n}
1097 {<-> clmvttj8t10}{}
1098 \DeclareFontShape{T1}{lmvttos}{m}{it}
1099 {<-> clmvttjo8t10}{}
1100 \DeclareFontShape{T1}{lmvttos}{m}{sl}
1101 {<-> sub * lmvttos/m/it}{}
1102 \DeclareFontShape{T1}{lmvttos}{l}{n}
1103 {<-> clmvtlj8t10}{}
1104 \DeclareFontShape{T1}{lmvttos}{l}{it}
1105 {<-> clmvtljo8t10}{}
1106 \DeclareFontShape{T1}{lmvttos}{l}{sl}
1107 {<-> sub * lmvttos/l/it}{}\fi
1108 \DeclareFontShape{T1}{lmvttos}{bx}{n}
1109 {<-> clmvtkj8t10}{}
1110 \DeclareFontShape{T1}{lmvttos}{bx}{it}
1111 {<-> clmvtkjo8t10}{}
1112 \DeclareFontShape{T1}{lmvttos}{bx}{sl}
1113 {<-> sub * lmvttos/b/it}{}
1114 \DeclareFontShape{T1}{lmvttos}{b}{n}
1115 {<-> sub * lmvttos/bx/n}{}
1116 \DeclareFontShape{T1}{lmvttos}{b}{sl}
1117 {<-> ssub * lmvttos/bx/it}{}
1118 \DeclareFontShape{T1}{lmvttos}{b}{it}
1119 {<-> ssub * lmvttos/bx/it}{}
1120 % \end{macrocode}
1121 % \begin{macrocode}
1122 %</t1lmvttos.fd>
1123 % \end{macrocode}
1124 %
1125 % \pagebreak\setcounter{CodelineNo}{0}
1126 %
1127 % \begin{macrocode}
1128 %<*eu1lmros.fd>
1129 % \end{macrocode}
1130 % \begin{macrocode}
1131 \ProvidesFile{eu1lmros.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1132 \DeclareFontFamily{EU1}{lmros}{}
1133 \DeclareFontShape{EU1}{lmros}{m}{n}
1134 {<-5.5> "[lmroman5-regular]:+onum,+tnum,mapping=tex-text"
1135 <5.5-6.5> "[lmroman6-regular]:+onum,+tnum,mapping=tex-text"
1136 <6.5-7.5> "[lmroman7-regular]:+onum,+tnum,mapping=tex-text"
1137 <7.5-8.5> "[lmroman8-regular]:+onum,+tnum,mapping=tex-text"
1138 <8.5-9.5> "[lmroman9-regular]:+onum,+tnum,mapping=tex-text"
1139 <9.5-11 > "[lmroman10-regular]:+onum,+tnum,mapping=tex-text"
1140 <11-15> "[lmroman12-regular]:+onum,+tnum,mapping=tex-text"
1141 <15-> "[lmroman17-regular]:+onum,+tnum,mapping=tex-text"}{}
1142 \DeclareFontShape{EU1}{lmros}{m}{sl}
1143 {<-8.5> "[lmromanslant8-regular]:+onum,+tnum,mapping=tex-text"
1144 <8.5-9.5> "[lmromanslant9-regular]:+onum,+tnum,mapping=tex-text"
1145 <9.5-11> "[lmromanslant10-regular]:+onum,+tnum,mapping=tex-text"
1146 <11-15> "[lmromanslant12-regular]:+onum,+tnum,mapping=tex-text"
1147 <15-> "[lmromanslant17-regular]:+onum,+tnum,mapping=tex-text"}{}
1148 \DeclareFontShape{EU1}{lmros}{m}{it}
1149 {<-7.5> "[lmroman7-italic]:+onum,+tnum,mapping=tex-text"
1150 <7.5-8.5> "[lmroman8-italic]:+onum,+tnum,mapping=tex-text"
1151 <8.5-9.5> "[lmroman9-italic]:+onum,+tnum,mapping=tex-text"
1152 <9.5-11> "[lmroman10-italic]:+onum,+tnum,mapping=tex-text"
1153 <11-> "[lmroman12-italic]:+onum,+tnum,mapping=tex-text"}{}
1154 \DeclareFontShape{EU1}{lmros}{m}{sc}
1155 {<-> "[lmromancaps10-regular]:+onum,+tnum,mapping=tex-text"}{}
1156 \DeclareFontShape{EU1}{lmros}{m}{ui}
1157 {<-> "[lmromanunsl10-regular]:+onum,+tnum,mapping=tex-text"}{}
1158 \DeclareFontShape{EU1}{lmros}{m}{scsl}
1159 {<-> "[lmromancaps10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1160 \DeclareFontShape{EU1}{lmros}{b}{n}
1161 {<-> "[lmromandemi10-regular]:+onum,+tnum,mapping=tex-text"}{}
1162 \DeclareFontShape{EU1}{lmros}{b}{sl}
1163 {<-> "[lmromandemi10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1164 \DeclareFontShape{EU1}{lmros}{bx}{n}
1165 {<-5.5> "[lmroman5-bold]:+onum,+tnum,mapping=tex-text"
1166 <5.5-6.5> "[lmroman6-bold]:+onum,+tnum,mapping=tex-text"
1167 <6.5-7.5> "[lmroman7-bold]:+onum,+tnum,mapping=tex-text"
1168 <7.5-8.5> "[lmroman8-bold]:+onum,+tnum,mapping=tex-text"
1169 <8.5-9.5> "[lmroman9-bold]:+onum,+tnum,mapping=tex-text"
1170 <9.5-11> "[lmroman10-bold]:+onum,+tnum,mapping=tex-text"
1171 <11-> "[lmroman12-bold]:+onum,+tnum,mapping=tex-text"}{}
1172 \DeclareFontShape{EU1}{lmros}{bx}{it}
1173 {<-> "[lmroman10-bolditalic]:+onum,+tnum,mapping=tex-text"}{}
1174 \DeclareFontShape{EU1}{lmros}{bx}{sl}
1175 {<-> "[lmromanslant10-bold]:+onum,+tnum,mapping=tex-text"}{}
1176 \DeclareFontShape{EU1}{lmros}{b}{it}
1177 {<-> sub * lmros/b/sl}{}
1178 % \end{macrocode}
1179 % \begin{macrocode}
1180 %</eu1lmros.fd>
1181 % \end{macrocode}
1182 %
1183 % \pagebreak\setcounter{CodelineNo}{0}
1184 %
1185 % \begin{macrocode}
1186 %<*eu1lmssos.fd>
1187 % \end{macrocode}
1188 % \begin{macrocode}
1189 \ProvidesFile{eu1lmssos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1190 \DeclareFontFamily{EU1}{lmssos}{}
1191 \DeclareFontShape{EU1}{lmssos}{m}{n}
1192 {<-8.5> "[lmsans8-regular]:+onum,+tnum,mapping=tex-text"
1193 <8.5-9.5> "[lmsans9-regular]:+onum,+tnum,mapping=tex-text"
1194 <9.5-11> "[lmsans10-regular]:+onum,+tnum,mapping=tex-text"
1195 <11-15.5> "[lmsans12-regular]:+onum,+tnum,mapping=tex-text"
1196 <15.5-> "[lmsans17-regular]:+onum,+tnum,mapping=tex-text"}{}
1197 \DeclareFontShape{EU1}{lmssos}{m}{it}
1198 {<-> ssub * lmssos/m/sl}{}
1199 \DeclareFontShape{EU1}{lmssos}{m}{sl}
1200 {<-8.5> "[lmsans8-oblique]:+onum,+tnum,mapping=tex-text"
1201 <8.5-9.5> "[lmsans9-oblique]:+onum,+tnum,mapping=tex-text"
1202 <9.5-11> "[lmsans10-oblique]:+onum,+tnum,mapping=tex-text"
1203 <11-15.5> "[lmsans12-oblique]:+onum,+tnum,mapping=tex-text"
1204 <15.5-> "[lmsans17-oblique]:+onum,+tnum,mapping=tex-text"}{}
1205 \DeclareFontShape{EU1}{lmssos}{m}{sc}
1206 {<-> sub * lmros/m/sc}{}
1207 \DeclareFontShape{EU1}{lmssos}{b}{n}
1208 {<-> ssub * lmssos/bx/n}{}
1209 \DeclareFontShape{EU1}{lmssos}{b}{sl}
1210 {<-> ssub * lmssos/bx/sl}{}
1211 \DeclareFontShape{EU1}{lmssos}{b}{it}
1212 {<-> ssub * lmssos/bx/it}{}
1213 \DeclareFontShape{EU1}{lmssos}{sbc}{n}
1214 {<-> "[lmsansdemicond10-regular]:+onum,+tnum,mapping=tex-text"}{}
1215 \DeclareFontShape{EU1}{lmssos}{sbc}{sl}
1216 {<-> "[lmsansdemicond10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1217 \DeclareFontShape{EU1}{lmssos}{sbc}{it}
1218 {<-> ssub * lmssos/sbc/sl}{}
1219 \DeclareFontShape{EU1}{lmssos}{bx}{n}
1220 {<-> "[lmsans10-bold]:+onum,+tnum,mapping=tex-text"}{}
1221 \DeclareFontShape{EU1}{lmssos}{bx}{sl}
1222 {<-> "[lmsans10-boldoblique]:+onum,+tnum,mapping=tex-text"}{}
1223 \DeclareFontShape{EU1}{lmssos}{bx}{it}
1224 {<-> ssub * lmssos/bx/sl}{}
1225 % \end{macrocode}
1226 % \begin{macrocode}
1227 %</eu1lmssos.fd>
1228 % \end{macrocode}
1229 %
1230 % \bigskip\setcounter{CodelineNo}{0}
1231 %
1232 % \begin{macrocode}
1233 %<*eu1lmttos.fd>
1234 % \end{macrocode}
1235 % \begin{macrocode}
1236 \ProvidesFile{eu1lmttos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1237 \DeclareFontFamily{EU1}{lmttos}{\hyphenchar\font\m@ne}
1238 \ifx\lmtt@use@light@as@normal\@empty
1239 \DeclareFontShape{EU1}{lmttos}{sb}{n}
1240 {<-8.5> "[lmmono8-regular]:+onum,+tnum"
1241 <8.5-9.5> "[lmmono9-regular]:+onum,+tnum"
1242 <9.5-11> "[lmmono10-regular]:+onum,+tnum"
1243 <11-> "[lmmono12-regular]:+onum,+tnum"}{}
1244 \DeclareFontShape{EU1}{lmttos}{sb}{it}
1245 {<-> "[lmmono10-italic]:+onum,+tnum"}{}
1246 \DeclareFontShape{EU1}{lmttos}{sb}{sl}
1247 {<-> "[lmmonoslant10-regular]:+onum,+tnum"}{}
1248 \DeclareFontShape{EU1}{lmttos}{sb}{sc}
1249 {<-> "[lmmonocaps10-regular]:+onum,+tnum"}{}
1250 \DeclareFontShape{EU1}{lmttos}{sb}{scsl}
1251 {<-> "[lmmonocaps10-oblique]:+onum,+tnum"}{}
1252 \DeclareFontShape{EU1}{lmttos}{m}{n}
1253 {<-> "[lmmonolt10-regular]:+onum,+tnum"}{}
1254 \DeclareFontShape{EU1}{lmttos}{m}{it}
1255 {<-> sub * lmttos/l/sl}{}
1256 \DeclareFontShape{EU1}{lmttos}{m}{sl}
1257 {<-> "[lmmonolt10-oblique]:+onum,+tnum"}{}
1258 \DeclareFontShape{EU1}{lmttos}{c}{n}
1259 {<-> "[lmmonoltcond10-regular]:+onum,+tnum"}{}
1260 \DeclareFontShape{EU1}{lmttos}{c}{it}
1261 {<-> sub * lmttos/lc/sl}{}
1262 \DeclareFontShape{EU1}{lmttos}{c}{sl}
1263 {<-> "[lmmonoltcond10-oblique]:+onum,+tnum"}{}\else
1264 \DeclareFontShape{EU1}{lmttos}{m}{n}
1265 {<-8.5> "[lmmono8-regular]:+onum,+tnum"
1266 <8.5-9.5> "[lmmono9-regular]:+onum,+tnum"
1267 <9.5-11> "[lmmono10-regular]:+onum,+tnum"
1268 <11-> "[lmmono12-regular]:+onum,+tnum"}{}
1269 \DeclareFontShape{EU1}{lmttos}{m}{it}
1270 {<-> "[lmmono10-italic]:+onum,+tnum"}{}
1271 \DeclareFontShape{EU1}{lmttos}{m}{sl}
1272 {<-> "[lmmonoslant10-regular]:+onum,+tnum"}{}
1273 \DeclareFontShape{EU1}{lmttos}{m}{sc}
1274 {<-> "[lmmonocaps10-regular]:+onum,+tnum"}{}
1275 \DeclareFontShape{EU1}{lmttos}{m}{scsl}
1276 {<-> "[lmmonocaps10-oblique]:+onum,+tnum"}{}
1277 \DeclareFontShape{EU1}{lmttos}{l}{n}
1278 {<-> "[lmmonolt10-regular]:+onum,+tnum"}{}
1279 \DeclareFontShape{EU1}{lmttos}{l}{it}
1280 {<-> sub * lmttos/l/sl}{}
1281 \DeclareFontShape{EU1}{lmttos}{l}{sl}
1282 {<-> "[lmmonolt10-oblique]:+onum,+tnum"}{}
1283 \DeclareFontShape{EU1}{lmttos}{lc}{n}
1284 {<-> "[lmmonoltcond10-regular]:+onum,+tnum"}{}
1285 \DeclareFontShape{EU1}{lmttos}{lc}{it}
1286 {<-> sub * lmttos/lc/sl}{}
1287 \DeclareFontShape{EU1}{lmttos}{lc}{sl}
1288 {<-> "[lmmonoltcond10-oblique]:+onum,+tnum"}{}\fi
1289 \DeclareFontShape{EU1}{lmttos}{b}{n}
1290 {<-> "[lmmonolt10-bold]:+onum,+tnum"}{}
1291 \DeclareFontShape{EU1}{lmttos}{b}{it}
1292 {<-> sub * lmttos/b/sl}{}
1293 \DeclareFontShape{EU1}{lmttos}{b}{sl}
1294 {<-> "[lmmonolt10-boldoblique]:+onum,+tnum"}{}
1295 \DeclareFontShape{EU1}{lmttos}{bx}{it}
1296 {<-> sub * lmttos/b/sl}{}
1297 \DeclareFontShape{EU1}{lmttos}{bx}{n}
1298 {<-> ssub * lmttos/b/n}{}
1299 \DeclareFontShape{EU1}{lmttos}{bx}{sl}
1300 {<-> ssub * lmttos/b/sl}{}
1301 % \end{macrocode}
1302 % \begin{macrocode}
1303 %</eu1lmttos.fd>
1304 % \end{macrocode}
1305 %
1306 % \pagebreak\setcounter{CodelineNo}{0}
1307 %
1308 % \begin{macrocode}
1309 %<*eu1lmvttos.fd>
1310 % \end{macrocode}
1311 % \begin{macrocode}
1312 \ProvidesFile{eu1lmvttos.fd}[2012/07/20 v1.01 Font defs for Latin Modern]
1313 \DeclareFontFamily{EU1}{lmvttos}{}
1314 \ifx\lmtt@use@light@as@normal\@empty
1315 \DeclareFontShape{EU1}{lmvttos}{sb}{n}
1316 {<-> "[lmmonoprop10-regular]:+onum,+tnum,mapping=tex-text"}{}
1317 \DeclareFontShape{EU1}{lmvttos}{sb}{sl}
1318 {<-> "[lmmonoprop10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1319 \DeclareFontShape{EU1}{lmvttos}{sb}{it}
1320 {<-> sub * lmvttos/sb/sl}{}
1321 \DeclareFontShape{EU1}{lmvttos}{m}{n}
1322 {<-> "[lmmonoproplt10-regular]:+onum,+tnum,mapping=tex-text"}{}
1323 \DeclareFontShape{EU1}{lmvttos}{m}{sl}
1324 {<-> "[lmmonoproplt10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1325 \DeclareFontShape{EU1}{lmvttos}{m}{it}
1326 {<-> sub * lmvttos/m/sl}{}\else
1327 \DeclareFontShape{EU1}{lmvttos}{m}{n}
1328 {<-> "[lmmonoprop10-regular]:+onum,+tnum,mapping=tex-text"}{}
1329 \DeclareFontShape{EU1}{lmvttos}{m}{sl}
1330 {<-> "[lmmonoprop10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1331 \DeclareFontShape{EU1}{lmvttos}{m}{it}
1332 {<-> sub * lmvttos/m/sl}{}
1333 \DeclareFontShape{EU1}{lmvttos}{l}{n}
1334 {<-> "[lmmonoproplt10-regular]:+onum,+tnum,mapping=tex-text"}{}
1335 \DeclareFontShape{EU1}{lmvttos}{l}{sl}
1336 {<-> "[lmmonoproplt10-oblique]:+onum,+tnum,mapping=tex-text"}{}
1337 \DeclareFontShape{EU1}{lmvttos}{l}{it}
1338 {<-> sub * lmvttos/l/sl}{}\fi
1339 \DeclareFontShape{EU1}{lmvttos}{b}{n}
1340 {<-> "[lmmonoproplt10-bold]:+onum,+tnum,mapping=tex-text"}{}
1341 \DeclareFontShape{EU1}{lmvttos}{b}{sl}
1342 {<-> "[lmmonoproplt10-boldoblique]:+onum,+tnum,mapping=tex-text"}{}
1343 \DeclareFontShape{EU1}{lmvttos}{b}{it}
1344 {<-> sub * lmvttos/b/sl}{}
1345 \DeclareFontShape{EU1}{lmvttos}{bx}{n}
1346 {<-> sub * lmvttos/b/n}{}
1347 \DeclareFontShape{EU1}{lmvttos}{bx}{sl}
1348 {<-> ssub * lmvttos/b/sl}{}
1349 \DeclareFontShape{EU1}{lmvttos}{bx}{it}
1350 {<-> ssub * lmvttos/b/sl}{}
1351 % \end{macrocode}
1352 % \begin{macrocode}
1353 %</eu1lmvttos.fd>
1354 % \end{macrocode}
1355 %
1356 % \pagebreak
1357 %
1358 % \Finale
1359 % \PrintChanges
1360 % \PrintIndex
1361 \endinput