mirror of
				https://github.com/congyu711/BeamerTheme.git
				synced 2025-11-04 08:01:08 +08:00 
			
		
		
		
	update font packages; add .latexmkrc for xelatex support
This commit is contained in:
		
							
								
								
									
										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
 | 
					% !TEX TS-program = xelatex
 | 
				
			||||||
% fonts
 | 
					% fonts
 | 
				
			||||||
\RequirePackage[sfdefault]{FiraSans}
 | 
					\RequirePackage[sfdefault]{FiraSans}
 | 
				
			||||||
\RequirePackage[mathrm=sym]{unicode-math}
 | 
					\RequirePackage{FiraMono} 
 | 
				
			||||||
\setmathfont{Fira Math}
 | 
					\renewcommand{\rmfamily}{\sffamily}
 | 
				
			||||||
 | 
					\RequirePackage[fakebold]{firamath-otf}
 | 
				
			||||||
 | 
					\RequirePackage{xeCJK}
 | 
				
			||||||
 | 
					\setCJKmainfont{Source Han Sans SC}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
\RequirePackage[english]{babel}
 | 
					\RequirePackage[english]{babel}
 | 
				
			||||||
\RequirePackage{fancyhdr}        % header footer
 | 
					\RequirePackage{fancyhdr}        % header footer
 | 
				
			||||||
 
 | 
				
			|||||||
							
								
								
									
										2
									
								
								main.tex
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.tex
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
\title[template example]{Minimizing the Sum of Piecewise Linear Convex Functions}
 | 
					\title[template example]{Minimizing the Sum of Piecewise Linear Convex Functions}
 | 
				
			||||||
\date{\today}
 | 
					\date{\today}
 | 
				
			||||||
\author{Yu Cong}
 | 
					\author{丛宇}
 | 
				
			||||||
% \AtBeginSection[]{
 | 
					% \AtBeginSection[]{
 | 
				
			||||||
%     \frame{\frametitle{Outline}\tableofcontents[currentsection, 
 | 
					%     \frame{\frametitle{Outline}\tableofcontents[currentsection, 
 | 
				
			||||||
%     subsectionstyle=show/show/shaded]}
 | 
					%     subsectionstyle=show/show/shaded]}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user