summaryrefslogtreecommitdiff
path: root/fonts/zlmtt
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2021-12-23 03:00:54 +0000
committerNorbert Preining <norbert@preining.info>2021-12-23 03:00:54 +0000
commitefa3a013f699c533896b44e4fcb74c730e94ad34 (patch)
tree33ca0df069302a84b2b4ad8f53447960ae33bb9b /fonts/zlmtt
parent9105ca38c03b7a88ed0c306472d9560cc5f206bd (diff)
CTAN sync 202112230300
Diffstat (limited to 'fonts/zlmtt')
-rw-r--r--fonts/zlmtt/README7
-rw-r--r--fonts/zlmtt/doc/zlmtt-doc.pdfbin51756 -> 263598 bytes
-rw-r--r--fonts/zlmtt/tex/zlmtt.sty18
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
index 4c03483c48..09006d2936 100644
--- a/fonts/zlmtt/doc/zlmtt-doc.pdf
+++ b/fonts/zlmtt/doc/zlmtt-doc.pdf
Binary files differ
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