From 7344d0d5160064b0b6af6e33eb3f971b422cbed1 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 10 Jan 2022 21:35:47 +0000 Subject: newtx (10jan22) git-svn-id: svn://tug.org/texlive/trunk@61563 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/doc/fonts/newtx/README | 9 +- Master/texmf-dist/doc/fonts/newtx/newtxdoc.pdf | Bin 350683 -> 347843 bytes Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex | 157 ++++++++++++++----------- 3 files changed, 94 insertions(+), 72 deletions(-) (limited to 'Master/texmf-dist/doc/fonts') diff --git a/Master/texmf-dist/doc/fonts/newtx/README b/Master/texmf-dist/doc/fonts/newtx/README index 93647482158..e54e7a45378 100644 --- a/Master/texmf-dist/doc/fonts/newtx/README +++ b/Master/texmf-dist/doc/fonts/newtx/README @@ -1,10 +1,17 @@ This package, initially based on txfonts, provides many fixes and enhancements to the txfonts package, splitting it into two separate packages---newtxtext and newtxmath, which may be run independently of one another. It provides scaling, improved metrics, and other options. In particular, newtxmath offers a libertine option which substitutes Linux Libertine (provided with TeXLive and MikTeX) italic and Greek letters for the default Times letters, providing a good match for the Libertine text font, which is heavier than Computer Modern but lighter than Times, and in my experience, looks very sharp and clear on the screen. -Current version: 1.703 2022-01-04 +Current version: 1.704 2022-01-09 This material is 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.704 +1. Fixed the \textcircled macro in legacy latex. +2. Brought up to date a number of tfms and map file entries. +3. Corrected code in some fd files so that largesc option now works correctly in all cases. +4. Added option thmslshape to newtx and newtxtext changing theoremfont rendering from italic with upright figures, punctuation and delimiters, to slanted with the same upright features. +5. Modified upright features to TeXGyreTermesX.otf and ztmrsl.pfb to permit item 4 to work. + Changes in version 1.703 Corrected a missing @ in line 40 of newtxmath.sty. diff --git a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.pdf b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.pdf index dba87a46577..b9d2d9b5843 100644 Binary files a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.pdf and b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.pdf differ diff --git a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex index a16318beb06..f9e6e3123fd 100644 --- a/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex +++ b/Master/texmf-dist/doc/fonts/newtx/newtxdoc.tex @@ -2,7 +2,9 @@ \def\fsc{11pt} \documentclass[\fsc]{article} \usepackage[margin=1in]{geometry} -\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent +\usepackage[parfill]{parskip} +\pdfmapfile{=newtx.map} + %\pdfcompresslevel=0 %\pdfgentounicode=1 %\input glyphtounicode.tex @@ -82,7 +84,7 @@ Another important change took place in version 1.65, where {\tt theoremfont} wa \item \verb|\pagestyle{headings}| now functions as intended with slanted rather than upright figures in the headers. \end{itemize} -Version 1.7 adds the ability to process {\tt.tex} documents with all current LaTeX engines, adding {\tt fontspec} based macros as replacements for macros and options formerly defined for {\tt pdflatex} processing as needed for unicode latex processing. There are some new macros and options that work only under unicode LaTeX. The {\tt newtxtext} package is modified very substantially to work for all latex engines. Also introduced in 1.7 is {\tt newtx.sty}, which to some extent reduces the (human) memory requirements for loading {\tt newtxtext} and {\tt newtxmath} in a way that works with all LaTeX engines. With {\tt newtx}, the simplest invocation could be just +Versions 1.7--1.704 add the ability to process {\tt.tex} documents with all current LaTeX engines, adding {\tt fontspec} based macros as replacements for macros and options formerly defined for {\tt pdflatex} processing as needed for unicode latex processing. A new option, {\tt thmslshape}, instructs {\tt theoremfont} to use slanted rather than italic shape, with upright punctuation, of course. There are some new macros and options that work only under unicode LaTeX. The {\tt newtxtext} package is modified very substantially to work for all latex engines. Also introduced in 1.7 is {\tt newtx.sty}, which to some extent reduces the (human) memory requirements for loading {\tt newtxtext} and {\tt newtxmath} in a way that works with all LaTeX engines. With {\tt newtx}, the simplest invocation could be just \begin{verbatim} \documentclass{article} \usepackage{newtx} @@ -182,12 +184,12 @@ the new package is split into separate text and math packages that do not need t \item \verb|\coloneq| and \verb|\eqcolon| now point to the correct glyphs; \item The problem with the {\tt ogonek} accent and tabular environments (bad definition of \verb|\k|) is fixed: (the definition of \verb|\k| is removed as of version 1.628, being no longer of use); \item The default encoding for \textsf{newtxtext} is now T$1$, but support is offered also for OT$1$ and LY$1$. As some add-on packages are available only in T$1$, that seems the best current choice. -\item Sans serif is by default taken from TeXGyreHeros, and by default at 90\% of the scale factor (set by {\tt scaled}, default value {\tt1}). The option {\tt helvratio=.98} will change that to 98\%. (Option {\tt nohelv} prevents this, leaving {\tt cmss} as the default sans font.) +\item Sans serif is by default taken from {\tt TeXGyreHeros}, and by default at 94\% (was 90\% prior to version 1.7) of the scale factor (set by {\tt scaled}, default value {\tt1}). The option {\tt helvratio=.98} will change that to 98\%. (Option {\tt nohelv} prevents loading {\tt TeXGyreHeros}, leaving {\tt cmss} as the default sans font.) \item Typewriter text is by default taken from {\tt ntxtt}. Option {\tt nott} prevents this, leaving {\tt cmtt} as the default typewriter font. \item \verb|\varkappa| $\varkappa$ has been moved from {\tt AMSb} to {\tt lettersA}, and is now accompanied by an upright form \verb|\upvarkappa| $\upvarkappa$ which behaves as it should when using the {\tt frenchmath} option. \end{itemize} \section{Text mode options} -Beginning with version 1.4, the text font component of \textsf{newtx} is no longer dependent on the {\tt txfonts}, and is constructed entirely from \textsf{TeXGyre Termes} and some modifications thereof. +Beginning with version 1.4, the text font component of \textsf{newtx} is no longer dependent on the {\tt txfonts}, and is constructed entirely from \textsf{TeXGyre Termes} and some modifications thereof The text mode environment invoked by \begin{verbatim} @@ -197,11 +199,11 @@ has several options, a number new to version 1.4: you may write \begin{verbatim} \usepackage[scaled=.93]{newtxtext} \end{verbatim} -to load the roman and typewriter text fonts at 93\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale $0.9*0.93$. This is not of much utility if the package is used with the math package {\tt newtxmath} to which it is already matched, but may be with other math packages. The options +to load the roman and typewriter text fonts at 93\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale $0.94*0.93$ (was $0.9*0.93$ prior to version 1.7.) This is not of much utility if the package is used with the math package {\tt newtxmath} to which it is already matched, but may be with other math packages. The options \begin{verbatim} \usepackage[scaled=.95,helvratio=.96]{newtxtext} \end{verbatim} -load roman and typewriter text fonts at 95\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale $0.95*0.96$. +load roman and typewriter text fonts at 95\% of normal size, and the sans serif (\textsf{Helvetica} clone) scaled $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} changes the default to old-style figures in text at the very end of the preamble, forcing the use of old-style figures in text, but not math. In earlier versions, it was necessary to run \verb|\useosf| after loading {\tt newtxmath}. This is no longer required. @@ -214,7 +216,7 @@ If you use the {\tt babel} package, you should load it before {\tt newtxtext}--- \usepackage[]{babel} \usepackage[osf]{newtxtext} % or newtx \end{verbatim} -More generally, the pattern of the preamble should be: +More generally, the pattern of the preamble for {\tt pdflatex} should be: \begin{verbatim} [optional] \usepackage{substitutefont} % so you can change babel's fonts @@ -226,6 +228,8 @@ More generally, the pattern of the preamble should be: \usepackage{newtxmath} \end{verbatim} +Under unicode latex engines, parts of {\tt babel} processing such as {\tt babelfont} load {\tt fontspec}, which may conflict with the subsequent functioning of {\tt newtx/newtxtext} because of a fontspec options conflict. (This requires further study.) + As an example of a {\tt theoremstyle} definition, \begin{verbatim} \usepackage[theoremfont]{newtxtext} @@ -280,10 +284,16 @@ Option \texttt{largesc} changes the small cap glyphs from the default petite cap Option \texttt{adobesc} is only for those who own licenses for \textsf{Adobe Times Small Caps} and install them into the \texttt{ptmsc} package downloaded from \textsc{ctan}. This option loads \texttt{largesc} and substitutes the Adobe glyphs, where available, including their larger Regular and Bold tabular oldstyle figures. -The {\tt theoremfont} option changes the default font used for the {\tt plain} theoremstyle of {\tt amsthm}, keeping italic text but substituting upright figures and punctuation, and, provided you have loaded {\tt amsthm} before {\tt newtxtext}, it will redefine the plain theoremstyle. For example, with this option, you get theorem statements like this: +The {\tt theoremfont} option changes the default font used for the {\tt plain} theoremstyle of {\tt amsthm}, keeping italic text but substituting upright figures and punctuation, and, provided you have loaded {\tt amsthm} before {\tt newtxtext}, it will redefine the plain theoremstyle. As if version 1.704, you may specify slanted rather than italic for the body font of theorem statements by means of the option {\tt thmslshape}. + +For example, with option {\tt theoremfont}, but no {\tt thmslshape}, you get theorem statements like this, with body font in italic with upright figures, punctuation and delimiters: +%%\end{document} +%\traceon \begin{thm} -This is Theorem Italic: text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$]. +This is Theorem Italic: +%\traceoff +text numbers are upright---12345; punctuation is in many cases upright (also, parens, braces \{\} and brackets []). What about question marks and exclamations? Also upright! [These fit better with math mode punctuation and figures, like: for all $x\in[0,1]$, let $f(x)\coloneq \exp(\alpha x)$]. \end{thm} Compare this to traditional {\tt plain} theoremstyle with the same text: \begin{oldthm} @@ -313,7 +323,7 @@ If you want full control, the options {\tt spacing, stretch, shrink} allow you t \end{verbatim} \textbf{Behavior under XeLaTeX and LuaLaTeX.}\\ -Fontspec offers the {\tt WordSpace=} option for individual control of the space, stretch and shrink, with the value being either an ordered triple like \verb|{1.1,1,.8}| or a single number like {\tt .9}, the latter having the same effect as the triple \verb|{.9,.9,.9}|. These three numbers act as multipliers of {\tt space}, {\tt stretch} and {\tt shrink}. The option that you can set is {\tt spcfactor=}, entering either a number or a triple---e.g., {\tt spcfactor=1.1} or \verb|{1.1,1,.8}|. Note however that {\tt tighter} and {\tt looser} will have an effect if {\tt spcfactor} is not set, amounting to \verb|{\spcfactor={1,.625,1}| and \verb|{\spcfactor={1.2,1,1}| respectively. +Fontspec offers the {\tt WordSpace=} option for individual control of the space, stretch and shrink, with the value being either an ordered triple like \verb|{1.1,1,.8}| or a single number like {\tt .9}, the latter having the same effect as the triple \verb|{.9,.9,.9}|. These three numbers act as multipliers of {\tt space}, {\tt stretch} and {\tt shrink}. The option that you can set is {\tt spcfactor=}, entering either a number or a triple---e.g., {\tt spcfactor=1.1} or \verb|{1.1,1,.8}|. Note however that {\tt tighter} and {\tt looser} will have an effect if {\tt spcfactor} is not set, amounting to \verb|\spcfactor={1,.625,1}| and \verb|\spcfactor={1.2,1,1}| respectively. \section{Usage with Lua\LaTeX\ and Xe\LaTeX} @@ -575,6 +585,7 @@ requires {\tt amsmath}---there is no need to load it separately. \begin{verbatim} ! LaTeX Error: Command \openbox already defined. \end{verbatim} +As of version 1.7, it is simpler to provide {\tt amsthm} as an option to either {\tt newtx} or {\tt newtxmath}. \item {\tt uprightGreek} and {\tt slantedGreek} determine the form of Greek alphabet loaded---the default is {\tt uprightGreek}, which loads upright uppercase and slanted lowercase Greek symbols, as is customary in Anglo-American mathematical typesetting. With the option {\tt slantedGreek}, which you might want to use if you cared about ISO standards, all Greek symbols are slanted. No matter which is set, \verb|\Gammaup| (or \verb|\upGamma|) gives you upright \verb|\Gamma|, etc, and \verb|\Deltait|, \verb|\zetait| give you italic (i.e., slanted) versions of those letters. If you are using a text font family with properly constructed OT$1$--encoded versions, then, no matter what you chose as the default shape for upper case Greek letters, \verb|\mathnormal{\Omega}| etc will always produce the slanted version. (The macro \verb|\mathnormal| means essentially ``use the version of the symbol in {\tt letters}''---i.e., the math italic form. This did not always work as expected in versions prior to 1.45.) Currently, this works as expected with {\tt newtxtext} and {\tt libertine}. \item Option {\tt frenchmath} sets the default style in math mode for rendering uppercase Roman and Greek letters to upright, and lowercase Greek letters to upright. (Introduced in v.\ 1.28.) \item The option {\tt cmbraces} instructs {\tt newtxmath} to ignore the brace collections from {\tt txfonts}, substituting a collection based on thickened versions of the Computer Modern braces, which I find much easier to distinguish from other delimiters. This works quite well in regular weight but looks a bit clunky in bold. The option {\tt bigdelims}, which superseded {\tt cmbraces}, is now not necessary---it is the default as of version 1.5. @@ -583,13 +594,14 @@ requires {\tt amsmath}---there is no need to load it separately. \item The \textsf{newtxmath} package contains three different Blackboard Bold alphabets, where the original \textsf{txfonts} contained two. The default, triggered by \verb|\mathbb{}|, takes its glyphs from the font which replaces {\tt msbm} and has the same overall appearance of a hollowed-out text font, which I find neither bold nor blackboard-like. The second option, taken from \textsf{txfonts}, is triggered by \verb|\varmathbb{}|, is more geometric and, in my opinion, preferable but not optimal. The option {\tt varbb} makes \verb|\mathbb{}| synonymous with \verb|\varmathbb{}|. The third option is the double-struck glyphs from the STIX collection. See the expanded discussion below. \item {\tt noOT1} affects only those text-math combinations where {\tt operators} is defined by default to OT1 with Greek uppercase letters. It causes {\tt operators} to keep the same encoding as in tex, allowing operatornames to use accented characters, but possibly losing some calls for Greek uppercase. \item {\tt nosymbolsc} causes the package to not load the {\tt symbolsC} fonts, saving a math family. (This font contains mostly exotic symbols, along with some very useful, commonly used symbols like \verb|\coloneq| $\coloneq$, \verb|\eqcolon| $\eqcolon$, \verb|\notin| $\notin$, \verb|\notni| $\notni$, \verb|\neq| $\neq$, \verb|\nsubset| $\nsubset$ and \verb|\nsupset| $\nsupset$, but these have been moved (virtually) to {\tt lettersA} so they may continue to be used even if you use the option {\tt nosymbolsc}.) If this option is selected, then, as of version 1.53, new definitions are made for the missing negated symbols. The package {\tt centernot} is now required. -\item {\tt amssymbols} (the default) and {\tt noamssymbols} determine whether the {\tt txfonts} versions of the \textsc{ams} symbols ({\tt AMSm}) are loaded---if so, they override previous settings in {\tt amsmath}. If you use the option {\tt noamssymbols}, then \verb|\mathbb{}| is set to mean the same as \verb|\varmathbb{}|. (One advantage of {\tt noamssymbols} is that you save two of your precious math families for other purposes, such as setting a couple of external math alphabets by means of the \textsf{mathalfa} package.) \textbf{Important note:} if you load an AMS class, like {\tt amsart}, then some trickery will be involved. The AMS classes have an option, {\tt noamsfonts} which currently (2017) does not work as advertised, but is fixed in \TeX Live 2018. It is supposed to prevent the loading of {\tt AMSa} and {\tt AMSb}, which waste two slots. The following workaround seems like a reasonable stopgap until then. -\begin{verbatim} -\def\symAMSb{5} -\documentclass[noamsfonts]{amsart} %or other AMS classes -\let\symAMSb\@undefined -\end{verbatim} -This method of loading the AMS class will save you two slots. +%\item {\tt amssymbols} (the default) and {\tt noamssymbols} determine whether the {\tt txfonts} versions of the \textsc{ams} symbols ({\tt AMSm}) are loaded---if so, they override previous settings in {\tt amsmath}. If you use the option {\tt noamssymbols}, then \verb|\mathbb{}| is set to mean the same as \verb|\varmathbb{}|. (One advantage of {\tt noamssymbols} is that you save two of your precious math families for other purposes, such as setting a couple of external math alphabets by means of the \textsf{mathalfa} package.) \textbf{Important note:} if you load an AMS class, like {\tt amsart}, then some trickery will be involved. From 2018 onward, the AMS classes {\tt noamsfonts} prevents the loading of {\tt AMSa} and {\tt AMSb}, which waste two slots. +%The following workaround seems like a reasonable stopgap until then. +%\begin{verbatim} +%\def\symAMSb{5} +%\documentclass[noamsfonts]{amsart} %or other AMS classes +%\let\symAMSb\@undefined +%\end{verbatim} +%This method of loading the AMS class will save you two slots. \item {\tt libaltvw} has effect only if the libertine option is selected---in this case, it substitutes for math italic v and w hand-crafted versions based on the Libertine upsilon glyphs. \item{\tt bigdelims} loads a different math extension font and redefines most of the small and big math delimiters to have larger sizes so that, for example, there is more of a distinction between \verb|(| and \verb|\big(| in math mode. If this option is specified, {\tt cmbraces} is ignored. (This option is unnecessary, as of version 1.5.) \item{\tt liby} has an effect only if the libertine option is selected---with this option, the math italic y is chosen to be Libertine's italic y instead of the default one from txfonts. @@ -658,60 +670,60 @@ so that \verb|\BIA| works as expected in all math styles (display, text, script, \end{verbatim} \textbf{Caution:} If your text font lacks an {\tt OT1} encoded version with uppercase Greek, \verb|\mathrm| and \verb|\mathit| applied to Greek letters won't give you what you expect. -\section{Usage with Lua\LaTeX\ and Xe\LaTeX} -As far as I can tell, \textsf{newtxmath} works with both, but requires a very specific loading order and choice of options. Briefly, except for {\tt libertine} text, the math options must all be loaded prior to loading and using {\tt fontspec}. Be aware that some text packages (eg, {\tt cabin}) may contain a line like -\begin{verbatim} -\RequirePackage{fontspec} -\end{verbatim} -which would prevent (``option clash'' error) a subsequent -\begin{verbatim} -\usepackage[no-math]{fontspec} -\end{verbatim} -unless suppressed by an appropriate option. E.g., -\begin{verbatim} -\usepackage[type1]{cabin} -\end{verbatim} -prevents the problem with the {\tt cabin} package. - -The following examples illustrate some general models, the most unintuitive being the first because it loads a small version, {\tt minlibertine}, of libertine text for use in math mode as numbers, basic symbols and operators. - -\textsc{Example 3:} -\begin{verbatim} -%load text components other than libertine text to be used in math -\usepackage[T1]{fontenc} -\usepackage[scaled=.85]{beramono}% used only by \mathtt -\usepackage[type1]{cabin}% used only for \mathsf -\usepackage{amsmath}% must be loaded before amsthm, if using -\usepackage{amsthm}% must be loaded before newtxmath -\usepackage[libertine]{newtxmath} -% loads minlibertine because no other Roman text package was specified -% so that \mathrm and \mathbf also use minlibertine -\usepackage[scr=rsfso]{mathalfa} -\usepackage{bm}% load after all math to give access to bold math -%Now load the otf text fonts using fontspec---won't affect math -\usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX -\usepackage{libertine} -%\usepackage[osf,semibold]{libertine} for osf in text, semibold as bold -\end{verbatim} -The next example is similar, but in math mode, numbers, basic symbols, operator names, \verb|\mathrm| and \verb|\mathbf| will render with {\tt fbb-LF}, though math italic and math Greek letters will be from {\tt libertine}. (Note that one specifies the encoding and redefines \verb|\rmdefault|. For reasons I don't yet understand, it may not work to load the font package---i.e., don't substitute \verb|\usepackage{fbb}|, as that will mess up bold in the libertine text package.) - -\textsc{Example 4:} -\begin{verbatim} -%load text components other than libertine text to be used in math -\usepackage[T1]{fontenc} -\renewcommand{\rmdefault}{fbb-LF}% Roman font for use in math mode -\usepackage[scaled=.85]{beramono}% used only by \mathtt -\usepackage[type1]{cabin}% used only by \mathsf -\usepackage{amsmath}% must be loaded before amsthm, if using -\usepackage{amsthm}% load before newtxmath -\usepackage[libertine,vvarbb]{newtxmath} -% does not load minlibertine because another Roman text package was specified -\usepackage[scr=rsfso]{mathalfa} -\usepackage{bm}% load after all math to give access to bold math -%Now load the otf text fonts using fontspec---won't affect math -\usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX -\usepackage{libertine} -\end{verbatim} +%\section{Usage with Lua\LaTeX\ and Xe\LaTeX} +%As far as I can tell, \textsf{newtxmath} works with both, but requires a very specific loading order and choice of options. Briefly, except for {\tt libertine} text, the math options must all be loaded prior to loading and using {\tt fontspec}. Be aware that some text packages (eg, {\tt cabin}) may contain a line like +%\begin{verbatim} +%\RequirePackage{fontspec} +%\end{verbatim} +%which would prevent (``option clash'' error) a subsequent +%\begin{verbatim} +%\usepackage[no-math]{fontspec} +%\end{verbatim} +%unless suppressed by an appropriate option. E.g., +%\begin{verbatim} +%\usepackage[type1]{cabin} +%\end{verbatim} +%prevents the problem with the {\tt cabin} package. +% +%The following examples illustrate some general models, the most unintuitive being the first because it loads a small version, {\tt minlibertine}, of libertine text for use in math mode as numbers, basic symbols and operators. +% +%\textsc{Example 3:} +%\begin{verbatim} +%%load text components other than libertine text to be used in math +%\usepackage[T1]{fontenc} +%\usepackage[scaled=.85]{beramono}% used only by \mathtt +%\usepackage[type1]{cabin}% used only for \mathsf +%\usepackage{amsmath}% must be loaded before amsthm, if using +%\usepackage{amsthm}% must be loaded before newtxmath +%\usepackage[libertine]{newtxmath} +%% loads minlibertine because no other Roman text package was specified +%% so that \mathrm and \mathbf also use minlibertine +%\usepackage[scr=rsfso]{mathalfa} +%\usepackage{bm}% load after all math to give access to bold math +%%Now load the otf text fonts using fontspec---won't affect math +%\usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX +%\usepackage{libertine} +%%\usepackage[osf,semibold]{libertine} for osf in text, semibold as bold +%\end{verbatim} +%The next example is similar, but in math mode, numbers, basic symbols, operator names, \verb|\mathrm| and \verb|\mathbf| will render with {\tt fbb-LF}, though math italic and math Greek letters will be from {\tt libertine}. (Note that one specifies the encoding and redefines \verb|\rmdefault|. For reasons I don't yet understand, it may not work to load the font package---i.e., don't substitute \verb|\usepackage{fbb}|, as that will mess up bold in the libertine text package.) +% +%\textsc{Example 4:} +%\begin{verbatim} +%%load text components other than libertine text to be used in math +%\usepackage[T1]{fontenc} +%\renewcommand{\rmdefault}{fbb-LF}% Roman font for use in math mode +%\usepackage[scaled=.85]{beramono}% used only by \mathtt +%\usepackage[type1]{cabin}% used only by \mathsf +%\usepackage{amsmath}% must be loaded before amsthm, if using +%\usepackage{amsthm}% load before newtxmath +%\usepackage[libertine,vvarbb]{newtxmath} +%% does not load minlibertine because another Roman text package was specified +%\usepackage[scr=rsfso]{mathalfa} +%\usepackage{bm}% load after all math to give access to bold math +%%Now load the otf text fonts using fontspec---won't affect math +%\usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX +%\usepackage{libertine} +%\end{verbatim} \section{Alternate forms of glyphs} @@ -744,6 +756,8 @@ The {\tt newtxmath} package now contains a \verb|\RequirePackage{amsmath}|, as i \usepackage{amsthm} \usepackage{newtxmath} \end{verbatim} +As of version 1.7, it is easier to pass {\tt amsthm} as an option to either {\tt newtxmath} or {\tt newtx}. + To pass options to {\tt amsmath}, you can pass the options as options to \verb|\documentclass|. For example, \begin{verbatim} \documentclass[11pt,intlimits]{article} @@ -787,6 +801,7 @@ The {\tt operators} font is essentially the Roman text font, used for names of o \item same with, eg, \verb|\mathit|; \item same with an external Fraktur, Blackboard Bold or Script glyphs; \item if you run out of math alphabets, look first to dropping {\tt AMSm} as well as {\tt symbolsC}, which can save you at least two slots; +\item the {\tt bm} package can cost you several slots, even if you make no use of the bold families it adds; \item if space is tight, do not call bold versions of the fonts listed above where the bold version is not already loaded, to avoid loading a new mathgroup; \item if you absolutely need a letter (not a math symbol) from some math font that would normally cost you another mathgroup, you might consider using as if it were text, with something like \begin{verbatim} -- cgit v1.2.3