Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
changeset 219:a7a6a75cd4b8
Normalize the stored "fonts" option when aliases are given
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Fri, 15 May 2026 17:24:45 +0200 |
| parents | 5114d49a8eab |
| children | 2af9ad8230c7 |
| files | docs/_latex/my-doc-fonts.sty |
| diffstat | 1 files changed, 10 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/docs/_latex/my-doc-fonts.sty Fri May 15 16:35:34 2026 +0200 +++ b/docs/_latex/my-doc-fonts.sty Fri May 15 17:24:45 2026 +0200 @@ -28,36 +28,42 @@ % A key compatible with options processing as option "fonts" but choices. \define@choicekey*{my-doc-fonts.sty}{fonts}[\val\nr]{% dejavusansmono, - plex, ibmplex, + ibmplex, plex, plex-dejavusansmono, - adobesource, adobesourcepro, + adobesourcepro, adobesource, spectral, charter}{% + % Not used for now : store the normalized option value (global and expanded) + \xdef\@mdf@fonts{\val}% + % Reset all option related font selection flags \@mdf@WithDejaVuSansMonofalse \@mdf@WithIBMPlexfalse \@mdf@WithIBMPlexDejaVuSansMonofalse \@mdf@WithAdobeSourceProfalse \@mdf@WithSpectralfalse \@mdf@WithCharterfalse + % Now set the needed font selection flag \ifcase\nr\relax \@mdf@WithDejaVuSansMonotrue \or \@mdf@WithIBMPlextrue \or \@mdf@WithIBMPlextrue + % Normalize the stored string + \gdef\@mdf@fonts{ibmplex} \or \@mdf@WithIBMPlexDejaVuSansMonotrue \or \@mdf@WithAdobeSourceProtrue \or \@mdf@WithAdobeSourceProtrue + % Normalize the stored string + \gdef\@mdf@fonts{adobesourcepro} \or \@mdf@WithSpectraltrue \or \@mdf@WithChartertrue \fi - % Not used for now : store the normalized option value (global and expanded) - \xdef\@mdf@fonts{\val} } %
