Mercurial > hgrepos > Python > libs > pygments-lexer-pseudocode2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 238:b60d719f7cde | 239:e3baa7e72af3 |
|---|---|
| 17 \newif\if@mdf@mono@dejavusansmono\@mdf@mono@dejavusansmonofalse | 17 \newif\if@mdf@mono@dejavusansmono\@mdf@mono@dejavusansmonofalse |
| 18 \newif\if@mdf@mono@cmmono\@mdf@mono@cmmonofalse | 18 \newif\if@mdf@mono@cmmono\@mdf@mono@cmmonofalse |
| 19 \newif\if@mdf@mono@robotomono\@mdf@mono@robotomonofalse | 19 \newif\if@mdf@mono@robotomono\@mdf@mono@robotomonofalse |
| 20 \newif\if@mdf@mono@sscode\@mdf@mono@sscodefalse | 20 \newif\if@mdf@mono@sscode\@mdf@mono@sscodefalse |
| 21 \newif\if@mdf@mono@inconsolata\@mdf@mono@inconsolatafalse | 21 \newif\if@mdf@mono@inconsolata\@mdf@mono@inconsolatafalse |
| 22 \newif\if@mdf@mono@libertinusmono\@mdf@mono@libertinusmonofalse | |
| 22 \newif\if@mdf@augment@libertinusmono\@mdf@augment@libertinusmonofalse | 23 \newif\if@mdf@augment@libertinusmono\@mdf@augment@libertinusmonofalse |
| 23 | 24 |
| 24 \newif\if@mdf@WithDejaVuSansMono | 25 \newif\if@mdf@WithDejaVuSansMono |
| 25 \newif\if@mdf@WithCM | 26 \newif\if@mdf@WithCM |
| 26 \newif\if@mdf@WithRobotoMono | 27 \newif\if@mdf@WithRobotoMono |
| 242 \setmainfont{TeXGyrePagellaX} | 243 \setmainfont{TeXGyrePagellaX} |
| 243 \setsansfont{Inter}[Scale=MatchLowercase] | 244 \setsansfont{Inter}[Scale=MatchLowercase] |
| 244 %\setsansfont{Rosario}[Scale=MatchLowercase,ScaleAgain=1.013] | 245 %\setsansfont{Rosario}[Scale=MatchLowercase,ScaleAgain=1.013] |
| 245 %\setmathfont{Asana Math}[Scale=MatchLowercase] | 246 %\setmathfont{Asana Math}[Scale=MatchLowercase] |
| 246 \setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase] | 247 \setmathfont{TeX Gyre Pagella Math}[Scale=MatchLowercase] |
| 247 \@mdf@mono@sscodetrue | 248 %\@mdf@mono@sscodetrue |
| 249 \@mdf@mono@libertinusmonotrue | |
| 248 \fi | 250 \fi |
| 249 | 251 |
| 250 \defaultfontfeatures{} | 252 \defaultfontfeatures{} |
| 251 | 253 |
| 252 \if@mdf@mono@dejavusansmono | 254 \if@mdf@mono@dejavusansmono |
| 370 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% | 372 verbatimvisiblespace={\textcolor{red}{{\DejaVuSansMono^^^^2423}}},% |
| 371 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% | 373 verbatimcontinued={\textcolor{red}{{\DejaVuSansMono^^^^21aa}}}}% |
| 372 {sphinx} | 374 {sphinx} |
| 373 \fi | 375 \fi |
| 374 | 376 |
| 377 \if@mdf@mono@libertinusmono | |
| 378 % This is stolen from libertinus-otf.sty! | |
| 379 \setmonofont{LibertinusMono}[% | |
| 380 Ligatures = TeX, | |
| 381 Numbers = {Lining, Tabular}, | |
| 382 Scale = MatchLowercase, | |
| 383 FakeStretch = 0.9, | |
| 384 UprightFont = *-Regular, | |
| 385 ItalicFont = *-Regular, | |
| 386 ItalicFeatures = {FakeSlant=0.2}, | |
| 387 SlantedFont = *-Regular, | |
| 388 SlantedFeatures= {FakeSlant=0.2}, | |
| 389 BoldFont = *-Regular, | |
| 390 BoldFeatures = {RawFeature={embolden=3}}, | |
| 391 BoldItalicFont = *-Regular, | |
| 392 BoldItalicFeatures={FakeSlant=0.2,RawFeature={embolden=3}}, | |
| 393 Extension = .otf, | |
| 394 ] | |
| 395 \@mdf@augment@libertinusmonotrue | |
| 396 \fi | |
| 397 | |
| 375 \if@mdf@augment@libertinusmono | 398 \if@mdf@augment@libertinusmono |
| 376 \RequirePackage{newunicodechar} | 399 \RequirePackage{newunicodechar} |
| 377 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% | 400 \newfontfamily\DejaVuSansMono{DejaVu Sans Mono}[% |
| 378 UprightFont = *, | 401 UprightFont = *, |
| 379 BoldFont = * Bold, | 402 BoldFont = * Bold, |
