annotate docs/_latex/my-doc-fonts.sty @ 262:27fd802338c6

Update to my-doc-fonts.sty v0.5
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 18 May 2026 12:25:48 +0200
parents 255c5598abd7
children 1b0e58f60f73
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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}[%
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
7 2026/05/18 v0.5 (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
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
37 \newif\if@mdf@WithPalatinoKB
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
38 \newif\if@mdf@WithCrimson
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
39 \newif\if@mdf@WithCrimsonCabin
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
40 \newif\if@mdf@WithDejaVu
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
41
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
42 % 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
43 \define@choicekey*{my-doc-fonts.sty}{fonts}[\val\nr]{%
229
29826707b7da Comment
Franz Glasner <fzglas.hg@dom66.de>
parents: 228
diff changeset
44 % do not change anything: just deactivate the default "dejavusansmono"
29826707b7da Comment
Franz Glasner <fzglas.hg@dom66.de>
parents: 228
diff changeset
45 default,
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
46 % almost no augmentation needed: all characters available
227
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
47 dejavusansmono, % use DejaVu Sans Mono as monospaced font
228
e363dc537be5 Comment
Franz Glasner <fzglas.hg@dom66.de>
parents: 227
diff changeset
48 % the fonts below are augmented for missing characters
227
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
49 cm, % assume CM fonts and just fix missing characters
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
50 robotomono, % use Roboto Mono as mono font
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
51 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
52 plex-dejavusansmono, % use IBM Plex Serif/Sans and DejaVu Sans Mono
227
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
53 adobesourcepro, adobesource, % Use Adobe Source Serif/Sans/Mono
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
54 spectral, % use Spectral, Source Sans Pro and Source Code Pro
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
55 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
56 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
57 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
58 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
59 palatino, % Palatino, Inter and Source Code Pro
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
60 palatino-kb, % Palatino, Lato and Inconsolata (original KB-Admin style)
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
61 crimson, % Crimson Pro, Open Sans and Roboto Mono (Erewhon Math)
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
62 crimson-cabin, % Crimson Pro, Cabin and Source Code Pro (Erewhon Math)
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
63 dejavu, % All DejaVu fonts (Serif, Sans, Mono)
227
0fb4e7c34b10 Comment the options
Franz Glasner <fzglas.hg@dom66.de>
parents: 226
diff changeset
64 }{%
219
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
65 % 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
66 \xdef\@mdf@fonts{\val}%
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
67 % 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
68 \@mdf@WithDejaVuSansMonofalse
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
69 \@mdf@WithCMfalse
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
70 \@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
71 \@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
72 \@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
73 \@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
74 \@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
75 \@mdf@WithCharterfalse
221
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
76 \@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
77 \@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
78 \@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
79 \@mdf@WithPalatinofalse
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
80 \@mdf@WithPalatinoKBfalse
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
81 \@mdf@WithCrimsonfalse
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
82 \@mdf@WithCrimsonCabinfalse
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
83 \@mdf@WithDejaVufalse
219
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
84 % 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
85 \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
86 \relax
90bbece6fae8 Implement an option for my-doc-fonts.sty to not change anything.
Franz Glasner <fzglas.hg@dom66.de>
parents: 225
diff changeset
87 \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
88 \@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
89 \or
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
90 \@mdf@WithCMtrue
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
91 \or
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
92 \@mdf@WithRobotoMonotrue
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
93 \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
94 \@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
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@WithIBMPlextrue
219
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
97 % Normalize the stored string
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
98 \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
99 \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
100 \@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
101 \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
102 \@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
103 \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
104 \@mdf@WithAdobeSourceProtrue
219
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
105 % Normalize the stored string
a7a6a75cd4b8 Normalize the stored "fonts" option when aliases are given
Franz Glasner <fzglas.hg@dom66.de>
parents: 218
diff changeset
106 \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
107 \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
108 \@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
109 \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
110 \@mdf@WithChartertrue
221
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
111 \or
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
112 \@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
113 \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
114 \@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
115 \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
116 \@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
117 \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
118 \@mdf@WithPalatinotrue
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
119 \or
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
120 \@mdf@WithPalatinoKBtrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
121 \or
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
122 \@mdf@WithCrimsontrue
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
123 \or
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
124 \@mdf@WithCrimsonCabintrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
125 \or
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
126 \@mdf@WithDejaVutrue
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
127 \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
128 }
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 %
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
131 % 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
132 % 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
133 %
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
134 \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
135 \ProcessOptionsX\relax
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
136
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
137 \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
138 % 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
139 %\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
140 %\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
141 \@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
142 \fi
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
143 \if@mdf@WithCM
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
144 \@mdf@mono@cmmonotrue
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
145 \fi
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
146 \if@mdf@WithRobotoMono
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
147 \@mdf@mono@robotomonotrue
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
148 \fi
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
149 %
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
150 %
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
151 \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
152 \RequirePackage{newunicodechar}
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
153 \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
154 % 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
155 \defaultfontfeatures{}
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
156 \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
157 UprightFont = *,
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
158 BoldFont = * Bold,
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
159 ItalicFont = * Oblique,
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
160 BoldItalicFont = * Bold Oblique,
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
161 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
162 Ligatures=TeX,
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
163 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
164 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
165 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
166 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
167 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
168 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
169 Scale=MatchLowercase,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
170 Ligatures=TeX,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
171 ]
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
172 \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
173 \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
174 \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
175 \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
176 \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
177 \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
178 \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
179 \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
180 \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
181 \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
182 \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
183 \newunicodechar{}{{\DejaVuSansMono }}% U+220C
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
184 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
185 \newunicodechar{}{{\DejaVuSansMono }}% U+2423
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
186 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
187 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
188 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
189 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
190 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
191 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
192 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
193 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
194 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
195 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
196 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
197 %\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
198 %\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
199 %\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
200
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
201 \PassOptionsToPackage{%
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
202 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
203 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
204 {sphinx}
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
205 \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
206 \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
207 \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
208 \@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
209 \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
210 \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
211 \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
212 \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
213 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
214 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
215 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
216 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
217 ]
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
218 \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
219 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
220 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
221 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
222 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
223 ]
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
224 \@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
225 \fi
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
226 \if@mdf@WithSpectral
235
0d441c8a4712 Use "STIX Two Math" with "Spectral"
Franz Glasner <fzglas.hg@dom66.de>
parents: 234
diff changeset
227 \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
228 \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
229 \setmainfont{Spectral}[
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
230 UprightFont = * Regular,
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
231 BoldFont = * Bold,
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
232 ItalicFont = * Italic,
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
233 BoldItalicFont = * Bold Italic,
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
234 ]
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
235 \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
236 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
237 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
238 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
239 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
240 ]
235
0d441c8a4712 Use "STIX Two Math" with "Spectral"
Franz Glasner <fzglas.hg@dom66.de>
parents: 234
diff changeset
241 \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
242 \@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
243 \fi
204
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
244 \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
245 \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
246 \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
247 \setsansfont{Lato}[
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
248 UprightFont = * Regular,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
249 BoldFont = * Bold,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
250 ItalicFont = * Italic,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
251 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
252 Scale = MatchLowercase,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
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 \@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
255 \fi
221
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
256 \if@mdf@WithLibertinus
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
257 \RequirePackage{newunicodechar}
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
258 \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
259 \@mdf@augment@libertinusmonotrue
221
38e2d8ab4965 Implement a style that uses the Libertinus fonts
Franz Glasner <fzglas.hg@dom66.de>
parents: 220
diff changeset
260 \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
261
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
262 \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
263 \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
264 \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
265 \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
266 \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
267 \@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
268 \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
269
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
270 \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
271 \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
272 \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
273 \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
274 \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
275 \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
276 \@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
277 \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
278
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
279 \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
280 \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
281 \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
282 \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
283 \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
284 \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
285 %\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
286 %\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
287 \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
288 %\@mdf@mono@sscodetrue
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
289 \@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
290 \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
291
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
292 \if@mdf@WithPalatinoKB
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
293 \RequirePackage{unicode-math}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
294 \linespread{1.06}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
295 \defaultfontfeatures{Numbers={Lining,Tabular},Ligatures=TeX}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
296 \setmainfont{TeXGyrePagellaX}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
297 \setsansfont{Lato}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
298 UprightFont = * Regular,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
299 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
300 ItalicFont = * Italic,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
301 BoldItalicFont = * Bold Italic,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
302 Scale=MatchLowercase]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
303 %\setsansfont{Rosario}[Scale=MatchLowercase,ScaleAgain=1.013]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
304 %\setmathfont{Asana Math}[Scale=MatchLowercase]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
305 \setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
306 \@mdf@mono@inconsolatatrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
307 \fi
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
308
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
309 \if@mdf@WithCrimson
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
310 \RequirePackage{unicode-math}
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
311 \defaultfontfeatures{Ligatures=TeX, Numbers={Lining,Tabular}}
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
312 \setmainfont{Crimson Pro}
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
313 \setsansfont{Open Sans}[Scale=MatchLowercase]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
314 \defaultfontfeatures{}% Erewhon Math needs this here!
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
315 \setmathfont{Erewhon Math}[Scale=MatchLowercase]
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
316 %\@mdf@mono@sscodetrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
317 %\@mdf@mono@inconsolatatrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
318 \@mdf@mono@robotomonotrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
319 \fi
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
320
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
321 \if@mdf@WithCrimsonCabin
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
322 \RequirePackage{unicode-math}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
323 \defaultfontfeatures{Ligatures=TeX, Numbers={Lining,Tabular}}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
324 \setmainfont{Crimson Pro}
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
325 \setsansfont{Cabin}[Scale=MatchLowercase]
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
326 \defaultfontfeatures{}% Erewhon Math needs this here!
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
327 \setmathfont{Erewhon Math}[Scale=MatchLowercase]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
328 %\@mdf@mono@sscodetrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
329 \@mdf@mono@inconsolatatrue
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
330 \fi
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
331
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
332 \if@mdf@WithDejaVu
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
333 \RequirePackage{newunicodechar}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
334 % automatically applied with Scale=MatchLowercase,...
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
335 \RequirePackage[mono=true,serif=true,sans=true,math=true]{dejavu-otf}
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
336 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
337 \fi
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
338
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
339 \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
340
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
341 \if@mdf@mono@dejavusansmono
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
342 \RequirePackage{newunicodechar}
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
343 % automatically applied with Scale=MatchLowercase,...
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
344 \RequirePackage[mono=true,serif=false,sans=false,math=false]{dejavu-otf} % almost all symbols are available
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
345 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
346 \fi
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
347
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
348 \if@mdf@mono@cmmono
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
349 \RequirePackage{newunicodechar}
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
350 \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
351 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[%
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
352 UprightFont = *,
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
353 BoldFont = * Bold,
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
354 ItalicFont = * Oblique,
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
355 BoldItalicFont = * Bold Oblique,
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
356 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
357 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
358 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
359 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
360 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
361 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
362 ]
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
363 \newunicodechar{}{{\DejaVuSansMono }}% U+25B7
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
364 \newunicodechar{}{{\DejaVuSansMono }}% U+2236
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
365 \newunicodechar{}{{\DejaVuSansMono }}% U+25C6
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
366 \newunicodechar{}{{\DejaVuSansMono }}% U+27F5
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
367 \newunicodechar{}{{\DejaVuSansMono }}% U+27F6
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
368 \newunicodechar{}{{\DejaVuSansMono }}% U+27F7
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
369 \newunicodechar{}{{\DejaVuSansMono }}% U+21D2
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
370 \newunicodechar{}{{\DejaVuSansMono }}% U+21D4
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
371 \newunicodechar{}{{\DejaVuSansMono }}% U+25AA
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
372 \newunicodechar{}{{\DejaVuSansMono }}% U+225F
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
373 \newunicodechar{}{{\DejaVuSansMono }}% U+2208
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
374 \newunicodechar{}{{\DejaVuSansMono }}% U+220C
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
375 \newunicodechar{}{{\DejaVuSansMono }}% U+2260
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
376 \newunicodechar{}{{\DejaVuSansMono }}% U+2264
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
377 \newunicodechar{}{{\DejaVuSansMono }}% U+2265
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
378 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
379 \newunicodechar{}{{\DejaVuSansMono }}% U+21AA
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
380 \newunicodechar{}{{\DejaVuSansMono }}% U+21A9
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
381 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
382 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
383 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
384 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
385 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
386 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
387 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
388 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
389 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
390 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
391 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
225
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
392 \PassOptionsToPackage{%
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
393 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},%
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
394 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}%
eb3d0ae3143b Augment CM fonts with missing symbols
Franz Glasner <fzglas.hg@dom66.de>
parents: 223
diff changeset
395 {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
396 \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
397
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
398 \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
399 \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
400 \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
401 \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
402 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
403 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
404 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
405 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
406 ]
c10b2092c48f Also make a PDF style variant using Adobe Source Serif/Sans/Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 189
diff changeset
407 \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
408 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
409 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
410 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
411 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
412 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
413 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
414 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
415 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
416 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
417 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
418 ]
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
419 \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
420 \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
421 \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
422 \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
423 \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
424 \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
425 \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
426 \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
427 \newunicodechar{}{{\DejaVuSansMono }}% U+220C
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
428 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
429 \newunicodechar{}{{\DejaVuSansMono }}% U+2423
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
430 \newunicodechar{}{{\DejaVuSansMono }}% U+21AA
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
431 \newunicodechar{}{{\DejaVuSansMono }}% U+21A9
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
432 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
433 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
434 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
435 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
436 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
437 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
438 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
439 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
440 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
441 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
442 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
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
443 \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
444 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
445 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
446 {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
447 \fi
196
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
448
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
449 \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
450 \RequirePackage{newunicodechar}
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
451 \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
452 \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
453 UprightFont = *,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
454 BoldFont = * Bold,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
455 ItalicFont = * Italic,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
456 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
457 ]
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
458 \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
459 UprightFont = *,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
460 BoldFont = * Bold,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
461 ItalicFont = * Oblique,
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
462 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
463 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
464 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
465 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
466 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
467 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
468 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
469 ]
204
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
470 \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
471 \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
472 \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
473 \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
474 \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
475 \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
476 \newunicodechar{}{{\DejaVuSansMono }}% U+220C
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
477 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
478 \newunicodechar{}{{\DejaVuSansMono }}% U+21AA
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
479 \newunicodechar{}{{\DejaVuSansMono }}% U+21A9
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
480 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
481 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
482 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
483 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
484 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
485 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
486 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
487 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
488 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
489 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
490 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
204
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
491 \fi
afecfdcfd288 A new style "charter" for PDFs with "XCharter", "Lato" and "Inconsolata".
Franz Glasner <fzglas.hg@dom66.de>
parents: 203
diff changeset
492
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
493 \if@mdf@mono@robotomono
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
494 \RequirePackage{newunicodechar}
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
495 \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
496 \setmonofont{Roboto Mono}[%
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
497 UprightFont = *,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
498 BoldFont = * Bold,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
499 ItalicFont = * Italic,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
500 BoldItalicFont = * Bold Italic,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
501 ]
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
502 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[%
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
503 UprightFont = *,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
504 BoldFont = * Bold,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
505 ItalicFont = * Oblique,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
506 BoldItalicFont = * Bold Oblique,
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
507 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
508 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
509 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
510 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
511 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
512 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
513 ]
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
514 \newunicodechar{}{{\DejaVuSansMono }}% U+25B7
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
515 \newunicodechar{}{{\DejaVuSansMono }}% U+2236
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
516 \newunicodechar{}{{\DejaVuSansMono }}% U+25C6
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
517 \newunicodechar{}{{\DejaVuSansMono }}% U+27F5
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
518 \newunicodechar{}{{\DejaVuSansMono }}% U+27F6
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
519 \newunicodechar{}{{\DejaVuSansMono }}% U+27F7
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
520 \newunicodechar{}{{\DejaVuSansMono }}% U+21D2
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
521 \newunicodechar{}{{\DejaVuSansMono }}% U+21D4
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
522 \newunicodechar{}{{\DejaVuSansMono }}% U+25AA
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
523 \newunicodechar{}{{\DejaVuSansMono }}% U+225F
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
524 \newunicodechar{}{{\DejaVuSansMono }}% U+2208
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
525 \newunicodechar{}{{\DejaVuSansMono }}% U+220C
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
526 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
527 \newunicodechar{}{{\DejaVuSansMono }}% U+2423
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
528 \newunicodechar{}{{\DejaVuSansMono }}% U+21AA
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
529 \newunicodechar{}{{\DejaVuSansMono }}% U+21A9
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
530 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
531 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
532 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
533 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
534 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
535 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
536 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
537 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
538 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
539 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
540 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
222
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
541 \PassOptionsToPackage{%
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
542 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},%
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
543 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}%
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
544 {sphinx}
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
545 \fi
be0cca3df1eb Allow the font style "Roboto Mono"
Franz Glasner <fzglas.hg@dom66.de>
parents: 221
diff changeset
546
239
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
547 \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
548 % 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
549 \setmonofont{LibertinusMono}[%
242
0737faace808 A style variant with "Crimson Pro", "Cabin", "Source Code Pro" and "Erewhon Math"
Franz Glasner <fzglas.hg@dom66.de>
parents: 240
diff changeset
550 Ligatures = TeX,
239
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
551 Numbers = {Lining, Tabular},
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
552 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
553 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
554 UprightFont = *-Regular,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
555 ItalicFont = *-Regular,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
556 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
557 SlantedFont = *-Regular,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
558 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
559 BoldFont = *-Regular,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
560 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
561 BoldItalicFont = *-Regular,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
562 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
563 Extension = .otf,
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
564 ]
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
565 \@mdf@augment@libertinusmonotrue
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
566 \fi
e3baa7e72af3 Use "Libertinus Mono" with Palatino instead of Source Code Pro
Franz Glasner <fzglas.hg@dom66.de>
parents: 238
diff changeset
567
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
568 \if@mdf@augment@libertinusmono
238
b60d719f7cde FIX: Package newunicodechar is required for augmenting
Franz Glasner <fzglas.hg@dom66.de>
parents: 236
diff changeset
569 \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
570 \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
571 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
572 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
573 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
574 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
575 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
576 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
577 ]
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
578 \newfontfamily\DejaVuSansCondensed{DejaVu Sans Condensed}[%
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
579 UprightFont = *,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
580 BoldFont = * Bold,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
581 ItalicFont = * Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
582 BoldItalicFont = * Bold Oblique,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
583 Scale=MatchLowercase,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
584 Ligatures=TeX,
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
585 ]
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
586 \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
587 \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
588 \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
589 \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
590 \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
591 \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
592 \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
593 \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
594 \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
595 \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
596 \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
597 \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
598 \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
599 \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
600 \newunicodechar{}{{\DejaVuSansMono }}% U+2265
262
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
601 \newunicodechar{}{{\DejaVuSansMono }}% U+2259
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
602 \newunicodechar{}{{\DejaVuSansMono }}% U+2423
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
603 \newunicodechar{}{{\DejaVuSansMono }}% U+21AA
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
604 \newunicodechar{}{{\DejaVuSansMono }}% U+21A9
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
605 \newunicodechar{}{{\DejaVuSansMono }}% U+21E7
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
606 \newunicodechar{}{{\DejaVuSansMono }}% U+2303
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
607 \newunicodechar{}{{\DejaVuSansMono }}% U+2388
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
608 \newunicodechar{}{{\DejaVuSansMono }}% U+2325
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
609 \newunicodechar{}{{\DejaVuSansCondensed }}% U+2387
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
610 \newunicodechar{}{{\DejaVuSansMono }}% U+2318
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
611 \newunicodechar{}{{\DejaVuSansMono }}% U+23CF
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
612 \newunicodechar{}{{\DejaVuSansMono }}% U+232B
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
613 \newunicodechar{}{{\DejaVuSansMono }}% U+2326
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
614 \newunicodechar{}{{\DejaVuSansMono }}% U+21E5
27fd802338c6 Update to my-doc-fonts.sty v0.5
Franz Glasner <fzglas.hg@dom66.de>
parents: 243
diff changeset
615 \newunicodechar{}{{\DejaVuSansMono }}% U+21E4
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
616 %\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
617 %\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
618 %\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
619
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
620 \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
621 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
622 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
623 {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
624 \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
625
196
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
626 \defaultfontfeatures{}
d57cf1bb96d6 A new PDF style using "Spectral" with Source Sans/Code
Franz Glasner <fzglas.hg@dom66.de>
parents: 191
diff changeset
627
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
628 \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
629 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
630 }
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
631
181
dcbc66f851eb A style file for (Lua)LaTeX that loads the required fonts.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
632 \endinput