comparison docs/_latex/my-doc-fonts.sty @ 226:90bbece6fae8

Implement an option for my-doc-fonts.sty to not change anything. Skip the otherwise implemented default "dejavusansmono".
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 15 May 2026 19:59:20 +0200
parents eb3d0ae3143b
children 0fb4e7c34b10
comparison
equal deleted inserted replaced
225:eb3d0ae3143b 226:90bbece6fae8
30 \newif\if@mdf@WithCharter 30 \newif\if@mdf@WithCharter
31 \newif\if@mdf@WithLibertinus 31 \newif\if@mdf@WithLibertinus
32 32
33 % A key compatible with options processing as option "fonts" but choices. 33 % A key compatible with options processing as option "fonts" but choices.
34 \define@choicekey*{my-doc-fonts.sty}{fonts}[\val\nr]{% 34 \define@choicekey*{my-doc-fonts.sty}{fonts}[\val\nr]{%
35 default,
35 dejavusansmono, 36 dejavusansmono,
36 cm, 37 cm,
37 robotomono, 38 robotomono,
38 ibmplex, plex, 39 ibmplex, plex,
39 plex-dejavusansmono, 40 plex-dejavusansmono,
53 \@mdf@WithSpectralfalse 54 \@mdf@WithSpectralfalse
54 \@mdf@WithCharterfalse 55 \@mdf@WithCharterfalse
55 \@mdf@WithLibertinusfalse 56 \@mdf@WithLibertinusfalse
56 % Now set the needed font selection flag 57 % Now set the needed font selection flag
57 \ifcase\nr\relax 58 \ifcase\nr\relax
59 \relax
60 \or
58 \@mdf@WithDejaVuSansMonotrue 61 \@mdf@WithDejaVuSansMonotrue
59 \or 62 \or
60 \@mdf@WithCMtrue 63 \@mdf@WithCMtrue
61 \or 64 \or
62 \@mdf@WithRobotoMonotrue 65 \@mdf@WithRobotoMonotrue