Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
annotate docs/_latex/my-doc-fonts.sty @ 240:e18c4bec7889
Do not stretch the Libertinus Mono font with 0.9 but with 0.94 for Palatino
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 16 May 2026 00:35:24 +0200 |
| parents | e3baa7e72af3 |
| children | 0737faace808 |
| rev | line source |
|---|---|
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
1 % -*- coding: utf-8 -*- |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
2 % |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
3 % Some font hacks for my Sphinx PDF documents |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
4 % |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
5 \NeedsTeXFormat{LaTeX2e} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
6 \ProvidesPackage{my-doc-fonts}[% |
|
215
0d6eb4209714
***** my-doc-fonts.sty v0.2.1
Franz Glasner <fzglas.hg@dom66.de>
parents:
214
diff
changeset
|
7 2026/05/15 v0.2.1 (Franz Glasner) Fonts for Sphinx generated PDFs] |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
8 \RequirePackage{xkeyval} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
9 \RequirePackage{fontspec} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
10 \IfFileExists{xcolor.sty}{% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
11 % Should Sphinx load xcolor with its dvipsnames and svgnames options? |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
12 \RequirePackage{xcolor} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
13 }{% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
14 \RequirePackage{color} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
15 } |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
16 |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
17 \newif\if@mdf@mono@dejavusansmono\@mdf@mono@dejavusansmonofalse |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
18 \newif\if@mdf@mono@cmmono\@mdf@mono@cmmonofalse |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
19 \newif\if@mdf@mono@robotomono\@mdf@mono@robotomonofalse |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
20 \newif\if@mdf@mono@sscode\@mdf@mono@sscodefalse |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
21 \newif\if@mdf@mono@inconsolata\@mdf@mono@inconsolatafalse |
|
239
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
22 \newif\if@mdf@mono@libertinusmono\@mdf@mono@libertinusmonofalse |
|
236
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
23 \newif\if@mdf@augment@libertinusmono\@mdf@augment@libertinusmonofalse |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
24 |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
25 \newif\if@mdf@WithDejaVuSansMono |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
26 \newif\if@mdf@WithCM |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
27 \newif\if@mdf@WithRobotoMono |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
28 \newif\if@mdf@WithIBMPlex |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
29 \newif\if@mdf@WithIBMPlexDejaVuSansMono |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
30 \newif\if@mdf@WithAdobeSourcePro |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
31 \newif\if@mdf@WithSpectral |
|
204
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
32 \newif\if@mdf@WithCharter |
|
221
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
33 \newif\if@mdf@WithLibertinus |
|
231
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
34 \newif\if@mdf@WithGaramond |
|
232
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
35 \newif\if@mdf@WithTufte |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
36 \newif\if@mdf@WithPalatino |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
37 |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
38 % A key compatible with options processing as option "fonts" but choices. |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
39 \define@choicekey*{my-doc-fonts.sty}{fonts}[\val\nr]{% |
| 229 | 40 % do not change anything: just deactivate the default "dejavusansmono" |
| 41 default, | |
| 227 | 42 % no augmentation needed: all characters available |
| 43 dejavusansmono, % use DejaVu Sans Mono as monospaced font | |
| 228 | 44 % the fonts below are augmented for missing characters |
| 227 | 45 cm, % assume CM fonts and just fix missing characters |
| 46 robotomono, % use Roboto Mono as mono font | |
| 47 ibmplex, plex, % use the IBM Plex family (incl. Math) | |
|
230
c54b5ffd41d7
FIX: Comment for plex-dejavusansmono
Franz Glasner <fzglas.hg@dom66.de>
parents:
229
diff
changeset
|
48 plex-dejavusansmono, % use IBM Plex Serif/Sans and DejaVu Sans Mono |
| 227 | 49 adobesourcepro, adobesource, % Use Adobe Source Serif/Sans/Mono |
| 50 spectral, % use Spectral, Source Sans Pro and Source Code Pro | |
| 51 charter, % use XCharter (with XCharter Math), Lato and Inconsolata | |
|
231
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
52 libertinus, % use Libertinus family (incl. Math) |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
53 garamond, % EB Garamond (with Math), Libre Franklin and Inconsolata |
|
232
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
54 tufte, % Tufte fonts: ETbb (with Math), GilliusADFNo2, DejaVu Sans Mono |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
55 palatino, % Palatino, Inter and Source Code Pro |
| 227 | 56 }{% |
|
219
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
57 % Not used for now : store the normalized option value (global and expanded) |
|
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
58 \xdef\@mdf@fonts{\val}% |
|
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
59 % Reset all option related font selection flags |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
60 \@mdf@WithDejaVuSansMonofalse |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
61 \@mdf@WithCMfalse |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
62 \@mdf@WithRobotoMonofalse |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
63 \@mdf@WithIBMPlexfalse |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
64 \@mdf@WithIBMPlexDejaVuSansMonofalse |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
65 \@mdf@WithAdobeSourceProfalse |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
66 \@mdf@WithSpectralfalse |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
67 \@mdf@WithCharterfalse |
|
221
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
68 \@mdf@WithLibertinusfalse |
|
231
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
69 \@mdf@WithGaramondfalse |
|
232
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
70 \@mdf@WithTuftefalse |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
71 \@mdf@WithPalatinofalse |
|
219
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
72 % Now set the needed font selection flag |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
73 \ifcase\nr\relax |
|
226
90bbece6fae8
Implement an option for my-doc-fonts.sty to not change anything.
Franz Glasner <fzglas.hg@dom66.de>
parents:
225
diff
changeset
|
74 \relax |
|
90bbece6fae8
Implement an option for my-doc-fonts.sty to not change anything.
Franz Glasner <fzglas.hg@dom66.de>
parents:
225
diff
changeset
|
75 \or |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
76 \@mdf@WithDejaVuSansMonotrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
77 \or |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
78 \@mdf@WithCMtrue |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
79 \or |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
80 \@mdf@WithRobotoMonotrue |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
81 \or |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
82 \@mdf@WithIBMPlextrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
83 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
84 \@mdf@WithIBMPlextrue |
|
219
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
85 % Normalize the stored string |
|
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
86 \gdef\@mdf@fonts{ibmplex} |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
87 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
88 \@mdf@WithIBMPlexDejaVuSansMonotrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
89 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
90 \@mdf@WithAdobeSourceProtrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
91 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
92 \@mdf@WithAdobeSourceProtrue |
|
219
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
93 % Normalize the stored string |
|
a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents:
218
diff
changeset
|
94 \gdef\@mdf@fonts{adobesourcepro} |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
95 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
96 \@mdf@WithSpectraltrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
97 \or |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
98 \@mdf@WithChartertrue |
|
221
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
99 \or |
|
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
100 \@mdf@WithLibertinustrue |
|
231
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
101 \or |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
102 \@mdf@WithGaramondtrue |
|
232
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
103 \or |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
104 \@mdf@WithTuftetrue |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
105 \or |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
106 \@mdf@WithPalatinotrue |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
107 \fi |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
108 } |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
109 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
110 % |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
111 % By default use the safe option dejavusansmono because is contains |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
112 % all characters without any hacks. |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
113 % |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
114 \ExecuteOptionsX{fonts=dejavusansmono} |
|
214
ad57aaf87799
FIX: Do not process class-level options in my-doc-fonts.sty
Franz Glasner <fzglas.hg@dom66.de>
parents:
205
diff
changeset
|
115 \ProcessOptionsX\relax |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
116 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
117 \if@mdf@WithDejaVuSansMono |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
118 % default but with DejaVu Sans Mono as monospaced font |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
119 %\RequirePackage[DefaultFeatures={Scale=0.92},mono=false]{plex-otf} |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
120 %\RequirePackage[mono=true,serif=false,sans=false,math=false]{dejavu-otf} % all symbols are available |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
121 \@mdf@mono@dejavusansmonotrue |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
122 \fi |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
123 \if@mdf@WithCM |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
124 \@mdf@mono@cmmonotrue |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
125 \fi |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
126 \if@mdf@WithRobotoMono |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
127 \@mdf@mono@robotomonotrue |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
128 \fi |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
129 % |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
130 % |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
131 \if@mdf@WithIBMPlex |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
132 \RequirePackage{newunicodechar} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
133 \RequirePackage[DefaultFeatures={Scale=0.92}]{plex-otf} |
|
189
91e8fb8cf67b
FIX: Reset defaultfontfeatures because plex-otf.sty doesn't do it internally
Franz Glasner <fzglas.hg@dom66.de>
parents:
181
diff
changeset
|
134 % Dont keep all default font features from plex-otf |
|
91e8fb8cf67b
FIX: Reset defaultfontfeatures because plex-otf.sty doesn't do it internally
Franz Glasner <fzglas.hg@dom66.de>
parents:
181
diff
changeset
|
135 \defaultfontfeatures{} |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
136 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
137 UprightFont = *, |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
138 BoldFont = * Bold, |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
139 ItalicFont = * Oblique, |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
140 BoldItalicFont = * Bold Oblique, |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
141 Scale=MatchLowercase, |
|
189
91e8fb8cf67b
FIX: Reset defaultfontfeatures because plex-otf.sty doesn't do it internally
Franz Glasner <fzglas.hg@dom66.de>
parents:
181
diff
changeset
|
142 Ligatures=TeX, |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
143 ] |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
144 \newunicodechar{▷}{{\DejaVuSansMono ▷}}% U+25B7 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
145 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
146 \newunicodechar{◆}{{\DejaVuSansMono ◆}}% U+25C6 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
147 \newunicodechar{▪}{{\DejaVuSansMono ▪}}% U+25AA |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
148 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
149 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
150 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
151 \newunicodechar{⇒}{{\DejaVuSansMono ⇒}}% U+21D2 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
152 \newunicodechar{⇔}{{\DejaVuSansMono ⇔}}% U+21D4 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
153 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
154 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
155 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
156 %\newunicodechar{␣}{{\DejaVuSansMono ␣}}% U+2423 Missing! |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
157 %\newunicodechar{^^^^2423}{{\DejaVuSansMono^^^^2423}}% U+2423 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
158 %\newunicodechar{␣}{\textvisiblespace}% U+2423 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
159 %\catcode`^^^^2423\active\protected\def^^^^2423{\textvisiblespace} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
160 |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
161 \PassOptionsToPackage{% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
162 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
163 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
164 {sphinx} |
|
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
165 \fi |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
166 \if@mdf@WithIBMPlexDejaVuSansMono |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
167 \RequirePackage[DefaultFeatures={Scale=0.92},mono=false]{plex-otf} |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
168 \@mdf@mono@dejavusansmonotrue |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
169 \fi |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
170 \if@mdf@WithAdobeSourcePro |
|
191
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
171 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular}} |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
172 \setmainfont{Source Serif Pro}[ |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
173 UprightFont = *, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
174 BoldFont = * Bold, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
175 ItalicFont = * Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
176 BoldItalicFont = * Bold Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
177 ] |
|
203
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
178 \setsansfont{Source Sans Pro}[ |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
179 UprightFont = *, |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
180 BoldFont = * Bold, |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
181 ItalicFont = * Italic, |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
182 BoldItalicFont = * Bold Italic, |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
183 ] |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
184 \@mdf@mono@sscodetrue |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
185 \fi |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
186 \if@mdf@WithSpectral |
|
235
0d441c8a4712
Use "STIX Two Math" with "Spectral"
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
187 \RequirePackage{unicode-math} |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
188 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular}} |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
189 \setmainfont{Spectral}[ |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
190 UprightFont = * Regular, |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
191 BoldFont = * Bold, |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
192 ItalicFont = * Italic, |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
193 BoldItalicFont = * Bold Italic, |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
194 ] |
|
191
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
195 \setsansfont{Source Sans Pro}[ |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
196 UprightFont = *, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
197 BoldFont = * Bold, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
198 ItalicFont = * Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
199 BoldItalicFont = * Bold Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
200 ] |
|
235
0d441c8a4712
Use "STIX Two Math" with "Spectral"
Franz Glasner <fzglas.hg@dom66.de>
parents:
234
diff
changeset
|
201 \setmathfont{STIX Two Math}[Scale=MatchLowercase] |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
202 \@mdf@mono@sscodetrue |
|
203
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
203 \fi |
|
204
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
204 \if@mdf@WithCharter |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
205 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular}} |
|
223
b902b1360991
Use xcharter-otf.sty instead of \setmainfont{XCharter} because it automatically loads the XCharter Math font
Franz Glasner <fzglas.hg@dom66.de>
parents:
222
diff
changeset
|
206 \RequirePackage{xcharter-otf}% loads also XCharter Math |
|
204
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
207 \setsansfont{Lato}[ |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
208 UprightFont = * Regular, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
209 BoldFont = * Bold, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
210 ItalicFont = * Italic, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
211 BoldItalicFont = * Bold Italic, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
212 Scale = MatchLowercase, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
213 ] |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
214 \@mdf@mono@inconsolatatrue |
|
204
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
215 \fi |
|
221
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
216 \if@mdf@WithLibertinus |
|
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
217 \RequirePackage{newunicodechar} |
|
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
218 \RequirePackage[lining,tabular]{libertinus-otf} |
|
236
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
219 \@mdf@augment@libertinusmonotrue |
|
221
38e2d8ab4965
Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents:
220
diff
changeset
|
220 \fi |
|
203
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
221 |
|
231
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
222 \if@mdf@WithGaramond |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
223 \RequirePackage[lining,tabular]{ebgaramond} |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
224 \RequirePackage{unicode-math} |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
225 \setmathfont{Garamond-Math}[Scale=MatchLowercase] |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
226 \setsansfont{Libre Franklin}[Scale=MatchLowercase,Ligatures=TeX] |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
227 \@mdf@mono@inconsolatatrue |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
228 \fi |
|
8f3a000c3be5
Allow the use of Garamond: EB Garamond, Libre Franklin and Inconsolata (with Garamond Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
230
diff
changeset
|
229 |
|
232
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
230 \if@mdf@WithTufte |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
231 \RequirePackage{unicode-math} |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
232 \defaultfontfeatures{Numbers={Lining,Tabular},Ligatures=TeX} |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
233 \setmainfont{ETbb} |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
234 \setsansfont{GilliusADFNo2}[Scale=MatchLowercase] |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
235 \setmathfont{Libertinus Math}[Scale=MatchLowercase] |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
236 \@mdf@mono@dejavusansmonotrue |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
237 \fi |
|
97d66960ea69
A style variant with Tufte fonts: ETbb, GilliusADFNo2 and DejaVu Sans Mono (incl. Libertinus Math)
Franz Glasner <fzglas.hg@dom66.de>
parents:
231
diff
changeset
|
238 |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
239 \if@mdf@WithPalatino |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
240 \RequirePackage{unicode-math} |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
241 \linespread{1.06} |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
242 \defaultfontfeatures{Numbers={Lining,Tabular},Ligatures=TeX} |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
243 \setmainfont{TeXGyrePagellaX} |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
244 \setsansfont{Inter}[Scale=MatchLowercase] |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
245 %\setsansfont{Rosario}[Scale=MatchLowercase,ScaleAgain=1.013] |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
246 %\setmathfont{Asana Math}[Scale=MatchLowercase] |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
247 \setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase] |
|
239
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
248 %\@mdf@mono@sscodetrue |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
249 \@mdf@mono@libertinusmonotrue |
|
234
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
250 \fi |
|
b797e4c0799a
A font style option using Palatino (with Math), Inter and Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
232
diff
changeset
|
251 |
|
203
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
252 \defaultfontfeatures{} |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
253 |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
254 \if@mdf@mono@dejavusansmono |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
255 % automatically applied with Scale=MatchLowercase,... |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
256 \RequirePackage[mono=true,serif=false,sans=false,math=false]{dejavu-otf} % all symbols are available |
|
225
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
257 \fi |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
258 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
259 \if@mdf@mono@cmmono |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
260 \RequirePackage{newunicodechar} |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
261 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
262 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
263 UprightFont = *, |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
264 BoldFont = * Bold, |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
265 ItalicFont = * Oblique, |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
266 BoldItalicFont = * Bold Oblique, |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
267 ] |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
268 \newunicodechar{▷}{{\DejaVuSansMono ▷}}% U+25B7 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
269 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
270 \newunicodechar{◆}{{\DejaVuSansMono ◆}}% U+25C6 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
271 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
272 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
273 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
274 \newunicodechar{⇒}{{\DejaVuSansMono ⇒}}% U+21D2 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
275 \newunicodechar{⇔}{{\DejaVuSansMono ⇔}}% U+21D4 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
276 \newunicodechar{▪}{{\DejaVuSansMono ▪}}% U+25AA |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
277 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
278 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
279 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
280 \newunicodechar{≠}{{\DejaVuSansMono ≠}}% U+2260 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
281 \newunicodechar{≤}{{\DejaVuSansMono ≤}}% U+2264 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
282 \newunicodechar{≥}{{\DejaVuSansMono ≥}}% U+2265 |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
283 \PassOptionsToPackage{% |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
284 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
285 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
|
eb3d0ae3143b
Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents:
223
diff
changeset
|
286 {sphinx} |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
287 \fi |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
288 |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
289 \if@mdf@mono@sscode |
|
203
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
290 \RequirePackage{newunicodechar} |
|
ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
Franz Glasner <fzglas.hg@dom66.de>
parents:
196
diff
changeset
|
291 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} |
|
191
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
292 \setmonofont{Source Code Pro}[ |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
293 UprightFont = *, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
294 BoldFont = * Bold, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
295 ItalicFont = * Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
296 BoldItalicFont = * Bold Italic, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
297 ] |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
298 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
299 UprightFont = *, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
300 BoldFont = * Bold, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
301 ItalicFont = * Oblique, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
302 BoldItalicFont = * Bold Oblique, |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
303 ] |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
304 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
305 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
306 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
307 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
308 \newunicodechar{⇒}{{\DejaVuSansMono ⇒}}% U+21D2 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
309 \newunicodechar{⇔}{{\DejaVuSansMono ⇔}}% U+21D4 |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
310 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
311 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
312 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
191
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
313 \PassOptionsToPackage{% |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
314 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
315 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
316 {sphinx} |
|
c10b2092c48f
Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
189
diff
changeset
|
317 \fi |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
318 |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
319 \if@mdf@mono@inconsolata |
|
204
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
320 \RequirePackage{newunicodechar} |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
321 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
322 \setmonofont{Inconsolata LGC Nerd Font Mono}[% |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
323 UprightFont = *, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
324 BoldFont = * Bold, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
325 ItalicFont = * Italic, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
326 BoldItalicFont = * Bold Italic, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
327 ] |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
328 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
329 UprightFont = *, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
330 BoldFont = * Bold, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
331 ItalicFont = * Oblique, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
332 BoldItalicFont = * Bold Oblique, |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
333 ] |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
334 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
335 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
336 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
337 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
338 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
339 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
340 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
341 \fi |
|
afecfdcfd288
A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents:
203
diff
changeset
|
342 |
|
222
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
343 \if@mdf@mono@robotomono |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
344 \RequirePackage{newunicodechar} |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
345 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
346 \setmonofont{Roboto Mono}[% |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
347 UprightFont = *, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
348 BoldFont = * Bold, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
349 ItalicFont = * Italic, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
350 BoldItalicFont = * Bold Italic, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
351 ] |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
352 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
353 UprightFont = *, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
354 BoldFont = * Bold, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
355 ItalicFont = * Oblique, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
356 BoldItalicFont = * Bold Oblique, |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
357 ] |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
358 \newunicodechar{▷}{{\DejaVuSansMono ▷}}% U+25B7 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
359 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
360 \newunicodechar{◆}{{\DejaVuSansMono ◆}}% U+25C6 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
361 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
362 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
363 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
364 \newunicodechar{⇒}{{\DejaVuSansMono ⇒}}% U+21D2 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
365 \newunicodechar{⇔}{{\DejaVuSansMono ⇔}}% U+21D4 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
366 \newunicodechar{▪}{{\DejaVuSansMono ▪}}% U+25AA |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
367 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
368 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
369 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
370 |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
371 \PassOptionsToPackage{% |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
372 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
373 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
374 {sphinx} |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
375 \fi |
|
be0cca3df1eb
Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents:
221
diff
changeset
|
376 |
|
239
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
377 \if@mdf@mono@libertinusmono |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
378 % This is stolen from libertinus-otf.sty! |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
379 \setmonofont{LibertinusMono}[% |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
380 Ligatures = TeX, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
381 Numbers = {Lining, Tabular}, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
382 Scale = MatchLowercase, |
|
240
e18c4bec7889
Do not stretch the Libertinus Mono font with 0.9 but with 0.94 for Palatino
Franz Glasner <fzglas.hg@dom66.de>
parents:
239
diff
changeset
|
383 FakeStretch = 0.94, |
|
239
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
384 UprightFont = *-Regular, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
385 ItalicFont = *-Regular, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
386 ItalicFeatures = {FakeSlant=0.2}, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
387 SlantedFont = *-Regular, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
388 SlantedFeatures= {FakeSlant=0.2}, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
389 BoldFont = *-Regular, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
390 BoldFeatures = {RawFeature={embolden=3}}, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
391 BoldItalicFont = *-Regular, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
392 BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
393 Extension = .otf, |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
394 ] |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
395 \@mdf@augment@libertinusmonotrue |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
396 \fi |
|
e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents:
238
diff
changeset
|
397 |
|
236
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
398 \if@mdf@augment@libertinusmono |
|
238
b60d719f7cde
FIX: Package newunicodechar is required for augmenting
Franz Glasner <fzglas.hg@dom66.de>
parents:
236
diff
changeset
|
399 \RequirePackage{newunicodechar} |
|
236
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
400 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
401 UprightFont = *, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
402 BoldFont = * Bold, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
403 ItalicFont = * Oblique, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
404 BoldItalicFont = * Bold Oblique, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
405 Scale=MatchLowercase, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
406 Ligatures=TeX, |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
407 ] |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
408 \newunicodechar{▷}{{\DejaVuSansMono ▷}}% U+25B7 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
409 \newunicodechar{∶}{{\DejaVuSansMono ∶}}% U+2236 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
410 \newunicodechar{◆}{{\DejaVuSansMono ◆}}% U+25C6 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
411 \newunicodechar{▪}{{\DejaVuSansMono ▪}}% U+25AA |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
412 \newunicodechar{⟵}{{\DejaVuSansMono ⟵}}% U+27F5 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
413 \newunicodechar{⟶}{{\DejaVuSansMono ⟶}}% U+27F6 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
414 \newunicodechar{⟷}{{\DejaVuSansMono ⟷}}% U+27F7 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
415 \newunicodechar{⇒}{{\DejaVuSansMono ⇒}}% U+21D2 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
416 \newunicodechar{⇔}{{\DejaVuSansMono ⇔}}% U+21D4 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
417 \newunicodechar{≟}{{\DejaVuSansMono ≟}}% U+225F |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
418 \newunicodechar{∈}{{\DejaVuSansMono ∈}}% U+2208 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
419 \newunicodechar{∌}{{\DejaVuSansMono ∌}}% U+220C |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
420 \newunicodechar{≠}{{\DejaVuSansMono ≠}}% U+2260 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
421 \newunicodechar{≤}{{\DejaVuSansMono ≤}}% U+2264 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
422 \newunicodechar{≥}{{\DejaVuSansMono ≥}}% U+2265 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
423 %\newunicodechar{␣}{{\DejaVuSansMono ␣}}% U+2423 Missing! |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
424 %\newunicodechar{^^^^2423}{{\DejaVuSansMono^^^^2423}}% U+2423 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
425 %\newunicodechar{␣}{\textvisiblespace}% U+2423 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
426 %\catcode`^^^^2423\active\protected\def^^^^2423{\textvisiblespace} |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
427 |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
428 \PassOptionsToPackage{% |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
429 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
430 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
431 {sphinx} |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
432 \fi |
|
28639bddddd0
Make the use of "Libertinus Mono" more flexible by adding a flag that just augments it.
Franz Glasner <fzglas.hg@dom66.de>
parents:
235
diff
changeset
|
433 |
|
196
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
434 \defaultfontfeatures{} |
|
d57cf1bb96d6
A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents:
191
diff
changeset
|
435 |
|
218
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
436 \def\testmdf{ |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
437 Normalized: \@mdf@fonts\newline |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
438 } |
|
5114d49a8eab
A new interface for my-doc-fonts.sty and a new implementation of option processing.
Franz Glasner <fzglas.hg@dom66.de>
parents:
215
diff
changeset
|
439 |
|
181
dcbc66f851eb
A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff
changeset
|
440 \endinput |
