Debian Codegraph @

texmf-dist/source/fonts/lxfonts/lxfonts.dtx

raw
1 % \iffalse meta-comment
2 %<*internal>
3 \begingroup
4 \input docstrip.tex
5 \keepsilent
6 \askforoverwritefalse
7
8 \preamble
9 ____________________________________________________
10 The LXfonts package
11 Copyright (C) 2008-2025 Claudio Beccari
12 All rights reserved
13
14 Distributable under the LaTeX Project Public
15 License, version 1.3c or higher (your choice).
16 The latest version of this license is at:
17 http://www.latex-project.org/lppl.txt
18 \endpreamble
19 \postamble
20 Read the README.txt test file for further details
21 \endpostamble
22
23
24 \generate{\file{lxfonts.sty}{\from{lxfonts.dtx}{lxsty}}}
25 \generate{\file{ot1llcmss.fd}{\from{lxfonts.dtx}{lxot1ssfd}}}
26 \generate{\file{ot1llcmtt.fd}{\from{lxfonts.dtx}{lxot1ttfd}}}
27 \generate{\file{t1llcmss.fd}{\from{lxfonts.dtx}{lxt1ssfd}}}
28 \generate{\file{t1llcmtt.fd}{\from{lxfonts.dtx}{lxt1ttfd}}}
29 \generate{\file{ts1llcmss.fd}{\from{lxfonts.dtx}{lxts1ssfd}}}
30 \generate{\file{omlllcmm.fd}{\from{lxfonts.dtx}{lxomlmmfd}}}
31 \generate{\file{omsllcmsy.fd}{\from{lxfonts.dtx}{lxomssyfd}}}
32 \generate{\file{omxllcmex.fd}{\from{lxfonts.dtx}{lxomxexfd}}}
33 \generate{\file{ulmsa.fd}{\from{lxfonts.dtx}{lxumsafd}}}
34 \generate{\file{ulmsb.fd}{\from{lxfonts.dtx}{lxumsbfd}}}
35 \generate{\file{ulllasy.fd}{\from{lxfonts.dtx}{lxultxfd}}}
36 \generate{\file{lxfonts.map}{\from{lxfonts.dtx}{lxmap}}}
37 \generate{\file{lgrllcmss.fd}{\from{lxfonts.dtx}{lxlgrfd}}}
38 \generate{\file{lgrllcmtt.fd}{\from{lxfonts.dtx}{lxlgrttfd}}}
39
40 \def\tmpa{plain}
41 \ifx\tmpa\fmtname\endgroup\expandafter\bye\fi
42 \endgroup
43 %</internal>
44 % \fi
45 %
46 % \iffalse
47 %<*driver>
48 \documentclass{ltxdoc}
49 \ProvidesFile{lxfonts.dtx}[2025-02-03 v.3.0 Documented TeX file for
50 the LXfonts bundle]
51 \GetFileInfo{lxfonts.dtx}
52 \title{The LXfonts bundle}
53 \date{\fileversion\space--- \filedate}
54 \author{Claudio Beccari
55 \\[1ex]
56 \texttt{claudio.beccari(at)gmail.com}}
57
58 \usepackage{mflogo}
59 %\usepackage{textcomp}
60 \usepackage[LGR,T1]{fontenc}
61
62 \def\prog#1{\textsf{#1}}
63 \def\pack#1{\textsf{\slshape#1}}
64 \def\file#1{\texttt{\itshape#1}}
65 \DeclareRobustCommand\AMS{\ensuremath{\mathcal{A\!_{\textstyle M}\mkern-2mu S}}}
66
67 \begin{document}\errorcontextlines=9
68 \maketitle
69 \setlength\hfuzz{20pt}
70 \DocInput{lxfonts.dtx}
71 \end{document}
72 %</driver>
73 % \fi
74 %
75 % \CheckSum{0}
76 %
77 % This self extracting documented file
78 % |lxfonts.dtx|, besides the |lxfonts.sty| file,
79 % produces the font description files necessary to
80 % use the LX fonts in any document, preferably
81 % presentations, but not only. It documents
82 % why they were made and the choices made in
83 % selecting which fonts to convert to this style.
84 %
85 % These fonts should be useful for typesetting
86 % documents with T1 encoding (the old OT1 encoding
87 % is also supported) and blends text and math fonts
88 % in the proper way; AMS fonts are supported. For
89 % legacy reasons the \LaTeX\ special symbol set is
90 % also accordingly restyled, but users are suggested
91 % to avoid their usage; they should prefer the AMS
92 % fonts.
93 %
94 % \section{The LX fonts}
95 % In the first eighties, when \LaTeX\ was conceived,
96 % Leslie Lamport created a stand alone program,
97 % or better, a mark-up \SliTeX\ format that could be
98 % used in place of \LaTeX\ when it was necessary to
99 % create transparencies for conferences, lectures,
100 % and presentations; when \LaTeXe\ was made
101 % available in the early nineties, that set of
102 % mark-up macros and format did not exist any more,
103 % and in its place there was the new class
104 % \pack{slides}.
105 %
106 % The processing of the source files was almost
107 % identical, although the new class \pack{slides}
108 % had more typesetting power thanks to the \LaTeXe\
109 % more powerful macros.
110 %
111 % Both processes produced printed documents that
112 % could be photocopied onto methacrylate
113 % transparencies and used with overhead projectors.
114 %
115 % Since the advent of beamer projectors, that can
116 % operate directly from a computer, and the
117 % availability of the \prog{pdfLaTeX} typesetting
118 % program, a set of packages was made available to
119 % the \TeX\ community so as to produce wonderful
120 % presentations, possibly together with their
121 % printed handouts, that quickly replaced the old
122 % and honorable \SliTeX\ format and the
123 % \pack{slides} class.
124 %
125 % The fonts that Leslie Lamport had devised to use
126 % with \SliTeX\ and \pack{slides} had a great
127 % advantage over the default \TeX\ system fonts,
128 % namely the traditional Computer Modern ones, and,
129 % after the introduction of the new encoding T1, of
130 % the European Computer fonts and, later on, of the
131 % Latin Modern vector ones.
132 %
133 % It was \emph{legibility}.
134 %
135 % This advantage was obtained from the sans serif
136 % quotation fonts designed by D.E.~Knuth himself;
137 % he used them to typeset the witty quotations at
138 % each chapter end of both his \TeX\ and \MF\ books.
139 %
140 % But these Knuthian fonts had a disadvantage: the
141 % capital `I' and the lower case `l' were hardly
142 % distinguishable from one another and from the
143 % absolute value vertical bar. Leslie Lamport
144 % solved in part this problem by changing the sans
145 % serif ‘I’ with a serifed one; this was fine most
146 % of the time, but did not solve the similarity of
147 % the sans serif lower case `l' with the math
148 % absolute value bar.
149 %
150 % Moreover when typesetting math in those old
151 % fashioned transparencies, only the
152 % |operators| font was changed to a sans serif one,
153 % while the |letters| math italics font, together
154 % with the other |symbols| normal and
155 % |largesymbols| large symbol fonts remained the
156 % same; the result was that some math glyphs,
157 % obtained by juxtaposition of symbols coming from
158 % the operator font and some other math font,
159 % resulted clearly inadequate.
160 %
161 % The solution of such problems consisted in
162 % redesigning the shape of the lower case `l', so as
163 % to be more similar to an upright italic one, with
164 % a curved bottom, and to restyle all the math fonts
165 % with the same graphic font settings of the Lamport
166 % fonts, both in OT1 and T1 encoding, and in the
167 % math encodings OML, OMS OMX, plus the Text
168 % Companion TS1 encoded fonts\footnote{Recently the \TeX\ Companion fonts were split in several subsets and the realtive macros are included in the \LaTeX\ kernel, therefore it is not necessary to load the \pack{texcomp} package.}, the \AMS\ fonts and
169 % the vintage \LaTeX\ symbol fonts.
170 %
171 % This is all what concerns these extended slide LX
172 % fonts; while doing this extensions I had to change
173 % the metadescription of several glyphs, but the
174 % overall work was not that complicated; it was just
175 % heavy because the large number of fonts involved,
176 % and therefore the overall glyph number.
177 %
178 % This package redefines both the text and math font
179 % families; checks if the \AMS\ fonts have been
180 % called for, avoids to redefine the nice glyphs of
181 % the \AMS\ collection with the \LaTeX\ symbol
182 % fonts, although it will redefine the latter ones
183 % in case the user wants to use them, but did not
184 % load the \AMS\ font collections.
185 %
186 % These settings are deferred at begin document
187 % time, so that the necessary checks may be used
188 % after other fonts are possibly loaded.
189 %
190 % As a bonus the typewriter fonts are loaded in a
191 % scaled up version so that their x-height matches
192 % the larger LX fonts x-height. Such fonts are
193 % scaled 25\% up so that the 8pt design size
194 % typewriter font x-height matches the corresponding
195 % height of the LX fonts.
196 %
197 % These LX fonts are available in both vector and
198 % bitmapped form; I made the whole work by working
199 % on the \MF\ source files; when I was satisfied
200 % with the bitmapped fonts produced with \MF, I
201 % traced them by means of the \prog{mftrace}
202 % program, by Han-Wen Nien­huys, and produced
203 % the .pfb files containing the vector description
204 % of the glyphs. In order to use them with
205 % \prog{pdfLaTeX} it is necessary to have available
206 % the .map file, that I provided as part of this
207 % package. As a consequence of the method I
208 % followed, this bundle contains also the
209 % \file{.tfm} metric information
210 %
211 % \section{Usage}
212 % The only action needed to use these LX fonts is to
213 % call
214 %\begin{verbatim}
215 %\usepackage{lxfonts}
216 %\end{verbatim}
217 % in the preamble; there are no options to set.
218 %
219 % If you use \pack{beamer} to create your
220 % presentation you might need to specify
221 %\begin{verbatim}
222 %\usefonttheme{professionalfonts}
223 %\end{verbatim}
224 % in order to avoid that beamer resets some math
225 % fonts the way it defaults to; for the rest you
226 % don't need to follow a particular loading order,
227 % although it might be clearer if you loaded your
228 % fonts after specifying the input and outout
229 % font encoding(s).
230 %
231 % \section{Standalone usage of the LX fonts}\label{sec:standalone}
232 %
233 % The style file \pack{lxfonts.sty} changes all
234 % the default font settings so that you cannot use
235 % any other font together with the LX ones.
236 %
237 % You can circumvent this rigidity by using the
238 % explicit declaration of the font family you want
239 % to use; for example, if you called this package
240 % and at a certain point you want to typeset
241 % something with a serifed font, say, the T1 encoded
242 % Latin Modern Roman font, you can define a macro
243 % declaration or explicitly specify:
244 %\begin{verbatim}
245 %{\usefont{T1}{lmr}{m}{n} Words\ldots words}
246 %\end{verbatim}
247 % By so doing the “Words\ldots words” will be
248 % typeset in roman medium Latin Modern T1 encoded
249 % font at the current size
250 %
251 % On the opposite if you want to show a sample text
252 % written with the LX fonts while you are
253 % typesetting with other fonts, you don't use the
254 % above \file{.sty} file package, but use a macro
255 % declaration or the explicit command:
256 %\begin{verbatim}
257 %{\usefont{T1}{llcmss}{m}{n} Words\ldots words}
258 %\end{verbatim}
259 % and you get {\usefont{T1}{llcmss}{m}{n} Words\dots
260 % words} at the current type size; notice though,
261 % how larger the script appears thanks to the larger
262 % x-height, but uppercase letters are the same size
263 % as the serifed ones.
264 %
265 % With the previous version 1.0 of this package,
266 % this functionality was not available.
267 %
268 % \section{Integration of the Latin and the Greek scripts}
269 %
270 % The Greek CB fonts contain also the families and
271 % shapes for slides; the style is the same as that
272 % of these LX fonts, but the different script does
273 % not require any restyling of any glyph; so they
274 % can be used directly; but the script changing
275 % mechanism simply implies the change of the
276 % encoding; therefore in order to use the above
277 % Greek CB fonts, it is simply necessary to have
278 % available new font description files whose name is
279 % the agglutination of the Greek encoding name (in
280 % lower case) with the family name (identical to
281 % that of the Latin script); the contents of such
282 % files, of course, retrieves the glyphs from the
283 % Greek fonts files.
284 %
285 % Therefore it should not be difficult in a
286 % presentation to specify the Greek language in the
287 % preamble of the source file, and use the
288 % \pack{babel} language switching commands to as to
289 % write something like this:
290 % {\usefont{LGR}{llcmss}{m}{n} Kal’ hm'era!}
291 % means \emph{Good day!}.
292 %
293 % More comfortably, while typesetting with
294 % \prog{pdflatex}, load package \pack{begingreek}
295 % that provides an environment the contents of
296 % which is assumed to be in Greek.
297 %
298 % \section{ The LX fonts demo presentation}
299 %
300 % This bundle, besides this documentation, is
301 % shipped with a demo presentation where most
302 % features of the LX fonts are shown; the slides
303 % clearly show the features of these fonts, both the
304 % positive and negative ones. The
305 % \emph{legibility}, in my opinion, is excellent; if
306 % it was not for this point I would not have
307 % undertaken the work of restyling all these fonts.
308 % But there are also some little glitches that are
309 % partly inherent to the chosen one-size
310 % continuously scalable font. Moreover the Greek
311 % fonts, which are not part in themselves of my LX
312 % project, require some adjustments in several
313 % kerning values, but at the moment it is
314 % acceptable, even if its kerning is not perfect.
315 %
316 % While typesetting math it is clearly noticeable
317 % the lack of optical sizes: the super and
318 % subscripts appear definitely of the right size,
319 % but their scaling makes them appear lighter than
320 % they should be; this is common with all fonts that
321 % come in one size only, and this happens with the
322 % majority of the Type~1 and OpenType fonts
323 % distributed with the \TeX\ system.
324 %
325 % The Greek font kerning adjustment is on my TODO
326 % list.
327 %
328 % \section{Acknowledgemts}
329 %
330 % I would like to thank all the users who
331 % appreciated these fonts and gave me some feedback
332 % remarking some glitches; in particular I would
333 % like to acknowledge the interaction with Günter
334 % Milde, who gave me precious suggestions, among
335 % which that of detaching the font description
336 % files form the \file{lxfonts.sty} file.
337 % I would like to express my thanks to \@miticollo,
338 % a very attentive and expert frequenter of the
339 % Italian TUG forum, for suggesting smart solutions
340 % to correct some glitches that were determinant
341 % when typesetting with \\prog{LuaLaTeX} and
342 % \pack{polyglossia}.
343 %
344 % \StopEventually{}^^A This macro argument can be a bibliography, for example.
345 %
346 % \section{Documented code}
347 % \subsection{The package code}
348 % The settings relative to the LX fonts are
349 % deferred to the |\AtEndPreamble| hook (defined by
350 % package |etoolbox|) so that any previous font
351 % setting is replaced by the ones relative to the
352 % LX fonts; this is particularly useful when
353 % preparing source files for a presentation; in this
354 % way all the fonts connected to the the slide show
355 % will be homogeneously styled the same way.
356
357 % Of course this is not a serious drawback in other
358 % situations, since I have shown in
359 % section~\ref{sec:standalone} what to do in order
360 % to overcome this apparent limitation.
361 %
362 % First I test if certain packages have been loaded,
363 % specifically package \pack{latexsym} and
364 % \pack{amsfonts}; if so, certain switches are set
365 % |true|.
366 % At the proper point these switches will be used in
367 % order to load or to avoid to load certain font
368 % description files that will supersede the ones
369 % called by such named packages.
370 %
371 % At the same time the text and math defaults are
372 % set or reset so as to use only the LX fonts.
373 % \iffalse
374 %<*lxsty>
375 % \fi
376 % \begin{macrocode}
377 \NeedsTeXFormat{LaTeX2e}[2023/01/01]
378 \ProvidesPackage{lxfonts}[2025/02/03 v.3.0 Macros for using LX fonts]
379 \newif\if@lasy \@lasyfalse
380 \newif\if@AMSfonts \@AMSfontsfalse
381 \RequirePackage{etoolbox}
382 \AtEndPreamble{%
383 \@ifpackageloaded{latexsym}{\@lasytrue}{}
384 \@ifpackageloaded{amsfonts}{\@AMSfontstrue}{}
385 \def\rmdefault{llcmss} % no roman
386 \def\sfdefault{llcmss}
387 \def\ttdefault{llcmtt}
388 \def\itdefault{sl}
389 \def\sldefault{sl}
390 \def\bfdefault{bx}
391 \SetSymbolFont{operators}{normal}{OT1}{llcmss}{m}{n}
392 \SetSymbolFont{letters}{normal}{OML}{llcmm}{m}{it}
393 \SetSymbolFont{symbols}{normal}{OMS}{llcmsy}{m}{n}
394 \SetSymbolFont{largesymbols}{normal}{OMX}{llcmex}{m}{n}
395
396 \SetSymbolFont{operators}{bold}{OT1}{llcmss} {bx}{n}
397 \SetSymbolFont{letters} {bold}{OML}{llcmm} {bx}{it}
398 \SetSymbolFont{symbols} {bold}{OMS}{llcmsy}{bx}{n}
399 \SetSymbolFont{largesymbols}{bold}{OMX}{llcmex}{m}{n} % no bold!
400
401 \DeclareSymbolFontAlphabet{\mathrm} {operators}
402 \DeclareSymbolFontAlphabet{\mathnormal}{letters}
403 \DeclareSymbolFontAlphabet{\mathcal} {symbols}
404
405 \DeclareMathAlphabet {\mathbf}{OT1}{llcmss}{bx}{n}
406 \DeclareMathAlphabet {\mathsf}{OT1}{llcmss}{m}{n}
407 \DeclareMathAlphabet {\mathit}{OT1}{llcmss}{m}{sl}
408 \DeclareMathAlphabet {\mathtt}{OT1}{llcmtt}{m}{n}
409
410 \SetMathAlphabet\mathsf{bold}{OT1}{llcmss}{bx}{n}
411 \SetMathAlphabet\mathit{bold}{OT1}{llcmss}{bx}{sl}
412 % \end{macrocode}
413 %
414 % The next few commands were suggested by
415 % \@miticollo, who suggested these macros to be
416 % applied to the ordinary teletype CM fonts by a
417 % factor that enlarges their x-height by a 25\%
418 % percentage, so that the x-height equals that of
419 % the LX roman and italic fonts.
420 % \begin{macrocode}
421 \newfont{\cit}{cmssqi8 scaled 1250}
422 \newfont{\lit}{lcmssi8 scaled 1250}
423 \newfont{\cir}{cmssq8 scaled 1250}
424 \newfont{\lir}{lcmss8 scaled 1250}
425 \DeclareFixedFont{\cmsyx}{OMS}{cmsy}{m}{n}{12.5}
426 \DeclareFixedFont{\cmssx}{OT1}{cmss}{m}{n}{12.5}
427
428 \makeatletter
429 \input{t1llcmtt.fd} % loads T1/llcmtt
430 \input{omxllcmex.fd} % loads OMX/llcmex
431
432 \DeclareFontShape{T1}{llcmtt}{m}{n}{<-> [1.25]ecltt8}{}
433 \DeclareFontShape{T1}{llcmtt}{m}{it}{<-> [1.25]ecit0800}{}
434 \DeclareFontShape{OMX}{llcmex}{m}{n}{<-> lcmex8}{}
435 \DeclareEncodingSubset{TS1}{llcmss}{0}
436 % \end{macrocode}
437
438 % The following tests are needed to load the \AMS\
439 % and the \LaTeX\ symbols fonts; in order to use
440 % them it is necessary to input the relevant font
441 % description files subject to the switches status;
442 % and then it is necessary to redeclare the math
443 % fonts accordingly.
444 %
445 % The |\Join| and |\leadsto| characters had to be
446 % redefined or declared to be aliases of some
447 % particular symbol command; the |\Join| macro had
448 % to be redefined because the dimensions of the new
449 % font don't agree with the kerning fixed in the
450 % |amssymb| package; of course, while I was at it,
451 % I might have designed a real glyph for |\Join|,
452 % but I thought that it was better to avoid
453 % conflicts with the existing \AMS\ symbol
454 % definitions.
455 % The |\leadsto| character has been let to
456 % |\rightsquigarrow| in order to name the same glyph
457 % also with the \LaTeX\ symbols font command.
458 % In this way it is possible to avoid loading the
459 % \LaTeX\ symbols font if the \AMS\ fonts have been
460 % already loaded.
461 % \begin{macrocode}
462 \if@AMSfonts
463 \input{ulmsa.fd}
464 \input{ulmsb.fd}
465 \SetSymbolFont{AMSa}{normal}{U}{lmsa}{m}{n}
466 \SetSymbolFont{AMSb}{normal}{U}{lmsb}{m}{n}
467 \xdef\Join{\mathrel{\mathchar"0\hexnumber@\symAMSb 6F%
468 \mkern-14.2mu\mathchar"0\hexnumber@\symAMSb 6E}}
469 \global\let\leadsto\rightsquigarrow
470 \fi
471 \if@lasy
472 \if@AMSfonts%
473 \PackageWarning{lxfonts}{%
474 I did not load the LaTeX symbol
475 fonts\MessageBreak
476 because its glyphs are already provided by the
477 AMS fonts\MessageBreak}
478 \else
479 \input{ulllasy.fd}
480 \SetSymbolFont{lasy}{normal}{U}{lllasy}{m}{n}
481 \SetSymbolFont{lasy}{bold}{U}{lllasy}{b}{n}
482 \fi
483 \fi
484 % \end{macrocode}
485 %
486 % The following commands are defined so as to
487 % implement part of the functionality of the old
488 % \LaTeX\,209 ones, with some significant
489 % modification: their effects are cumulative as they
490 % are in \LaTeXe; at the same time they can be used
491 % also in mathematics. These commands pamper those
492 % users who think that the \LaTeXe\ commands are too
493 % lengthy to write, but such users forgot that the
494 % old commands did not cumulate their effects,
495 % therefore they were not as flexible as the
496 % \LaTeXe\ font commands. On the opposite these
497 % definitions produce the same cumulative effects as
498 % the \LaTeXe\ commands; I do not think the habit of
499 % using the old commands is correct, but it does
500 % not harm anybody who has correct habits: it's not
501 % compulsory to use them even if they are available.
502 % \begin{macrocode}
503 \DeclareOldFontCommand{\rm}{\rmfamily}{\mathrm}
504 \DeclareOldFontCommand{\sf}{\sffamily}{\mathsf}
505 \DeclareOldFontCommand{\tt}{\ttfamily}{\mathtt}
506 \DeclareOldFontCommand{\bf}{\bfseries}{\mathbf}
507 \DeclareOldFontCommand{\it}{\itshape}{\mathit}
508 \DeclareOldFontCommand{\sl}{\slshape}{\relax}
509 \DeclareOldFontCommand{\sc}{\scshape}{\relax}
510 }
511 % \end{macrocode}
512 % \iffalse
513 %</lxsty>
514 % \fi
515 %
516 % \subsection{Fonts in OT1 encoding}
517 % As long as the maths fonts are arranged the way
518 % they are, it is necessary to have the OT1 encoded
519 % text fonts even if the user specifies the T1
520 % option to the \pack{fontenc} package; this is due
521 % to the fact that the |operators| font in math mode
522 % is always defined as the the OT1 encoded set.
523
524 % At the same time those who don't need to use the
525 % many diacritics taken care of by the T1 encoded
526 % fonts, can simply avoid to call the \pack{fontenc}
527 % package, and get along without any problem.
528 % \iffalse
529 %<*lxot1ssfd>
530 % \fi
531 % \begin{macrocode}
532 \DeclareFontFamily{OT1}{llcmss}{\hyphenchar\font45}
533 \DeclareFontShape{OT1}{llcmss}{m}{n}{<-> llcmss8}{}
534 \DeclareFontShape{OT1}{llcmss}{m}{sl}{<-> llcmssi8}{}
535 \DeclareFontShape{OT1}{llcmss}{m}{it}{<->ssub* llcmss/m/sl}{}
536 \DeclareFontShape{OT1}{llcmss}{bx}{n}{<-> llcmssb8}{}
537 \DeclareFontShape{OT1}{llcmss}{bx}{sl}{<-> llcmsso8}{}
538 \DeclareFontShape{OT1}{llcmss}{bx}{it}{<->ssub* llcmss/bx/sl}{}
539 %
540 \DeclareFontShape{OT1}{llcmss}{m}{ui}{<-> ssub* llcmss/m/n}{}
541 \DeclareFontShape{OT1}{llcmss}{bx}{ui}{<->ssub* llcmss/bx/n}{}
542 % \end{macrocode}
543 % \iffalse
544 %</lxot1ssfd>
545 % \fi
546 %
547 % The typewriter fonts are loaded as the usual OT1
548 % encoded Computer Modern ones just scaled up by
549 % 25\% so as to have them with the same x-height as
550 % the LX fonts. Substitutions are provided for the
551 % missing shapes and series.
552 % \iffalse
553 %<*lxot1ttfd>
554 % \fi
555 % \begin{macrocode}
556 \DeclareFontFamily{OT1}{llcmtt}{\hyphenchar\font-1}
557 \DeclareFontShape{OT1}{llcmtt}{m}{n}{<-> [1.25]cmtt8}{}
558 \DeclareFontShape{OT1}{llcmtt}{m}{it}{<-> [1.25]cmti8}{}
559 \DeclareFontShape{OT1}{llcmtt}{m}{sl}{<-> ssub* llcmtt/m/it}{}
560 \DeclareFontShape{OT1}{llcmtt}{bx}{n}{<-> ssub* llcmtt/m/n}{}
561 \DeclareFontShape{OT1}{llcmtt}{bx}{it}{<-> ssub* llcmtt/m/it}{}
562 \DeclareFontShape{OT1}{llcmtt}{bx}{sl}{<-> ssub* llcmtt/m/it}{}
563 % \end{macrocode}
564 % \iffalse
565 %</lxot1ttfd>
566 % \fi
567 %
568 % \subsection{Fonts in T1 encoding}
569 % The T1 encoded fonts are now described by the
570 % suitable font description files; such fonts are
571 % essential for typesetting most languages that use
572 % the Latin script. Actually I know that there exist
573 % some languages that usually don't use diacritics;
574 % but even in such languages sometimes it is
575 % necessary to typeset a foreign name or to typeset
576 % some phrases or paragraphs in an ancient version
577 % of the same language and diacritics pop up again.
578 % Personally I believe that T1 encoded fonts should
579 % be the only ones to be used, unless the user has
580 % access to suitable UNICODE encoded OpenType fonts,
581 % but this is out of topic since these LX fonts can
582 % be used only by \prog{pdfLaTeX}, that cannot
583 % directly handle OpenType fonts.
584 % \iffalse
585 %<*lxt1ssfd>
586 % \fi
587 % \begin{macrocode}
588 \DeclareFontFamily{T1}{llcmss}{\hyphenchar\font45}
589 \DeclareFontShape{T1}{llcmss}{m}{n}{<-> leclq8}{}
590 \DeclareFontShape{T1}{llcmss}{m}{sl}{<-> lecli8}{}
591 \DeclareFontShape{T1}{llcmss}{m}{it}{<->ssub* llcmss/m/sl}{}
592 \DeclareFontShape{T1}{llcmss}{bx}{n}{<-> leclb8}{}
593 \DeclareFontShape{T1}{llcmss}{bx}{sl}{<-> leclo8}{}
594 \DeclareFontShape{T1}{llcmss}{bx}{it}{<->ssub*llcmss/bx/sl}{}
595 %
596 \DeclareFontShape{T1}{llcmss}{m}{ui}{<->ssub*llcmss/m/n}{}
597 \DeclareFontShape{T1}{llcmss}{bx}{ui}{<->ssub*llcmss/bx/n}{}
598 % \end{macrocode}
599 % \iffalse
600 %</lxt1ssfd>
601 % \fi
602 %
603 % In this case of T1 encoded typewriter fonts I
604 % don't use any magnification, as it was done for
605 % the OT1 encoded ones, because the upright font
606 % exists at the design size of 8pt, but the italic
607 % one does not; therefore for homogeneity I thought
608 % it was better to use them at a design size of 10pt
609 % without any scaling. The differences are so tiny,
610 % that are invisible at naked eye.
611 %
612 % But since the |lcmtt| family is already defined
613 % as a standard family, we need a different family
614 % name in order to avoid confusion; this is because
615 % we use a single size to be enlarged or shrunk as
616 % it is done with the main text font.
617 % \iffalse
618 %<*lxt1ttfd>
619 % \fi
620 % \begin{macrocode}
621 \DeclareFontFamily{T1}{llcmtt}{\hyphenchar\font-1}
622 \DeclareFontShape{T1}{llcmtt}{m}{n}{<-> ec-lmtt10}{}
623 \DeclareFontShape{T1}{llcmtt}{m}{it}{<-> ec-lmtti10}{}
624 \DeclareFontShape{T1}{llcmtt}{m}{sl}{<-> ssub* llcmtt/m/it}{}
625 \DeclareFontShape{T1}{llcmtt}{bx}{n}{<-> ssub* llcmtt/m/n}{}
626 \DeclareFontShape{T1}{llcmtt}{bx}{it}{<-> ssub* llcmtt/m/it}{}
627 \DeclareFontShape{T1}{llcmtt}{bx}{sl}{<-> ssub* llcmtt/m/it}{}
628 % \end{macrocode}
629 % \iffalse
630 %</lxt1ttfd>
631 % \fi
632 %
633 % \subsection{Fonts in TS1 encoding}
634 % The Text Companion fonts are also restyled so that
635 % these font must be redeclared in case the user
636 % wants to use them.
637 % \iffalse
638 %<*lxts1ssfd>
639 % \fi
640 % \begin{macrocode}
641 \DeclareFontFamily{TS1}{llcmss}{\hyphenchar\font45}
642 \DeclareFontShape{TS1}{llcmss}{m}{n}{<-> ltclq8}{}
643 \DeclareFontShape{TS1}{llcmss}{m}{sl}{<-> ltcli8}{}
644 \DeclareFontShape{TS1}{llcmss}{m}{it}{<-> ssub*llcmss/m/sl}{}
645 \DeclareFontShape{TS1}{llcmss}{bx}{n}{<-> ltclb8}{}
646 \DeclareFontShape{TS1}{llcmss}{bx}{sl}{<-> ltclo8}{}
647 \DeclareFontShape{TS1}{llcmss}{bx}{it}{<-> ssub*llcmss/bx/sl}{}
648 \DeclareFontShape{TS1}{llcmss}{m}{ui}{<-> ssub*llcmss/m/n}{}
649 \DeclareFontShape{TS1}{llcmss}{bx}{ui}{<-> ssub*llcmss/bx/n}{}
650 % \end{macrocode}
651 % \iffalse
652 %</lxts1ssfd>
653 % \fi
654 % \section {Math fonts and special fonts}
655 % \subsection{Math fonts in OML encoding}
656 % The math italic letters font has been restyled as
657 % the text fonts.
658 % \iffalse
659 %<*lxomlmmfd>
660 % \fi
661 % \begin{macrocode}
662 \DeclareFontFamily{OML}{llcmm}{\skewchar\font'177}
663 \DeclareFontShape{OML}{llcmm}{m}{it}{<-> lcmmi8}{}
664 \DeclareFontShape{OML}{llcmm}{bx}{it}{<-> lcmmib8}{}
665
666 \DeclareFontFamily{OML}{llcmss}{}
667 \DeclareFontShape{OML}{llcmss}{m}{n}{<-> ssub*llcmm/m/it}{}
668 % \end{macrocode}
669 % \iffalse
670 %</lxomlmmfd>
671 % \fi
672 %
673 % \subsection{Math fonts in OMS encoding}
674 % The math symbol font was restyled as the text
675 % fonts.
676 % \iffalse
677 %<*lxomssyfd>
678 % \fi
679 % \begin{macrocode}
680 \DeclareFontFamily{OMS}{llcmsy}{\skewchar\font'60}
681 \DeclareFontShape{OMS}{llcmsy}{m}{n}{<-> lcmsy8}{}
682 \DeclareFontShape{OMS}{llcmsy}{bx}{n}{<-> lcmbsy8}{}
683
684 \DeclareFontFamily{OMS}{llcmss}{\skewchar\font'60}
685 \DeclareFontShape{OMS}{llcmss}{m}{n}{<->ssub*llcmsy/m/n}{}
686 % \end{macrocode}
687 % \iffalse
688 %</lxomssyfd>
689 % \fi
690 %
691 % \subsection{Math fonts in OMX encoding}
692 % The large operators and delimiters font was
693 % restyled as the text fonts.
694 % \iffalse
695 %<*lxomxexfd>
696 % \fi
697 % \begin{macrocode}
698 \DeclareFontFamily{OMX}{llcmex}{}
699 \DeclareFontShape{OMX}{llcmex}{m}{n}{<-> sfixed* lcmex8}{}
700 % \end{macrocode}
701 % \iffalse
702 %</lxomxexfd>
703 % \fi
704 % \subsection {The \AMS\ fonts}
705 % Since the \AMS\ fonts are used so often, either
706 % directly or through the \pack{amssymb} package, I
707 % restyled both families |msam| and |msbm|.
708 % In the .sty file I kept the math group names the
709 % same so that the symbol definitions keep making
710 % reference to the same encoding and slot positions,
711 % but they take the glyphs from different files.
712 %
713 % In both cases the |\DeclareFontFamily| statement
714 % appears to be unnecessary because these font
715 % description files are loaded only if the
716 % \pack{amsfonts} package has been called. But we
717 % have seen above that these font description
718 % files are reloaded at the |\AtEndPreamble| hook;
719 % moreover if these fonts are used as standalone
720 % ones, the declaration is absolutely necessary.
721 % \iffalse
722 %<*lxumsafd>
723 % \fi
724 % \begin{macrocode}
725 \DeclareFontFamily{U}{lmsa}{}
726 \DeclareFontShape{U}{lmsa}{m}{n}{<-> lmsam8}{}
727 \DeclareFontShape{U}{lmsa}{bx}{n}{<-> ssub* lmsa/m/n}{}
728 % \end{macrocode}
729 % \iffalse
730 %</lxumsafd>
731 % \fi
732 %
733 % \iffalse
734 %<*lxumsbfd>
735 % \fi
736 % \begin{macrocode}
737 \DeclareFontFamily{U}{lmsb}{}
738 \DeclareFontShape{U}{lmsb}{m}{n}{<-> lmsbm8}{}
739 \DeclareFontShape{U}{lmsb}{bx}{n}{<-> ssub* lmsb/m/n}{}
740 % \end{macrocode}
741 % \iffalse
742 %</lxumsbfd>
743 % \fi
744 %
745 % \subsection{The \LaTeX\ symbol fonts}
746 % The same treatment is used for the \LaTeX\ symbol
747 % fonts as it was done with the teletype text font:
748 % a different family name, but one font to be
749 % enlarged or shrunk as the main text font.
750 % \iffalse
751 %<*lxultxfd>
752 % \fi
753 % \begin{macrocode}
754 \DeclareFontFamily{U}{lllasy}{}
755 \DeclareFontShape{U}{lllasy}{m}{n}{<-> llasy8}{}
756 \DeclareFontShape{U}{lllasy}{b}{n}{<-> llasyb8}{}
757 % \end{macrocode}
758 % \iffalse
759 %</lxultxfd>
760 % \fi
761 %
762 % \subsection{The Greek font for slides}
763 % The CB Greek font collection contains also the
764 % family and shape of the slides fonts; of course
765 % with the Greek script there is no problem with
766 % possible confusions of capital `I' and lower case
767 % `l', therefore they did not need any restyling.
768 % The only question related to Greek fonts is that
769 % the same font family names for the Latin Script
770 % must be associated with the Greek script with the
771 % Greek encoding LGR, instead of the Latin encoding
772 % T1. The Greek font description files, therefore,
773 % have a different prefix (LGR), the same family
774 % name (llcmss for proportional sans serif fonts, or
775 % lcmtt for monospaced ones), but the glyphs are
776 % taken from the relevant Greek fonts.
777 % \iffalse
778 %<*lxlgrfd>
779 % \fi
780 % \begin{macrocode}
781 \DeclareFontFamily{LGR}{llcmss}{\hyphenchar\font45}
782 \DeclareFontShape{LGR}{llcmss}{m}{n}{<-> glmn0800}{}
783 \DeclareFontShape{LGR}{llcmss}{m}{sl}{<-> glmo0800}{}
784 \DeclareFontShape{LGR}{llcmss}{m}{it}{<-> ssub* llcmss/m/sl}{}
785 \DeclareFontShape{LGR}{llcmss}{bx}{n}{<-> glxn0800}{}
786 \DeclareFontShape{LGR}{llcmss}{bx}{sl}{<-> glxo0800}{}
787 \DeclareFontShape{LGR}{llcmss}{bx}{it}{<-> ssub* llcmss/bx/sl}{}
788 \DeclareFontShape{LGR}{llcmss}{m}{ui}{<-> ssub* llcmss/m/n}{}
789 \DeclareFontShape{LGR}{llcmss}{bx}{ui}{<-> ssub* llcmss/bx/n}{}
790 % \end{macrocode}
791 % \iffalse
792 %</lxlgrfd>
793 % \fi
794 % The same action is taken for the teletype fonts,
795 % even if it is less probable that such fonts are
796 % used in a presentations, since the teletype font
797 % is normally used for typesetting programming code
798 % texts, very seldom written in Greek.
799 % \iffalse
800 %<*lxlgrttfd>
801 % \fi
802 % \begin{macrocode}
803 \DeclareFontFamily{LGR}{llcmtt}{\hyphenchar\font-1}
804 \DeclareFontShape{LGR}{llcmtt}{m}{n}{<-> gltn1000}{}
805 \DeclareFontShape{LGR}{llcmtt}{m}{it}{<-> glto1000}{}
806 \DeclareFontShape{LGR}{llcmtt}{m}{sl}{<-> ssub* lcmtt/m/it}{}
807 \DeclareFontShape{LGR}{llcmtt}{bx}{n}{<-> ssub* lcmtt/m/n}{}
808 \DeclareFontShape{LGR}{llcmtt}{bx}{it}{<-> ssub* lcmtt/m/it}{}
809 \DeclareFontShape{LGR}{llcmtt}{bx}{sl}{<-> ssub* lcmtt/m/it}{}
810 % \end{macrocode}
811 % \iffalse
812 %</lxlgrttfd>
813 % \fi
814 %
815 %\subsection{The map file}
816 % The map file is necessary in order to reconfigure
817 % the |updmap.cfg| so as to let \prog{pdftex} access
818 % these fonts. Notice that this reconfiguration is
819 % done by the system installation macros and the
820 % user should not play around with such delicate
821 % questions; it must be remarked also that the
822 % methods for reconfiguring that file are being
823 % updated in a significant way in certain
824 % distribution of the \TeX\ system, and it would be
825 % very dangerous to describe the actual procedure,
826 % when it possible that in 2014 it is a different
827 % one. In any case users who really need to install
828 % these fonts “by hand” is advised to read the
829 % documentation of their current distribution of the
830 % \TeX\ system so as to upgrade the update map
831 % correct configuration procedure.
832 % \iffalse
833 %<*lxmap>
834 % \fi
835 % \begin{macrocode}
836 lcmbsy8 lcmbsy8 <lcmbsy8.pfb
837 lcmex8 lcmex8 <lcmex8.pfb
838 lcmmi8 lcmmi8 <lcmmi8.pfb
839 lcmmib8 lcmmib8 <lcmmib8.pfb
840 lcmsy8 lcmsy8 <lcmsy8.pfb
841 leclb8 leclb8 <leclb8.pfb
842 lecli8 lecli8 <lecli8.pfb
843 leclo8 leclo8 <leclo8.pfb
844 leclq8 leclq8 <leclq8.pfb
845 llasy8 llasy8 <llasy8.pfb
846 llasyb8 llasyb8 <llasyb8.pfb
847 llcmss8 llcmss8 <llcmss8.pfb
848 llcmssb8 llcmssb8 <llcmssb8.pfb
849 llcmssi8 llcmssi8 <llcmssi8.pfb
850 llcmsso8 llcmsso8 <llcmsso8.pfb
851 lmsam8 lmsam8 <lmsam8.pfb
852 lmsbm8 lmsbm8 <lmsbm8.pfb
853 ltclb8 ltclb8 <ltclb8.pfb
854 ltcli8 ltcli8 <ltcli8.pfb
855 ltclo8 ltclo8 <ltclo8.pfb
856 ltclq8 ltclq8 <ltclq8.pfb
857 % \end{macrocode}
858 % \iffalse
859 %<*lxmap>
860 % \fi
861 % The Greek CB fonts need not to be listed in this
862 % map file, because they are already listed in the
863 % CB font map file that is being already used in
864 % the installation of that Greek font collection.
865 % \Finale
866 % \endinput
867
868
869
870
871