diff options
author | Karl Berry <karl@freefriends.org> | 2016-12-22 22:55:10 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2016-12-22 22:55:10 +0000 |
commit | 6add04a52f80b715c0e69f411ac56440589f3c75 (patch) | |
tree | 77308ba33dd4805fd511b598527971cd91b9f0ae /Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex | |
parent | 6831d08bfd5ba7d320cdbbae30d6080d5d05e571 (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/mathspec/mathspec.tex')
-rw-r--r-- | Master/texmf-dist/doc/xelatex/mathspec/mathspec.tex | 76 |
1 files changed, 58 insertions, 18 deletions
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} |