diff options
author | Norbert Preining <norbert@preining.info> | 2020-02-17 03:02:28 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-02-17 03:02:28 +0000 |
commit | 67394fd2cfa6167f7e2316237629bec93851c1fb (patch) | |
tree | 7cb1cd102e6b083d4cc4ad6ad5ef19262d2e21b1 /fonts/newtxtt | |
parent | 7b19cae701283a0c7c6cb760c3b28ba912abdaea (diff) |
CTAN sync 202002170302
Diffstat (limited to 'fonts/newtxtt')
-rw-r--r-- | fonts/newtxtt/README | 6 | ||||
-rw-r--r-- | fonts/newtxtt/doc/newtxtt-doc.pdf | bin | 75948 -> 165916 bytes | |||
-rw-r--r-- | fonts/newtxtt/doc/newtxtt-doc.tex | 19 | ||||
-rw-r--r-- | fonts/newtxtt/tex/t1newtxtt.fd | 9 | ||||
-rw-r--r-- | fonts/newtxtt/tex/t1newtxttz.fd | 10 |
5 files changed, 37 insertions, 7 deletions
diff --git a/fonts/newtxtt/README b/fonts/newtxtt/README index 94747cd0c6..64de697938 100644 --- a/fonts/newtxtt/README +++ b/fonts/newtxtt/README @@ -1,7 +1,7 @@ This small package provides a means of accessing all features (plus scaling) of an extension of the txfont typewriter fonts as a typewriter font family to accompany any other chosen font packages. These are serifed typewriter faces that are taller and heavier than Latin Modern Typewriter and much heavier than Courier. -Current version: 1.055 +Current version: 1.056, 2020-02-15 As the fonts on which these were based are licensed under GPL 3.0, so are the fonts in @@ -19,6 +19,10 @@ The support files are subject to the LaTeX Project Public License. See http://www.ctan.org/license/lppl1.3 for the details of that license. +Changes in version 1.056 +1. Corrected the fd files so as to be useable without loading the package. (Thanks Jean-Francois Burnol.) +2. Added documentation about how to do this. + Changes in version 1.055 Corrected word-spacing parameters, broken in the prior version. (Thanks Yudai Nakata.) diff --git a/fonts/newtxtt/doc/newtxtt-doc.pdf b/fonts/newtxtt/doc/newtxtt-doc.pdf Binary files differindex 17c271ed53..db4803924a 100644 --- a/fonts/newtxtt/doc/newtxtt-doc.pdf +++ b/fonts/newtxtt/doc/newtxtt-doc.pdf diff --git a/fonts/newtxtt/doc/newtxtt-doc.tex b/fonts/newtxtt/doc/newtxtt-doc.tex index efa9192eca..125acf3da0 100644 --- a/fonts/newtxtt/doc/newtxtt-doc.tex +++ b/fonts/newtxtt/doc/newtxtt-doc.tex @@ -103,4 +103,23 @@ Comparison with Latin Modern Typewriter: \textttz{TX Typewriter: This is just a line to illustrate typewriter 0123456789. (ttz)} \textsc{Notes:} The first two are standard monospaced with the same spacing---the : is considered to be the end of a sentence---while the words in the third are spaced more compactly, it would hyphenate if necessary, and lacks the extra space at the end of a ``sentence''. + +\textbf{Using the fonts without using the package:} If you wish to use these fonts without making one of the them the \verb|\ttdefault|, you may call them directly from the {\tt fd}: +\begin{verbatim} +{\fontfamily{newtxtt}\selectfont ...} % or newtxttz +\end{verbatim} +or, for finer control of the \textsc{nfss} parameters, +\begin{verbatim} +{\usefont{T1}{newtxtt}{b}{n} ...} % or {newtxttz}{m}{sc}, etc +\end{verbatim} +For further control, you may add in your preamble lines like the following to select the zero style (five choices, a to e) and the shape of quotes: +\begin{verbatim} +\makeatletter +\edef\newtxtt@fig{c} % one of a--e to determine the zerostyle, defaults to a +\newif\iftxtt@upq\txtt@upqtrue % same effect as option straightquotes +% remove the \txtt@upqtrue for not straightquotes, the default +\makeatother + +\end{verbatim} + \end{document}
\ No newline at end of file diff --git a/fonts/newtxtt/tex/t1newtxtt.fd b/fonts/newtxtt/tex/t1newtxtt.fd index 43fb99826e..8016ed67ae 100644 --- a/fonts/newtxtt/tex/t1newtxtt.fd +++ b/fonts/newtxtt/tex/t1newtxtt.fd @@ -1,5 +1,5 @@ \ProvidesFile{t1newtxtt.fd} - [2014/12/23 Font definitions for T1/newtxtt.] + [2020/02/15 Font definitions for T1/newtxtt.] \expandafter\ifx\csname newtxtt@scale\endcsname\relax \let\newtxtt@@scale\@empty @@ -14,8 +14,11 @@ \fi \let\newtxtt@@upq\@empty -\expandafter\ifx\csname txtt@upqfalse\endcsname\relax -\else +\expandafter\ifx\csname txtt@upqfalse\endcsname\relax +\csname iftrue\endcsname +% fix proposed by Jean Francois Burnol to prevent "extra \fi" +% error when using newtxtt directly from fd. +\else \iftxtt@upq\def\newtxtt@@upq{q}\fi \fi diff --git a/fonts/newtxtt/tex/t1newtxttz.fd b/fonts/newtxtt/tex/t1newtxttz.fd index 581276b72a..0e01b22aef 100644 --- a/fonts/newtxtt/tex/t1newtxttz.fd +++ b/fonts/newtxtt/tex/t1newtxttz.fd @@ -1,5 +1,5 @@ \ProvidesFile{t1newtxttz.fd} - [2014/05/30 Font definitions for T1/newtxttz.] + [2020/02/15 Font definitions for T1/newtxttz.] \expandafter\ifx\csname newtxtt@scale\endcsname\relax \let\newtxtt@@scale\@empty @@ -14,8 +14,11 @@ \fi \let\newtxtt@@upq\@empty -\expandafter\ifx\csname txtt@upqfalse\endcsname\relax -\else +\expandafter\ifx\csname txtt@upqfalse\endcsname\relax +\csname iftrue\endcsname +% fix proposed by Jean Francois Burnol to prevent "extra \fi" +% error when using newtxtt directly from fd. +\else \iftxtt@upq\def\newtxtt@@upq{q}\fi \fi @@ -68,3 +71,4 @@ %}{} \endinput + |