update font packages; add .latexmkrc for xelatex support

This commit is contained in:
Yu Cong 2025-05-03 23:56:55 +08:00
parent 14ab89e748
commit b316960980
4 changed files with 11 additions and 3 deletions

5
.latexmkrc Normal file
View File

@ -0,0 +1,5 @@
$pdf_mode = 1; # 生成PDF
$latex = 'xelatex %O %S'; # 用 xelatex 替代 latex
$pdflatex = 'xelatex %O %S'; # 用 xelatex 替代 pdflatex
$dvi_mode = 0; # 禁用DVI输出
$postscript_mode = 0; # 禁用PS输出

View File

@ -2,8 +2,11 @@
% !TEX TS-program = xelatex
% fonts
\RequirePackage[sfdefault]{FiraSans}
\RequirePackage[mathrm=sym]{unicode-math}
\setmathfont{Fira Math}
\RequirePackage{FiraMono}
\renewcommand{\rmfamily}{\sffamily}
\RequirePackage[fakebold]{firamath-otf}
\RequirePackage{xeCJK}
\setCJKmainfont{Source Han Sans SC}
\RequirePackage[english]{babel}
\RequirePackage{fancyhdr} % header footer

BIN
main.pdf

Binary file not shown.

View File

@ -2,7 +2,7 @@
\title[template example]{Minimizing the Sum of Piecewise Linear Convex Functions}
\date{\today}
\author{Yu Cong}
\author{丛宇}
% \AtBeginSection[]{
% \frame{\frametitle{Outline}\tableofcontents[currentsection,
% subsectionstyle=show/show/shaded]}