mirror of
				https://github.com/congyu711/BeamerTheme.git
				synced 2025-11-04 16:04:18 +08:00 
			
		
		
		
	firamath & use xelatex
This commit is contained in:
		@@ -1,13 +1,16 @@
 | 
			
		||||
% Copyright 2018 by Zhibo Wang
 | 
			
		||||
%
 | 
			
		||||
% This file may be distributed and/or modified
 | 
			
		||||
% under the LaTeX Project Public License
 | 
			
		||||
\usepackage[sfdefault]{FiraSans}
 | 
			
		||||
% !TEX program = xelatex
 | 
			
		||||
% !TEX TS-program = xelatex
 | 
			
		||||
% fonts
 | 
			
		||||
\RequirePackage[sfdefault]{FiraSans}
 | 
			
		||||
\RequirePackage[mathrm=sym]{unicode-math}
 | 
			
		||||
\setmathfont{Fira Math}
 | 
			
		||||
 | 
			
		||||
\RequirePackage[english]{babel}
 | 
			
		||||
\RequirePackage{fancyhdr}        % header footer
 | 
			
		||||
\RequirePackage{xcolor}
 | 
			
		||||
\RequirePackage[dvipsnames]{xcolor}
 | 
			
		||||
\RequirePackage{bookmark}
 | 
			
		||||
\RequirePackage{hyperref}[colorlinks=true,urlcolor=Blue,citecolor=Green,linkcolor=BrickRed,unicode]
 | 
			
		||||
\RequirePackage{natbib}
 | 
			
		||||
\RequirePackage{graphicx} % Allows including images
 | 
			
		||||
\RequirePackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables
 | 
			
		||||
% \RequirePackage{tikz}
 | 
			
		||||
@@ -20,9 +23,9 @@
 | 
			
		||||
\RequirePackage{subcaption}
 | 
			
		||||
\RequirePackage{amsmath}
 | 
			
		||||
\RequirePackage{amsthm}
 | 
			
		||||
\RequirePackage[utf8]{inputenc}
 | 
			
		||||
\RequirePackage{CJKutf8}
 | 
			
		||||
\def\zh#1{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}}
 | 
			
		||||
% \RequirePackage[utf8]{inputenc}
 | 
			
		||||
% \RequirePackage{CJKutf8}
 | 
			
		||||
% \def\zh#1{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}}
 | 
			
		||||
\RequirePackage{aliascnt}
 | 
			
		||||
 | 
			
		||||
% a color box
 | 
			
		||||
@@ -125,7 +128,7 @@
 | 
			
		||||
\setbeamercolor{alerted text}{fg=beamer@simple@color}
 | 
			
		||||
\setbeamerfont{block title alerted}{series=\mdseries}
 | 
			
		||||
\setbeamerfont{alerted text}{series=\bfseries\boldmath}
 | 
			
		||||
\hypersetup{colorlinks,linkcolor=,urlcolor=oliver}
 | 
			
		||||
\hypersetup{colorlinks=true,linkcolor=,citecolor=Green,urlcolor=oliver}
 | 
			
		||||
% \usefonttheme[onlymath]{serif}
 | 
			
		||||
\setbeamerfont{frametitle}{series=\bfseries\boldmath}
 | 
			
		||||
\setbeamerfont{block title}{series=\bfseries\boldmath}
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								main.tex
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								main.tex
									
									
									
									
									
								
							@@ -2,7 +2,7 @@
 | 
			
		||||
 | 
			
		||||
\title[template example]{Minimizing the Sum of Piecewise Linear Convex Functions}
 | 
			
		||||
\date{\today}
 | 
			
		||||
\author{\texorpdfstring{\zh{丛宇}}{Yu Cong}}
 | 
			
		||||
\author{Yu Cong}
 | 
			
		||||
% \AtBeginSection[]{
 | 
			
		||||
%     \frame{\frametitle{Outline}\tableofcontents[currentsection, 
 | 
			
		||||
%     subsectionstyle=show/show/shaded]}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user