diff options
author | Karl Berry <karl@freefriends.org> | 2016-02-13 00:06:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-02-13 00:06:47 +0000 |
commit | 2b2bd759058c1689e684e77f2c4fb05dbd8a750e (patch) | |
tree | 4bbe76e9f9e3e39442adef64d12e3b76643ec9a9 /Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex | |
parent | b90dc59a1171567878be291e46e4b2dcc9f3e72a (diff) |
newpx (12feb16)
git-svn-id: svn://tug.org/texlive/trunk@39698 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex')
-rw-r--r-- | Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex b/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex index c92719fcbf2..1401d609365 100644 --- a/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex +++ b/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex @@ -151,6 +151,38 @@ You should normally load {\tt babel} before loading {\tt newpxtext} in order for \linespread{1.05} \end{verbatim} +\section{Usage with Lua\LaTeX\ and Xe\LaTeX} +As far as I can tell, \textsf{newpxmath} works with both, but requires a very specific loading order and choice of options. Briefly, 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. Eg, +\begin{verbatim} +\usepackage[type1]{cabin} +\end{verbatim} +prevents the problem with the {\tt cabin} package. + +While the math font options must be specified before {\tt fontspec}, be aware of a potential trap. Using \verb|\usepackage{newpxtext}| before \verb|\usepackage{newpxmath}| results in {\tt newpxtext}'s font-loading options being run after all other packages in the preamble, so instead of \verb|\usepackage{newpxtext}|, use the following: +\textsc{Example:} +\begin{verbatim} +%load LaTeX text components before math math +\usepackage[T1]{fontenc} +\renewcommand{\rmdefault}{zpltlf}% Roman font for use in math mode +\usepackage[scaled=.85]{beramono}% used only by \mathtt +\usepackage[type1]{cabin}% used only by \mathsf +\usepackage{amsthm}% load before newtxmath +\usepackage[cmintegrals,bigdelims,vvarbb]{newpxmath} +\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 +\setmainfont{TeXGyrePagellaX} % this reads in TeXGyrePagellaX.fontspec +\end{verbatim} + \section{Math mode options} The package invoked by |