summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex45
1 files changed, 39 insertions, 6 deletions
diff --git a/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex b/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
index 08284f4b0e9..c05dd1ae20a 100644
--- a/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
+++ b/Master/texmf-dist/doc/fonts/newpx/newpxdoc.tex
@@ -2,17 +2,33 @@
\documentclass[11pt]{article}
\usepackage[margin=1in]{geometry}
\usepackage[parfill]{parskip}% Begin paragraphs with an empty line rather than an indent
+\usepackage{amsthm}
+\newtheoremstyle{oldplain}
+ {\topsep} % ABOVESPACE
+ {\topsep} % BELOWSPACE
+ {\itshape} % BODYFONT
+ {} % INDENT (empty value is the same as 0pt)
+ {\bfseries} % HEADFONT
+ {.} % HEADPUNCT
+ {5pt plus 1pt minus 1pt} % HEADSPACE
+ {} % CUSTOM-HEAD-SPEC
+\theoremstyle{oldplain}
+\newtheorem{oldthm}{Theorem}[section]
+\theoremstyle{plain}
+\newtheorem{thm}{Theorem}[section]
\usepackage{graphicx}
\usepackage{url}
-%\pdfmapfile{+zpl.map}
+\pdfmapfile{=newpx.map}
%SetFonts
% newpx text and math
-\usepackage{newpxtext}
+\linespread{1.05}
+\usepackage[largesc,theoremfont]{newpxtext}
\usepackage{textcomp}
\usepackage{newpxmath}
\usepackage{bm}
\useosf
%SetFonts
+\font\pcf=zpl-Regular-osf-sc-t1 at 10.95pt
\usepackage{booktabs}\title{New PX font package}
\author{Michael Sharpe}
\date{\today} % Activate to display a given date or no date
@@ -55,7 +71,7 @@ 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;
\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.
-\item The font collection used for rendering text is based on TeXGyrePagella with additions to complete the superior figures, which are set by default to render footnote markers. (It is also possible customize footnote markers by redefining \verb|\thefootnote| after loading {\tt newpxtext.sty}.) Small caps are available in all weights and styles.
+\item The font collection used for rendering text is based on TeXGyrePagella with a number of additions, denoted by 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}.) Small caps are available in all weights and styles, and are offered in two sizes. The default small caps supplied by TeXGyrePagella are really \textsc{Petite Caps}, having xheights approximately the same x-heights (sometimes smaller) than lowercase letters. Option \texttt{largesc} increases the size of small caps by about 8\%, approximating the size of Adobe Palatino Small Caps. IMO, this is a better match in terms of weight and size. For a side by side comparison: {\pcf Petite Caps}, \textsc{Small Caps}.
\item Sans serif is by default taken from TeXGyreHeros, 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\%.
\item New math accents such as \verb|\widearc| have been introduced in tandem with the newtx package, where they are documented.
\end{itemize}
@@ -64,7 +80,7 @@ The text mode environment invoked by
\begin{verbatim}
\usepackage{newpxtext}
\end{verbatim}
-has three options: you may write
+has several options: you may write
\begin{verbatim}
\usepackage[scaled=.95]{newpxtext}
\end{verbatim}
@@ -77,8 +93,25 @@ load roman and typewriter text fonts at 95\% of normal size, and the sans serif
The option \texttt{osf} instructs the text fonts to use old-style figures \oldstylenums{1234567890} rather than the default lining figures $1234567890$. As of version $1.23$, {\tt newtxtext} loads initially with lining figures so the math package uses lining figures in math mode. The option {\tt osf} switches to old-style figures in text at the very end of the preamble, forcing the use of oldstyle figures in text, but not math. In previous versions, it was necessary to run
\verb|\useosf| after loading math. This is no longer required, but does no harm.
+Option \texttt{babel} should be used only if you run into problems with the {\tt babel} package, which seems to be caused by an incompatibility between parts of {\tt babel} and \verb|AtEndPreamble|. If you use the {\tt babel} option, you have to omit the {\tt osf} option and use the macro \verb|\useosf| after loading the math package.
+
+As described above, option {\tt largesc} increases the size of small caps by about 8\%.
+
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 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}.
+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:
+
+\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)$].
+\end{thm}
+Compare this to traditional {\tt plain} theorem style of the same text:
+\begin{oldthm}
+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)$].
+\end{oldthm}
+
+
+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'Orleans.
+
\section{Math mode options}
The package invoked by
\begin{verbatim}
@@ -112,12 +145,12 @@ you may use the forms \verb|\iint|, \verb|\iiint|, \verb|\iiiint| and \verb|\ido
\textsc{Example:}
\begin{verbatim}
\documentclass[leqno]{article}
-\usepackage[osf]{newpxtext} % T1, lining figures in math, osf in text
+\usepackage[osf,theoremfont]{newpxtext} % T1, lining figures in math, osf in text
\usepackage{textcomp} % required for special glyphs
\usepackage[varg,cmintegrals,bigdelims]{newpxmath}
\usepackage[scr=rsfso]{mathalfa}% \mathscr is fancier than \mathcal
\usepackage{bm} % load after all math to give access to bold math
-%\useosf %no longer needed
+%\useosf %no longer needed unless forced to use babel option
\linespread{1.05}% Give Palatino more leading (space between lines)
\end{verbatim}