mirror of
https://github.com/congyu711/BeamerTheme.git
synced 2025-07-12 00:21:33 +08:00
update font packages; add .latexmkrc for xelatex support
This commit is contained in:
parent
14ab89e748
commit
b316960980
5
.latexmkrc
Normal file
5
.latexmkrc
Normal 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输出
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user