Skip to content

Commit

Permalink
formalism: Use xelatex
Browse files Browse the repository at this point in the history
  • Loading branch information
mirryi committed Oct 10, 2023
1 parent 210a1f8 commit f1701a7
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
2 changes: 1 addition & 1 deletion formalism/latexmkrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$out_dir = 'build';

$pdf_mode = 1;
$pdflatex = 'pdflatex -interaction=nonstopmode -shell-escape';
$pdflatex = 'xelatex -interaction=nonstopmode -shell-escape';
22 changes: 12 additions & 10 deletions formalism/preamble/preamble.tex
Original file line number Diff line number Diff line change
@@ -1,16 +1,6 @@
\hbadness=99999
\usepackage{silence}

% font
\usepackage{iftex}
\ifPDFTeX
\usepackage{libertinust1math}
\usepackage{libertine}
\else
\usepackage{libertinus}
\fi
\usepackage[scaled=0.8]{FiraMono}

% geometry
\usepackage[margin=1in]{geometry}

Expand All @@ -26,6 +16,18 @@
\WarningFilter{latexfont}{Font shape `U/stmry/b/n' undefined}
\WarningFilter{latexfont}{Some font shapes were not available}

% font
\usepackage{iftex}
\ifPDFTeX
\usepackage{libertinust1math}
\usepackage{libertine}
\else
\expandafter\def\csname ver@unicode-math.sty\endcsname{}
\usepackage[nomath]{libertinus}
\usepackage{libertinust1math}
\fi
\usepackage[scaled=0.8]{FiraMono}

\usepackage{bm}
\usepackage{relsize}
\usepackage{centernot}
Expand Down

0 comments on commit f1701a7

Please sign in to comment.