学校linux机子根本跑不动libreoffice,wps没有公式,只好上LaTeX了。
先 beamer:
需要安装firasans和firamono字体,思源黑体SC
documentclass[10pt]{beamer}
usetheme[progressbar=frametitle]{metropolis}
usepackage{appendixnumberbeamer}
usepackage{booktabs}
usepackage[scale=2]{ccicons}
usepackage{pgfplots}
usepgfplotslibrary{dateplot}
usepackage{xspace}
ewcommand{ hemename}{ extbf{ extsc{metropolis}}xspace}
usepackage[bookmarks=true]{hyperref}
usepackage[BoldFont,SlantFont,CJKchecksingle]{xeCJK}
setCJKmainfont[BoldFont=SimHei]{SimSun}
setCJKmonofont{FangSong_GB2312}
setCJKsansfont[BoldFont=Source Han Sans SC Medium, ItalicFont=KaiTi_GB2312]{Source Han Sans SC Normal}
itle{这是一个测试的标题}
subtitle{test你好}
% date{ oday}
date{ oday}
author{poorpool}
institute{lfyz}
itlegraphic{hfillincludegraphics[height=1.5cm]{lfyzoj.png}}
egin{document}
maketitle
section{orzzz}
egin{frame}{QAQ中文假}
test LaTeX{}
QAQ公式 ,$sum_{i=1}^{+infty}a_i^2$
end{frame}
setbeamercolor{palette primary}{fg=white, bg=mDarkTeal}
egin{frame}[standout]
Questions?
end{frame}
end{document}
documentclass[12pt]{article}
usepackage{xeCJK}
usepackage{fontspec}
usepackage{indentfirst}
usepackage{geometry}
usepackage{graphicx}
usepackage[format=hang,font=small,textfont=it]{caption}
usepackage{float}
usepackage[usenames, dvipsnames]{xcolor}
usepackage{listings}
usepackage{amsmath}
usepackage[perpage]{footmisc}
usepackage[nottoc]{tocbibind}
setmonofont{Input}
setCJKmainfont[BoldFont=SimHei, ItalicFont=KaiTi_GB2312]{SimSun}
setCJKmonofont{FangSong_GB2312}
setCJKsansfont{WenQuanYi Micro Hei}
enewcommand{abstractname}{摘要}
enewcommand
efname{参考文献}
enewcommandfigurename{图}
enewcommand ablename{表}
ewtheorem{thm}{定理}
ewtheorem{lemma}{引理}
ewtheorem{definition}{定义}
makeatletter
let@afterindentfalse@afterindenttrue
@afterindenttrue
makeatother
setlength{parindent}{2em}
lstset{
basicstyle= tfamily,% 基本风格
numberstyle= tfamily,
numbers=left, % 行号
numbersep=10pt, % 行号间隔
tabsize=4, % 缩进
extendedchars=true, % 扩展符号?
breaklines=true, % 自动换行
language=C++,
showspaces=false,% 空格字符加下划线
showstringspaces=false,% 字符串中的空格加下划线
showtabs=false, % 字符串中的tab加下划线
breaklines=true,
frame=shadowbox,
rulesepcolor=color{red!20!green!20!blue!20},
keywordstyle=color{Fuchsia}, % keyword style
stringstyle=color{teal},
commentstyle=color{gray},
}
itle{huge OI练习赛}
author{poorpool}
date{ oday}
egin{document}
maketitle
你好!
end{document}