Debian Codegraph @

texmf-dist/source/fonts/ebgaramond-maths/ebgaramond-maths.dtx

raw
1 % \iffalse meta-comment
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 % ebgaramond-maths.dtx
4 % Additions and changes Copyright (C) 2014-2025 Clea F. Rees.
5 % Code from skeleton.dtx Copyright (C) 2015-2024 Scott Pakin (see below).
6 %
7 % This work may be distributed and/or modified under the
8 % conditions of the LaTeX Project Public License, either version 1.3c
9 % of this license or (at your option) any later version.
10 % The latest version of this license is in
11 % https://www.latex-project.org/lppl.txt
12 % and version 1.3c or later is part of all distributions of LaTeX
13 % version 2008-05-04 or later.
14 %
15 % This work has the LPPL maintenance status 'muaintained'.
16 %
17 % The Current Maintainer of this work is Clea F. Rees.
18 %
19 % This work consists of all files listed in manifest.txt.
20 %
21 % The file ebgaramond-maths.dtx is a derived work under the terms of the
22 % LPPL. It is based on version 2.4 of skeleton.dtx which is part of
23 % dtxtut by Scott Pakin. A copy of dtxtut, including the
24 % unmodified version of skeleton.dtx is available from
25 % https://www.ctan.org/pkg/dtxtut and released under the LPPL.
26 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
27 % \fi
28 %
29 % \iffalse
30 %<*driver>
31 \RequirePackage{svn-prov}
32 % ref. ateb Max Chernoff: https://tex.stackexchange.com/a/723294/
33 \def\MyMakePrivateLetters{\makeatletter\ExplSyntaxOn\endlinechar13}
34 \ExplSyntaxOff
35 \ProvidesFileSVN{$Id: ebgaramond-maths.dtx 10827 2025-02-19 19:39:10Z cfrees $}[v1.3 \revinfo][\filename: \filebase]
36 \DefineFileInfoSVN[ebgaramond-maths]
37 \documentclass[11pt,british]{ltxdoc}
38 % l3doc loads fancyvrb
39 % fancyvrb overwrites svn-prov's macros without warning
40 % restore \fileversion \filerev in case we're using l3doc
41 \GetFileInfoSVN{ebgaramond-maths}
42 \usepackage[T1]{fontenc}
43 \usepackage{upquote}
44 \usepackage[sf,scale=0.95,ttscale=.9]{libertine}
45 \usepackage[cmintegrals,cmbraces]{newtxmath}
46 \usepackage{ebgaramond-maths}
47 \makeatletter %^^A am unrhyw reswm, dyw ebgaramond ddim yn diffinio'r rhai hyn
48 \DeclareRobustCommand{\oldstylefam}{\fontfamily{EBGaramond-\ebgaramond@figurealign OsF}\selectfont}
49 \DeclareRobustCommand{\liningfam}{\fontfamily{EBGaramond-\ebgaramond@figurealign LF}\selectfont}
50 \DeclareRobustCommand{\tabularfam}{\fontfamily{EBGaramond-T\ebgaramond@figurestyle}\selectfont}
51 \DeclareRobustCommand{\proportionalfam}{\fontfamily{EBGaramond-\ebgaramond@figurestyle}\selectfont}
52 \makeatother
53 \EnableCrossrefs
54 \CodelineIndex
55 \RecordChanges
56 % \OnlyDescription
57 \DoNotIndex{\verb,\ProvidesPackageSVN,\NeedsTeXFormat,\ProcessKeyOptions}
58 \usepackage{babel}
59 \usepackage{fancyhdr}
60 \usepackage[plain]{fancyref}
61 \usepackage{array}
62 \usepackage{enumitem}
63 \makeatother
64 \usepackage{booktabs}
65 \usepackage{xcolor}
66 \usepackage{xurl}
67 % \urlstyle{tt}
68 \urlstyle{sf}
69 \usepackage{microtype}
70 \usepackage[a4paper,headheight=14pt,marginparwidth=45mm,hmarginratio=4:1,vscale=.8,hscale=.7,verbose]{geometry} % use 14pt for 11pt text, 15pt for 12pt text
71 % addaswyd o chronos.tex
72 \newlength\tewadjust
73 \newlength\modiwldoctemplgth
74 \AddToHook {begindocument/after}[.]
75 {%
76 \setlength\tewadjust{\marginparwidth+\marginparsep-\paperwidth+\textwidth+\oddsidemargin+1in}%
77 \setlength\modiwldoctemplgth{0pt}%
78 }
79 \usepackage{csquotes}
80 \MakeAutoQuote{‘}{’}
81 \MakeAutoQuote*{“}{”}
82 \makeatletter
83 \ProvideDocumentCommand \lstyle {} {% from ebgaramond.sty because it only provides text font commands for figure styles
84 \fontfamily{EBGaramond-\ebgaramond@figurealign LF}\selectfont
85 }
86 \makeatother
87 \usepackage{caption}
88 \DeclareCaptionFont{lf}{\lstyle}
89 \captionsetup[table]{labelfont=lf}
90 % sicrhau hyperindex=false: llwytho CYN bookmark
91 \usepackage{hypdoc}% ateb Ulrike Fischer: https://tex.stackexchange.com/a/695555/
92 \usepackage{bookmark}
93 \hypersetup{%
94 colorlinks=true,
95 citecolor={moss},
96 extension=pdf,
97 linkcolor={strawberry},
98 linktocpage=true,
99 pdfcreator={TeX},
100 pdfproducer={pdfeTeX},
101 urlcolor={blueberry}%
102 }
103 \NewDocElement[%
104 idxtype=lig.,
105 idxgroup=ligatures,
106 printtype=\textit{lig.},
107 ]{Lig}{ligature}
108 \NewDocElement[%
109 idxtype=sw.,
110 idxgroup=swashes,
111 printtype=\textit{sw.},
112 ]{Sw}{swash}
113 \NewDocElement[%
114 idxtype=pkg.,
115 idxgroup=,
116 printtype=\textit{pkg.},
117 ]{Pkg}{package}
118 \NewDocElement[%
119 idxtype=fd.,
120 idxgroup=fds,
121 printtype=\textit{fd.},
122 ]{Fd}{fdfile}
123 \NewDocElement[%
124 idxtype=drv.,
125 idxgroup=drivers,
126 printtype=\textit{drv.},
127 ]{Drv}{driver}
128 \NewDocElement[%
129 idxtype=map,
130 idxgroup=map files,
131 printtype=\textit{map},
132 ]{Map}{mapfile}
133 \NewDocElement[%
134 idxtype=etx,
135 idxgroup=font encodings,
136 printtype=\textit{etx},
137 ]{Etx}{encoding}
138 \NewDocumentCommand \val { m }
139 {%
140 {\ttfamily =\,\meta{#1}}%
141 }
142 \ExplSyntaxOn
143 \NewDocumentCommand \vals { m }
144 {
145 {
146 \ttfamily = \,
147 \clist_use:nn { #1 } { \textbar }
148 }
149 }
150 \keys_define:nn { ebgaramond-maths / doc }
151 {
152 unknown .code:n = {
153 \cs_if_free:cT { \l_keys_key_str }
154 {
155 \tl_gset:cn { \l_keys_key_str } { #1 }
156 }
157 },
158 }
159 \NewDocumentCommand \ebgaramondmathsdocset { +m }
160 {
161 \keys_set:nn { ebgaramond-maths / doc } { #1 }
162 }
163 \ExplSyntaxOff
164 \ebgaramondmathsdocset{%
165 bug={\href{https://codeberg.org/cfr/ebgaramond-maths/issues}{\textsc{bugtracker}}},
166 codeberg={\href{https://codeberg.org/cfr/ebgaramond-maths}{\textsc{codeberg}}},
167 github={\href{https://github.com/cfr42/ebgaramond-maths}{\textsc{github}}},
168 ctan={\href{https://ctan.org/}{\textsc{ctan}}},
169 }
170 % \usepackage{cleveref}
171 \newcommand*{\gust}{\textsc{Gust}}
172 \newcommand*{\lpack}[1]{\textsf{#1}}
173 \newcommand*{\fgroup}[1]{\textsf{#1}}
174 \newcommand*{\fname}[1]{\textsf{#1}}
175 \newcommand*{\file}[1]{\texttt{#1}}
176 \title{\filebase}
177 \author{Clea F. Rees\thanks{%
178 Bug tracker:
179 \href{https://codeberg.org/cfr/ebgaramond-maths/issues}{\url{codeberg.org/cfr/ebgaramond-maths/issues}}
180 \textbar{} Code:
181 \href{https://codeberg.org/cfr/ebgaramond-maths}{\url{codeberg.org/cfr/ebgaramond-maths}}
182 \textbar{} Mirror:
183 \href{https://github.com/cfr42/ebgaramond-maths}{\url{github.com/cfr42/ebgaramond-maths}}%
184 }}
185 % \date{\fileversion~\filetoday}
186 \date{\fileversion~\filedate}
187 \pagestyle{fancy}
188 \fancyhf{}
189 \fancyhf[lh]{\itshape\filebase}
190 % ^^A \fancyhf[rh]{\itshape\filetoday}
191 \fancyhf[rh]{\itshape\fileversion}
192 % ^^A \fancyhf[ch]{\itshape Support for Latin Modern}
193 % ^^A\fancyhf[lf]{\itshape\fileversion}
194 \fancyhf[cf]{\itshape--- \thepage~/~\lastpage{} ---}
195 \ExplSyntaxOn
196 \hook_gput_code:nnn {shipout/lastpage} {.}
197 {
198 \property_record:nn {t:lastpage}{abspage,page,pagenum}
199 }
200 \cs_new_protected_nopar:Npn \lastpage
201 {
202 \property_ref:nn {t:lastpage}{page}
203 }
204 \cs_new_eq:NN \OrigMakePrivateLetters \MakePrivateLetters
205 \ExplSyntaxOff
206 \definecolor{strawberry}{rgb}{1.000,0.000,0.502}
207 \definecolor{blueberry}{rgb}{0.000,0.000,1.000}
208 \definecolor{moss}{rgb}{0.000,0.502,0.251}
209 \begin{document}
210 \let\MakePrivateLetters\MyMakePrivateLetters
211 \DocInput{\filename}
212 \end{document}
213 %</driver>
214 % \fi
215 %
216 % \changes{v1.0}{2014-09-04}{First public release.}
217 % \changes{v1.1}{2014-12-01}{Bug fix of sorts: package will now give compilation errors if missing symbols are used.}
218 % \changes{v1.2}{2019-09-25}{For version 2019-05-04 of ebgaramond.}
219 % ^^A lua will replace v0.0 and 0000/00/00 when tagging
220 % \changes{v1.3}{2025/02/02}{Update for changes to type1 fonts.
221 % Switch to docstrip.}
222 %
223 % \maketitle\thispagestyle{empty}
224 % \pdfinfo{%
225 % /Creator (TeX)
226 % /Producer (pdfTeX)
227 % /Author (Clea F. Rees)
228 % /Title (ebgaramond-maths)
229 % /Subject (TeX)
230 % /Keywords (TeX, LaTeX, font, fonts, tex, latex, ebgaramond-maths, EBGaramond, ebgaramond, EBGaramond, maths, mathematics, Clea, Rees)}
231 % \pdfcatalog{%
232 % /URL ()
233 % /PageMode /UseOutlines}
234 % \setlength{\parindent}{0pt}
235 % \setlength{\parskip}{0.5em}
236 %
237 % \begin{abstract}
238 % \liningfam
239 % \noindent\lpack{ebgaramond-maths} provides some \LaTeX\ support for the use of EBGaramond in mathematics.
240 % It requires \lpack{ebgaramond} and uses the postscript fonts provided by that package\footnote{This version corresponds to the 2019--05--04 version of \lpack{ebgaramond}.}.
241 % The package essentially consists of the files generated by an answer to a question at \url{http://tex.stackexchange.com/q/152038/} and is a response to a follow-up request by the author of that question.
242 % \end{abstract}
243 %
244 % \tableofcontents
245 % \section{Introduction}\label{sec:intro}
246 % ^^A BEGIN sec:intro
247 % There is not really much to document.
248 % To use EBGaramond in mathematics, you just load the package with any \meta{options} required:
249 % \iffalse
250 %<*verb>
251 % \fi
252 \begin{verbatim}
253 \usepackage[cmintegrals,cmbraces]{newtxmath}
254 \usepackage[<options>]{ebgaramond-maths}
255 \end{verbatim}
256 % \iffalse
257 %</verb>
258 % \fi
259 % Note that this will also load \lpack{ebgaramond} which will set your default serif font to \liningnums{EBGaramond}.
260 % If for any reason you do not want this, note two things.
261 % First, your document will be a typographic abomination.
262 % Second, you can easily create the abomination of your choice by changing the default serif family \emph{after} loading \lpack{ebgaramond-maths}.
263 %
264 % \meta{options} are simply passed to \lpack{ebgaramon}, so the above code is equivalent to
265 % \iffalse
266 %<*verb>
267 % \fi
268 \begin{verbatim}
269 \usepackage[cmintegrals,cmbraces]{newtxmath}
270 \PassOptionsToPackage{<options>}{ebgaramond}
271 \usepackage{ebgaramond-maths}
272 \end{verbatim}
273 % \iffalse
274 %</verb>
275 % \fi
276 % ^^A END sec:intro
277 %
278 % \section{Details}\label{sec:manylion}
279 % ^^A BEGIN sec:manylion
280 %
281 % The package includes \verb|.tfm| and \verb|.map| files which define EBGaramond-Maths, a new \TeX\ font for \LaTeX.
282 % This font uses \liningnums{EBGaramond-Italic} with an OML encoding.
283 % However, not all characters in this encoding are available (see \fref{tab:dim}).
284 % Note that this is a limitation of the font itself and not of this package.
285 %
286 % \begin{table}
287 % \centering
288 % \caption{Symbols missing from EBGaramond}\label{tab:dim}
289 % \begin{tabular}{llll}
290 % \toprule
291 % \string\leftharpoonup & \string\triangleright & \string\flat & \string\smile\\
292 % \string\leftharpoondown & \string\triangleleft & \string\natural & \string\frown\\
293 % \string\rightharpoonup & \string\star & \string\sharp & \string\vec\\
294 % \string\rightharpoondown & \string\partial & & \string\t\\
295 % \bottomrule
296 % \end{tabular}
297 % \end{table}
298 %
299 %
300 % \lpack{ebgaramond-maths} uses this new font together with support files from \lpack{ebgaramond} to set up support for mathematics as follows:
301 % \begin{itemize}
302 % \item EBGaramond-Maths is used for \verb|letters| (standard and bold);
303 % \item EBGaramond-LF (upright shape) is used for \verb|operators| (standard and bold);
304 % \item EBGaramond-LF (swash shape) is used for the calligraphic alphabet, \verb|\mathcal| (standard and bold);
305 % \item \verb|\mathrm|, \verb|\mathbf| and \verb|\mathit| should work as expected and use EBGaramond-LF (upright, bold or italic as appropriate).
306 % \end{itemize}
307 %
308 % Note that \liningnums{EBGaramond} did not include a bold weight by design.
309 % Contrary to the designer's intentions, this package follows \lpack{ebgaramond} and provides bold where required.
310 % Specifically, \lpack{ebgaramond-maths} uses whichever weight \lpack{ebgaramond} uses for \cs{mdseries} for the \texttt{normal} version of maths and whichever weight \lpack{ebgaramond} uses for \cs{bfseries} for the \texttt{bold} version.
311 % ^^A END sec:manylion
312 %
313 % \section{Method}\label{sec:dull}
314 % ^^A BEGIN sec:dull
315 %
316 % If you just wish to use the package, you do not need to read this section.
317 % It explains how to create the font support files used by the package given that you have \lpack{ebgaramond} installed.
318 %
319 % As of version 1.3, \lpack{l3build} and \lpack{fontscripts} are used to generate the font files and build the package.
320 % This enables the use of automated regression testing and facilitates cross-platform building.
321 %
322 % \subsection{Current Method}\label{subsec:fntbuild}
323 %
324 % This is the method used to build the package as of version 1.3.
325 % It used \lpack{fontscripts}, which extends and customises `\lpack{l3build}` for use in creating font-support packages.
326 %
327 % \subsubsection{Obtain the Code}\label{subsubsec:get-code}
328 %
329 % You need a copy of the code repository from either \codeberg{} or \github{}.
330 % This is simplest if you have \texttt{git} installed.
331 % \iffalse
332 %<*verb>
333 % \fi
334 \begin{verbatim}
335 git clone https://codeberg.org/cfr/ebgaramond-maths.git
336 \end{verbatim}
337 % \iffalse
338 %</verb>
339 % \fi
340 %
341 % Alternatively, you can download a \href{https://codeberg.org/cfr/ebgaramond-maths/archive/main.zip}{\texttt{zip}} or \href{https://codeberg.org/cfr/ebgaramond-maths/archive/main.tar.gz}{\texttt{tar.gz}}.
342 % \codeberg{} also allows you to open a copy of the repository directly in various IDEs or to download a ‘bundle’.
343 % \github{} also provides a range of options.
344 %
345 % \subsubsection{Build}\label{subsubsec:build}
346 %
347 % Unpack the archive if necessary, then change into the top-level of the repository, which should include a \file{build.lua}.
348 % \iffalse
349 %<*verb>
350 % \fi
351 \begin{verbatim}
352 l3build fnttarg
353 \end{verbatim}
354 % \iffalse
355 %</verb>
356 % \fi
357 % This will should generate the font support files the package requires.
358 %
359 % \subsubsection{Additional Steps}\label{subsubsec:add}
360 %
361 % Provided the previous step was successful, you should now be able to build whichever further \lpack{l3build} targets you wish.
362 % For example, to run the tests and build the documentation:
363 % \iffalse
364 %<*verb>
365 % \fi
366 \begin{verbatim}
367 l3build check
368 l3build doc
369 \end{verbatim}
370 % \iffalse
371 %</verb>
372 % \fi
373 % Note that \texttt{install} will install the package into your personal \texttt{texmf} \textsc{tds} tree.
374 % This is not recommended because it greatly complicates management of \file{.map} files.
375 %
376 % \subsection{Manual Method}\label{subsec:hen-ddull}
377 %
378 % This is the method originally used to create the package.
379 % I am leaving this in the documentation because it is likely to be more useful to somebody trying to understand how to create the package than the current method, especially somebody unfamiliar with \lpack{l3build} and \lpack{fontscripts}.
380 % It does, however, assume that you are using TeX Live on GNU/Linux or another Unix-like system such as OS X.
381 %
382 % \subsubsection{Variables}\label{subsubsec:var}
383 % ^^A BEGIN subsec:var
384 % Make a working directory somewhere which I'll call \verb|${work}|.
385 % The only requirement is that you have permission to write there and a (very small) amount of space.
386 % (It goes without saying that this should not be done as root.)
387 %
388 % In the instructions which follow \verb|${texmain}| is your main, current \verb|texmf| directory.
389 % On my system, that's \verb|/usr/local/texlive/YYYY| (where \verb|YYYY| is the latest version of TeX Live installed) or \verb|/usr/local/texlive/current|.
390 % ^^A END subsec:var
391 %
392 % \subsubsection{Working environment}\label{subsubsec:amgylchedd}
393 %
394 % ^^A BEGIN subsec:amgylchedd
395 % Change to \verb|${work}|.
396 % From now on, I assume that all commands are executed in this directory and that all created files are saved there.
397 %
398 % Create the following symbolic links in your working directory\footnote{%^^A
399 % On Windows, you will need to copy the file instead.%^^A
400 % }:
401 %
402 % \begin{quote}
403 % \iffalse
404 %<*verb>
405 % \fi
406 \begin{verbatim}
407 ln -s ${texmain}/texmf-dist/tex/fontinst/mathetx/oml.etx \
408 ${texmain}/texmf-dist/fonts/opentype/public/ebgaramond/\
409 EBGaramond-Italic.otf ./
410 \end{verbatim}
411 % \iffalse
412 %</verb>
413 % \fi
414 % \end{quote}
415 % ^^A END subsec:amgylchedd
416 %
417 % \subsubsection{Create a preliminary encoding file}\label{subsubsec:creu-enc}
418 % ^^A BEGIN subsec: creu-enc
419 % This is not the encoding file \TeX\ needs but it will form the basis for that file.
420 %
421 % First, run \verb|fontinst| in interactive mode.
422 % (That is, just type \verb|fontinst| at the command.)
423 % At the prompt:
424 % \begin{quote}
425 % \iffalse
426 %<*verb>
427 % \fi
428 \begin{verbatim}
429 \input finstmsc.sty
430 \etxtoenc{oml}{oml-ebgaramond}
431 \bye
432 \end{verbatim}
433 % \iffalse
434 %</verb>
435 % \fi
436 % \end{quote}
437 %
438 % This will produce \verb|oml-ebgaramond.enc| which should be lightly modified before feeding to \verb|otftotfm|\footnote{%^^A
439 % On Windows, you will need to substitute an equivalent command or edit the file by hand.%^^A
440 % }:
441 %
442 % \begin{quote}
443 % \iffalse
444 %<*verb>
445 % \fi
446 \begin{verbatim}
447 sed -i -e 's/TeXMathItalicEncoding/\
448 EBGaramondTeXMathItalicEncoding/g' \
449 -e 's/oldstyle//' oml-ebgaramond.enc
450 \end{verbatim}
451 % \iffalse
452 %</verb>
453 % \fi
454 % \end{quote}
455 %
456 % This ensures that the encoding has a distinctive (and hopefully unique) name.
457 % ^^A END subsec: creu-enc
458 %
459 % \subsubsection{Generate the \TeX\ font}\label{subsubsec:tfm}
460 % ^^A BEGIN subsec:tfm
461 % \lpack{ebgaramond} already provides the \liningnums{type1} files needed so there is no need to regenerate those.
462 % All that is required is to generate a suitable \verb|.tfm|:
463 %
464 % \begin{quote}
465 % \iffalse
466 %<*verb>
467 % \fi
468 \begin{verbatim}
469 otftotfm -e oml-ebgaramond.enc EBGaramond-Italic.otf \
470 > EBGaramond-Maths.map
471 \end{verbatim}
472 % \iffalse
473 %</verb>
474 % \fi
475 % \end{quote}
476 %
477 % This will create both the \verb|.tfm| file and the \verb|.map| file fragment \TeX\ needs to use the font.
478 % It will also create a new encoding file with what will almost certainly be a very weird name.
479 % This is the encoding file \TeX\ will use, as specified in the \verb|.map| file fragment.
480 % The temporary encoding \verb|oml-ebgaramond.enc| can now be deleted as it is no longer required.
481 % ^^A END subsec:tfm
482 %
483 % ^^A END sec:dull
484 %
485 % \MaybeStop{%
486 % \PrintChanges
487 % \PrintIndex
488 % }
489 %
490 % \section{Implementation}
491 %
492 % You do not need to read the remainder of this document in order to install or use the package.
493 %
494 % \iffalse
495 %<*sty>
496 % \fi
497 % \changes{v1.3}{2025-02-06}{Support for bold. Follow \texttt{ebgaramond} series settings. Pass options to \lpack{ebgaramond}.}
498 % \begin{macrocode}
499 \NeedsTeXFormat{LaTeX2e}
500 \RequirePackage{svn-prov}
501 \ProvidesPackageSVN[\filebase.sty]{$Id: ebgaramond-maths.dtx 10827 2025-02-19 19:39:10Z cfrees $}[v1.3 \revinfo]
502 \DefineFileInfoSVN
503 % \end{macrocode}
504 % \iffalse
505 % ^^A Paid â defnyddio \GetFileInfoSVN*/\GetFileInfoSVN{} yn y fan hon!!
506 % \fi
507 % \begin{macrocode}
508
509 \RequirePackageWithOptions{ebgaramond}
510
511 \DeclareSymbolFont{letters} {OML} {EBGaramond-Maths} {\mdseries@rm} {it}
512 \DeclareSymbolFont{operators} {OT1} {EBGaramond-LF} {\mdseries@rm} {n}
513
514 \SetSymbolFont{letters} {bold} {OML} {EBGaramond-Maths} {\bfseries@rm} {it}
515 \SetSymbolFont{operators} {bold} {OT1} {EBGaramond-LF} {\bfseries@rm} {n}
516
517 \DeclareFontSubstitution{OML}{EBGaramond-Maths}{\mdseries@rm}{it}
518 \DeclareFontSubstitution{OT1}{EBGaramond-LF}{\mdseries@rm}{n}
519
520 \SetMathAlphabet{\mathbf} {normal} {OT1} {EBGaramond-LF} {\bfseries@rm} {n}
521 \SetMathAlphabet{\mathbf} {bold} {OT1} {EBGaramond-LF} {\bfseries@rm} {n}
522 \SetMathAlphabet{\mathit} {normal} {OT1} {EBGaramond-LF} {\mdseries@rm} {it}
523 \SetMathAlphabet{\mathit} {bold} {OT1} {EBGaramond-LF} {\bfseries@rm} {it}
524
525 \DeclareMathAlphabet{\mathcal} {OT1} {EBGaramond-LF} {\mdseries@rm} {sw}
526 \SetMathAlphabet{\mathcal} {bold} {OT1} {EBGaramond-LF} {\bfseries@rm} {sw}
527
528 %^^A The following symbols are missing and should give errors
529
530 \gdef\ebgaramond@maths@help{%^^A
531 EBGaramond does not provide this symbol.\MessageBreak
532 If you are using the recommended setup with newtxmath\MessageBreak
533 you can use \string\re@DeclareMathSymbol{}{}{}{} to take it from another font.\MessageBreak
534 For example, to take symbols from Computer Modern:\MessageBreak
535 \expandafter\noexpand\string\DeclareSymbolFont{cmletters}{OML}{cmm} {m}{it}\MessageBreak
536 Then a specific symbol, such as \string\leftharpoonup, can be defined as follows:\MessageBreak
537 \expandafter\noexpand\string\re@DeclareMathSymbol{\string\leftharpoonup}{\mathrel}{cmletters}{"28}}
538
539 %^^A Warning based on David Carlisle's answer at http://tex.stackexchange.com/a/214524/
540 \newcommand*{\ebgaramond@maths@dim}{\leftharpoonup,\leftharpoondown,\rightharpoonup,\rightharpoondown,\triangleright,\triangleleft,\star,\partial,\flat,\natural,\sharp,\smile,\frown,\vec,\t}
541 \@for \xx:=\ebgaramond@maths@dim \do {%^^A
542 \expandafter\edef\xx{\noexpand\PackageError{ebgaramond-maths}{No \expandafter\string\xx}{\ebgaramond@maths@help}}}
543
544 % \end{macrocode}
545 % \iffalse
546 %</sty>
547 % \fi
548 %
549 % \subsection{Font Definitions}\label{subsec:fds}
550 %
551 % \iffalse
552 %<*fd>
553 % \fi
554 % \changes{v1.3}{2025-02-07}{Support for bold and extended weights.}
555 % \begin{macrocode}
556 %^^A Filename: OMLEBGaramond-Maths.fd
557 %% Based on a file created using fontinst v1.928
558
559 %% THIS FILE SHOULD BE PUT IN A TEX INPUTS DIRECTORY
560
561 \ProvidesFileSVN{$Id: ebgaramond-maths.dtx 10827 2025-02-19 19:39:10Z cfrees $}[v1.3 \revinfo][OMLEBGaramond-Maths.fd: font definitions for OML/EBGaramond-Maths.]
562
563 \DeclareFontFamily{OML}{EBGaramond-Maths}{}
564
565 \DeclareFontShape{OML}{EBGaramond-Maths}{m}{it}{
566 <-> EBGaramond-Italic--oml-ebgaramond
567 }{}
568 \DeclareFontShape{OML}{EBGaramond-Maths}{sb}{it}{
569 <-> EBGaramond-SemiBoldItalic--oml-ebgaramond
570 }{}
571 \DeclareFontShape{OML}{EBGaramond-Maths}{b}{it}{
572 <-> EBGaramond-BoldItalic--oml-ebgaramond
573 }{}
574 \DeclareFontShape{OML}{EBGaramond-Maths}{eb}{it}{
575 <-> EBGaramond-ExtraBoldItalic--oml-ebgaramond
576 }{}
577 \DeclareFontShape{OML}{EBGaramond-Maths}{medium}{it}{
578 <-> EBGaramond-MediumItalic--oml-ebgaramond
579 }{}
580
581 \DeclareFontShape{OML}{EBGaramond-Maths}{bx}{it}{<->ssub * EBGaramond-Maths/b/it}{}
582
583 % \end{macrocode}
584 % \iffalse
585 %</fd>
586 % \fi
587 % \subsection{Sample}
588 % \iffalse
589 %<*ee>
590 % \fi
591 % \begin{macrocode}
592 \documentclass{article}
593 \pdfmapfile{-EBGaramond-Maths}
594 \pdfmapfile{+EBGaramond-Maths}
595 \usepackage[cmintegrals,cmbraces]{newtxmath}
596 \usepackage[semibold]{ebgaramond-maths}
597
598 \begin{document}
599 ABCDEFGHIJKLMNOPQRSTUVWXYZ
600
601 abcdefghijklmnopqrstuvwxyz
602
603 1234567890
604
605 $ABCDEFGHIJKLMNOPQRSTUVWXYZ$
606
607 $abcdefghijklmnopqrstuvwxyz$
608
609 $1234567890$
610
611 $\Gamma\varGamma\Delta\Lambda\varLambda\Xi\varXi\Pi\varPi\Sigma\varSigma\Upsilon\varUpsilon\Phi\varPhi\Psi\varPsi\Omega\varOmega$
612
613 $\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta\theta\iota\kappa\lambda\mu\nu\xi\pi\rho\varrho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega$
614
615 $\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
616
617 $\mathbf{abcdefghijklmnopqrstuvwxyz}$
618
619 $\mathbf{0123456789}$
620
621 $\mathit{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
622
623 $\mathit{abcdefghijklmnopqrstuvwxyz}$
624
625 $\mathit{0123456789}$
626
627 $\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
628
629 $\mathrm{abcdefghijklmnopqrstuvwxyz}$
630
631 $\mathrm{0123456789}$
632
633 $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
634
635 $\mathcal{abcdefghijklmnopqrstuvwxyz}$
636
637 $\mathcal{0123456789}$
638
639 {\bfseries
640 ABCDEFGHIJKLMNOPQRSTUVWXYZ
641
642 abcdefghijklmnopqrstuvwxyz
643
644 1234567890}
645
646 \mathversion{bold}
647
648 $ABCDEFGHIJKLMNOPQRSTUVWXYZ$
649
650 $abcdefghijklmnopqrstuvwxyz$
651
652 $1234567890$
653
654 $\Gamma\varGamma\Delta\Lambda\varLambda\Xi\varXi\Pi\varPi\Sigma\varSigma\Upsilon\varUpsilon\Phi\varPhi\Psi\varPsi\Omega\varOmega$
655
656 $\alpha\beta\gamma\delta\epsilon\varepsilon\zeta\eta\theta\iota\kappa\lambda\mu\nu\xi\pi\rho\varrho\sigma\varsigma\tau\upsilon\phi\varphi\chi\psi\omega$
657
658 $\mathbf{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
659
660 $\mathbf{abcdefghijklmnopqrstuvwxyz}$
661
662 $\mathbf{0123456789}$
663
664 $\mathit{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
665
666 $\mathit{abcdefghijklmnopqrstuvwxyz}$
667
668 $\mathit{0123456789}$
669
670 $\mathrm{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
671
672 $\mathrm{abcdefghijklmnopqrstuvwxyz}$
673
674 $\mathrm{0123456789}$
675
676 $\mathcal{ABCDEFGHIJKLMNOPQRSTUVWXYZ}$
677
678 $\mathcal{abcdefghijklmnopqrstuvwxyz}$
679
680 $\mathcal{0123456789}$
681
682 \end{document}
683 % \end{macrocode}
684 % \iffalse
685 %</ee>
686 % \fi
687 %\Finale