diff options
Diffstat (limited to 'fonts/zlmtt')
-rw-r--r-- | fonts/zlmtt/README | 7 | ||||
-rw-r--r-- | fonts/zlmtt/doc/zlmtt-doc.pdf | bin | 51756 -> 263598 bytes | |||
-rw-r--r-- | fonts/zlmtt/tex/zlmtt.sty | 18 |
3 files changed, 20 insertions, 5 deletions
diff --git a/fonts/zlmtt/README b/fonts/zlmtt/README index 31904eb9ef..d918d61ddc 100644 --- a/fonts/zlmtt/README +++ b/fonts/zlmtt/README @@ -1,10 +1,13 @@ -This small package provides a means of accessing all features (plus scaling) of Latin Modern Typewriter (lmtt) as Typewriter font family to accompany any other chosen font packages. For weight selection, it requires that the mweights package be installed. (It has been on CTAN since July 2013.) +This small package provides a means of accessing all features (plus scaling) of Latin Modern Typewriter (lmtt) as Typewriter font family to accompany any other chosen font packages. For weight selection, the mweights code bis required. Since the 2020 revision of LaTeX, this code is present in the LaTeX kernel. It is also available in the mweights package for those without a sufficiently recent LaTeX. This material is subject to the LaTeX Project Public License. See http://www.ctan.org/license/lppl1.3 for the details of that license. -Current version: 1.02 +Current version: 1.03 + +Changes in version 1.03 +Change in handling the detection of mweights code. (Thanks Maurice Hansen.) Changes in version 1.02 Modified the definitions of \proptt and \monott to take into account the font weight specified in the preamble. (Thanks, Frank Mittelbach.) diff --git a/fonts/zlmtt/doc/zlmtt-doc.pdf b/fonts/zlmtt/doc/zlmtt-doc.pdf Binary files differindex 4c03483c48..09006d2936 100644 --- a/fonts/zlmtt/doc/zlmtt-doc.pdf +++ b/fonts/zlmtt/doc/zlmtt-doc.pdf diff --git a/fonts/zlmtt/tex/zlmtt.sty b/fonts/zlmtt/tex/zlmtt.sty index af0569393b..b8e0d167c9 100644 --- a/fonts/zlmtt/tex/zlmtt.sty +++ b/fonts/zlmtt/tex/zlmtt.sty @@ -1,9 +1,21 @@ -\ProvidesPackage{zlmtt}[2019/06/11 v1.02 Alternate support package for Latin Modern TypeWriter] +\NeedsTeXFormat{LaTeX2e} +\def\fileversion{1.03} +\def\filedate{2021/12/21} +\ProvidesPackage{zlmtt}[\filedate\space v\fileversion. Alternate support package for Latin Modern TypeWriter] % Load after every package that (re)defines \ttdefault. \renewcommand{\ttdefault}{zlmtt} \newif\if@zlmtt@mw -\IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue% -}{}% allows choice of how to render medium, bold +\@ifpackageloaded{mweights}{\@zlmtt@mwtrue}{% + \IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue + }{}% +} +%The code above, suggested by Maurice Hansen, handles in a more +% intelligent way the possibility that because the mweights code is now +% built into the latex kernel, mweights.sty might not continue to be +% provided as a stand-alone package. +%Replaced code follows: +%\IfFileExists{mweights.sty}{\RequirePackage{mweights}\@zlmtt@mwtrue% +%}{}% allows choice of how to render medium, bold \RequirePackage{xkeyval} \if@zlmtt@mw \edef\mdseries@tt{m} % default mdseries is medium |