diff options
author | Karl Berry <karl@freefriends.org> | 2014-11-21 00:32:17 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-11-21 00:32:17 +0000 |
commit | 990c8b9570b5bb74dc588b5343fd33bbbffac59e (patch) | |
tree | e4749199f7acf32cfabce960faef043d98d09470 /Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex | |
parent | e838bf49f73b3c3977ae76c173c3e247b019a541 (diff) |
newtxtt (20nov14)
git-svn-id: svn://tug.org/texlive/trunk@35629 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex')
-rw-r--r-- | Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex | 49 |
1 files changed, 32 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex b/Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex index 644557721c2..cf0070bdd59 100644 --- a/Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex +++ b/Master/texmf-dist/doc/fonts/newtxtt/newtxtt-doc.tex @@ -9,13 +9,17 @@ \usepackage{XCharter} \usepackage[T1]{fontenc} \usepackage{textcomp} -\usepackage[zerostyle=a]{newtxtt} % TX typewriter +\usepackage[zerostyle=a,scale=1.1]{newtxtt} % TX typewriter \usepackage[libertine,bigdelims]{newtxmath} +\usepackage{upquote} \useosf -\font\fonta newtxtta -\font\fontb newtxttb -\font\fontc newtxttc -\font\fontd newtxttd +\font\fonta newtxtta at 11pt +\font\fontb newtxttb at 11pt +\font\fontc newtxttc at 11pt +\font\fontd newtxttd at 11pt +\font\fonte newtxtte at 11pt +\font\fontf newtxttsce at 11pt +%\font\fontg cmtt10 at 11pt \renewcommand*{\sfdefault}{lmtt}% sans serif is otherwise not used %SetFonts \def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.09emX\@} @@ -23,24 +27,27 @@ \raise.4ex\hbox{\textsc{a}}% \kern-.1em% \TeX} -\title{Using \texttt{newtxtt v.1.01} to Access the TX Typewriter Fonts} +\title{The \texttt{newtxtt} Package\thanks{It is a pleasure to thank Jean-Fran\c{c}ois Burnol who has offered very useful advice and feedback on this package. For an extensive example of its usage as body text, see the documentation of his remarkable {\tt xint} package.} +} \author{Michael Sharpe} \date{\today} % Activate to display a given date or no date \begin{document} \maketitle -There is a relative paucity of free serifed typewriter fonts available in \LaTeX---{\tt courier} - and (extensions of) {\tt cmtt} are the most common. In my opinion, {\tt cmtt} and its enhancements, especially {\tt zlmtt}, are a much better choice than {\tt courier} in almost every circumstance, as the latter is so light and so wide that it looks poor on screen and causes endless problems with overfull boxes. (The ratio of their glyph widths is $723/525\approx1.38$.) This package provides an interface to another alternative---the typewriter fonts provided with {\tt txfonts}, with some enhancements. They have the same widths as {\tt cmtt}, but are taller, heavier, more geometric and less shapely, with very low contrast, and are more suited to match Roman fonts of height and weight approximating that of Times. This small package, loaded with +There is a relative paucity of free serifed typewriter fonts available for use in \LaTeX---{\tt courier} + and (extensions of) {\tt cmtt} are the most common. In my opinion, {\tt cmtt} and its enhancements, especially {\tt zlmtt}, are a much better choice than {\tt courier} in almost every circumstance, as the latter is so light and so wide that it looks poor on screen and causes endless problems with overfull boxes. (The ratio of their glyph widths is $723/525\approx1.38$.) This package provides an interface to another alternative---the typewriter fonts provided with {\tt txfonts}, with some enhancements. They have the same widths as {\tt cmtt}, but are taller, heavier, more geometric and less shapely, with very low contrast, and are more suited to match Roman fonts of height and weight approximating that of Times. This package, loaded with \begin{verbatim} \usepackage{newtxtt} % options can be added \end{verbatim} -provides access to its features, no matter what other text fonts you might be using. It should be placed after all your other text font loading packages that might contain instructions to change \verb|\ttdefault|, and before loading math packages so that the math packages can make a suitable definition of \verb|\mathtt|. With no options specified, as above, you'll get full functionality as a monospaced typewriter font family, with typewriter text rendered using essentially {\tt txtt}, but with a four choices for the glyph `zero'. In addition, the package provides italic (slanted) and bold versions, plus small caps in regular (medium) and bold weights, upright shape only. It is offered only in T$1$ (plus full TS$1$) encoding. The macros \verb|\ttdefault|, \verb|\ttfamily|, \verb|\texttt| and the obsolete but convenient macro \verb|\tt| may be used to access this font. - The package provides an alternate form of {\tt newtxtt} that differs from it in two important ways: +provides access to its features, no matter what other text fonts you might be using. It should be placed after all your other text font loading packages that might contain instructions to change \verb|\ttdefault|, and before loading math packages so that the math packages can make a suitable definition of \verb|\mathtt|. With no options specified, as above, you'll get full functionality as a monospaced typewriter font family, with typewriter text rendered using essentially {\tt txtt}, but with a five choices for the glyph `zero'. In addition, the package provides italic (slanted) and bold versions, plus small caps in regular (medium) and bold weights, upright shape only. It is offered only in T$1$ (plus full TS$1$) encoding. The macros \verb|\ttdefault|, \verb|\ttfamily|, \verb|\texttt| and the obsolete but convenient macro \verb|\tt| may be used to access this font. + The package provides, by means of options or macros, an alternate form of {\tt newtxtt} differing from it in some important ways: \begin{itemize} \item - the interword spacing is no longer the same as the glyph spacing, but is generally smaller---{\tt fontdimen} settings have been changed to resemble those of text fonts; - \item - hyphenation is permitted. + the interword spacing is no longer the same as the glyph spacing, but is variable though generally smaller---{\tt fontdimen} settings have been changed to resemble those of text fonts; + \item + where monospaced typewriter fonts typically an an extra space at the end of a sentence, the modified version does not; + \item + hyphenation is not supressed. \end{itemize} These features may be accessed by means of the new macros \verb|\ttzdefault|, \verb|\ttzfamily|, \verb|\textttz| and \verb|\ttz| which are in all ways analogous to their monospace cousins. (Verbatim modes will continue to use the monospaced version.) The purpose of the {\tt ttz} version to allow use of \texttt{newtxtt} for blocks of {\tt TypeWriter}-like text, though not monospaced and respecting right justification. Eg, \begin{verbatim} @@ -51,13 +58,20 @@ The options you may use in loading this package are: \begin{itemize} \item {\tt scaled=.97} will load the fonts scaled to $.97$ times natural size. This is useful with Roman fonts having an x-height smaller than Times, for which {\tt txtt} was designed. \item -{\tt zerostyle} selects the form of {\tt `zero'} from one of four possibilities: {\tt a, b, c, d}, ({\tt a} being the default) which result respectively in\\[6pt] +{\tt zerostyle} selects the form of {\tt `zero'} from one of five possibilities: {\tt a, b, c, d, e}, ({\tt a} being the default) which result respectively in\\[6pt] {\fonta 0} ---form {\tt a}, narrower than capital {\tt O};\\ {\fontb 0} ---form {\tt b}, original version from {\tt txtt};\\ {\fontc 0} ---form {\tt c}, slashed, narrower than capital {\tt O};\\ -{\fontd 0} ---form {\tt d}, dotted, narrower than capital {\tt O}. +{\fontd 0} ---form {\tt d}, dotted, narrower than capital {\tt O};\\ +{\fonte 0} ---form {\tt e}, narrower than capital {\tt O}, more oblong.\\ +The option {\tt zerostyle} also affects the oldstyle figures that are available in \textsc{Small Caps}. That is, to obtain oldstyle typewriter figures, you have to use something like \verb|\texttt{\textsc{012}}|---the result using {\tt zerostyle=e} would be {\fontf 012}. \item {\tt nomono} changes the {\tt tt} macro definitions replacing them, in effect, by their {\tt ttz} versions. I do not recommend this, but perhaps someone who does not print code and does not wish to change all existing \verb|\tt| to \verb|\ttz| might find this useful. +\item +{\tt straightquotes} affects the rendering of single and double quotes in all {\tt newtxtt} modes: +Single left and right quotes entered in \TeX\ source code as \verb|`| and \verb|'| normally render as curly quotes, {\tt `} and {\tt '}. With {\tt straightquotes}, they will render as \verb|`| and \verb|'|, and double quotes will render as {\tt \char`"}. +\item The option {\tt ttdefault} sets \verb|\familydefault| to \verb|\ttdefault| so the default Roman text will be rendered using {\tt newtxtt}. +\item The option {\tt ttzdefault} works similarly, but sets Roman text to use the non-monospaced {\tt newtxttz}. \end{itemize} \textsc{New Macros:} \begin{itemize} @@ -80,8 +94,9 @@ This document uses the following font settings: Comparison with Latin Modern Typewriter: -\textsf{LM Typewriter: This is just a line to illustrate typewriter 0123456789.}\\ +{\usefont{T1}{lmtt}{m}{n}\fontsize{11.22pt}{13}\selectfont LM Typewriter: This is just a line to illustrate typewriter 0123456789.}\\ \texttt{TX Typewriter: This is just a line to illustrate typewriter 0123456789.}\\ -\textttz{TX Typewriter: This is just a line to illustrate typewriter 0123456789. (ttz version)} +\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''. \end{document}
\ No newline at end of file |