diff options
author | Karl Berry <karl@freefriends.org> | 2019-11-16 22:15:05 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-11-16 22:15:05 +0000 |
commit | 3404fb07721dee1d1bdfa2c8985a494f8cda1894 (patch) | |
tree | afc047cc96f10f8d7adcd8bd537cfa732772a49f | |
parent | 503b85d68f25dd20cb44e22b9af6463759c57f1a (diff) |
garamond-math (16nov19)
git-svn-id: svn://tug.org/texlive/trunk@52820 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.pdf | bin | 275848 -> 238473 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex | 88 | ||||
-rw-r--r-- | Master/texmf-dist/doc/fonts/garamond-math/README.md | 24 | ||||
-rw-r--r-- | Master/texmf-dist/fonts/opentype/public/garamond-math/Garamond-Math.otf | bin | 924620 -> 804812 bytes |
4 files changed, 65 insertions, 47 deletions
diff --git a/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.pdf b/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.pdf Binary files differindex 2a41892538f..e39b0d94e93 100644 --- a/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.pdf +++ b/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.pdf 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 f5531501f35..0376691306e 100644 --- a/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex +++ b/Master/texmf-dist/doc/fonts/garamond-math/Garamond-Math.tex @@ -3,21 +3,27 @@ \usepackage{amsmath} \usepackage[math-style=ISO, bold-style=ISO]{unicode-math} \usepackage{metalogo} +\usepackage{extarrows} +\makeatletter +\renewcommand{\relbar}{\symbol{"E010}\mkern-.2mu\symbol{"E010}\mkern1.8mu} +\renewcommand{\Relbar}{\symbol{"E011}\mkern-.2mu\symbol{"E011}\mkern1.8mu} +\makeatother % \setmainfont{EB Garamond} -\setmainfont{Libertinus Sans} +\setmainfont{EB Garamond} \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] +\setmathfont{Garamond-Math.otf}[Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathI ,StylisticSet={1 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathII ,StylisticSet={2 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathIII ,StylisticSet={3 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathIV ,StylisticSet={4 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathV ,StylisticSet={5 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathVI ,StylisticSet={6 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathVII ,StylisticSet={7 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathVIII,StylisticSet={8 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathIX ,StylisticSet={9 },Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathX ,StylisticSet={10},Path=../Release/ ]%, Scale=MatchUppercase] +\setmathfont{Garamond-Math.otf}[version=GaramondMathXI ,StylisticSet={11},Path=../Release/ ]%, Scale=MatchUppercase] \def\Latinalphabets{ABCDEFGHIJKLMNOPQRSTUVWXYZ} \def\latinalphabets{abcdefghijklmnopqrstuvwxyz} @@ -29,7 +35,7 @@ \Upsilon \Phi \Chi \Psi \Omega } \def\greekalphabets{% - \alpha \beta \gamma \delta \epsilon + \alpha \beta \gamma \delta \epsilon \varepsilon \zeta \eta \theta \vartheta \iota \kappa \varkappa \lambda \mu \nu \xi \omicron \pi \varpi \rho @@ -103,7 +109,7 @@ \newcommand{\dd}{\text{d}} \newcommand{\norm}[1]{\left\lVert{#1}\right\rVert} -\title{Garamond-Math, Ver. 2019-02-05} +\title{Garamond-Math, Ver. 2019-08-16} \author{Yuansheng Zhao, Xiangdong Zeng} \begin{document} @@ -112,11 +118,11 @@ Garamond-Math is an open type math font matching the \emph{EB Garamond (Octavio Pardo)}\footnote{https://ctan.org/pkg/ebgaramond/, and https://github.com/octaviopardo/EBGaramond12/} and \emph{EB Garamond (Georg Mayr-Duffner)}\footnote{https://github.com/georgd/EB-Garamond/}. Many mathematical symbols are derived from other fonts, others are made from scratch. The metric is generated with a python script. -The font is best used with \XeTeX, with other engine, one might end up getting very bad spacing. +The font is mostly tested with \XeTeX, though it shoule also work with \LuaTeX. -This font is still under development, do not expect the font to be free of bugs. We might update any components any at any time. Issues, bug reports, forks and other contributions are welcome. Please visit GitHub (https://github.com/YuanshengZhao/Garamond-Math/) for development details. +Issues, bug reports, forks and other contributions are welcome. Please visit GitHub\footnote{https://github.com/YuanshengZhao/Garamond-Math/} for development details. -The minimal example with \texttt{unicode-math} package is as following: +A minimal example with \texttt{unicode-math} package is as following: \begin{verbatim} %Compile with `xelatex' command \documentclass{article} @@ -124,14 +130,14 @@ The minimal example with \texttt{unicode-math} package is as following: \setmainfont{EB Garamond}%You should have installed the font \setmathfont{Garamond-Math.otf}[StylisticSet={7,9}]%Use StylisticSet that you like \begin{document} - \[x^3+y^3=z^3\] + \[x^3+y^3=z^3.\] \end{document} \end{verbatim} +The result shoule be +\[x^3+y^3=z^3.\] -\section{Alphabets \& StylisticSet} -\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.} +\section{Alphabets \& StylisticSets} \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 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}\] @@ -165,13 +171,13 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I \[ \symtt{\Latinalphabets}\] \[\symtt{\latinalphabets} \] -\subsubsection*{Blackboard (StylisticSet 1 gives rounded XITS Math\footnote{https://github.com/khaledhosny/xits/})} +\subsubsection*{Blackboard (StylisticSet 1 $\rightarrow$ rounded XITS Math\footnote{https://github.com/khaledhosny/xits/})} \[ \symbb{\Latinalphabets} \] \[\symbb{\latinalphabets} \] \begingroup\mathversion{GaramondMathI}\[\symbb{\Latinalphabets}\] \[\symbb{\latinalphabets}\]\endgroup -\subsubsection*{Script: Rounded XITS Math [StylisticSet 3 gives scaled CM; 8 gives Garamond-compatible ones (experimental)]} +\subsubsection*{Script: Rounded XITS Math [StylisticSet 3 $\rightarrow$ scaled CM; 8 $\rightarrow$ Garamond-compatible ones (experimental)]} \[ \symscr{\Latinalphabets} \] \[\symscr{\latinalphabets} \] \[ \symbfscr{\Latinalphabets} \] @@ -181,32 +187,54 @@ Each letter is regarded as variable, so the spacing is larger than usual text. I \begingroup\mathversion{GaramondMathVIII}\[\symscr{\Latinalphabets}\] \[\symscr{\latinalphabets}\]\endgroup +\subsubsection*{Fraktur: From Noto Sans Math\footnote{https://github.com/googlefonts/noto-fonts/}} +\[ \symfrak{\Latinalphabets} \] +\[\symfrak{\latinalphabets} \] +\[ \symbffrak{\Latinalphabets} \] +\[\symbffrak{\latinalphabets} \] + + \subsubsection*{Digits: Same width between weight and serif/sans} \[3.141592653589793238462643383279502884197169399375105820974944592307816406286\] \[\symsf{3.141592653589793238462643383279502884197169399375105820974944592307816406286}\] \[\symbf{3.141592653589793238462643383279502884197169399375105820974944592307816406286}\] -\subsubsection*{\texttt{\backslash partial}: (StylisticSet 2 gives curved ones)} +\subsubsection*{\texttt{\backslash partial}: (StylisticSet 2 $\rightarrow$ curved ones)} \[\partial_\mu(\symup\partial^\mu\phi)-\symbf{\epsilon^{\lambda\mu\nu}\partial_\mu(A_\lambda\symbfup\partial_\nu f)}\] \begingroup\mathversion{GaramondMathII}\[\partial_\mu(\symup\partial^\mu\phi)-\symbf{\epsilon^{\lambda\mu\nu}\partial_\mu(A_\lambda\symbfup\partial_\nu f)}\]\endgroup -\subsubsection*{\texttt{\backslash hbar}: (StylisticSet 6 gives horizontal bars)} +\subsubsection*{\texttt{\backslash hbar}: (StylisticSet 6 $\rightarrow$ horizontal bars)} \[\text{$\hbar$\qquad \begingroup\mathversion{GaramondMathVI} $\hbar$\endgroup}\] -\subsubsection*{Italic $\symbf h$: (StylisticSet 10 gives out-bending ones)} +\subsubsection*{Italic $\symbf h$: (StylisticSet 10 $\rightarrow$ 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)} +\subsubsection*{\texttt{\backslash tilde}: (StylisticSet 9 $\rightarrow$ ``normal'' ones)} \[\text{$\tilde F$\qquad \begingroup\mathversion{GaramondMathIX} $\tilde F$\endgroup}\] -\subsubsection*{\texttt{\backslash int}: (StylisticSet 7 gives a variant with inversion symmetry)} +\subsubsection*{\texttt{\backslash int}: (StylisticSet 7 $\rightarrow$ a variant with inversion symmetry)} \[\oint_{\partial\Sigma}\vec E\cdot \dd{\vec{l}}=-\frac{1}{c}\frac{\dd}{\dd t}\iint_{\Sigma}\vec B \cdot \dd{\vec{S}}\] \begingroup\mathversion{GaramondMathVII}\[\oint_{\partial\Sigma}\vec E\cdot \dd{\vec{l}}=-\frac{1}{c}\frac{\dd}{\dd t}\iint_{\Sigma}\vec B \cdot \dd{\vec{S}}\]\endgroup + +\subsubsection*{Binany Operators: (StylisticSet 11 $\rightarrow$ larger ones)} +\[s=A+b\times 1\div x^3\] +\begingroup\mathversion{GaramondMathXI}\[s=A+b\times 1\div x^3\]\endgroup + +\subsubsection*{Extensible Arrow Hack} +The font contains the math table for constructing extensible arrow. However \texttt{unicode-math} does not privode an interface to that. In \LuaTeX ~one can use \texttt{\textbackslash Uhextensible}\footnote{https://tex.stackexchange.com/questions/423893/}. A more general solution is to add the following code in preamble. +\begin{verbatim} +\usepackage{extarrow} %or mathtools +\makeatletter +\renewcommand{\relbar}{\symbol{"E010}\mkern-.2mu\symbol{"E010}\mkern1.8mu} +\renewcommand{\Relbar}{\symbol{"E011}\mkern-.2mu\symbol{"E011}\mkern1.8mu} +\makeatother +\end{verbatim} +Then \texttt{\textbackslash xleftarrow} and other commands will work: +\[\mathrm{CH}_3\mathrm{COO}\mathrm{H}+\mathrm{C}_2\mathrm{H}_5\mathrm{OH}\xrightarrow[{\triangle}]{\mathrm{H}_2\mathrm{SO}_4}\mathrm{CH}_3\mathrm{COOC}_2\mathrm{H}_5+\mathrm{H}_2\mathrm{O}.\] \section{Known Issue} \begin{itemize} - \item As mentioned before, the font should only be used with \XeTeX. - \item Various spacing problems. Though math fonts technically should not be kerned, some pairs looks very ugly (Ex. $VA$); sometimes sub/superscript may also have same problem. + \item Various spacing problems. Though math fonts technically should not be kerned, some pairs looks very ugly (Ex. $VA$); sometimes sub/superscript may also have same problem. However, do note that due to the mechanism in math mode, making all spacing look perfect is amlost impossible (as far as I can do, and low x-height and large italic angle only make things even worse), in many cases, adjusting manually (i.e. using \texttt{\textbackslash,} or \texttt{\textbackslash!}) is required. \item Fake optical size. EB Garamond does not contain a complete set of glyphs (normal + bold + optical size of both weights). The ``optical size \texttt{ssty}'' is made by interpolating different weights at the present (without this, the double script is too thin to be readable). \end{itemize} diff --git a/Master/texmf-dist/doc/fonts/garamond-math/README.md b/Master/texmf-dist/doc/fonts/garamond-math/README.md index ce5f2b1523e..8ec242f8d33 100644 --- a/Master/texmf-dist/doc/fonts/garamond-math/README.md +++ b/Master/texmf-dist/doc/fonts/garamond-math/README.md @@ -1,5 +1,5 @@ <!-- README for CTAN --> -# Garamond-Math Ver. 2019-02-05 +# Garamond-Math Ver. 2019-08-16 Garamond-Math is an open type math font matching the [EB Garamond (Octavio Pardo)](https://github.com/octaviopardo/EBGaramond12/) and [EB Garamond (Georg Mayr-Duffner)](https://github.com/georgd/EB-Garamond). Many mathematical symbols are derived from other fonts (see below), others are made from scratch. The metric is generated with a python script. @@ -7,20 +7,10 @@ Many mathematical symbols are derived from other fonts (see below), others are m ## Notes - *Important notes for this version* - - Fixed various wrong mappings, add italic h.var. - - Fraktur is (temporarily) not supported, Because (1) Originally they come from [TeX Gyre Termes Math](http://www.gust.org.pl/projects/e-foundry/tg-math/) and GUST and OFL are not completely compatible; (2) The glyphs are not modified at all, so there is in principle no need to include it (one can use `range` option in `unicode-math`) - - Default `\mathbb` is swapped with original `StylisticSet=1`. - -- *Blackboard* (`\mathbb`): - - Glyphs based on [XITS Math](https://github.com/khaledhosny/xits) are also available. However, the crossings and endpoints of strokes are rounded to fit the style of EB Garamond. They can be accessed via `StylisticSet=1`. - -- *Script* (`\mathscr`): - - Default glyphs are from XITS Math. The weight (especially for bold) and crossings and endpoints of strokes are modified. - - CM glyphs with a little modification are also available with `StylisticSet=3` - -- *Sans serif, typewriter*: from [Libertinus Math](https://github.com/khaledhosny/libertinus). This font has low x-height as Garamond do, though the bold italic Greeks are unavailable. - -- *Other glyphs available*: display `\int`, `\sum`, `\underbrace`, big delimiters, `\widehat`, arrows, binary relations derived, circled characters, etc, from the original EB Garamond. + - Massive metric adjustment. Now the metric is much closer to that of text. + - Now it should work with LuaTeX + - Added larger oprators etc; + - Reimport Fraktur from [Noto Sans Math](https://github.com/googlefonts/noto-fonts/). - Stylistic sets: (`StylisticSet={#1,#2,...}` in [`unicode-math`](https://ctan.org/pkg/unicode-math?lang=en) package) @@ -34,14 +24,14 @@ Many mathematical symbols are derived from other fonts (see below), others are m - `8` → Garamond-compatible `\mathcal` (experimental) - `9` → `\tilde` variant - `10` → out-bending italic h + - `11` → larger operators ## Known Issue -- Currently only usable for `XeTeX` (with `unicode-math`). OTHER ENGINES (EX. `LuaTeX`, `MS Word`) WILL PRODUCE VERY BAD SPACINGS. - Various spacing problems. Though math fonts technically should not be kerned, some pairs looks very ugly (Ex. `VA`); sometimes sub/superscript may also have same problem. - Fake optical size. EB Garamond does not contain a complete set of glyphs (normal + bold + optical size of both weights). The "optical size `ssty`" is made by interpolating different weights at the present (without this, the double script is too thin to be readable). ## Technical Staff -- This font is still under development, any components might be updated at any time. Issues, bug reports, forks and other contributions are welcome. +- Issues, bug reports, forks and other contributions are welcome. Please visit [GitHub](https://github.com/YuanshengZhao/Garamond-Math/) for development details. ## License diff --git a/Master/texmf-dist/fonts/opentype/public/garamond-math/Garamond-Math.otf b/Master/texmf-dist/fonts/opentype/public/garamond-math/Garamond-Math.otf Binary files differindex 09c7e4c3939..fe8f7be8dc3 100644 --- a/Master/texmf-dist/fonts/opentype/public/garamond-math/Garamond-Math.otf +++ b/Master/texmf-dist/fonts/opentype/public/garamond-math/Garamond-Math.otf |