summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/xelatex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2016-12-22 22:55:10 +0000
committerKarl Berry <karl@freefriends.org>2016-12-22 22:55:10 +0000
commit6add04a52f80b715c0e69f411ac56440589f3c75 (patch)
tree77308ba33dd4805fd511b598527971cd91b9f0ae /Master/texmf-dist/doc/xelatex
parent6831d08bfd5ba7d320cdbbae30d6080d5d05e571 (diff)
mathspec (22dec16)
git-svn-id: svn://tug.org/texlive/trunk@42773 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/xelatex')
-rw-r--r--Master/texmf-dist/doc/xelatex/mathspec/README.txt (renamed from Master/texmf-dist/doc/xelatex/mathspec/README)7
-rw-r--r--Master/texmf-dist/doc/xelatex/mathspec/mathspec.pdfbin344772 -> 166106 bytes
-rw-r--r--Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex76
3 files changed, 62 insertions, 21 deletions
diff --git a/Master/texmf-dist/doc/xelatex/mathspec/README b/Master/texmf-dist/doc/xelatex/mathspec/README.txt
index b20301440df..ff28cad7d9d 100644
--- a/Master/texmf-dist/doc/xelatex/mathspec/README
+++ b/Master/texmf-dist/doc/xelatex/mathspec/README.txt
@@ -1,16 +1,17 @@
The mathspec package
--------------------
Font selection for mathematics with XeLaTeX
-version 0.2
+version 0.2b
Andrew Gilbert Moschou
-Wednesday, 30 September 2009
+22 Dec 2016
+
+* v0.2b by Will Robertson: a bug fix update for fontspec and the new TU encoding
This work is released under the LPPL v1.3c or later.
The mathspec package provides an interface to select ordinary text fonts for
typesetting mathematics with XeLaTeX.
-
The package is developmental and later versions might to be incompatible with
this version. This version is incompatible with earlier versions. The package
requires at least version 0.9995 of XeTeX.
diff --git a/Master/texmf-dist/doc/xelatex/mathspec/mathspec.pdf b/Master/texmf-dist/doc/xelatex/mathspec/mathspec.pdf
index 2d6a48a1ee6..dd2651fdbb2 100644
--- a/Master/texmf-dist/doc/xelatex/mathspec/mathspec.pdf
+++ b/Master/texmf-dist/doc/xelatex/mathspec/mathspec.pdf
Binary files differ
diff --git a/Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex b/Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex
index 578f0535107..31352961e4b 100644
--- a/Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex
+++ b/Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex
@@ -30,16 +30,51 @@
style=latex,#1}}
{}
-\setmainfont[Numbers=OldStyle]{Sabon LT Std}
-\setallsansfonts[Numbers={OldStyle,Proportional},Scale=MatchLowercase]{Candara}
-\setallmonofonts[Numbers=OldStyle,Scale=MatchLowercase]{Consolas}
-\setmathsfont(Digits,Latin)[Scale=MatchLowercase]{Bembo MT}
-\setmathsfont(Greek)[Scale=MatchLowercase]{STIXGeneral}
-\setmathrm{Sabon LT Std}
+\linespread{1.05}
+\setmainfont[
+ Extension = .otf,
+ UprightFont = *-regular,
+ ItalicFont = *-italic,
+ BoldFont = *-bold,
+ BoldItalicFont = *-bolditalic,
+ Numbers=OldStyle,
+ Scale=MatchLowercase,
+ ]{texgyrepagella}
+\setallsansfonts[
+ Extension = .otf,
+ UprightFont = *-Regular,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold,
+ BoldItalicFont = *-BoldItalic,
+ Numbers={OldStyle,Proportional},
+ Scale=MatchLowercase
+ ]{UniversalisADFStd}
+\setallmonofonts[
+ Scale=MatchLowercase,
+ BoldFont=Inconsolatazi4-Bold.otf,
+ AutoFakeSlant]{Inconsolatazi4-Regular.otf}
+\setmathsfont(Digits,Latin)[
+ Scale = 0.85,
+ Extension = .otf ,
+ UprightFont = *-Regular,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold,
+ BoldItalicFont = *-BoldItalic,
+ ]{LibreBaskerville}
+\setmathsfont(Greek)[
+ Extension = .otf ,
+ UprightFont = *-Regular,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold,
+ BoldItalicFont = *-BoldItalic,
+ Scale=MatchLowercase,
+ ]{STIX}
+\setmathrm[Scale=MatchLowercase]{LibreBaskerville-Regular.otf}
+
\exchangeforms{phi}
\setminwhitespace[750]
-\newfontfamily\MathematicalPi{Mathematical Pi LT Std}
+\newfontfamily\MathematicalPi{STIXMath-Regular.otf}
\newcommand\MP[1]{{\MathematicalPi #1}}
\makeatletter
@@ -132,8 +167,9 @@
pdfsubject={Font selection for mathematics with XeLaTeX},
pdfauthor={Andrew Gilbert Moschou}}
-\title{The \textsf{\spotcolor mathspec} package\\[0.25em]\mdseries\itshape\normalsize Font selection for mathematics with \XeLaTeX\\[1ex]\mdseries\upshape version 0.2}
-\author{Andrew Gilbert Moschou\\\texttt{andmos@gmail.com}}
+\title{The \textsf{\spotcolor mathspec} package\\[0.25em]\mdseries\itshape\normalsize Font selection for mathematics with \XeLaTeX\\[1ex]\mdseries\upshape version 0.2b}
+\author{Andrew Gilbert Moschou\thanks{v0.2b update by Will Robertson (\texttt{will.robertson@latex-project.org}).}\\\texttt{andmos@gmail.com}
+}
\makeatletter\let\@today\today\def\today{\scshape\MakeLowercase{\@today}}\makeatother
\hyphenation{in-com-pa-ti-ble Hoef-ler ma-the-ma-tics des-pite}
@@ -170,7 +206,11 @@ This package provides mathematics alphabets in any of the same typefaces that ar
\cmditem{usepackage}\oprm{\sty{mathspec} and \sty{fontspec} options}|{mathspec}|
-\noindent To use the package, put \cmd{usepackage}|{mathspec}| in the preamble of the document. It is not necessary to put \cmd{usepackage}|{fontspec}| because \sty{mathspec} will ensure that \sty{fontspec} is loaded anyway. To load \sty{fontspec} with some options, parse them through \sty{mathspec}, for example, \cmd{usepackage}|[quiet]|\permitbreak|{mathspec}| is equivalent to \cmd{usepackage}\permitbreak|[quiet]|\permitbreak|{fontspec}|\cmd{usepackage}|{mathspec}|.
+\noindent To use the package, put \cmd{usepackage}|{mathspec}| in the preamble of the document. It is not necessary to put \cmd{usepackage}|{fontspec}| because \sty{mathspec} will ensure that \sty{fontspec} is loaded anyway. To load \sty{fontspec} with some options, parse them through \sty{mathspec}, for example, \cmd{usepackage}|[quiet]|\permitbreak|{mathspec}| is equivalent to:
+\begin{verbatim}
+ \usepackage[quiet]{fontspec}
+ \usepackage{mathspec}
+\end{verbatim}
Actually, \sty{mathspec} ordinarily loads \sty{fontspec} with the \opt{no-math} option. To cancel this, explicitly use the \opt{math} option: e.g.\ \cmd{usepackage}|[math]{mathspec}|.
@@ -253,6 +293,7 @@ You can try the package \sty{MnSymbol}, which has greater (and more uniform) cov
\subsection{Examples}
+The following command:
\begin{example}
\setmathsfont(Digits,Latin,Greek)
[Numbers={Lining,Proportional}]{Minion Pro}
@@ -265,8 +306,7 @@ is equivalent to:
\end{example}
and indicates that all digits, Latin and Greek characters are to be set in Minion Pro with lining, proportional digits, with digits and uppercase Greek in regular and Latin and lowercase Greek in italic, which are the default shapes.
-\bigskip
-
+The following command:
\begin{example}
\setmathsfont(Digits,Greek)
[Uppercase=Plain,Lowercase=Regular,Scale=MatchLowercase]
@@ -353,7 +393,7 @@ This command is equivalent to:
\subsection{A further example}
-This document is typeset with the following:
+This document used to be typeset with the following:
\begin{example}
\setmainfont[Numbers=OldStyle]{Sabon LT Std}
@@ -511,10 +551,10 @@ Note that this value corresponds to the inserted spaces on both sides for each s
\begin{table}
\begin{tabular}{@{}rl@{}}\topbottomrule
-Text & \fontspec{Bembo MT}\itshape abcdefghijklmnopqrstuvwxyz\\
+Text & \fontspec[ItalicFont=LibreBaskerville-Italic.otf]{LibreBaskerville-Regular.otf}\itshape abcdefghijklmnopqrstuvwxyz\\
Mathematics & $\"abcdefghijklmnopqrstuvwxyz"$\\\bottomrule
\end{tabular}
-\caption{Bembo \acr{MT} in text and spaced mathematics.\label{tab:stix}}
+\caption{Libre Baskerville in text and spaced mathematics.\label{tab:stix}}
\end{table}
\end{ltxsyntax}
@@ -523,16 +563,16 @@ Now, the spacing in equations~(\ref{eq:1}, \ref{eq:2}) are improved by:
\begin{example}
\begin{align}
"f\left("x\right) &= \sum_{"n = -\infty}^\infty"c_{"n}"e^{\"jnx"} \\
-"c_{"n} &= \frac{1}{2"π}\int_{-"π}^"π"f\left("x\right)"e^{-\"jnx"}\,\mathrm d"x
+"c_{"n} &= \frac{1}{2"π}\int_{-"π}^"π"f\bigl("x\bigr)"e^{-\"jnx"}\,\mathrm d"x
\end{align}
\end{example}
\begin{align}
"f\left("x\right) &= \sum_{"n = -\infty}^\infty "c_{"n}"e^{\"jnx"}\\
-"c_{"n} &= \frac 1{2"π}\int_{-"π}^{"π}"f\left("x\right)"e^{-\"jnx"}\,\mathrm d"x
+"c_{"n} &= \frac 1{2"π}\int_{-"π}^{"π}"f\bigl("x\bigr)"e^{-\"jnx"}\,\mathrm d"x
\end{align}
-Also note that the spacing is improved by replacing |(x)| with |\left(x\right)| (which you should be doing anyway).
+Also note that the spacing is improved by replacing |(x)| with |\bigl(x\bigr)| (which you should be doing anyway). %% changed from \left..\right to \bigl..\bigr (WSPR)
\section{Compatability}