summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-02-04 21:34:30 +0000
committerKarl Berry <karl@freefriends.org>2019-02-04 21:34:30 +0000
commit054d357b9895e835697ab0d8648835ef60d7e174 (patch)
treee2e53cb855b8439900ff09f66133c47518c05c53 /Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex
parent08eb7d91bb76a0aff4f084b3eeddc01c863028ae (diff)
garamond-math (4feb19)
git-svn-id: svn://tug.org/texlive/trunk@49933 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex')
-rw-r--r--Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex43
1 files changed, 25 insertions, 18 deletions
diff --git a/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex b/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex
index d4765579c87..f5531501f35 100644
--- a/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex
+++ b/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex
@@ -4,16 +4,20 @@
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math}
\usepackage{metalogo}
-\setmathfont{Garamond-Math.otf}[Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathI ,StylisticSet={1},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathII ,StylisticSet={2},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathIII ,StylisticSet={3},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathIV ,StylisticSet={4},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathV ,StylisticSet={5},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathVI ,StylisticSet={6},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathVII ,StylisticSet={7},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathVIII,StylisticSet={8},Path=./]
-\setmathfont{Garamond-Math.otf}[version=GaramondMathIX ,StylisticSet={9},Path=./]
+% \setmainfont{EB Garamond}
+\setmainfont{Libertinus Sans}
+\setmonofont{Source Code Pro}[Scale=.86]
+\setmathfont{Garamond-Math.otf}[Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathI ,StylisticSet={1 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathII ,StylisticSet={2 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathIII ,StylisticSet={3 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathIV ,StylisticSet={4 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathV ,StylisticSet={5 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathVI ,StylisticSet={6 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathVII ,StylisticSet={7 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathVIII,StylisticSet={8 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathIX ,StylisticSet={9 },Path=./ ]%, Scale=MatchUppercase]
+\setmathfont{Garamond-Math.otf}[version=GaramondMathX ,StylisticSet={10},Path=./ ]%, Scale=MatchUppercase]
\def\Latinalphabets{ABCDEFGHIJKLMNOPQRSTUVWXYZ}
\def\latinalphabets{abcdefghijklmnopqrstuvwxyz}
@@ -99,7 +103,7 @@
\newcommand{\dd}{\text{d}}
\newcommand{\norm}[1]{\left\lVert{#1}\right\rVert}
-\title{Garamond-Math, Ver. 0.3}
+\title{Garamond-Math, Ver. 2019-02-05}
\author{Yuansheng Zhao, Xiangdong Zeng}
\begin{document}
@@ -114,7 +118,7 @@ This font is still under development, do not expect the font to be free of bugs.
The minimal example with \texttt{unicode-math} package is as following:
\begin{verbatim}
- %Compile with XeTeX
+ %Compile with `xelatex' command
\documentclass{article}
\usepackage[math-style=ISO, bold-style=ISO]{unicode-math}
\setmainfont{EB Garamond}%You should have installed the font
@@ -125,9 +129,9 @@ The minimal example with \texttt{unicode-math} package is as following:
\end{verbatim}
\section{Alphabets \& StylisticSet}
-The text font in this document is set to Latin Modern Roman deliberately so that the difference between text and math can be easily seen.
+\emph{The text font in this document is set to Libertinus Sans deliberately so that the difference between text and math can be easily seen.}
\subsubsection*{Latin and Greek (StylisticSet 4/5 give semi/extra bold for \texttt{\backslash symbf})}
-Each letter is regarded as variable, so the spacing is larger than usual text. I recommend typing equations like this (pay attention to \texttt{\backslash sumup} $\ee$, $\ii$, and text $\cos$, $\dd$): $\ee^{\ii k z}=\cos k z-\ii\int_0^{kz}\cos \zeta\,\dd\zeta$.
+Each letter is regarded as variable, so the spacing is larger than usual text. I recommend typing equations like this (pay attention to \texttt{\backslash symup} $\ee$, $\ii$, and text $\cos$, $\dd$): $\ee^{\ii k z}=\cos k z-\ii\int_0^{kz}\cos \zeta\,\dd\zeta$.
\[ \Latinalphabets\]
\[ \latinalphabets \]
\[ \symup{\Latinalphabets}\]
@@ -189,6 +193,9 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I
\subsubsection*{\texttt{\backslash hbar}: (StylisticSet 6 gives horizontal bars)}
\[\text{$\hbar$\qquad \begingroup\mathversion{GaramondMathVI} $\hbar$\endgroup}\]
+\subsubsection*{Italic $\symbf h$: (StylisticSet 10 gives out-bending ones)}
+\[\text{$\displaystyle\hbar=\frac {\symbf{h}}{2\uppi} $\qquad \begingroup\mathversion{GaramondMathX} $\displaystyle\hbar=\frac {\symbf{h}}{2\uppi} $\endgroup}\]
+
\subsubsection*{\texttt{\backslash tilde}: (StylisticSet 9 gives ``normal'' ones)}
\[\text{$\tilde F$\qquad \begingroup\mathversion{GaramondMathIX} $\tilde F$\endgroup}\]
@@ -206,8 +213,8 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I
\section{Equation Samples}
\[ 1 + 2 - 3 \times 4 \div 5 \pm 6 \mp 7 \dotplus 8 = -a \oplus b \otimes c -\{z\}\]
\[\forall \epsilon, \exists \delta : x \in A \cup B \subset S \cap T \ntrianglerighteq U\]
-\[R_{\nu\kappa\lambda}^\mu=\partial_\kappa\Gamma_{\lambda\nu}^\mu-\partial_\lambda\Gamma_{\kappa\nu}^\mu+\Gamma_{\kappa\sigma}^\mu\Gamma_\lambda\nu^\sigma-\Gamma_{\lambda\sigma}^\mu\Gamma_{\kappa\nu}^\sigma\]
-\[T_{\alpha_1,\cdots\alpha_k}'^{\beta_1\cdots\beta_l}=T_{i_1\cdots i_k}^{j_1\cdots j_l}
+\[R_{\nu\kappa\lambda}^\mu=\partial_\kappa\Gamma_{\lambda\nu}^\mu-\partial_\lambda\Gamma_{\kappa\nu}^\mu+\Gamma_{\kappa\sigma}^\mu\Gamma_{\lambda\nu}^\sigma-\Gamma_{\lambda\sigma}^\mu\Gamma_{\kappa\nu}^\sigma\]
+\[T_{\alpha_1\cdots\alpha_k}'^{\beta_1\cdots\beta_l}=T_{i_1\cdots i_k}^{j_1\cdots j_l}
\frac{\partial x^{i_1}}{\partial x'^{\alpha_1}}\cdots
\frac{\partial x^{i_k}}{\partial x'^{\alpha_k}}
\frac{\partial x'^{\beta_1}}{\partial x^{j_1}}\cdots
@@ -246,7 +253,7 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I
+ \bra{\frac{1}{2}} + \ket{\frac{1}{2}}
+ \ip{\frac{1}{2}}{\frac{1}{2}} + \op{\frac{1}{2}}{\frac{1}{2}}
+ \bra{\frac{a^2}{b^2}}
- + \Biggl\vert \frac{\mathrm{e}^{x^2}}{\mathrm{e}^{y^2}} \Biggr\rangle
+ + \Biggl\vert \frac{\ee^{x^2}}{\ee^{y^2}} \Biggr\rangle
\]
\[
\CIRCLEDNUMB +
@@ -276,7 +283,7 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I
&{}=\frac{1}{\sqrt{2^n}}\sum_{k_{n-1}=0}^1\cdots\sum_{k_{0}=0}^1\bigotimes_{l=1}^n\left[\exp\left(-2\uppi \ii j\frac{k_{n-l}}{2^l}\right)\kets{k_{n-l}}\right]\\
&{}=\frac{1}{\sqrt{2^n}}\bigotimes_{l=1}^n\left[\sum_{k_{n-l}=0}^1\exp\left(-2\uppi \ii j\frac{k_{n-l}}{2^l}\right)\kets{k_{n-l}}\right]\\
&{}=\frac{1}{\sqrt{2^n}}\bigotimes_{l=1}^n\left[\kets{0}_{n-l}+\ee^{-2\uppi \ii j /2^l}\kets{1}_{n-l}\right]\\
-&{}=\frac{1}{\sqrt{2^n}}\bigotimes_{l=1}^n\left[\kets{0}_{n-l}+\ee^{-2\uppi \ii ({0.j_{l-1}\ldots j_0})}\kets{1}_{n-l}\right].
+&{}=\frac{1}{\sqrt{2^n}}\bigotimes_{l=1}^n\left[\kets{0}_{n-l}+\ee^{-2\uppi \ii (\overline{0.j_{l-1}\ldots j_0})}\kets{1}_{n-l}\right].
\end{split}
\]