diff options
Diffstat (limited to 'fonts/newtx/doc/newtxdoc.tex')
-rw-r--r-- | fonts/newtx/doc/newtxdoc.tex | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/fonts/newtx/doc/newtxdoc.tex b/fonts/newtx/doc/newtxdoc.tex index a412dd6dba..4390083f97 100644 --- a/fonts/newtx/doc/newtxdoc.tex +++ b/fonts/newtx/doc/newtxdoc.tex @@ -27,7 +27,7 @@ %\renewcommand{\rmdefault}{minntx}% Roman and Bold Termes for math \usepackage[type1,sfdefault,scale=1]{sourcesanspro}% used by \mathsf, optional \usepackage[scaled=.98,varqu,varl]{zi4} -%\usepackage[nohelv,nott,amsthm,largesc,theoremfont,trueslanted,scosf]{newtx}% Use newtxmath, not a unicode math package +%\usepackage[amsthm,largesc,theoremfont,trueslanted,scosf]{newtx}% Use newtxmath, not a unicode math package \usepackage[textscale=1,amsthm,theoremfont,newsu,scosf]{newtx}% Use newtxmath, not a unicode math package %\usepackage{amsthm} %\usepackage{newtxmath} @@ -108,7 +108,7 @@ or \item Superior letters and figures distinct from numerators have been added along with some special features. The text switch \verb|\sustyle| (or \verb|\sufigures|) or the commands \verb|\textsu|, \verb|\textsup|, \verb|\textsups| may be used to invoke ordinary superiors. The command \verb|\textsuperscript| is reserved for a form of superiors that respond to adjustments you may specify in the package options, and which are used for footnote marker typesetting: \verb|supscale| rescales them, \verb|supsraised| specifies an amount to move them vertically, and \verb|supLspaced|, \verb|supRspaced| specify additional kerning to be applied at the left and right. These changes are applied in the order: scaling, raising, kerning. All except \verb|supscale| should be dimensions with units like {\tt em} which will scale properly. Their relative vertical positions stack up like this: X\textinf{12}X\textde{345}X\textnu{678}X\textsu{90}. - There is also a {\tt supscolor} option that will apply a color specified in a form understood by {\tt xcolor}, like {\tt red!70!black}. \textbf{IMPORTANT: As of version 1.737, the options and code described in this paragraph has been moved to the new {\tt superiors} package.} + There is also a {\tt supscolor} option that will apply a color specified in a form understood by {\tt xcolor}, like {\tt red!70!black}. \textbf{IMPORTANT: As of version 1.737, the options and code described in this paragraph has been moved to the new completely rewritten {\tt superiors} package.} \item Version 1.732 introduces some new mathematical glyphs. First, there are new curly braces invoked by the option {\tt curlybraces} with {\tt height+depth} of 940, 1200, 1800, 2400, 3000 and 3600 em units. Second, there are three new math symbols: \begin{itemize} @@ -182,16 +182,19 @@ You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}. Supports specially prepared text font packages with {\tt newtxmath}. \begin{verbatim} % Without newtx - \renewcommand*{\rmdefault}{t1minntx} % loads minimal version of text font + \renewcommand*{\rmdefault}{minntx} % loads minimal version of text font + % Load tt and sans text fonts for use in \mathtt, \mathsf \usepackage[]{newtxmath} % specify math options \usepackage[no-math]{fontspec} \usepackage{} % the chosen otf text font package, or fontspec \setmainfont, etc % or, using newtx - \usepackage[]{newtx} % options will be passed to text font package and newtxmath---option no-math can be specified here + % Load tt and sans text fonts for use in \mathtt, \mathsf + \usepackage[]{newtx} % options will be passed to text font package and newtxmath + %---option no-math may be specified here \end{verbatim} \textsc{Notes:} \begin{itemize} -\item No special option requirements---this is the default case. +\item If you specify no sf text or tt text fonts before {\tt newtxmath}/{\tt newtx}, those packages will load a Helvetica clone and the typewriter font from {\tt txfonts}. If you prefer to use those from Computer Modern and its descendents, specify options {\tt nohelv}, {\tt nott}. \item Babel, if used, must be specified before {\tt newtx[text]}, which loads {\tt fontspec}. \item Polyglossia, if used, must be specified after loading {\tt newtx[text]}. \end{itemize} @@ -201,7 +204,8 @@ Supports specially prepared text font packages with {\tt newtxmath}. \textsc{III: type1 text, type1 math (requires non-unicode engine)} \begin{verbatim} % Without newtx - \renewcommand*{\rmdefault}{t1minntx}% minimal text family, Roman and Bold for math + \renewcommand*{\rmdefault}{minntx}% minimal text family, Roman and Bold for math + % Load tt and sans text fonts for use in \mathtt, \mathsf \usepackage{newtxmath} % options will be as passed from newtx \usepackage{} % the chosen text package % should load tt and sans math before math @@ -213,6 +217,7 @@ Supports specially prepared text font packages with {\tt newtxmath}. \textsc{Notes:} \begin{itemize} +\item If you specify no sf text or tt text fonts before {\tt newtxmath}/{\tt newtx}, those packages will load a Helvetica clone and the typewriter font from {\tt txfonts}. If you prefer to use those from Computer Modern and its descendents, specify options {\tt nohelv}, {\tt nott}. \item Babel, if used, must be specified before {\tt newtx[text]}. \end{itemize} @@ -268,7 +273,7 @@ Aside from options that are passed along to the text and math packages, {\tt new \begin{itemize} \item You may set the scale for both text and math by setting {\tt scale} or, equivalently, {\tt scaled}. Alternatively, you may scale text and math separately by means of the options {\tt textscale[d]}, {\tt mathscale[d]}. -\item Option {otfmath} is acted upon only under a unicode engine, and specifies unicode math rather than the default---type1 math using {\tt newtxmath}. The effect is the exact opposite to {\tt no-math}, which would specify math not controlled by {\tt fontspec}. +\item Option {\tt otfmath} is acted upon only under a unicode engine, and specifies unicode math rather than the default---type1 math using {\tt newtxmath}. The effect is the exact opposite to {\tt no-math}, which would specify math not controlled by {\tt fontspec}. \item Option {\tt subscriptcorrectionfile} allows you to set your own file specifying subscript corrections. \item You may specify as an option to {\tt newtx} the name of any supported text package and any options other than scale[d] that are understood by that package. The default text package is {\tt newtxtext}, which need not be specified explicitly. Other valid options as of early May, 2022, are: \begin{verbatim} @@ -362,7 +367,7 @@ A more realistic preamble than those detailed above would follow the general pat <General packages, babel (optional) and those necessary for latex> <latex encoding, sf and tt fonts to be used by newtxmath> \usepackage[]{newtx} % include all desired options to newtxtext and newtxmath -% options nohelv, nott to newtxtext will prevent it from overwriting sf and tt choices +% options nohelv, nott to newtx will prevent it from loading its default sans and tt text fonts in favor of Computer Modern % option amsthm will correctly load that option, if specified <fontspec is loaded, add \setmainfont, \setmonofont etc> % Uncomment example lines below to use polyglossia, which must be loaded after fontspec @@ -384,8 +389,7 @@ For example: \usepackage[T1]{fontenc} % Active encoding for use in math text \usepackage[type1,sfdefault,scale=1]{sourcesanspro}% used by \mathsf \usepackage[scaled=.98,varqu,varl]{zi4} % mathtt -\usepackage[nohelv,nott,amsthm,largesc,theoremfont,trueslanted,scosf]{newtx} % this line loads fontspec -% nohelv and nott stop overwriting initial mathsf and mathtt choices +\usepackage[amsthm,largesc,theoremfont,trueslanted,scosf]{newtx} % this line loads fontspec %\setmonofont and \setsansfont could be set here if necessary for use in text % polyglossia, if used, must be loaded after fontspec \usepackage{polyglossia} |