summaryrefslogtreecommitdiff
path: root/fonts/newtxtt/doc/newtxtt-doc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'fonts/newtxtt/doc/newtxtt-doc.tex')
-rw-r--r--fonts/newtxtt/doc/newtxtt-doc.tex34
1 files changed, 25 insertions, 9 deletions
diff --git a/fonts/newtxtt/doc/newtxtt-doc.tex b/fonts/newtxtt/doc/newtxtt-doc.tex
index a5f4ca0973..319a3d0673 100644
--- a/fonts/newtxtt/doc/newtxtt-doc.tex
+++ b/fonts/newtxtt/doc/newtxtt-doc.tex
@@ -3,7 +3,7 @@
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
-%\pdfmapfile{=newtxtt.map}
+\pdfmapfile{=newtxtt.map}
\usepackage{graphicx}
%SetFonts
\usepackage{XCharter}
@@ -20,7 +20,8 @@
\font\fonte newtxtte at 11pt
\font\fontf newtxttsce at 11pt
%\font\fontg cmtt10 at 11pt
-\renewcommand*{\sfdefault}{lmtt}% sans serif is otherwise not used
+\usepackage{fonttable}
+\renewcommand*{\sfdefault}{qhv}% sans serif is otherwise not used
%SetFonts
\def\TeX{T\kern-.1667em\lower.5ex\hbox{E}\kern-.09emX\@}
\DeclareRobustCommand{\LaTeX}{L\kern-.28em%
@@ -45,11 +46,11 @@ provides access to its features, no matter what other text fonts you might be us
\item
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 add an an extra space with full glyph at the end of a sentence, the modified {\ttz 'z'} version adds a considerable smaller space;
+where monospaced typewriter fonts typically add an an extra space with full width at the end of a sentence, the modified {\ttz 'z'} version adds a considerably smaller space;
\item
hyphenation is not suppressed.
\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,
+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. E.g.,
\begin{verbatim}
{\ttz Block of text, perhaps many lines long, will be rendered right-justified.}
\end{verbatim}
@@ -64,7 +65,10 @@ The options you may use in loading this package are:
{\fontc 0} ---form {\tt c}, slashed, 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}.
+The option {\tt zerostyle} also affects the oldstyle figures that are available in \textsc{Small Caps} and in \textsc{Text Companion} (TS1). That is, to obtain oldstyle typewriter figures, you have to use something like:
+\verb|\texttt{\textsc{012}}|, or \\
+\verb|\textzerooldstyle \textoneoldstyle \texttwooldstyle|.\\
+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 necessarily recommend this, but I find it useful when text alignment is not important, and I do not wish to change all existing \verb|\tt| to \verb|\ttz|. It affects verbatim modes also.
\item
@@ -72,12 +76,13 @@ The option {\tt zerostyle} also affects the oldstyle figures that are available
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}.
+\item There are slanted versions of the fonts. You may use \verb|\textsl| or \verb|\textit| within typewriter text to activate them. E.g, \verb|\texttt{\textsl{Slanted text}}| produces \texttt{\textsl{Slanted text}}.
\end{itemize}
\textsc{New Macros:}
\begin{itemize}
\item
\verb|\ttz| switches to non-monospace typewriter mode; \\
-eg, \verb|{\ttz text in ttz mode}| renders as \\
+e.g., \verb|{\ttz text in ttz mode}| renders as \\
{\ttz text in ttz mode}.
\item Essentially the same effect with \verb|{\ttzfamily text in ttz mode}|.
\item \verb|\textttz{}| renders its argument in {\tt ttz} mode.
@@ -102,7 +107,7 @@ Comparison with Latin Modern Typewriter:
\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)}
-\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''.
+\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 a much shorter 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}
@@ -119,7 +124,18 @@ For further control, you may add in your preamble lines like the following to se
\newif\iftxtt@upq\txtt@upqtrue % same effect as option straightquotes
% remove the \txtt@upqtrue for not straightquotes, the default
\makeatother
-
\end{verbatim}
-
+\newpage
+\section*{Font Samples}
+\textbf{\texttt{newtxtta}}:\\
+(Default for {\tt newtxtt}, {\tt T1} encoded.)\\
+\fonttable{newtxtta}
+\newpage
+\textbf{\texttt{newtxttscb}}:\\
+(Small Caps, {\tt T1} encoded with {\tt zerostyle=b}.)\\
+\fonttable{newtxttscb}
+\newpage
+\textbf{\texttt{newtcxtte}}:\\
+(Text companion {\tt ts1} with oldstyle figures, zero styled in more oblong shape.)\\
+\fonttable{newtcxtte}
\end{document} \ No newline at end of file