Debian Codegraph @

texmf-dist/doc/fonts/newpx/newpxdoc.tex

raw
1 % !TEX TS-program = lualatex
2 \documentclass[11pt]{article}
3 \usepackage[margin=1in]{geometry}
4 \usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
5 \usepackage{graphicx}
6 %\pdfmapfile{=newpx.map}
7 %\pdfcompresslevel=0
8 %\pdfgentounicode=1
9 %\input glyphtounicode.tex
10 %%\usepackage{pdfx} % v 1.6.4 or higher
11 %\InputIfFileExists{glyphtounicode-cmr.tex}{}{}
12 %\InputIfFileExists{glyphtounicode-ntx.tex}{}{}
13 \usepackage{xcolor}
14 \usepackage{fonttable}
15 \usepackage{amsmath} % must be loaded before amsthm
16 \usepackage{amsthm}
17 \newtheoremstyle{oldplain}
18 {\topsep} % ABOVESPACE
19 {\topsep} % BELOWSPACE
20 {\itshape} % BODYFONT
21 {} % INDENT (empty value is the same as 0pt)
22 {\bfseries} % HEADFONT
23 {.} % HEADPUNCT
24 {5pt plus 1pt minus 1pt} % HEADSPACE
25 {} % CUSTOM-HEAD-SPEC
26 \theoremstyle{oldplain}
27 \newtheorem{oldthm}{Theorem}[section]
28 \theoremstyle{plain}
29 \newtheorem{thm}{Theorem}[section]
30 \usepackage{url}
31 %SetFonts
32 % newpx text and math
33 \linespread{1.05}
34 %\usepackage[largesc,theoremfont]{newpxtext}
35 \usepackage{trace}
36
37 \usepackage[theoremfont,trueslanted,scosf]{newpxtext}
38 \makeatletter
39 \ifzpl@otf
40 \setmonofont{inconsolata}[Scale=MatchLowercase]
41 \else
42 \usepackage[T1]{fontenc}
43 \usepackage[scaled=.98]{zi4}
44 \pdfmapfile{=newpx.map}
45 \fi
46 \makeatother
47
48 %\usepackage[scaled=1.05,zerostyle=a]{newtxtt}
49 \usepackage{textcomp}
50 \usepackage{newpxmath}
51 \usepackage{bm}
52 %\useosf
53 %\useproportional
54 %\ifzpl@lining\show\foo\else\show\barf\fi
55 %SetFonts
56 \usepackage{upquote}
57 \makeatletter
58 \ifzpl@otf
59 \def\pcf{\addfontfeatures{Letters=PetiteCaps}}
60 \def\pcf{\addfontfeatures{Letters=SmallCaps}}
61 \else
62 \font\pcf=zpl-Regular-osf-sc-t1 at 10.95pt
63 \font\scf=zpl-Regular-osf-scl-t1 at 10.95pt
64 \fi
65 \makeatother
66 \DeclareMathSymbol{\Sumop}{\mathop}{largesymbols}{"50}
67 \usepackage{booktabs}
68 \title{New PX font package}
69 \author{Michael Sharpe}
70 \date{\today} % Activate to display a given date or no date
71 \usepackage{scalefnt}
72 %\pagestyle{empty}
73 \begin{document}
74 %\show\scshape
75 %1\textsc{23Xx}\\
76 %
77 %\makeatletter
78 %{\fontfamily{zpl\zpl@figurealign OsF}
79 % \fontshape\scdefault\selectfont 23Xx}
80 %\makeatother
81 %\fonttable{zpl-Regular-osf-scl-t1}
82 %%\expandafter\show\csname textlf \endcsname
83 \maketitle
84 %\textcircled{R}\symbol{"00AE}{\color{red}\rule[135pt]{-3em}{.05ex}}\
85 %\bfseries
86 %\slshape
87 %\show\scshape
88 %\expandafter\show\csname scshape \endcsname
89 %\let\scshape\undefined
90 %\newfontfamily\scshape[Letters=SmallCaps,Scale=1.078]{TeXGyrePagellaX}
91 %2{\lfstyle2}\textlf{2}\texttlf{2}{\tlfstyle2}\textsu{2}\textde{2}\textinf{2}
92 %\traceon
93 %\textfrac[2]{7}{8}
94 %\traceoff
95 %\end{document}
96 %\fonttable{zpl-Regular-osf-scl-t1}
97 %Test\textsc{Text}{\scf Text}{\pcf Text}
98 %
99 %
100 %X\textsu{ABCX1234}
101 %{\sustyle 2}\textfractionsolidus{\destyle 5}
102 %
103 %\textfrac12 \textfrac23 \textfrac34 \textfrac45 \textfrac56 \textfrac67 \textfrac78 \textfrac89 \textfrac90 \textfrac01 %{\vrule width.04pt\char"2044\vrule width.04pt}
104 %%\setbox0\hbox{\zplLF\char"2044}\showthe\wd0
105 %%\setbox1\hbox{\char"2044\addfontfeatures{RawFeature=+ss20;+dnom}\color{red}\char"2044}\showthe\wd1
106 %\textcircled{M}\textcircled{2}
107
108
109 %\scalefont{5}{\vrule width.04pt\char"2044\vrule width.04pt}%\addfontfeatures{RawFeature=+ss20;+dnom}\color{red}\char"2044\vrule width.04pt{}4}
110 %{23\textsu} \textde{45} \textnu{78} \textinf{90}
111 %X{\sufigures 8Abc}
112 %\end{document}
113 %\show\slshape
114 \section{Introduction}
115 This package is meant to be a replacement for Young Ryu's {\tt pxfonts}---a complete text and math package with roman text font provided by a Palatino clone, sans serif based on a \textsf{Helvetica} clone, typewriter faces, plus math symbol fonts whose math italic letters are from a Palatino Italic clone. As with the related {\tt txfonts} (though not as severe) the math metrics in {\tt pxfonts} seem overly tight.
116
117 \textsc{Changes as of version 1.55}
118 \begin{itemize}
119 \item
120 Option {\tt boldermath} to {\tt newpxmath} or {\tt newpx} changes the Roman math italic letters to a bolder form, easier to distinguish from regular weight letters.
121 \item
122 There are new macros for some special cases of math dotlessi and dotlessj. See the description under the subsection on dotless forms.
123
124 \end{itemize}
125
126
127
128 \textsc{Changes as of version 1.53}
129 \begin{itemize}
130 \item
131 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|\textsuperior| 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 placement: \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}. \textbf{IMPORTANT: As of version 1.535, the options and code described in this paragraph have been moved to the new {\tt superiors} package.}
132 \item
133 Unless you specify the option {\tt defaultsups}, the package will use the superior letters and numbers for footnote markers. These will work in all LaTeX engines, and with all standard LaTeX classes, as well as the KOMA classes. With {\tt defaultsups}, you get scaled-down glyphs which may not match the color of other text and may be more difficult to find on a page.
134 \item
135 There are now characters in the superiors which may be useful in displaying symbolic footnote markers: \textsu{\textsection, \textparagraph, \textdagger, \textdaggerdbl, \textbardbl, \textasteriskcentered}. See the documentation to the {\tt footmisc} package for more details of their usage. A usage example is appended as the last page of this document.
136 \item Option {\tt scosf}, which specifies oldstyle figure within small caps, has been extended and now works in all LaTeX engines with both the \verb|\scshape| switch and the macro \verb|\textsc{}|.
137 \item
138 The stacked fraction macro is now available: see the documentation in the {\tt newtx} package.
139 \item
140 Version 1.53 brings {\tt newpxtext} essentially up to parity with {\tt newtxtext}, version 1.73.
141 \item
142 Version 1.533 introduces some new mathematical glyphs. First, there are new curly braces invoked by the option {\tt curlybraces} with {\tt height+depth} of 1.053 times 940, 1200, 1800, 2400, 3000 and 3600 em units. Second, there are three new math symbols:
143 \begin{itemize}
144 \item
145 \verb|\laplace|, $\laplace$, which is an inverted \verb|\nabla|, having more weight in the bottom segment than \verb|\Delta|, $\Delta$.
146 \item
147 \verb|\laplac|, $\laplac$. This is the unicode-math name for the official d'Alembertian operator, {\tt U+29E0}. Unlike $\laplace$, it has more weight in the left and top segments than \verb|\laplace|.
148 \item \verb|\dAlembertian|, $\dAlembertian$, rotates $\laplac$ by 180${}^\circ$, making for a glyph whose weight distribution is a better match for the Laplacian.
149 \end{itemize}
150 \end{itemize}
151 \textsc{Changes as of version 1.51}
152 \begin{itemize}
153 \item
154 There is a new {\tt newpx.sty} that offers simplifications in the use of {\tt newpxtext} and {\tt newpxmath} under [pdf]latex, xelatex and lualatex. With {\tt newpx}, you can pass options to {\tt newpxtext} and {\tt newpxmath} as appropriate. For example
155 \begin{verbatim}
156 \usepackage[scale=.98,varbb,p,osf]{newpx}
157 \end{verbatim}
158 would send {\tt scale=.98} to both text and math packages, {\tt varbb} to {\tt newpxmath} and the rest to {\tt newpxtext}. Later sections have more usage examples.
159 \item
160 {Newpxtext.sty} now has a stacked fraction macro: \verb|\textsfrac[2]{17}{32}| produces \textsfrac[2]{17}{32}.
161 \item
162 Version 1.51 brings {\tt newpxmath} essentially up to parity with {\tt newtxmath}, version 1.723.
163 \end{itemize}
164 \textsc{Changes as of version 1.5}\\
165 {\tt newpxtext.sty} contains code that mostly works for both {\tt pdflatex} as well as {\tt XeLateX} and {\tt LuaLaTeX}, though there are some new features that work only with the last two. The precise differences will be spelled out below. Unless explicitly noted, macros and package options will function similarly for all LaTeX engines.
166 %The goal of this new project is use his glyphs along with a few additions and with completely reworked metrics which are generally looser, but not as loose as Computer Modern math. The following small examples (double normal size) provide some idea of the extent of the changes.
167
168
169 %\begin{minipage}{3.1in}
170 %\begin{center}
171 %\includegraphics[scale=2]{pxfontseg-crop}\\
172 %Math rendered with pxfonts
173 %\end{center}
174 %\end{minipage}
175 %\begin{minipage}{3.1in}
176 %\begin{center}
177 %\includegraphics[scale=2]{newpxeg-crop}\\
178 %Math rendered with newpxmath
179 %\end{center}
180 %
181 %\end{minipage}
182
183
184 The original {\tt newpx} package differed from {\tt pxfonts} in the following ways, all of which are preserved in the newest version:
185 \begin{itemize}
186 \item
187 {\tt newpx} is split into separate text and math packages that do not need to be used in conjunction;
188 \item both text and math packages offer options not present in the original package, described below;
189 \item wide accent glyphs have been corrected (they should have zero depth) so that they no longer collide with the underlying glyph;
190 \item the summation and product symbols in {\tt pxfonts} seemed overly heavy at display size, and have been replaced by others of more suitable weights;
191 \item for those who do not like the integral in \textsf{pxfonts}, an emboldened version of the Computer Modern integral is made available, matching the weight of the \textsf{pxfonts} symbols;
192 \item an upright partial derivative symbol has been added, named \verb|\uppartial|---$\uppartial$;
193 \item
194 braces and other delimiters are now larger and, I believe, more pleasing to older eyes;
195 \item macros have been added to bring the calls to Greek symbols more into conformity with \textsc{psnfss} and Mathtime Pro~2;
196 \item an upright Greek \verb|\upvarkappa|, $\upvarkappa$, has been added as well as a matching italic version $\varkappa$;
197 \item problems using \textsc{ams} macro packages before \textsf{pxfonts} are settled;
198 \item \verb|\coloneq| and \verb|\eqcolon| now point to the correct glyphs;
199 \item The problem with the {\tt ogonek} accent and tabular environments (bad definition of \verb|\k|) is fixed;
200 \item The default encoding for \textsf{newpxtext} 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.
201 \item The font collection used for rendering text is based on TeXGyrePagella with a number of additions, named TeXGyrePagellaX. The superior figures in this addition are set by default to render footnote markers. (It is also possible customize footnote markers by redefining \verb|\thefootnote| after loading {\tt newpxtext.sty}.)
202 \item Sans serif is by default taken from TeXGyreHeros, a Helvetica clone, and by default at 94\% of the scale factor (set by {\tt scaled}, default value {\tt1}). The option {\tt helvratio=.98} will change that to 98\%. As of newpx version 1.415, there is an option {\tt nohelv} that prevents this loading.
203 \item New math accents such as \verb|\widearc| have been introduced in tandem with the {\tt newtx} package, where they are documented.
204 \end{itemize}
205
206
207 \section{Text mode options and macros}
208
209 \textsc{Important changes as of version 1.5}
210 \begin{itemize}
211 \item
212 Small caps are available in all weights and styles, and are offered in two sizes. The default small caps supplied by TeXGyrePagella are really {\pcf Petite Caps}, having xheights approximately the same x-heights (sometimes smaller) as lowercase letters. Option \texttt{largesc} increases the size of small caps by 5.33\%, approximating the size of Linotype Palatino Small Caps. IMO, this is a better match in terms of weight and size: {\pcf Petite Caps}, \textsc{Small Caps}. The two sizes of small caps are now implemented in the Opentype fonts as Petite Caps and Small Caps ({\tt pcap} and {\tt smcp}). The option {\tt largesc} changes the default rendering of \verb|\scshape| and \verb|\textsc| to Small Caps instead of the default Petite Caps.
213
214 \item The last versions were missing the switches \verb|\tlfstyle|, \verb|\lfstyle|, \verb|\tosfstyle| and \verb|\osfstyle| as well as their command forms \verb|\texttlf|, \verb|\textlf|, \verb|\texttosf| and \verb|\textosf|, which allowed you to get any figure alignment and style, no matter what the default figure style. For example, though the main text is proportional oldstyle, \verb|\texttlf{123}| gives the tabular lining form \texttlf{123}, as does \verb|{\tlfstyle123}|.
215
216 \item There are also the commands \verb|\oldstylenums|, \verb|\liningnums|, \verb|\tabularnums| and \verb|\proportionalnums|, which change only the alignment and the style.
217
218 \item Two additional figure styles have been added---denominators and subscripts (inferiors), each the same size as superiors, with denominators having the same baseline as text and subscripts below the text baseline. These may be specified respectively by the text switches \verb|\defigures| (\textsc{aka} \verb|\destyle|) and \verb|\infigures| (\textsc{aka} \verb|\instyle|) or the corresponding macros \verb|\textde| and \verb|\textinf|. For example, \verb|{\defigures 123}| gives {\defigures 123}, as would \verb|\textde{123}|, and \verb|{\infigures 123}| gives {\infigures 123}, as would \verb|\textinf{123}| or \verb|\textsub{123}|.
219 \item There is a numerators figure style normally used only in the construction of fractions. It may be called by any one of \verb|{\nustyle 123}|, \verb|{\nufigures 123}|, \verb|\textnum{123}|, \verb|\textnumerator{123}|. There is also an equivalent named \verb|\textnu{123}|, but this is problematic since it conflicts with a command in the Greek variant of the {\tt babel} package. If you use the latter, there is an option {\tt notextnu} to {\tt newtxtext} that will prevent the redefinition of \verb|\textnu|.
220 \item There is a new version of \verb|\textfrac| that provides better kerning around the division solidus than the default command. The integer part may be specified as an optional argument. E.g., \verb|\textfrac{7}{8}| gives \textfrac{7}{8}, while \verb|\textfrac[2]{31}{32}| gives \textfrac[2]{31}{32}.
221
222 \item There is a new \verb|\textcircled| which works with both letters and numbers.\\
223 E.g., \verb|\textcircled{X}\textcircled{2}| gives \textcircled{X}\textcircled{2}.
224 \item A new option {\tt slashedzero} is provided for XeLaTeX and LuaLaTeX only. It replaces the zero in lining style only to a zero with a reverse slash.
225 \end{itemize}
226
227 \textsc{Important changes as of version 1.42}\\
228 Option {\tt theoremfont} was reimplemented using a new font family, {\tt npxth} instead of abusing \verb|\textsl|. By default, users of {\tt theoremfont} will see no change in its functionality, including the use of the macro \verb|\textsl| to output italics with upright punctuation. A new option, {\tt trueslanted}, to {\tt newpxtext} has the following effects:
229 \begin{itemize}
230 \item
231 \verb|\textsl| now outputs slanted text rather than italics with upright punctuation text, but not affecting the usage of the {\tt theoremfont} option to {\tt newpxtext}.
232 \item the former behavior of \verb|\textsl| is now available through the new macro \verb|\textth|, \textsc{aka} \verb|\textthit|.
233 \item \verb|\pagestyle{headings}| now functions as originally intended with slanted rather than upright figures in the headers.
234 \end{itemize}
235
236 The text mode environment invoked by
237 \begin{verbatim}
238 \usepackage{newpxtext}
239 \end{verbatim}
240 has several options: you may write
241 \begin{verbatim}
242 \usepackage[scaled=.95]{newpxtext}
243 \end{verbatim}
244 to load the roman and typewriter text fonts at 95\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale 0.95\textasteriskcentered0.94. This is not of much utility if the package is used with the math package {\tt newpxmath} to which it is already matched, but may be with other math packages. The options
245 \begin{verbatim}
246 \usepackage[scaled=.95,helvratio=.96]{newpxtext}
247 \end{verbatim}
248 load roman and typewriter text fonts at 95\% of normal size, and the sans serif (\textsf{Helvetica} clone) at scale 0.95*0.96.
249
250 The option \texttt{osf} instructs the text fonts to use old-style figures \oldstylenums{1234567890} rather than the default lining figures \texttlf{1234567890}. As of version 1.23, {\tt newpxtext} 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
251 \verb|\useosf| after loading math. This is no longer required, but does no harm. See the discussion in section 4 for further details. A similar macro \verb|\useproportional| makes proportional figures the default outside math mode.
252
253 As of version 1.415, the new option {\tt nohelv} prevents the loading of the default Helvetica clone as the sans serif text font. If you use this option, you should load your preferred sans serif font, otherwise you will be left with the Computer Modern default.
254
255 As described above, option {\tt largesc} increases the size of small caps by 5.33\% so that the height matches that of the small caps in Linotype Palatino.
256
257 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---Palatino (clone) superior figures instead of spindly ordinary Palatino lining figures reduced to about 70\%. (Footnote markers in minipages use the default lowercase 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 newpxtext}.
258
259 The {\tt theoremfont} option changes the default font used for the {\tt plain} theorem style of {\tt amsthm}, keeping italic text but substituting upright figures and punctuation. For example, with this option, you get theorem statements like this:
260
261 \begin{thm}
262 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)$].
263 \end{thm}
264 Compare this to traditional {\tt plain} theorem style of the same text:
265 \begin{oldthm}
266 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)$].
267 \end{oldthm}
268
269 If you are using another theorem package (e.g., ntheorem, theorem) you will have to add your own descriptors as specified in the its documentation and set the body font to \verb|\thfamily|.
270
271 Superior letters and figures may be called with either \verb|{\sustyle ...}| or \verb|\textsu{...}|, so you can emulate $18$\textsu{th} century orthography such as J\textsu{os} W\textsu{m} Smith, or print French style with , e.g., $1$\textsu{i\`ere}, M\textsu{me} Dubois or M\textsu{lle} D'Orl\'eans.
272
273 The next two sections describe options to {\tt newpxtext} of more specialized nature.
274
275 \section{Spacing issues}%\footnote{The options described in this section are different under XeLaTeX and LuaLaTeX.}
276 This new version of {\tt newpxtext} has spacing that is a little different, in its default state, from that of the old {\tt newpxtext}. In small part this is due to the finer kerning of TeXGyre Pagella, but mostly because the three parameters that govern inter-word spacing are not the same.
277 \begin{verbatim}
278 pxfonts Pagella
279 fontdimen2 (interword space) .25em .25em
280 fontdimen3 (interword stretch) .125em .2em
281 fontdimen4 (interword shrink) .08333em .1em
282 \end{verbatim}
283 That is, {\tt Pagella} has the same normal spacing as {\tt pxfonts} but its spacing is more flexible in terms of both stretch and shrink. More frequently than not, a paragraph built with {\tt Pagella} will occupy more space than the same built with {\tt pxfonts}. For this reason, the package offers some ways to change the spacing parameters. This may be important if you are trying to imitate the pagination of a document built using~{\tt pxfonts}.
284
285 \textbf{Behavior under [pdf]LaTeX.}\\
286 Option {\tt tighter} sets the three fontdimen values to those of {\tt pxfonts}, except with a little more shrink. This should make it unlikely that text will occupy more space than it would have using~{\tt pxfonts}.
287
288 Option {\tt looser} sets the three fontdimen values to \verb|{.3em,.2em,.1em}| respectively.
289
290 If you want full control, the options {\tt spacing, stretch, shrink} allow you to modify one or more of the above fontdimens. For example,
291 \begin{verbatim}
292 \usepackage[stretch=.15em,shrink=.095em]{newpxtext}
293 \end{verbatim}
294 \textbf{Behavior under XeLaTeX and LuaLaTeX.}\\
295 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.
296
297 \subsection{Basic example preambles.}
298
299 The examples below are unrealistically simple but do show the structure of the part of the preamble required to load {\tt newpx}.
300
301 \textsc{I: Otf text, otf math (requires unicode engine)}
302
303
304 Supports an arbitrary otf math font with otf text using {\tt TeXGyreTermesX}.
305 \begin{verbatim}
306 % Without newpx package:
307 \usepackage[otfmath]{newpxtext}
308 \usepackage{unicode-math} %loads amsmath
309 \setmathfont{}[] %expects your input here for otf math font and options
310 % or, with newpx package:
311 \usepackage[otfmath]{newpx} % pass options to text package
312 \setmathfont{}[] %expects your input here for otf math font and options
313 \end{verbatim}
314 \textsc{Notes:}
315 \begin{itemize}
316 \item Your option list to {\tt newpx[text]} must include {\tt otfmath}, otherwise it will load {\tt newpxmath}.
317 \item With {\tt newpx}, you may specify certain other otf text fonts.
318 \item After loading {\tt newpx}, you must load your chosen unicode math package with \verb|\setmathfont{}[]|.
319 \item
320 You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
321 \item When using an otf math font, options to {\tt newpx} are passed only to {\tt newpxtext}.
322
323 \item Babel, if used, must be specified before {\tt newpx[text]}, which loads {\tt fontspec}.
324 \item Polyglossia, if used, must be specified after loading {\tt newpx[text]}.
325 \end{itemize}
326
327 \textsc{II: Otf text, type1 math (requires unicode engine)}
328
329 Supports {\tt newpxmath} with an otf text font.
330 \begin{verbatim}
331 % Without newpx
332 \usepackage[T1]{fontenc} % so operators can have accented letters
333 \usepackage[list of math options]{newpxmath} % loads minimal version of text font for use in math
334 \usepackage[no-math]{fontspec}
335 \usepackage{} % the chosen otf text font package, or fontspec \setmainfont, etc
336 % or, using newpx, only for TeXGyrePagellaX
337 \usepackage[T1]{fontenc} % so operators can have accented letters
338 \usepackage[list of text and math options]{newpx}
339 % options will be passed to text font package and newpxmath
340 \end{verbatim}
341 \textsc{Notes:}
342 \begin{itemize}
343 \item No special option requirements---this is the default case.
344 \item You may load sans and tt text fonts before {\tt newpx} if you wish \verb|\mathsf| and \verb|\mathsf| not to be the default {\tt helvetica} and {\tt cmtt}.
345 \item Babel, if used, must be specified before {\tt newpx[text]}, which loads {\tt fontspec}.
346 \item Polyglossia, if used, must be specified after loading {\tt newpx[text]}.
347 \end{itemize}
348
349
350
351 \textsc{III: type1 text, type1 math (requires non-unicode engine)}
352
353 In the olden days of [pdf]latex processing, {\tt newpx} was traditionally summoned with lines like
354 \begin{verbatim}
355 \usepackage[T1]{fontenc}
356 \usepackage[<list of text options>]{newpxtext}
357 \usepackage[<list of math options>]{newpxmath}
358 \end{verbatim}
359 which still works but is a bit less flexible than its modern form:
360 \begin{verbatim}
361 \renewcommand*{\rmdefault}{min
362 zpltlf}% minimal text family, Roman and Bold for math
363 \usepackage[T1]{fontenc}
364 \usepackage[<list of text and math options>]{newpx}
365 \end{verbatim}
366 which expands in the non-unicode case to
367 \begin{verbatim}
368 \renewcommand*{\rmdefault}{minzpl}
369 % minimal text family, Roman and Bold for math
370 \usepackage[T1]{fontenc}
371 \usepackage[<list of math options>]{newpxmath}
372 \usepackage[<list of text options>]{newpxtext}
373 \end{verbatim}
374 For this arrangement, the math package needs information about the text font currently in force and the current typewriter and, possibly, the current sans serif font. The default Latin Modern text family would most likely not work well here for use as operators, \verb|\mathbf|, \verb|\mathtt| and the like. Dealing with the math part first allows you the flexibility of choosing different text fonts for use in math than you will use for body text.
375 \begin{verbatim}
376 % Without newpx
377 \renewcommand*{\rmdefault}{minzpl}% minimal text family, Roman and Bold for math
378 \usepackage[T1]{fontenc}
379 \usepackage[<list of math options>]{newpxmath} % options will be as passed from newpx
380 \usepackage{} % the chosen text package
381 % should load tt and sans math before math
382 % or, using newpx, where text font will be TeXGyrePagellaX
383 % should load tt and sans math before newpx
384 \usepackage[T1]{fontenc} % math text font zpltlf by default
385 \usepackage[<list of text and math options>]{newpx}
386 \end{verbatim}
387 \textsc{Notes:}
388 \begin{itemize}
389 \item Babel, if used, must be specified before {\tt newpx[text]}.
390 \end{itemize}
391
392 Note that with a unicode engine, it is not possible to load a type1 text font package unless you have created custom {\tt tu}-encoded support files.
393
394 \section{Usage with {\tt babel}}
395 You should normally load {\tt babel} before loading {\tt newpxtext} in order for {\tt babel} to function as expected. For example, using {\tt pdflatex}:
396 \begin{verbatim}
397 \usepackage[greek.polutonico,english]{babel}
398 % the next line makes text figures proportional, oldstyle, while math uses lining figures
399 \usepackage[theoremfont,trueslanted,largesc,tighter,p,osf]{newpxtext}
400 \usepackage[T1]{fontenc}
401 \usepackage{textcomp}
402 \usepackage[varqu,varl]{inconsolata}
403 \usepackage{amsmath} % must be loaded before amsthm, if using amsthm
404 \usepackage{amsthm} % must be loaded before newpxmath
405 \usepackage[vvarbb]{newpxmath}
406 % option vvarbb gives you stix blackboard bold
407 \linespread{1.05}
408 \end{verbatim}
409 With {\tt newpx}, you could simplify this a bit.
410 \begin{verbatim}
411 \usepackage[greek.polutonico,english]{babel}
412 \usepackage[varqu,varl]{inconsolata}
413 \usepackage[T1]{fontenc}
414 % the next line makes text figures proportional, oldstyle, while math uses lining figures
415 \usepackage[theoremfont,trueslanted,largesc,tighter,p,osf,amsthm,vvarbb]{newpx}
416 % amsmath is loaded automatically, before amsthm
417 % option vvarbb gives you stix blackboard bold
418 \linespread{1.05}
419 \end{verbatim}
420
421 \section{Usage with Lua\LaTeX\ and Xe\LaTeX}
422 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}. As of version 1.5, {\tt newpxtext} will load {\tt fontspec} when processing with XeLaTeX or LuaLaTeX unless one option {\tt type1} is specified. (Option {\tt nofontspec} is no longer acted upon, having no proper function, as of version 1.506.) If you specify the option {\tt no-math} to {\tt newpxtext}, it will pass that option to the {\tt fontspec} call. This should be specified if {\tt fontspec} will not be expected to load an Opentype math font.
423
424 \textsc{Example I: TeXGyrePagellaX Opentype + texgyrepagella-math (Opentype).}
425 \begin{verbatim}
426 %\usepackage[greek.polutonico,english]{babel} % if using babel
427 % next line calls fontspec and loads TeXGyrePagellaX otf
428 \usepackage[otfmath,theoremfont,trueslanted,largesc,p,osf]{newpxtext}
429 % set mono and sans opentype fonts
430 %\usepackage{polyglossia} % must load after fontspec, if using polyglossia
431 % polyglossia setup commands
432 \usepackage{unicode-math}% can't load type1 math fonts after this
433 \setmathfont{texgyrepagella-math}
434 % \mathsf and \mathtt from Latin Modern
435 % operators and other \mathxx from TeXGyrePagellaX
436 \end{verbatim}
437 \textsc{Notes:}
438 \begin{itemize}
439 \item
440 You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
441 \item Babel, if used, must be specified before {\tt newpxtext}, which loads {\tt fontspec}.
442 \item Polyglossia, if used, must be specified after loading {\tt newpxtext}.
443 \end{itemize}
444 With {\tt newpx}, there is a little simplification:
445 \begin{verbatim}
446 %\usepackage[greek.polutonico,english]{babel} % if using babel
447 % next line calls fontspec and loads TeXGyrePagellaX otf
448 \usepackage[otfmath,theoremfont,trueslanted,largesc,p,osf]{newpx}
449 % set mono and sans opentype fonts
450 %\usepackage{polyglossia} % must load after fontspec, if using polyglossia
451 % polyglossia setup commands
452 %\usepackage{unicode-math}% newpx loads unicode-math
453 \setmathfont{texgyrepagella-math}
454 \end{verbatim}
455
456 %\textsc{Example II: newpxtext type1 + texgyrepagella-math (Opentype).}
457 %\begin{verbatim}
458 %%\usepackage[greek.polutonico,english]{babel} % if using babel
459 %% next line does not call fontspec, loads newpxtext type1
460 %\usepackage[type1,theoremfont,trueslanted,largesc,p,osf]{newpxtext}
461 %\usepackage{fontspec}
462 %%\usepackage{polyglossia} % must load after fontspec, if using polyglossia
463 %% polyglossia setup commands
464 %\usepackage{unicode-math}% can't load type1 math fonts after this
465 %\setmathfont{texgyrepagella-math}
466 %\end{verbatim}
467 %\textsc{Notes:}
468 %\begin{itemize}
469 %\item The {\tt type1} option to {\tt newpxtext} prevents the package loading {\tt fontspec} so you must load it before loading {\tt unicode-math} and any opentype fonts.
470 %\item
471 %You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
472 %\item Babel, if used, must be specified before {\tt newpxtext}.
473 %\item Polyglossia, if used, must be specified after loading {\tt fontspec}.
474 %\end{itemize}
475
476 \textsc{Example II: TeXGyrePagellaX Opentype + newpxmath (type1) + polyglossia + other Opentype.}
477 \begin{verbatim}
478 \renewcommand{\rmdefault}{minzpl}% Roman and Bold PagellaX for math mode
479 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
480 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
481 % Next line loads amsmath, then loads amsthm
482 \usepackage[amsthm,vvarbb]{newpxmath}
483 \usepackage[no-math]{newpxtext}% pass no-math option to fontspec
484 % Fontspec will be loaded so that Opentype text fonts may be loaded
485 % By default, TeXGyrePagellaX (otf) will be loaded
486 %\usepackage{polyglossia} % must load after fontspec
487 %\setdefaultlanguage[variant=american]{english}
488 %\setotherlanguages{french,russian}
489 %\newfontfamily{\cyrillicfont}[Scale=MatchLowercase]{cochineal}
490 \end{verbatim}
491 \textsc{Notes:}
492 \begin{itemize}
493 \item The {\tt no-math} option to {\tt newpxtext} causes {\tt fontspec} to load with option {\tt no-math}, preventing the package from loading any unicode math font.
494 \item
495 You do not need to load {\tt amsmath}: it is loaded by {\tt newpxmath}. Option {\tt amsthm} will cause {\tt amsmath} to load before {\tt amsthm}.
496 \item Babel, if used, must be specified before {\tt newpxtext}.
497 \item Polyglossia, if used, must be specified after loading {\tt newpxtext}.
498 \item The {\tt type1} option to {\tt cabin} is important, preventing it from loading {\tt fontspec}, which would lead to an {\tt option clash} error.
499 \end{itemize}
500 With {\tt newpx}, the above is equivalent to:
501 \begin{verbatim}
502 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
503 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
504 % Next line loads amsmath, then loads amsthm
505 \usepackage[no-math,amsthm,vvarbb]{newpx}
506 % Fontspec will be loaded so that Opentype text fonts may be loaded
507 % By default, TeXGyrePagellaX (otf) will be loaded
508 \usepackage{polyglossia} % must load after fontspec
509 \setdefaultlanguage[variant=american]{english}
510 \setotherlanguages{french,russian}
511 \newfontfamily{\cyrillicfont}[Scale=MatchLowercase]{cochineal}
512 \end{verbatim}
513
514 \textsc{Example III: newpxtext type1 + newpxmath (type1) + polyglossia + other Opentype.}
515 \begin{verbatim}
516 \renewcommand{\rmdefault}{minzpl}% Roman and Bold Pagella for math mode
517 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
518 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
519 %Uncomment either the following line
520 %\usepackage[amsthm,vvarbb,no-math]{newpx}
521 %or the next pair of lines
522 %\usepackage[amsthm,vvarbb]{newpxmath}
523 %\usepackage[no-math]{newpxtext}% pass no-math option to fontspec
524
525 % Other Opentype text fonts may be loaded here
526 \usepackage{polyglossia} % must load after fontspec
527 \setdefaultlanguage[variant=american]{english}
528 \setotherlanguages{french,russian}
529 \newfontfamily{\cyrillicfont}[Scale=MatchLowercase]{cochineal}
530 \end{verbatim}
531 \textsc{Notes:}
532 \begin{itemize}
533 \item
534 You do not need to load {\tt amsmath}: it is loaded by {\tt unicode-math}.
535 \item Babel, if used, must be specified before {\tt newpxtext}.
536 \item Polyglossia, if used, must be specified after loading {\tt newpx [text]}.
537 \end{itemize}
538
539 %\textsc{Example V: newpxtext tfm + texgyrepagella-math.}
540
541 Be aware that some text packages (e.g., {\tt cabin}) may contain a line like
542 \begin{verbatim}
543 \RequirePackage{fontspec}
544 \end{verbatim}
545 which would provoke an ``option clash'' error with a subsequent
546 \begin{verbatim}
547 \usepackage[no-math]{fontspec}
548 \end{verbatim}
549 unless suppressed by an appropriate option. E.g.,
550 \begin{verbatim}
551 \usepackage[type1]{cabin}
552 \end{verbatim}
553 prevents the problem with the {\tt cabin} package. (Not working in the version of {\tt cabin.sty} dated 12/25/2022. This has been corrected in the version dated 2023-09-25.)
554
555 \iffalse
556 Consider three scenarios for using some part of {\tt newpx} with one of XeLaTeX, LuaLaTeX.
557 \subsection{Use {\tt newpxtext} and {\tt newpxmath} with {\tt fontspec} for other text fonts}
558 \begin{verbatim}
559 %load LaTeX text components before math
560 \usepackage[T1]{fontenc} % affects only \mathrm, \mathbf etc
561 \usepackage{newpxtext}
562 \usepackage[scaled=.85]{beramono}% used only by \mathtt, optional
563 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
564 \usepackage[amsthm,vvarbb]{newpxmath}
565 \usepackage[scr=rsfso]{mathalpha} % optional
566 \usepackage{bm}% load after all math to give access to bold math, optional
567 %Now load the otf text fonts using fontspec---won't affect math
568 \usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX
569 \setmainfont{TeXGyrePagellaX} % this reads in TeXGyrePagellaX.fontspec
570 \end{verbatim}
571
572 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}|, do the following:
573
574 \textsc{Example:}
575 \begin{verbatim}
576 %load LaTeX text components before math
577 \usepackage[T1]{fontenc} % affects only \mathrm, \mathbf etc
578 \renewcommand{\rmdefault}{minzpl}
579 % Roman font for use in math mode
580 \usepackage[scaled=.85]{beramono}% used only by \mathtt, optional
581 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
582 \usepackage{amsmath} % must be loaded before amsthm
583 \usepackage{amsthm}% load before newpxmath
584 \usepackage[vvarbb]{newpxmath}
585 \usepackage[scr=rsfso]{mathalpha} % optional
586 \usepackage{bm}% load after all math to give access to bold math, optional
587 %Now load the otf text fonts using fontspec---won't affect math
588 \usepackage[no-math]{fontspec} % process with XeLaTeX or LuaLaTeX
589 \setmainfont{TeXGyrePagellaX} % this reads in TeXGyrePagellaX.fontspec
590 \end{verbatim}
591
592 \textsc{Example preamble using polyglossia:}
593
594 \begin{verbatim}
595 \renewcommand{\rmdefault}{zpltlf}% Roman and Bold for use in math mode
596 \usepackage[T1]{fontenc} % T1 is active encoding for use in math text
597 \usepackage[type1]{sourcesanspro}% used only by \mathsf, optional
598 %\usepackage{amsmath} % must be loaded before amsthm
599 %\usepackage{amsthm}% load before newpxmath
600 \usepackage[amsthm,vvarbb]{newpxmath}
601 \usepackage[no-math]{newpxtext}% pass no-math option to fontspec
602 % Fontspec will be loaded so that Opentype text fonts may be loaded
603 \usepackage{polyglossia} % must load after fontspec
604 \setdefaultlanguage[variant=american]{english}
605 \setotherlanguages{french,russian}
606 \newfontfamily{\cyrillicfont}[Scale=MatchLowercase]{Cochineal}
607 \end{verbatim}
608 \fi
609
610 Previous to version 1.5, the preceding pages of this document were processed using {\tt pdflatex}, which was the only engine supported by {\tt newpxtext.sty}. As of version 1.5, XeLaTeX and LuaLaTeX are also supported and the entire document is now processes by LuaLaTeX. All {\tt newpxtext} options and macros formerly limited to {\tt pdflatex} have been modified and now work essentially the same under both unicode engines, though the output may not always be precisely the same as with {\tt pdflatex}. There are some macros and options available under unicode engines that go beyond what can be done under {\tt pdflatex}.
611
612 \textsc{Modified Macros and Options:}
613 \begin{itemize}
614 \item
615 \verb|\textfrac| works more precisely under unicode tex because it is possible to adjust kerning between all characters. The effect should not be very noticeable, at least in regular style.
616 %\item {\tt sups}: the package treats this differently in unicode LaTeX and pdflatex, with handling in the unicode case passed off to the {\tt realscripts} package where the footnote marker font is set to \verb|\normalfont|, meaning that superiors from the current (TeXGyrePagellaX) text font are employed.
617 %\item The \verb|\footnote| macro has been changed and appears to function correctly in KOMA based packages, though for proper handling of multiple footnote markers it may be necessary to add the following line to your preamble:
618 \begin{verbatim}
619 \usepackage[multiple]{fontmisc}
620 \end{verbatim}
621 \item {\tt theoremfont}, {\tt thmtabular}, {\tt thmlining} all function in a manner similar to that in {\tt pdflatex}.
622 \item {\tt swashQ} operates as before.
623 \item {\tt foresolidus, aftsolidus} are not used in unicode tex.
624 %\item {\tt scosf} operates more effectively than in [pdf]latex---in the latter, it seems now very difficult to modify the definition of \verb|\scshape|, and this option works only for \verb|\textsc|.
625 %you have the choice of font to render footnote markers. The differences are as follows.
626 %\begin{itemize}
627 %\item
628 %{\bfseries Unicode latex:}
629 %\begin{itemize}
630 %\item
631 %if you include the option {\tt sups} to {\tt cochineal} and there is no {\tt fnmarkerfont=} option set, then footnote markers are taken from the Cochineal-Roman superiors.
632 %\item if there is a {\tt fnmarkerfont=} option set, then, whether or not there iss a {\tt sups} option set, then, if available, footnote markers will be taken from the superiors in the font family that {\tt fnmarkerfont=} is set to. (When trying a font family, try this in your preamble:
633 %\begin{verbatim}
634 %\newfontfamily\mysu{EBGaramond}{\addfontfeatures{RawFeature=+sups}}
635 %\end{verbatim}
636 %and then, in the body of your document, try typesetting
637 %\begin{verbatim}
638 %X{\mysu 123}X
639 %\end{verbatim}
640
641 %\end{itemize}
642 %\item
643 %{\bfseries pdflatex:}
644 %\end{itemize}•
645 %if you do not include the {\tt fnmarkerfont=} option but you do include {\tt sups}, then footnote markers are taken from {\tt Cochineal-Roman-sups}. There is a new option, {\tt fnmarkerfont} that you can use to specify the font to use for footnote markers. It is ignored when using {\tt pdflatex}.
646 \item \verb|\textcircled| works the same as under {\tt pdflatex}.%\textcircled{X}\textcircled{2}
647 \end{itemize}
648 \textsc{New Macros and Options:}
649 \begin{itemize}
650 %\item
651 %An alternate version of Q,
652 %\Qswash\space (\verb|\Qswash|) and their small cap versions is available using option {\tt altQ}, which sets {\tt StylisticSet=3}. The alternate versions are {\addfontfeatures{RawFeature=+ss03}Q}, {\addfontfeatures{Style=Swash,RawFeature=+ss03}Q}.
653 %\item
654 %An alternate version of J is available in italic shapes only using option {\tt altJ}, which sets {\tt StylisticSet=2}. The alternate version of \textit{J} is {\itshape {\addfontfeatures{RawFeature=+ss02}\textit{J}}}.
655 %%.\textit{J} {\textbf{Bold}} \textsc{SmallCap}
656 \item {\tt oldSS} controls whether the new German capital sharp S is used or whether the old SS is retained. The former is the default but the option {\tt oldSS} forces the latter by setting {\tt StylisticSet=6}. The effects are summarized in the following tables.
657 \makeatletter
658 \ifzpl@otf
659 \makeatother
660
661 \begin{center}
662 \begin{tabular}{@{} lcl @{}}
663 \hline
664 Glyph name & glyph & macro\\
665 \hline
666 {\tt uni1E9E} & \symbol{"1E9E} &\verb|\symbol{"1E9E}| or \verb|\SS|\\
667 {\tt uni1E9E.ss06} & {\addfontfeature{StylisticSet=6}\symbol{"1E9E}} & \verb|{\addfontfeature{StylisticSet=6}\symbol{"1E9E}}| \\
668 {\tt germandbls.sc} & \textsc{\ss} & \verb|{\textsc{\ss}}| \\
669 {\tt germandbls.sc.ss06} & {\addfontfeature{StylisticSet=6,RawFeature=+smcp}\ss} & \verb|{\addfontfeature{StylisticSet=6}\textsc{\ss}}| \\
670 \hline
671 \end{tabular}
672 \end{center}
673 \fi % \ifzpl@otf
674 \end{itemize}
675 %{\bfseries
676 %\begin{center}
677 % \begin{tabular}{@{} lcl @{}}
678 % \hline
679 % Glyph name & glyph & macro\\
680 % \hline
681 % {\tt uni1E9E} & \symbol{"1E9E} &\verb|\symbol{"1E9E}|\\
682 % {\tt uni1E9E.alt} & {\addfontfeature{StylisticSet=1}\symbol{"1E9E}} & \verb|{\addfontfeature{StylisticSet=1}\symbol{"1E9E}}| \\
683 % {\tt germandbls.sc.ss01} & {\addfontfeature{StylisticSet=1}\textsc{\ss}} & \verb|{\addfontfeature{StylisticSet=1}\textsc{\ss}}| \\
684 % \hline
685 % \end{tabular}
686 %\end{center}
687 %}
688 \noindent Effect of choice of {\tt StylisticSet}:
689 \makeatletter
690 \ifzpl@otf
691 \makeatother
692
693 \begin{center}
694 \begin{tabular}{@{} ccccc @{}}
695 \hline
696 StylisticSet & \verb|\ss| & \verb|\SS| & \verb|\MakeUppercase{\ss}| & \verb|\textsc{\ss}| \\
697 \hline
698 None & \ss & \SS & \MakeUppercase{\ss} & \textsc{\ss}\\
699
700 =6 & {\addfontfeature{StylisticSet=6}\ss} & {\addfontfeature{StylisticSet=6}\SS} & {\addfontfeature{StylisticSet=6}\MakeUppercase{\ss}} & {\addfontfeature{StylisticSet=6}\textsc{\ss}}\\
701 \hline
702 \end{tabular}
703 \end{center}
704 \fi % \ifzpl@otf
705
706 \section{Math mode options}
707 The package invoked by
708 \begin{verbatim}
709 \usepackage{newpxmath}
710 \end{verbatim}
711 loads the math part of the {\tt pxfonts} (with revised metrics and additional glyphs) and should be loaded \emph{after} the text font and its encoding have been specified, as it uses the text font settings to define how operators, numbers, math accents, \verb|\mathrm|, \verb|\mathbf| etc.\ are rendered. You should also load a Typewriter font so as not to generate mysterious error messages about \textsf{metafont} trying to generate \texttt{ectt10}. The package offers a number of options.
712 \begin{itemize}
713 \item {\tt upint} (new as of version 1.3.) selects upright integrals---the default shape is slanted. Each shape/size of integral takes one of twelve form, illustrated below in the case of display size slanted integrals.
714 \[\int\quad\oint\quad\iint\quad\iiint\quad\iiiint\quad\oiint\quad\oiiint\quad\varointclockwise\quad\ointctrclockwise\quad\fint\quad\sumint\quad\sqint\]
715 named respectively
716 \begin{verbatim}
717 \int \oint \iint \iiint \iiiint \oiint
718 \oiiint \varointclockwise \ointctrclockwise \fint \sumint \sqint
719 \end{verbatim}
720 The three sizes of the upright integrals look like:
721 \begin{center}
722 \begin{tabular}{@{} cl @{}}
723 \hline
724 Glyph & Command\\
725 \hline
726 $\smallintup$ & \verb|\smallint[up]|\\
727 $\intup$ & \verb|\int[up]| \\
728 $\displaystyle{\intup}$ & \verb|\displaystyle{\int[up]}|\\
729 \hline
730 \end{tabular}
731 \end{center}
732 Note that the suffix {\tt up} is not required unless the document's integral style is slanted. You may find the \verb|\smallint| is useful for inline math mode when it is important not to change the line spacing.
733 \item {\tt smallerops} (new as of version 1.3.) causes big operators other than integrals to render up to 20\% less tall, so that displayed formulas may occupy less vertical space. For example, in the following display, the first operator is the usual \verb|\sum|, the second is what you would get with {\tt smallerops}, the third is \verb|\textstyle{\sum}| and the fourth is \verb|\smallsum|, the latter being used mainly with inline math.
734 \[\sum \Sumop \textstyle{\sum} \smallsum\]
735 Similarly, there are \verb|\smallprod| and \verb|\smallcoprod| which, along with \verb|\smallsum|, are of class {\tt mathop}, unlike their Greek letter equivalents.
736 \item (New as of version 1.3.) Two macros allow you to change {\tt fontdimen} values in math mode: \verb|\setSYdimens| and \verb|\setEXdimens|, which allow you to change the {\tt fontdimen} parameters for the {\tt symbol} and {\tt extension} fonts respectively. They may be used only in your preamble. Their arguments can be any valid \TeX\ commands to change {\tt fontdimen} values. For example:
737 \begin{verbatim}
738 \def\setSYdimens{\fontdimen16\font=2pt\fontdimen17\font=1.15\fontdimen17\font }
739 \end{verbatim}
740 Don't use these unless you know what you're doing.
741 \item
742 \begin{itemize}
743 \item{\tt varg} causes the math italic letter $g$ to be replaced by $\varg$;
744 \item{\tt cmintegrals} instructs \textsf{newpxmath} to load a thicker version of the Computer Modern integral in place of the \textsf{newpxmath} default---the pxfonts integral (identical to the integral in the Wolfram fonts), which is not to everyone's taste---a consequence is that none of the special forms of \textsf{pxfonts} integrals are available; \textbf{As of version 1.3, this option does nothing, as the new default is slanted integrals.}
745 \item The former option {\tt cmbraces} instructed {\tt newpxmath} to ignore the brace collections from {\tt pxfonts}, substituting a collection based on thickened versions of the Computer Modern braces, which I found much easier to distinguish from other delimiters. This worked quite well in regular weight but looked a bit clunky in bold. It no longer has any effect.
746 \item The once new option {\tt bigdelims} offered delimiters which were a bit larger than the standard delimiters and the normal and {\tt big} sizes, with more distinction between the two than in the standard package. With {\tt bigdelims}, the option {\tt cmbraces} was ignored. Now, {\tt bigdelims} is the default, and the option has no effect.
747 \end{itemize}
748 \item the combination
749 \begin{verbatim}
750 \usepackage{amsmath}% loads amstext, amsbsy, amsopn but not amssymb
751 \usepackage{newpxmath}
752 \end{verbatim}
753 causes no error, unlike the same combination with {\tt pxfonts}, but does nothing significant. The package {\tt newpxmath} loads the package {\tt amsmath} if it was not previously loaded. Options to {\tt amsmath} such as {\tt leqno,intlimits} may be passed to {\tt amsmath} via options to the documentclass.
754 %The integrals are as defined in {\tt pxfonts}. %With
755 %\begin{verbatim}
756 %\usepackage[cmintegrals]{newpxmath}
757 %\end{verbatim}
758 %you may use the forms \verb|\iint|, \verb|\iiint|, \verb|\iiiint| and \verb|\idotsint| defined in {\tt amsmath}, but using the pumped-up Computer Modern integral loaded by {\tt newpxmath}.
759 \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, and \verb|\mathnormal{\Omega}| etc will always produce the slanted version of uppercase Greek letters. (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.27.)
760 \item The \textsf{newpxmath} package contains three different Blackboard Bold alphabets, where original \textsf{pxfonts} contained one. 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{pxfonts}, 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.
761 \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}.)
762 \item {\tt amssymbols} (the default) and {\tt noamssymbols} determine whether the {\tt pxfonts} versions of the \textsc{ams} symbols ({\tt msam}, {\tt msbm}) 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 one of your precious math families for other purposes, such as setting a couple of external math alphabets by means of the \textsf{mathalfa} package.)
763 \end{itemize}
764
765 \textsc{Example:}
766 \begin{verbatim}
767 \documentclass[leqno]{article}
768 \usepackage[osf,theoremfont]{newpxtext} % T1, lining figures in math, osf in text
769 \usepackage{textcomp} % required for special glyphs
770 \usepackage[varg]{newpxmath} % single story g
771 \usepackage[scr=rsfso]{mathalpha}% \mathscr is fancier than \mathcal
772 \usepackage{bm} % load after all math to give access to bold math
773 %\useosf %no longer needed unless using babel
774 \linespread{1.05}% Give Palatino more leading (space between lines)
775 \end{verbatim}
776
777 \section{Some recent additions to \texttt{newpxmath}}
778 Because a number of the standard math accents appeared to be too close to the symbols they accented, a number of the problem accents have been reworked as additions to the {\tt symbols} font, along with a number of vertically doubled symbols. (The doubled symbols are described in the documentation to newtx.) The new accents are flatter and stand higher above their accentees than the old versions.
779
780 Another addition to {\tt symbols} may be used to signify matrix \emph{transpose}. In fact, the glyph is just the {\tt intercal} glyph (from the txfonts rendition of the AMS symbols) raised and narrowed considerably. Here is an example comparing its use to a number of other common constructions:
781 \[\mathbf{M}^{\transp}, \mathbf{M}^{\mathsf{T}}, \mathbf{M}^{\mathrm{T}}, \mathbf{M}^{\intercal},\]
782 are produced respectively by
783 \begin{verbatim}
784 \mathbf{M}^{\transp}, \mathbf{M}^{\mathsf{T}}, \mathbf{M}^{\mathrm{T}},
785 \mathbf{M}^{\intercal}.
786 \end{verbatim}
787 Clearly, the last needs to have the exponent raised and moved to the left. This is not hard to do, but it may use up on of your math families unless you are already using the AMS symbols. A similar objection could be made to the use of \verb|\mathsf|.
788 \section{The \TeX\ math font problem}
789 Math font packages in \LaTeX\ are susceptible to the ``Too many math alphabets'' error, due to exceeding the limit of just sixteen math font families, or mathgroups, as they are called in \LaTeX. Put in oversimplified terms that do however correctly represent how this all works in \textsf{newpxmath}, the following math fonts are always loaded and permanently (if you didn't prevent loading of some features) occupying slots immediately following \verb|\begin{document}|, and others that may be called for in typesetting a mathematical expression can add to the list as the document grows.
790
791 \textsc{Always loaded:}
792 \begin{verbatim}
793 0: operators
794 1: letters
795 2: symbols
796 3: largesymbols
797 4: AMSm (replaces former AMSa and AMSb)
798 5: lettersA
799 6: symbolsC
800 7: largesymbolsTXA
801 8: boldoperators
802 9: boldletters
803 10: boldsymbols
804 11: boldlargesymbols
805 \end{verbatim}
806 \textsc{Notes:}
807 \begin{itemize}
808 \item
809 The {\tt operators} font is essentially the Roman text font, used for names of operators and as the target for \verb|\mathrm|---its bold version is used as the target for \verb|\mathbf|;
810 \item if you typeset an expression that, say, calls for a single bold glyph from {\tt symbolsC}, that costs you an entire new slot, leaving only two remaining;
811 \item same with, e.g., \verb|\mathit|;
812 \item same with an external Fraktur, Blackboard Bold or Script glyphs;
813 \item if you run out of math alphabets, look first to dropping {\tt AMSm} and {\tt symbolsC}, which can save you at least two slots;
814 \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;
815 \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
816 \begin{verbatim}
817 \mbox{{\usefont{U}{zplmia}{b}{n} X}}
818 \end{verbatim}
819 which allows you to use letter X from {\tt boldlettersA} but without any math features;
820 \item there is a macro \verb|\ShowMathFonts| in {\tt newpxmath} which may be called at any point in your document, which will provide you a list of the mathgroups currently in use. This can be helpful in figuring out where problems occur. The output lines take the form
821 \begin{verbatim}
822 (<fam number>: <internal font id> = <tfm name> [newpx name])
823 \end{verbatim}
824
825 \end{itemize}
826 \section{Bold math fonts}\label{sec:boldmath}
827 Every math font in the {\tt pxfonts} package, and in the {\tt newpx} package, is accompanied by a bold version. Some usage examples are given below. Generally, one may use either \verb|\boldmath| to change an entire formula to bold, or \verb|\boldsymbol| to change one symbol, but the spacing generally works better after loading the {\tt bm} package and using the \verb|\bm| macro.
828
829 The text glyphs dotlessi (\verb|\i|) and dotlessj (\verb|\j|) are rarely needed in actual text---in many fonts, roman dotlessi is very similar to the numeral 1. They are however sometimes needed to build special math glyphs. The following table shows how to generate the mathematical forms of dotlessi and dotlessj. I illustrate with only dotlessi---dotlessj is entirely analogous.
830
831 \begin{center}
832 \begin{tabular}{@{} llll @{}}
833 \hline
834 Type & Weight & Command & Result \\
835 \hline
836 Math Italic & Regular & \verb|$\hat{\imath}$| & $\hat{\imath}$ \\
837 Math Italic & Bold & \verb|$\bm{\hat{\imath}}$| & $\bm{\hat{\imath}}$ \\
838 Roman & Regular & \verb|$\hat{\textrm{\i}}$| & $\hat{\textrm{\i}}$\\
839 Roman & Bold & \verb|$\bm{\hat{\textbf{\i}}}$| & $\bm{\hat{\textbf{\i}}}$\\
840 \hline
841 \end{tabular}
842 \end{center}
843 \newcommand{\xyvec}[2]{\ensuremath{#1\bm{\textbf{\i}}#2\bm{\textbf{\j}}}}
844
845 (As of version $1.55$, {\tt newpxmath}) has macros \verb|\imathup| for upright Roman {\tt dotlessi}, and \verb|\frakdotessi| for fraktur dotlessi as well as \verb|\bbdotlessi| for Blackboard bold dotlessi. The last two have synonyms \verb|\imathfrak| and \verb|imathbb|, and the dotlessj versions are also provided.)
846
847 In math, bold roman characters are often used to indicate vector quantities, and for this one uses constructions like
848 \begin{itemize}
849 \item
850 \verb|$\mathbf{x}$| produces $\mathbf{x}$;
851 \item
852 \verb|$\bm{\mathrm{x}}$| produces $\bm{\mathrm{x}}$ (same as previous but may offer improved spacing);
853 \item
854 \verb|$\bm{x}$| produces $\bm{x}$ (not roman);
855 \item
856 \verb|$\bm{\hat{\mathbf{x}}}$| produces $\bm{\hat{\mathbf{x}}}$ (with a bold accent);
857 \item \verb|$\bm{\dot{x}}$| produces $\bm{\dot{x}}$ (bold but not roman);
858 \item the macro definition
859 \begin{verbatim}
860 \newcommand{\xyvec}[2]{\ensuremath{#1\bm{\textbf{\i}}#2\bm{\textbf{\j}}}}
861 \end{verbatim}
862 allows you to write \verb|\xyvec{x}{+y}| to output $\xyvec{x}{+y}$;
863 \item \verb|$\bm{\Gamma}$| produces $\bm{\Gamma}$ (bold Gamma);
864 \item \verb|$\bm{\hat{\Gamma}}$| produces $\bm{\hat{\Gamma}}$ (bold Gamma with bold accent).
865 \end{itemize}
866 (The last two assume that you have effectively set the option {\tt uprightGreek}---the default.)
867
868 \section{Blackboard bold}
869 As mentioned briefly above, the package now has a new blackboard bold alphabet built-in, and some new macros to call the non-default versions. To summarize, the problems are:
870 \begin{itemize}
871 \item
872 the default, called by \verb|\mathbb| is quite ugly and indistinct, but does cooperate with the bolding macros \verb|\bm| and \verb|\boldsymbol|;
873 \item the original variant form called with the macro \verb|\varmathbb| is better, but the macro conflicts with \verb|\bm|. (In fact, the bold version is identical to the regular version, but it is still not right that it conflicts with them.) The problem stems from the part of the definition of \verb|\varmathbb| which allows you to insert an argument with more than one character, like \verb|\varmathbb{ABC}|. The solution is to make a new macro that takes a single argument, like \verb|\vmathbb{A}|, which cooperates with \verb|\bm|.
874 \item the third, new, alphabet is borrowed from the STIX fonts---it is sharp and quite clear, geometric in design. The macro \verb|\vvmathbb| provided to access this alphabet allows only a single character for its argument. The new option {\tt vvarbb} effectively makes \verb|\mathbb| mean the same as \verb|\vvmathbb|.
875 (The reason for including these in the \textsf{newpx} package rather than calling them from the \textsf{mathalfa} package is that \textsf{newpx} leaves very little space for new math symbol fonts and math alphabets, and this way requires no additional such resources.
876 \end{itemize}
877 One interesting feature of the new alphabet is that it contains blackboard bold numbers, of which $0$ and $1$ will likely be the most useful, perhaps as operator names. I find $\vvmathbb{1}$=\verb|$\vvmathbb{1}$| useful in specifying an indicator, AKA characteristic function. Here are some examples:
878
879 \begin{center}
880 \begin{tabular}{@{} llll @{}}
881 \toprule
882 & Regular & Bold & Remarks \\
883 \midrule
884 Default & \verb|$\mathbb{R}$| $\mathbb{R}$& \verb|$\bm{\mathbb{R}}$| $\bm{\mathbb{R}}$\\
885 Variant 1 & \verb|$\varmathbb{R}$| $\varmathbb{R}$ & & Bold is same as regular \\
886 $\dots$or & \verb|$\vmathbb{R}$| $\vmathbb{R}$ & & Single char.\ argument\\
887 Variant 2 & \verb|$\vvmathbb{R}}$| $\vvmathbb{R}$& \verb|{\boldmath $\vvmathbb{R}$}| {\boldmath $\vvmathbb{R}$} & Make a macro for this! \\
888 % & $\bm{\mathbb{AB}}$ & $\bm{\vmathbb{A}\vmathbb{B}}$ & $\bm{\vvmathbb{A}\vvmathbb{B}}$ \\
889 \bottomrule
890 \end{tabular}
891 \end{center}
892
893 For further information on the changes made to \texttt{newpxmath} 1.3, see the appendix to the documentation for \texttt{newtxmath} 1.5.
894
895 \def\jj{\mkern-3mu j}
896
897 \section{Appendix 1: Changes made in version 1.40}
898 Versions of {\tt newpx} dated from September, 2019 (1.40 for {\tt newpxmath} make some quite substantial changes, mostly to math mode.
899
900 \section{Goals}
901 Spurred by work of Ross Moore to provide means of generating archivable pdf using {\tt pdflatex}, the main goal was to change {\tt newpx} and {\tt newtx} to meet the requirements for satisfying the {\tt PDF/A-1b} standards by using an appropriate preamble involving the {\tt pdfx} package and other unicode mapping files. Making these changes gave me the opportunity to organize the source files to make them more manageable in future revisions.
902
903 A further goal whose time seemed ripe was to rework the spacing of math letters, both Roman and Greek, so they behaved better in superscripts and subscripts. This did not turn out to be so easy. The problem is illustrated by math italic j. If you don't give it enough extra space on the left, it will likely collide with the D in rendering \verb|$D^j$|. On the other hand, if you do give it enough space on the left, it will look bad as a subscript, appearing too far right.
904
905 A final goal was to make better use of the remaining space in some of the math fonts by placing some math alphabets in them, avoiding perhaps a waste of those precious sixteen math families.
906
907 \section{The important changes}
908 The following changes were made to both {\tt newtx} and {\tt newpx}.
909
910 \subsection{Archivability}
911 Some of the individual font files from which the math fonts are built turned out to have some fairly minor structural issues. These have all been corrected. The more major issue was the lack of unicode mapping for all characters in the fonts. For the symbol and math extension fonts, this issue was largely solved by Ross Moore's {\tt glyphtounicode} files that are now accessible as part of TeXLive and MiKTeX. The main problem was the math alphabets like math italic, bold math italic, upright Greek and slanted Greek, all of which have now been assigned their own unicode points. For all of these, I constructed new fonts using unicode names for the glyphs, then made \textsf{fontinst} scripts that renamed those unicode values to the original simple names as used in the encoding files so that I could use my old encoding and adjustment files. This exercise has now been carried out for {\tt newtxmath}, {\tt newpxmath}, {\tt newtxmath/libertine} and {\tt newtxmath/xcharter.} Each of these can now be considered to have an ``enhanced'' status that allows them to share all the new assets described below. The other packages which may be specified as an option to {\tt newtxmath} (e.g., {\tt baskervaldx}) must be considered for the moment to be ``unenhanced'' and able to share only some of the new assets. In particular, only the enhanced items can generate archivable pdf.
912
913 Also modified were the {\tt sups} fonts in {newpxtext}, where the main issue was unicode mapping. Superior number and some superior letters do have assigned unicode values, but in may cases a more creative approach was needed, and provided once again by Ross Moore. I rebuilt the superior font files using those unicode names, solving that particular problem.
914
915 Here is a sample preamble showing the elements you will need to specify to generate a pdf satisfying the PDF/A-1b standards, as verified by Adobe Acrobat Pro. (Other verification processes may yield different outcomes.)
916 \begin{verbatim}
917 \documentclass[noamsfonts]{amsart} % save 2 math families
918 \pdfcompresslevel=0
919 \pdfgentounicode=1
920 \input glyphtounicode.tex
921 \usepackage{pdfx} % v 1.6.4 or higher
922 \InputIfFileExists{glyphtounicode-cmr.tex}{}{}
923 \InputIfFileExists{glyphtounicode-ntx.tex}{}{}
924 \usepackage{newpxtext} %T1 is default encoding
925 \usepackage[scaled=0.95]{inconsolata} % typewriter
926 %\usepackage[leqno]{amsmath}
927 \usepackage{amsmath} % must be loaded before amsthm
928 \usepackage{amsthm}
929 \usepackage[vvarbb]{newpxmath} % vvarbb gives STIX Bbb
930 \end{verbatim}
931
932 Version 1.6.3 of {\tt pdfx} from February 2019 mishandles math accents. A fix is now available and will become part of the upcoming {\tt pdfx} v1.6.4.
933
934 \subsection{Glyph spacing changes} I reworked the math italics to improve the rendering of some superscripts. This affects (a) parentheses, brackets and braces to inhibit clashes; (b) glyphs like j, f, p, y, \verb|\rho|, \verb|\beta| and \verb|\mu| where a long tail could pose problems intersecting with other glyphs; (c) glyphs like such as D, Q and \verb|\Phi| that are round on the right, where interference is most likely to occur with a superscript. Increasing the left side-bearing of j, etc., helps with superscripts but creates an ugly gap when used as subscripts.
935
936
937 The {\tt subscriptcorrection} option to {\tt newpxmath} has been corrected and enhanced so that it now offers a partial solution the subscript spacing problem. I regret that this option is incompatible with xy-pic, both depending on redefining \verb|_| as an active character. {\tt Newpxmath} will detect if the {\tt xy} package is loaded and disable {\tt subscriptcorrection} if so. You would have to correct such issues by manually inserting a negative \verb|\mkern|. For example, you might put in your preamble something like
938 \begin{verbatim}
939 \def\jj{\mkern-3mu j}
940 \end{verbatim}
941 and then use \verb|$x_{\jj}$| instead of \verb|$x_j$|, turning $x_j$ into $x_{\jj}$.
942
943 If you do enable {\tt subscriptcorrection}, there is a default correction table in the {\tt sty} file, but the sty file also looks for a file named, {\tt newpx-subs.tex}. There is already such a file located in the {\tt newpx} distribution in the \verb|tex/latex/newpx| folder. (The contents of this file are also listed at the end of this appendix, from which they may be more easily copied.) If you wish to make changes to this file, copy the file to your home TeX folder where it will be found by TeX before the one in the distribution. (The contents of this file are also listed at the end of this appendix, from which they may be more easily copied.) The entries in the file are lines like
944 \begin{verbatim}
945 {j}{-3}
946 \end{verbatim}
947 each of which will have the same effect as the above macro if the first item in the subscript is {\tt j}. You can also specify Greek letters with lines like
948 \begin{verbatim}
949 {\beta}{-1.5}
950 \end{verbatim}
951
952 \subsection{New glyphs added} Math family 1 {\tt (letters)} has been extended from 128 slots to 256, retaining the {\tt OML} encoding of the first 128. Most of additional slots have been allocated to a script font from the old STIX collection and an upright modification of that font.
953 By default, \verb|$\mathscr{F}$| will produce $\mathscr{F}$.\\
954 $\bullet$ option {\tt uprightscript} changes the output to {\usefont{OML}{ntxmi}{m}{it}\char201}.\\
955 In both cases, there are full upper-case and lower-case and {\tt dotlessi}, {\tt dotlessj}. To insert the latter, you can write either \verb|$\mathscr{\imath}$| or \verb|$\imathscr$|, rendered as $\mathscr{\imath}$ in the slanted script case.
956
957 The secondary letters font {\tt (lettersA)} and math family 2 {\tt(symbols)} have been rearranged. The first of these continues to have a Fraktur alphabet, but it a modification of its original one, having wider vertical stems and a blacker appearance more in keeping with the weight Times. {\tt Dotlessi} and {\tt dotlessj} have been added and can be specified in math mode by \verb|$\imathfrak$| and \verb|$\jmathfrak$|. Note that \verb|$\mathfrak{\imath}$| also works. There are in addition two subsidiary Bbb alphabets in {\tt lettersA}, specified by the respective options {\tt vmathbb}, {\tt vvmathbb}, and there are corresponding {\tt dotlessi}, {\tt dotlessj} activated by \verb|$\imathbb$|, \verb|$\jmathbb$|, which always render as $\imathbb$, $\jmathbb$ no matter the choice of which Blackboard Bold Alphabet. If you select one of the options {\tt vmathbb}, {\tt vvmathbb}, you will have Bbb digits 0..9 using, e.g., \verb|$\mathbb{1}$| to get~$\varmathbb{1}$. (Without one of these options in force, \verb|$\mathbb{1}$| will render as~$\mathbb{1}$ because the default Bbb has no figure glyphs in the default slots.)
958
959 Among the new symbols added are:\\
960 $\bullet$ \verb|\hslash|, \verb|\hbar|, \verb|\lambdaslash|, \verb|\lambdabar|, \verb|\Zbar|, \verb|\Angstrom| are now constructed from the native glyphs.\\
961 $\bullet$ Euler's constant \verb|$\Euler$| ($\Euler$).\\
962 $\bullet$ Hermitian transpose \verb|\hermtransp| or \verb|\htransp| is used like \verb|$\mathbf{A}^{\htransp}$| ($\mathbf{A}^{\htransp}$). This usage is similar to simple transpose \verb|$\mathbf{A}^{\transp}$| ($\mathbf{A}^{\transp}$).\\
963 $\bullet$ Independence can use \verb|\Perp|, $\Perp$, and there is a new \verb|\nPerp|, $\nPerp$, for its negation.
964
965 \subsection{Adaptive vector accent} The \LaTeX\ macro \verb|\overrightarrow| provides a right arrow with adaptive width, but not matching the vector head of {\tt newpxmath}. Likewise, the {\tt esvect} provides a similar service with a choice of vector heads, none of which match {\tt newpxmath}. I've added code to provide a matching adaptive vector accent and which uses the same macro name, \verb|\vv|, as {\tt esvect}.
966 For a comparison of these vector accents, \verb|$\vec{XY} \vv{XY} \overrightarrow{XY}$| renders as\\
967 $\vec{XY} \vv{XY} \overrightarrow{XY}$.\\
968 $\bullet$ \verb|$\vv{AB}$| renders as $\vv{AB}$.\\
969 $\bullet$ \verb|$\vv*{AB}{x}$| renders as $\vv*{AB}{x}$. This provides better horizontal spacing of subscripts than \verb|$\vv{AB}_{x}$|, $\vv{AB}_{x}$.\\
970 $\bullet$ You can also do \verb|$\vv*{AB}{\vv{CD}}$|, which renders as $\vv*{AB}{\vv{CD}}$.\\
971 $\bullet$ You can change the vertical space between the arrow and the accentee by means of the package option {\tt vecsep}, whose default value is {\tt .25ex}.
972
973 \subsection{Miscellaneous Changes}
974 \begin{itemize}
975 \item
976 The superior letters fonts in {\tt newpx}
977 have been extended and all glyphs now have appropriate unicode mappings.
978 \item
979 The AMS fonts replacement, {\tt zplsym} corrects the former misplacement of \verb|\kbbb|, \verb|\daleth|, \verb|\circledR| and \verb|\circledS|.)
980 \end{itemize}
981 \newpage
982 \section{Changed Font Tables}
983 \subsection{letters}
984 \fonttable{zplmi}
985
986 Note that either of the script P glyphs in the above table would be suitable for rendering \verb|\powerset|, though this is not a standard math macro.
987 \newpage
988 \subsection{lettersA}
989 \fonttable{zplmia}
990 \newpage
991 \subsection{symbols}
992 \fonttable{zplsy}
993 \newpage
994 \subsection{A sample newpx-subs.tex}
995 You may either copy the entire block below, starting with the line \verb|\begin{...| and ending after the line beginning \verb|\end{|
996 and pasting it into the top of your document before the \verb|\documentclass...| line, which will allow for easy editing and will write the file to the same folder as your document, or make your own file, omitting those outer two lines.
997
998 \begin{verbatim}
999 \begin{filecontents*}{newpx-subs.tex}
1000 {f}{-2.5}
1001 {j}{-1.5}
1002 {p}{-1}
1003 {y}{-1}
1004 {A}{-1.5}
1005 {B}{-1}
1006 {D}{-1}
1007 {H}{-1}
1008 {I}{-1}
1009 {K}{-1}
1010 {L}{-1}
1011 {M}{-1}
1012 {N}{-0.5}
1013 {P}{-1}
1014 {X}{-1}
1015 {\rho}{-1.5}
1016 {\mu}{-1}
1017 \end{filecontents*}
1018 \end{verbatim}
1019
1020 %\section{Footnote markers}
1021 %The following page displays some of the ways that footnote markers may be modified.
1022 %\newpage
1023 %\includegraphics{footsnippet-crop}
1024 \end{document}