學校linux機子根本跑不動libreoffice,wps沒有公式,只好上LaTeX了。linux
先 beamer: 須要安裝firasans和firamono字體,思源黑體SCapp
\documentclass[10pt]{beamer} \usetheme[progressbar=frametitle]{metropolis} \usepackage{appendixnumberbeamer} \usepackage{booktabs} \usepackage[scale=2]{ccicons} \usepackage{pgfplots} \usepgfplotslibrary{dateplot} \usepackage{xspace} \newcommand{\themename}{\textbf{\textsc{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} \title{這是一個測試的標題} \subtitle{test你好} % \date{\today} \date{\today} \author{poorpool} \institute{lfyz} \titlegraphic{\hfill\includegraphics[height=1.5cm]{lfyzoj.png}} \begin{document} \maketitle \section{orzzz} \begin{frame}{QAQ中文假} test \LaTeX{} QAQ公式 ,$\sum_{i=1}^{+\infty}a_i^2$ \end{frame} \setbeamercolor{palette primary}{fg=white, bg=mDarkTeal} \begin{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} \renewcommand{\abstractname}{摘要} \renewcommand\refname{參考文獻} \renewcommand\figurename{圖} \renewcommand\tablename{表} \newtheorem{thm}{定理} \newtheorem{lemma}{引理} \newtheorem{definition}{定義} \makeatletter \let\@afterindentfalse\@afterindenttrue \@afterindenttrue \makeatother \setlength{\parindent}{2em} \lstset{ basicstyle=\ttfamily,% 基本風格 numberstyle=\ttfamily, 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}, } \title{\huge OI練習賽} \author{poorpool} \date{\today} \begin{document} \maketitle 你好! \end{document}