Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison docs/_latex/my-doc-fonts.sty @ 203:ede8b44f6faf
Refactor the PDF font style: select only the mono font by internal flag
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 13 May 2026 13:56:29 +0200 |
| parents | d57cf1bb96d6 |
| children | afecfdcfd288 |
comparison
equal
deleted
inserted
replaced
| 202:8705fd60feea | 203:ede8b44f6faf |
|---|---|
| 12 \RequirePackage{xcolor} | 12 \RequirePackage{xcolor} |
| 13 }{% | 13 }{% |
| 14 \RequirePackage{color} | 14 \RequirePackage{color} |
| 15 } | 15 } |
| 16 | 16 |
| 17 \newif\if@mdf@@sspro\@mdf@@ssprofalse | 17 \newif\if@mdf@@sscode\@mdf@@sscodefalse |
| 18 | 18 |
| 19 \newif\if@mdf@WithDejaVuSansMono | 19 \newif\if@mdf@WithDejaVuSansMono |
| 20 \newif\if@mdf@WithPlexMono | 20 \newif\if@mdf@WithPlexMono |
| 21 \newif\if@mdf@WithAdobeSource | 21 \newif\if@mdf@WithAdobeSource |
| 22 \newif\if@mdf@WithSpectral | 22 \newif\if@mdf@WithSpectral |
| 82 UprightFont = *, | 82 UprightFont = *, |
| 83 BoldFont = * Bold, | 83 BoldFont = * Bold, |
| 84 ItalicFont = * Italic, | 84 ItalicFont = * Italic, |
| 85 BoldItalicFont = * Bold Italic, | 85 BoldItalicFont = * Bold Italic, |
| 86 ] | 86 ] |
| 87 \@mdf@@ssprotrue | 87 \setsansfont{Source Sans Pro}[ |
| 88 UprightFont = *, | |
| 89 BoldFont = * Bold, | |
| 90 ItalicFont = * Italic, | |
| 91 BoldItalicFont = * Bold Italic, | |
| 92 ] | |
| 93 \@mdf@@sscodetrue | |
| 88 \fi | 94 \fi |
| 89 \if@mdf@WithSpectral | 95 \if@mdf@WithSpectral |
| 90 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular}} | 96 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular}} |
| 91 \setmainfont{Spectral}[ | 97 \setmainfont{Spectral}[ |
| 92 UprightFont = * Regular, | 98 UprightFont = * Regular, |
| 93 BoldFont = * Bold, | 99 BoldFont = * Bold, |
| 94 ItalicFont = * Italic, | 100 ItalicFont = * Italic, |
| 95 BoldItalicFont = * Bold Italic, | 101 BoldItalicFont = * Bold Italic, |
| 96 ] | 102 ] |
| 97 \@mdf@@ssprotrue | |
| 98 \fi | |
| 99 | |
| 100 \defaultfontfeatures{} | |
| 101 | |
| 102 \if@mdf@@sspro | |
| 103 \RequirePackage{newunicodechar} | |
| 104 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} | |
| 105 \setsansfont{Source Sans Pro}[ | 103 \setsansfont{Source Sans Pro}[ |
| 106 UprightFont = *, | 104 UprightFont = *, |
| 107 BoldFont = * Bold, | 105 BoldFont = * Bold, |
| 108 ItalicFont = * Italic, | 106 ItalicFont = * Italic, |
| 109 BoldItalicFont = * Bold Italic, | 107 BoldItalicFont = * Bold Italic, |
| 110 ] | 108 ] |
| 109 \@mdf@@sscodetrue | |
| 110 \fi | |
| 111 | |
| 112 \defaultfontfeatures{} | |
| 113 | |
| 114 \if@mdf@@sscode | |
| 115 \RequirePackage{newunicodechar} | |
| 116 \defaultfontfeatures{Ligatures=TeX,Numbers={Lining,Tabular},Scale=MatchLowercase} | |
| 111 \setmonofont{Source Code Pro}[ | 117 \setmonofont{Source Code Pro}[ |
| 112 UprightFont = *, | 118 UprightFont = *, |
| 113 BoldFont = * Bold, | 119 BoldFont = * Bold, |
| 114 ItalicFont = * Italic, | 120 ItalicFont = * Italic, |
| 115 BoldItalicFont = * Bold Italic, | 121 BoldItalicFont = * Bold Italic, |
