Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
diff docs/_latex/my-doc-fonts.sty @ 239:e3baa7e72af3
Use "Libertinus Mono" with Palatino instead of Source Code Pro
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 16 May 2026 00:23:40 +0200 |
| parents | b60d719f7cde |
| children | e18c4bec7889 |
line wrap: on
line diff
--- a/docs/_latex/my-doc-fonts.sty Sat May 16 00:22:42 2026 +0200 +++ b/docs/_latex/my-doc-fonts.sty Sat May 16 00:23:40 2026 +0200 @@ -19,6 +19,7 @@ \newif\if@mdf@mono@robotomono\@mdf@mono@robotomonofalse \newif\if@mdf@mono@sscode\@mdf@mono@sscodefalse \newif\if@mdf@mono@inconsolata\@mdf@mono@inconsolatafalse +\newif\if@mdf@mono@libertinusmono\@mdf@mono@libertinusmonofalse \newif\if@mdf@augment@libertinusmono\@mdf@augment@libertinusmonofalse \newif\if@mdf@WithDejaVuSansMono @@ -244,7 +245,8 @@ %\setsansfont{Rosario}[Scale=MatchLowercase,ScaleAgain=1.013] %\setmathfont{Asana Math}[Scale=MatchLowercase] \setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase] - \@mdf@mono@sscodetrue + %\@mdf@mono@sscodetrue + \@mdf@mono@libertinusmonotrue \fi \defaultfontfeatures{} @@ -372,6 +374,27 @@ {sphinx} \fi +\if@mdf@mono@libertinusmono + % This is stolen from libertinus-otf.sty! + \setmonofont{LibertinusMono}[% + Ligatures = TeX, + Numbers = {Lining, Tabular}, + Scale = MatchLowercase, + FakeStretch = 0.9, + UprightFont = *-Regular, + ItalicFont = *-Regular, + ItalicFeatures = {FakeSlant=0.2}, + SlantedFont = *-Regular, + SlantedFeatures= {FakeSlant=0.2}, + BoldFont = *-Regular, + BoldFeatures = {RawFeature={embolden=3}}, + BoldItalicFont = *-Regular, + BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, + Extension = .otf, + ] + \@mdf@augment@libertinusmonotrue +\fi + \if@mdf@augment@libertinusmono \RequirePackage{newunicodechar} \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[%
