summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex25
1 files changed, 21 insertions, 4 deletions
diff --git a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex
index 7b1ebe2beea..c007961ecbc 100644
--- a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex
+++ b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex
@@ -75,9 +75,9 @@ to load the roman and typewriter text fonts at 93\% of normal size, and the sans
load roman and typewriter text fonts at 95\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale $0.95*0.96$.
The option \texttt{osf} instructs the text fonts to use old-style figures \oldstylenums{1234567890} rather than the default lining figures $1234567890$. As of version $1.23$, {\tt newtxtext} loads initially with lining figures so the math package uses lining figures in math mode. The option {\tt osf} switches to old-style figures in text at the very end of the preamble, forcing the use of oldstyle figures in text, but not math. In previous versions, it was necessary to run
-\verb|\useosf| after loading math. This is no longer required, but does no harm.
+\verb|\useosf| after loading {\tt newtxmath}. This is no longer required except in the circumstances described below.
-There is one special case where \verb|\useosf| is necessary: in you use the {\tt babel} package, you should load it before {\tt newtxtext}---for example:
+If you use the {\tt babel} package, you should load it before {\tt newtxtext}---for example:
%may receive puzzling error messages if you used a preamble containing
\begin{verbatim}
\usepackage[<babel options>]{babel}
@@ -86,12 +86,29 @@ There is one special case where \verb|\useosf| is necessary: in you use the {\tt
\end{verbatim}
If you want to use {\tt babel} and a math package, you have to be aware of an incompatibility between some {\tt babel} code and the {\tt etoolbox} command \verb|\AtEndPreamble|. In this case, use instead the more cumbersome form:
\begin{verbatim}
+<encoding options>
+[optional] \usepackage{substitutefont} % so you can change babel's fonts
\usepackage[<babel options>]{babel}
\usepackage{newtxtext}
-<other babel font loading commands>
+<other font loading commands>
\usepackage{newtxmath}
-\useosf % must be after loading math package
+\useosf % must immediately follow math package
+<substitutefont commands>
\end{verbatim}
+Here is a specific example following this pattern.
+\begin{verbatim}
+\usepackage[LGR,T1]{fontenc} % spell out all text encodings used
+\usepackage[utf8]{inputenc} %
+\usepackage{substitutefont} % so we can use fonts other than those in babel
+\usepackage[greek.polutoniko,english]{babel}
+\usepackage[largesc]{newtxtext} %
+\usepackage[varqu,varl]{zi4}% inconsolata
+\usepackage{cabin}% sans serif
+\usepackage[bigdelims,vvarbb]{newtxmath}
+\useosf % use oldstyle figures except in math
+\substitutefont{LGR}{\rmdefault}{Tempora} % use Tempora to render Greek text
+\end{verbatim}
+
As of version 1.4, there are four normal figure styles: tabular lining, tabular oldstyle, proportional lining and proportional oldstyle, the default figure alignment being \texttt{tabular}. To switch to \texttt{proportional}, use the option \texttt{p} or \texttt{proportional}.
Option {\tt defaultsups} (same effect as {\tt defaultsups=true}) forces the package to use the \LaTeX\ default footnote markers (or, at least, those in force when the package is loaded) instead of those preferred by the package---Times Roman superior figures instead of spindly ordinary Times lining figures reduced to about 70\%. (Footnote markers in minipages use the default lowercase italic alphabetic characters, unless otherwise specified by redefining \verb|\thempfootnote|.) For better control over position and size of footnote markers, use the {\tt superiors} package after loading {\tt newtxtext}. The \verb|\sustyle| font switch and its related \verb|\textsu| macro know not only about figures, but also the lower case letters, including \texttt{egrave}, so that traditional French expressions like \textlf{1}\textsu{i\`ere} may be typeset correctly.