% !TEX TS-program = pdflatex % !TEX encoding = UTF-8 Unicode % arara: pdflatex: { synctex: true } %% cfr-lm.tex %% Copyright 2015 Clea F. Rees % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3 % of this license or (at your option) any later version. % The latest version of this license is in % http://www.latex-project.org/lppl.txt % and version 1.3 or later is part of all distributions of LaTeX % version 2005/12/01 or later. % % This work has the LPPL maintenance status `maintained'. % % The Current Maintainer of this work is Clea F. Rees. % % This work consists of all files listed in manifest.txt. \listfiles \documentclass[11pt,british,a4paper]{article} \usepackage{babel} \usepackage[utf8]{inputenc} \usepackage{csquotes} \MakeAutoQuote{‘}{’} \MakeAutoQuote*{“}{”} \usepackage[T1]{fontenc} \usepackage{textcomp,cfr-lm} \usepackage{fancyhdr,lastpage,fancyref} \usepackage{array,longtable,verbatim} \usepackage{multirow} \usepackage{booktabs} \usepackage{url} \urlstyle{sf} \usepackage{microtype} \usepackage[headheight=14pt]{geometry} % use 14pt for 11pt text, 15pt for 12pt text \title{cfr-lm} \author{Clea F.\ Rees\footnote{reesc21 cardiff ac uk}} \def\dyddiad{2015--02--01} \def\fyversion{Version 1.5} \date{\fyversion\ --- \dyddiad} \pagestyle{fancy} \fancyhf[lh]{\itshape \fyversion} \fancyhf[rh]{\itshape \dyddiad} \fancyhf[ch]{\itshape cfr-lm} \fancyhf[lf]{} \fancyhf[rf]{} \fancyhf[cf]{\itshape --- \thepage~\ofname~\pageref{LastPage} ---} \begin{document} \maketitle\thispagestyle{empty} \pdfinfo{% /Creator (TeX) /Producer (pdfTeX) /Author (Clea F.\ Rees) /Title (cfr-lm) /Subject (TeX) /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)} \pdfcatalog{% /URL () /PageMode /UseOutlines} % other values: /UseNone, /UseOutlines, /UseThumbs, /FullScreen %[openaction ] % \pagestyle{empty} % if you want this, you probably want to comment out \maketitle as well...? \setlength{\parindent}{0pt} \setlength{\parskip}{0.5em} \newcommand*{\lpack}[1]{\textsf{#1}} \newcommand*{\fgroup}[1]{\textsf{#1}} \begin{abstract} \hspace*{-\parindent}\lpack{cfr-lm} is an \emph{experimental} package offering enhanced support for the Latin Modern fonts in \TeX/\LaTeX. A number of features of the Latin Modern fonts are not easily accessible via the default \TeX/\LaTeX\ support provided in the official distribution. 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. It also supports the variable width typewriter, ‘dunhill’ and ‘quotation’ fonts. Version 1.3 supports version 2.004 of the Latin Modern fonts. Version 1.4 adds experimental support for (but does not require) \lpack{microtype}. \end{abstract} \tableofcontents \section{Introduction} This document explains how to use the \emph{experimental} \lpack{cfr-lm} package to access advanced features of the Latin Modern fonts not otherwise supported by the official \lpack{lm} distribution. 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. 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. 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. Finally, a command to access the zeroslash character is provided. \lpack{cfr-lm} version 1.3 requires version 2.004 of \textsc{gust}'s Latin Modern fonts, including the support package provided for \TeX. 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 \textsc{ctan} mirror. \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. Version 1.3 of the package benefited greatly from feedback provided by Enrico Gregorio, who essentially rewrote the style file using 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 fontinst and some peculiarities of the Latin Modern fonts. 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). 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. The exception to this is the value of \verb|acccapheight| which is set to zero in the \textsc{tfm}s. The current virtual font setup uses \lpack{fontinst}'s default value in this case. If you load \lpack{microtype}, version 1.4 \emph{should} automatically figure out the family-specific settings to use. 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. See \fref{sec:mt} for details. This \emph{seems} to work for me but please let me know if it does not work for you. In the worst case, the output should be no worse with version 1.4 of this package than it was with version 1.3. That is, at worst \lpack{microtype} should just use generic settings as it did before. These improvements notwithstanding, please note that, unlike the fonts themselves and the official support provided by \lpack{lm}, including \path{lmodern.sty}, this alternative support package is \emph{experimental}. Although I do not expect the package to raid your fridge or make off with your best computer, it certainly contains bugs and may not work as advertised. If you let me know of problems, I will solve them if I can. If you can correct the problems and send me the fixes, that would be even better. Although I trust the package enough to use it as my default font package for most purposes, that does not mean you should. You should examine the output especially carefully if you typeset accented characters, especially those which do not occur in English or Welsh text as these are the only languages I typeset more than a word or two of once in a blue moon. \section{Requirements}\label{sec:require} In addition to the usual suspects (\LaTeX\ etc.), the \LaTeX\ support provided by \path{cfr-lm.sty} requires: \begin{itemize} \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.} \item \lpack{nfssext-cfr} \item \lpack{xkeyval} \end{itemize} The file \path{clm-test.tex} requires in addition: \begin{itemize} \item \lpack{babel} \item \lpack{microtype} \item \lpack{geometry} \end{itemize} though you can always comment out the relevant lines if you don't have these packages. In addition to the requirements of \path{clm-test.tex}, the documentation requires: \begin{itemize} \item \lpack{array} \item \lpack{booktabs} \item \lpack{csquotes} \item \lpack{fancyhdr} \item \lpack{fancyref} \item \lpack{lastpage} \item \lpack{longtable} \item \lpack{multirow} \item \lpack{url} \item \lpack{verbatim} \end{itemize} \section{Limitations} 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. Also unlike the official support, the \textsc{ec}/\textsc{t1} support depends entirely on virtual fonts. Whatever the disadvantages of virtual fonts, \lpack{cfr-lm} will inherit them. The support for \textsc{ts1} and mathematics relies on that provided by the official distribution so should be identical. \section{Installation} As explained in \fref{sec:require}, the \LaTeX\ package \lpack{cfr-lm}\ requires \lpack{xkeyval} and \lpack{nfssext-cfr}. \lpack{xkeyval} is required for option processing. \lpack{nfssext-cfr} provides additional font selection commands and without it you will get errors complaining that the package cannot be found and you will not be able to use any of the additional font commands described in \fref{sec:commands}. Both packages are included in \TeX~Live\footnote{This includes Mac\TeX\ for OS X users.}. Installation varies with \TeX\ distribution so you should consult the documentation which came with your system for details. In most cases, you will need to perform three steps: \begin{enumerate} \item move or copy the package files to appropriate locations on your system; \item refresh the \TeX\ database; \item incorporate the included map file fragments for the different engines your distribution supports. \end{enumerate} The following instructions assume you are using. They should not be too difficult to adapt if you are using a different distribution. \subsection{Install the files} The files should be installed in one of two locations: \emph{either} the local system-wide \TeX\ tree \emph{or} your personal tree. If the package is installed system-wide, all users will have access to it. On the other hand, you may need privileges you do not have to do this in which case you must use your personal tree. 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. The package already includes a hierarchy of files to help you install them correctly. 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. If the tree is initially empty, you can simply move or copy the directories in as they are. If the tree already contains other packages, you may need to merge the package hierarchy with the pre-existing one. For example, if you already have a \path{doc/fonts} directory, move or copy \path{doc/fonts/cfr-lm} into \path{doc/fonts/}. If you have a \path{doc} directory but not a \path{doc/fonts}, move \path{doc/fonts} into \path{doc/}. \subsection{Refresh the database} Again, this depends on your distribution. For \TeX~Live, \verb|mktexlsr | for the directory you used in the first step should do the trick. Note that you \emph{may} be able to skip this step if you install into your personal tree. Whether this is so depends on the details of your set-up. As a test, move to a directory containing none of the package files and try \verb|kpsewhich cfr-lm.sty|. If the file is found, you don't need to refresh the database; otherwise use \verb|mktexlsr| and then try again. \subsection{Install the map fragments} For \TeX~Live, there are at least two ways of doing this. The second method varies according to the version of \TeX~Live and instructions are provided accordingly. Both methods depend on whether you installed into \verb|TEXMFLOCAL| or \verb|TEXMFHOME|. 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. If, on the other hand, you installed into your personal tree, the matter is more complex. 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. On the other hand, maintaining personal font map files can produce difficulties and confusions of its own. 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. The one clear case is that in which you install into your personal tree because you lack the privileges needed to install system-wide. 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. Other cases are thankfully beyond the scope of this document. \subsubsection{Method 1} If you installed the package system-wide, use the command: \begin{verbatim} updmap-sys --enable Map=clm.map \end{verbatim} If you installed the package in your personal tree, you \emph{may} prefer to use: \begin{verbatim} updmap --enable Map=clm.map \end{verbatim} Either way, \verb|updmap| will output a good deal of information after each incantation. This is normal. Just check that it does not end with an error and that it found the new map file. \subsubsection{Method 2: \TeX~Live 2008 (and probably earlier)} If you installed the package system-wide, use \verb|updmap-sys --edit|. If you installed into your personal tree, you \emph{may} prefer to use \verb|updmap --edit|. Either way, a configuration file will be opened which you can edit. Move to the end of the file and add the following line: \begin{verbatim} Map clm.map \end{verbatim} When you are done, save the file. \verb|updmap| or \verb|updmap-sys| will produce a great deal of output if all is well. Just check that it does not end with an error and that \path{clm.map} is found. \subsubsection{Method 2: \TeX~Live 2009 (and possibly later)} 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: \begin{verbatim} Map clm.map \end{verbatim} Save the file and tell \verb|tlmgr| to merge in your addition using the command: \begin{verbatim} tlmgr generate updmap \end{verbatim} \verb|tlmgr| will then tell you that you need to ensure the changes are propagated correctly by calling \verb|updmap-sys|. This should produce a great deal of output. Check that it finds the new map file and does not end with an error. If you installed into your personal tree, you \emph{may} prefer to use \verb| updmap --edit| as described above for \TeX~Live 2008. To test your installation and that the package works on your system, latex the file \path{clm-test.tex}. The console output and/or log should tell you whether any fonts were not found. If you are careful not to overwrite it, you may also compare your output with \path{clm-test.pdf}. \section{Font setup} As explained above, the fonts use the \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings. The provision for the \textsc{ts1} and mathematics encodings simply calls the support provided by \lpack{lm}. The \lpack{cfr-lm} support simply ensures that access is provided automatically when the \textsc{t1}-encoded virtual fonts it provides are active. \subsection{Font families} The following font families are provided for use in the \textsc{ec}/\textsc{t1} and Text Companion (\textsc{ts1}) encodings: \begin{longtable}{>{\raggedright}p{.2\textwidth}ll>{\raggedright}l} \toprule % \textbf{\TeX\ name} & \textbf{Text style} & \textbf{Digit/figure style} & \textbf{Notes}\\\midrule\endhead \textbf{LM Names} & \textbf{Family} & \textbf{Digits/figures} & \textbf{Notes}\tabularnewline\midrule\endhead \bottomrule\endfoot \multirow{4}{.2\textwidth}{Latin Modern Roman}% & \fgroup{clm} & tabular, lining & similar to \lpack{lm} \verb|rm| default\tabularnewline\cmidrule{3-4} & \fgroup{clm2} & proportional, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clmj} & tabular, oldstyle & \tabularnewline\cmidrule{3-4} & \fgroup{clm2j} & proportional, oldstyle & \lpack{cfr-lm} \verb|rm| default\tabularnewline\midrule \multirow{4}{.2\textwidth}{Latin Modern Sans}% & \fgroup{clms} & tabular, lining & similar to \lpack{lm} \verb|sf| default\tabularnewline\cmidrule{3-4} & \fgroup{clm2s} & proportional, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clmjs} & tabular, oldstyle & \tabularnewline\cmidrule{3-4} & \fgroup{clm2js} & proportional, oldstyle & \lpack{cfr-lm} \verb|sf| default\tabularnewline\midrule \multirow{2}{.2\textwidth}{Latin Modern Mono\footnote{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.}}% & \fgroup{clmt}, \fgroup{clm2t} & tabular, lining & similar to \lpack{lm} \verb|tt| default\tabularnewline\cmidrule{3-4} & \fgroup{clmjt}, \fgroup{clm2jt} & tabular, oldstyle & \tabularnewline\midrule \multirow{4}{.2\textwidth}{Latin Modern Mono Prop\footnote{Despite the apparent contradiction in their name, this is variable-width typewriter.}}% & \fgroup{clmv} & tabular, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clm2v} & proportional, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clmjv} & tabular, oldstyle & \tabularnewline\cmidrule{3-4} & \fgroup{clm2jv} & proportional, oldstyle & \lpack{cfr-lm} \verb|tt| default\tabularnewline\midrule \multirow{4}{.2\textwidth}{Latin Modern Sans Quotation} % & \fgroup{clmqs} & tabular, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clm2qs} & proportional, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clmjqs} & tabular, oldstyle & \tabularnewline\cmidrule{3-4} & \fgroup{clm2jqs} & proportional, oldstyle & \tabularnewline\midrule \multirow{4}{.2\textwidth}{Latin Modern Roman Dunhill}%\multirow{nrows}[bigstruts]{width}[fixup]{text}; or * for {width} & \fgroup{clmd} & tabular, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clm2d} & proportional, lining & \tabularnewline\cmidrule{3-4} & \fgroup{clmdj} & tabular, oldstyle & \tabularnewline\cmidrule{3-4} & \fgroup{clm2dj} & proportional, oldstyle & \tabularnewline \end{longtable} \clearpage \subsection{Shapes, weights and widths} \begin{longtable}{l>{\raggedright}p{.1\textwidth}>{\raggedright}p{.1\textwidth}>{\raggedright}p{.25\textwidth}} \toprule \textbf{family} & \textbf{widths} & \textbf{weights} & \textbf{shapes}\tabularnewline\midrule\endhead \bottomrule\endfoot \fgroup{clm}, \fgroup{clm2}, \fgroup{clmj}, \fgroup{clm2j} & standard & normal & upright, oblique,\\italic, upright italic,\\small-caps,\\oblique small-caps\tabularnewline\cmidrule{3-4} & & bold & upright, oblique, italic\tabularnewline\cmidrule{3-4} & & demi & upright, oblique\tabularnewline\midrule \fgroup{clms}, \fgroup{clm2s}, \fgroup{clmjs}, \fgroup{clm2js} & standard & normal & upright, oblique\tabularnewline\cmidrule{3-4} & & bold & upright, oblique\tabularnewline\cmidrule{2-4} & condensed & demi & upright, oblique\tabularnewline\midrule \fgroup{clmt}, \fgroup{clm2t}, \fgroup{clmjt}, \fgroup{clm2jt} & standard & normal & upright, oblique,\\italic, small-caps,\\oblique small-caps\tabularnewline\cmidrule{3-4} & & bold & upright, oblique\tabularnewline\cmidrule{3-4} & & light & upright, oblique\tabularnewline\cmidrule{2-4} & condensed & light & upright, oblique\tabularnewline\midrule \fgroup{clmv}, \fgroup{clm2v}, \fgroup{clmjv}, \fgroup{clm2jv} & standard & normal & upright, oblique\tabularnewline\cmidrule{3-4} & & bold & upright, oblique\tabularnewline\cmidrule{3-4} & & light & upright, oblique\tabularnewline\midrule \fgroup{clmqs}, \fgroup{clm2qs}, \fgroup{clmjqs}, \fgroup{clm2jqs} & & normal & upright, oblique\tabularnewline\cmidrule{3-4} & & bold & upright, oblique\tabularnewline\midrule \fgroup{clmd}, \fgroup{clm2d}, \fgroup{clmdj}, \fgroup{clm2dj} & standard & normal & upright, oblique\tabularnewline\cmidrule{3-4} & & bold & upright, oblique\tabularnewline \end{longtable} 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. This means that some of the commands described in \fref{sec:commands} will fail silently to avoid undue clutter in the log file. \section{The \LaTeX\ package}\label{sec:support} To load this package, write \verb|\usepackage{cfr-lm}| in your document preamble. 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. The package recognises four keys. Three of these keys take various options which take the value true or false. 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. 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. 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. In any case, the font can still be accessed directly using the commands explained in \fref{sec:commands}.}. \begin{longtable}{l>{\raggedright}p{.25\textwidth}>{\raggedright}ll} \toprule \textbf{key} & \textbf{affects} & \textbf{option} & \textbf{possible values}\tabularnewline\midrule\endhead \bottomrule\endfoot rm & default figure style for roman/serif text & oldstyle & true, false \tabularnewline\cmidrule{3-4} & & lining & true, false \tabularnewline\cmidrule{3-4} & & proportional & true, false \tabularnewline\cmidrule{3-4} & & tabular & true, false \tabularnewline\midrule sf & default figure style for sans text & oldstyle & true, false \tabularnewline\cmidrule{3-4} & & lining & true, false \tabularnewline\cmidrule{3-4} & & proportional & true, false \tabularnewline\cmidrule{3-4} & & tabular & true, false \tabularnewline\midrule tt & default figure style for typewriter text & oldstyle & true, false \tabularnewline\cmidrule{3-4} & & lining & true, false \tabularnewline\cmidrule{3-4} & & proportional & true, false \tabularnewline\cmidrule{3-4} & & tabular & true, false \tabularnewline\cmidrule{2-4} & default font for typewriter text & monowidth & true, false \tabularnewline\cmidrule{3-4} & & variable & true, false \tabularnewline\midrule qt & nothing unless \verb|\qtfont| is defined & --- & true, false \tabularnewline \end{longtable} The default value in all cases is \verb|true| if an option is given without a value. For example, \verb|rm={oldstyle=true}| is equivalent to \verb|rm={oldstyle}|. Many of the options are provided for ease of use but are essentially equivalent. For example, \verb|proportional=false| is equivalent to \verb|tabular=true|. This means that the following two commands are equivalent: \begin{verbatim} \usepackage[% rm={lining=true,tabular=false},% sf={oldstyle,proportional},% tt={oldstyle=false,proportional=true,monowidth}% ]{cfr-lm} \usepackage[% rm={oldstyle=false, proportional=true},% sf={lining=false,tabular=false},% tt={lining,proportional,variable=false}% ]{cfr-lm} \end{verbatim} Loading the package without options is equivalent to: \begin{verbatim} \usepackage[% rm={oldstyle=true,proportional=true},% sf={oldstyle=true,proportional=true},% tt={oldstyle=true,proportional=true,variable=true},% qt=false% ]{cfr-lm} \end{verbatim} That is, by default, oldstyle, proportional figures for roman, sans and typewriter text and variable width typewriter will be selected. \section{Additional font selection commands}\label{sec:commands} \lpack{cfr=lm}\ loads \lpack{nfssext-cfr}\ which is an extension of the package \lpack{nfssext}\ supplied by Philipp Lehman as part of The Font Installation Guide. The file extends the font selection commands to facilitate access to various font features. Both the original and the extension are designed for use with a wide range of fonts. For this reason, only a subset of the additional commands are relevant to any particular font support package. Those relevant to \lpack{cfr-lm}\ are described below. I consider my additions to \lpack{nfssext-cfr}\ to be \emph{highly experimental}. If things don't work as advertised, apart from letting me know about the problem, you may be able to access the features you need by issuing a \verb|\normalfont| and then selecting features from there. This command will return you to the default document text font --- typically the relevant serif in regular weight, standard width and upright shape with the style of figures determined by the package and options loaded. \subsection{nfssext-cfr} These commands are available when \lpack{cfr-lm}\ is loaded. If for some reason you wish to make them available at any other time, use \verb|\usepackage{nfssext-cfr}| in your document preamble. 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. For example, trying to switch to a condensed width will have no effect if any of the LM Roman fonts is active. This means that only a subset of combinations are possible. In other cases, one of two things should happen. First, a ‘silent’ substitution may be made. For example, if you request proportional figures while using monowidth typewriter, tabular figures will be silently substituted. Second, console messages may warn you that the combination you tried to use isn't available. If you request titling while using monowidth typewriter, a console message will warn you it was unavailable. 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.. \subsubsection{Widths} \begin{longtable}{lll} \toprule \textbf{width} & \textbf{width command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot standard & \verb|\regwidth| & \verb|\textrw{}|\\ condensed & \verb|\cdwidth| & \verb|\textcd{}|\\ \end{longtable} To switch to an condensed width until further notice, for example, you could use \verb|\cdwidth|. Or use \verb|\texttm{\textlg{\textcd{Hello, world!}}}| to typeset just the text \texttm{\textlg{\textcd{Hello, world!}}} in a light-weight condensed monowidth typewriter. Note that the easiest way to switch to semi-bold condensed sans is to resort to using \verb|\fontseries| directly. \begin{verbatim} \textsf{\fontseries{sbc}\selectfont Semi-bold condensed sans} \end{verbatim} produces \begin{center} \textsf{\fontseries{sbc}\selectfont Semi-bold condensed sans} \end{center} The problem with using the commands provided by \lpack{nfssext-cfr} is that they are designed, like standard commands such as \verb|\bfseries| and \verb|\scshape|, to change \emph{one} aspect of the font at a time. 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. The problem is that each command is processed independently, so both switches fail. Similar considerations in the case of light condensed monowidth typewriter mean that the \emph{order} in which commands are issued is critical. In this case, a light-weight standard-width font is available, but no normal-weight condensed font is provided. Consequently, \verb|\texttm{\textlg{\textcd{a successful switch}}}| will produce \texttm{\textlg{\textcd{a successful switch}}} while \verb|\texttm{\textcd{\textlg{an unsuccessful switch}}}| will result in \texttm{\textcd{\textlg{an unsuccessful switch}}} and a warning in the log. In this case, the latter command is equivalent to \verb|\texttm{\textlg{}}| because \verb|\textcd{}| can only succeed \emph{after} \verb|\textlg{}|. \subsubsection{Weights} \begin{longtable}{lll} \toprule \textbf{weight} & \textbf{weight command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot light & \verb|\lgweight| & \verb|\textlg{}|\\ semi-bold & \verb|\sbweight| & \verb|\textsb{}|\\ \end{longtable} \begin{verbatim} \textsb{Semi-bold and \textsl{semi-bold oblique} serif}\\ \texttt{\textlg{Light typewriter}} \end{verbatim} produces: \begin{center} \textsb{Semi-bold and \textsl{semi-bold oblique} serif}\\ \texttt{\textlg{Light typewriter}} \end{center} \subsubsection{Shapes} \begin{longtable}{lll} \toprule \textbf{shape} & \textbf{shape command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot oblique small-caps\footnote{Actually the command switches to \emph{italic} small-caps but since LM does not offer this, oblique small-caps are substituted}% & \verb|\sishape| & \verb|\textsi{}|\\ upright italic & \verb|\uishape| & \verb|\textui{}|\\ \end{longtable} \begin{verbatim} \textsi{I always avoid a kangaroo.}\\ \textui{Nobody is despised who can manage a crocodile.} \end{verbatim} produces: \begin{center} \textsi{I always avoid a kangaroo.}\\ \textui{Nobody is despised who can manage a crocodile.} \end{center} if oblique small-caps/upright italic is available for the active font. If it is not, another shape will be substituted. \begin{verbatim} \textsf{\textsi{The bit about the kangaroo was from Lewis Carroll.}}\\ \textbf{\textui{Sylvia snorkeled snappily.}} \end{verbatim} produces only: \begin{center} \textsf{\textsi{The bits about kangaroos and crocodiles were from Lewis Carroll.}}\\ \textbf{\textui{Sylvia snorkeled snappily.}} \end{center} where upright sans and bold italic are substituted for italic small-caps sans and bold upright italic since neither is available. Note that the first substitution produces a warning in the log while the second is done ‘silently’. \subsubsection{Figures} Commands are provided to change either one or both aspects of digits' style: \begin{longtable}{lll} \toprule \textbf{figure style} & \textbf{style command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot lining & \verb|\lstyle| & \verb|\textl{}|\\ oldstyle & \verb|\ostyle| & \verb|\texto{}|\\ proportional & \verb|\pstyle| & \verb|\textp{}|\\ tabular & \verb|\tstyle| & \verb|\textt{}|\\ proportional, lining & \verb|\plstyle| & \verb|\textpl{}|\\ proportional, oldstyle & \verb|\postyle| & \verb|\textpo{}|\\ tabular, lining & \verb|\tlstyle| & \verb|\texttl{}|\\ tabular, oldstyle & \verb|\tostyle| & \verb|\textto{}| \end{longtable} In this document, proportional, oldstyle figures are used by default for roman/serif, sans and typewriter: \begin{center} 0123456789\\ \textsc{0123456789}\\ \texttt{0123456789} \end{center} but lining figures are also accessible. For example: \begin{verbatim} \textl{0123456789}\\ \textsf{\textl{0123456789}}\\ \texttt{\textl{0123456789}} \end{verbatim} produces: \begin{center} \textl{0123456789}\\ \textsf{\textl{0123456789}}\\ \texttt{\textl{0123456789}} \end{center} First, note that it is necessary to reissue \verb|\textl{}| after switching to sans or typewriter text. 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.}. Second, note that the output shows \emph{proportional} lining figures because the command \verb|\textl{}| only changes \emph{one} aspect of the style. Because proportional figures were already active, the command switched to proportional, lining figures. Tabular, lining digits may be accessed in several ways: \begin{verbatim} \textl{\textt{0123456789}}\\ \textt{\textl{0123456789}}\\ \texttl{0123456789} \end{verbatim} will produce three identical lines of figures: \begin{center} \textl{\textt{0123456789}}\\ \textt{\textl{0123456789}}\\ \texttl{0123456789} \end{center} \subsubsection{Typewriter variants} 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 following commands: \begin{longtable}{lll} \toprule \textbf{typewriter font} & \textbf{style command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot variable typewriter & \verb|\tvstyle| & \verb|\texttv{}|\\ monowidth typewriter & \verb|\tmstyle| & \verb|\texttm{}| \end{longtable} Variable width is default in this document so \begin{verbatim} \texttt{This is variable width typewriter.}\\ \texttm{This is monowidth typewriter} \texttv{except this bit at the end.} \end{verbatim} produces: \begin{center} \texttt{This is variable width typewriter.}\\ \texttm{This is monowidth typewriter} \texttv{except this bit at the end.} \end{center} \subsubsection{Latin Modern Sans Quotation} This font may be accessed as follows: \begin{longtable}{lll} \toprule \textbf{font} & \textbf{style command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot sans quotation & \verb|\qtstyle| & \verb|\textqt{}| \end{longtable} For example, \verb|\textqt{some text in the font}| will produce \textqt{some text in the font}. \subsubsection{Latin Modern Roman Dunhill} This font may be accessed as follows: \begin{longtable}{lll} \toprule \textbf{style} & \textbf{style command} & \textbf{text command}\\\midrule\endhead \bottomrule\endfoot titling & \verb|\tistyle| & \verb|\textti{}|\\ \end{longtable} To ensure the command succeeds independently of the currently active font, you may wish to issue \verb|\normalfont| first. For example: \begin{verbatim} \normalfont\textti{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}\\ \textti{\textsl{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}} \end{verbatim} produces: \begin{center} \normalfont\textti{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}\\ \textti{\textsl{Kinky Querulous Rhinos X-Ray Exultant Risque Zebras}} \end{center} \subsection{zeroslash} \lpack{cfr-lm}\ provides one additional command. \verb|\zeroslash| will produce the \zeroslash\ character from the current font. \section{Microtype}\label{sec:mt} Version 1.4 adds support for family-specific microtypographical features supported by \lpack{microtype}. This code will do nothing if you do not load \lpack{microtype}. 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. The fallback generic settings will continue to be applied to the typewriter and ‘dunhill’ families. The code responsible for this is in a block at the end of \lpack{cfr-lm.sty} so it should be easy to find and remove should it cause any trouble. (But do let me know in this case so that I can correct any issues for everybody.) \end{document}