[
  {
    "path": ".gitattributes",
    "content": "# Auto detect text files and perform LF normalization\n* text=auto\n"
  },
  {
    "path": "PekingU.sty",
    "content": "\\mode<presentation>\n\n\\newif\\ifbeamer@secheader\n\\beamer@secheaderfalse\n\n%\\DeclareOptionBeamer{secheader}{\\beamer@secheadertrue}\n\\ProcessOptionsBeamer\n\n\\useoutertheme[footline=authorinstitutetitle]{smoothbars}\n\\makeatletter % [add curpage/total page at the bottom](http://tex.stackexchange.com/questions/100838/beamer-dresden-theme-miniframes-appeareance-and-frame-number-insertion)\n\\newcommand{\\frameofframes}{/}\n\\newcommand{\\setframeofframes}[1]{\\renewcommand{\\frameofframes}{#1}}\n\\setbeamertemplate{footline} \n  {%\n    \\begin{beamercolorbox}[colsep=1.5pt]{upper separation line foot}\n    \\end{beamercolorbox}\n    \\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%\n      leftskip=.3cm,rightskip=.3cm plus1fil]{author in head/foot}%\n      \\leavevmode{\\usebeamerfont{author in head/foot}\\insertshortauthor}%\n      \\hfill%\n      {\\usebeamerfont{institute in head/foot}\\usebeamercolor[fg]{institute in head/foot}\\insertshortinstitute}%\n    \\end{beamercolorbox}%\n    \\begin{beamercolorbox}[ht=2.5ex,dp=1.125ex,%\n      leftskip=.3cm,rightskip=.3cm plus1fil]{title in head/foot}%\n      {\\usebeamerfont{title in head/foot}\\insertshorttitle}%\n      \\hfill%\n      {\\usebeamerfont{frame number}\\usebeamercolor[fg]{frame number}\\insertframenumber~\\frameofframes~\\inserttotalframenumber}\n    \\end{beamercolorbox}%\n    \\begin{beamercolorbox}[colsep=1.5pt]{lower separation line foot}\n    \\end{beamercolorbox}\n  }\n\\makeatother\n\n\\useinnertheme{circles}\n\n%\\useoutertheme{default}\n%\\useinnertheme[shadow=true]{rounded}\n\n\\xdefinecolor{peaking}{rgb}{0.5,0.0,0.0}  %RGB#820010\n\\setbeamercolor{footline}{bg=peaking}\n\\setbeamercolor{frametitle}{bg=peaking,fg=white}\n\\setbeamercolor{title}{bg=peaking}\n\\setbeamerfont{frametitle}{size=\\large}\n\\setbeamertemplate{navigation symbols}{}\n\\setbeamertemplate{bibliography item}[text]\n\\setbeamertemplate{caption}[numbered]\n\n\\setbeamercolor{palette primary}{use=structure,fg=white,bg=structure.fg}\n\\setbeamercolor{palette secondary}{use=structure,fg=white,bg=structure.fg!75!black}\n\\setbeamercolor{palette tertiary}{use=structure,fg=white,bg=structure.fg!50!black}\n\\setbeamercolor{palette quaternary}{fg=white,bg=structure.fg!50!black}\n%\\setbeamercolor*{sidebar}{use=structure,bg=structure.fg}\n\\setbeamercolor{titlelike}{parent=palette primary}\n\n%% try\n\\setbeamercolor{block title}{bg=peaking,fg=white}\n\\setbeamercolor*{block title example}{use={normal text,example text},bg=white,fg=peaking}\n\\setbeamercolor{fine separation line}{}\n\\setbeamercolor{item projected}{fg=white}\n\\setbeamercolor{palette sidebar primary}{use=normal text,fg=normal text.fg}\n\\setbeamercolor{palette sidebar quaternary}{use=structure,fg=structure.fg}\n\\setbeamercolor{palette sidebar secondary}{use=structure,fg=structure.fg}\n\\setbeamercolor{palette sidebar tertiary}{use=normal text,fg=normal text.fg}\n%\\setbeamercolor{palette sidebar quaternary}{fg=white}\n\\setbeamercolor{section in sidebar}{fg=brown}\n\\setbeamercolor{section in sidebar shaded}{fg=grey}\n\\setbeamercolor{separation line}{}\n\\setbeamercolor{sidebar}{bg=peaking}\n\\setbeamercolor{sidebar}{parent=palette primary}\n\\setbeamercolor{structure}{fg=peaking}\n\\setbeamercolor{subsection in sidebar}{fg=brown}\n\\setbeamercolor{subsection in sidebar shaded}{fg=grey}\n\\AtBeginSection[]{\n\t\\begin{frame}\n\t\t\\tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]\n\t\\end{frame}\n}\n\\AtBeginSubsection[]{\n\t\\begin{frame}\n\t\t\\tableofcontents[sectionstyle=show/shaded,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]\n\t\\end{frame}\n}\n\n\\mode\n<all>\n"
  },
  {
    "path": "README.md",
    "content": "# PKU-Beamer-Theme\n A Beamer Theme of PKU for academic report, thesis and talk.\n# Demo\n<img src=\"img/demo1.jpg\" >\n<img src=\"img/demo2.jpg\" >\n<img src=\"img/3.jpg\" >\n<img src=\"img/4.jpg\" > \n\n# Document\n Check out the tutorial in [How_to_do_pku_beamer_theme](How_to_do_pku_beamer_theme.pdf) for details.\n You should use XeLatex to Compile the beamer to get the theme.\n \n# Plug-in\n- 画表神器 https://www.tablesgenerator.com/\n- 写公式神器 https://mathpix.com/\n- 文献 bib 整理神器 https://dblp.uni-trier.de/\n- Latex 画图画表常用命令 https://en.wikibooks.org/wiki/LaTeX/Floats,_Figures_and_Captions#Tip\n \n# Overleaf Template\nhttps://www.overleaf.com/latex/templates/pku-beamer-theme/zdnpwpfnkzcc\n\n# Acknowledgements\nThis repository is based on [THU-Beamer-Theme](https://github.com/Trinkle23897/THU-Beamer-Theme), and you may refer to it for more details about the code.\n"
  },
  {
    "path": "ref.bib",
    "content": "@inproceedings{origin,\n  author    = {unknown},\n  title     = {THU Beamer Theme},\n  year      = {2015},\n  url       = {http://far.tooold.cn/post/latex/beamertsinghua},\n}"
  },
  {
    "path": "slide.tex",
    "content": "\\documentclass{beamer}\n\\usepackage{ctex, hyperref}\n\\usepackage[T1]{fontenc}\n\n% other packages\n\\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}\n\\usepackage{graphicx,pstricks,listings,stackengine}\n\n\\author{黄小明}\n\\title{PKU Beamer Theme}\n\\subtitle{毕业设计开题报告}\n\\institute{北京大学xxx学院}\n\\date{2020年11月24日}\n\\usepackage{PekingU}\n\n% defs\n\\def\\cmd#1{\\texttt{\\color{red}\\footnotesize $\\backslash$#1}}\n\\def\\env#1{\\texttt{\\color{blue}\\footnotesize #1}}\n\\definecolor{deepblue}{rgb}{0,0,0.5}\n\\definecolor{deepred}{rgb}{0.6,0,0}\n\\definecolor{deepgreen}{rgb}{0,0.5,0}\n\\definecolor{halfgray}{gray}{0.55}\n\n\\lstset{\n    basicstyle=\\ttfamily\\small,\n    keywordstyle=\\bfseries\\color{deepblue},\n    emphstyle=\\ttfamily\\color{deepred},    % Custom highlighting style\n    stringstyle=\\color{deepgreen},\n    numbers=left,\n    numberstyle=\\small\\color{halfgray},\n    rulesepcolor=\\color{red!20!green!20!blue!20},\n    frame=shadowbox,\n}\n\n\n\\begin{document}\n\n\\kaishu\n\\begin{frame}\n    \\titlepage\n    \\begin{figure}[htpb]\n        \\begin{center}\n            \\includegraphics[width=0.2\\linewidth]{pic/PKU_logo.png}\n        \\end{center}\n    \\end{figure}\n\\end{frame}\n\n\\begin{frame}\n    \\tableofcontents[sectionstyle=show,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]\n\\end{frame}\n\n\n\\section{课题背景}\n\n\\begin{frame}{用Beamer很高大上？}\n    \\begin{itemize}[<+-| alert@+>] % 当然，除了alert，手动在里面插 \\pause 也行\n        \\item 大家都会\\LaTeX{}，好多学校都有自己的Beamer主题\n        \\item 中文支持请选择 Xe\\LaTeX{} 编译选项\n        \\item Overleaf项目地址位于 \\url{https://www.overleaf.com/latex/templates/thu-beamer-theme/vwnqmzndvwyb}，可以直接使用\n        \\item GitHub项目地址位于 \\url{https://github.com/inFaaa/PKU-Beamer-Theme}，如果有bug或者feature request可以去里面提issue\n    \\end{itemize}\n\\end{frame}\n\n\\section{研究现状}\n\n\\subsection{Beamer主题分类}\n\n\\begin{frame}\n    \\begin{itemize}\n        \\item 有一些 \\LaTeX{} 自带的\n        \\item 有一些Tsinghua的\n        \\item 本模板来源自 \\newline \\url{https://www.latexstudio.net/archives/4051.html}\n        \\item 但是最初的 \\href{http://far.tooold.cn/post/latex/beamertsinghua}{\\color{purple}{link}} \\cite{origin}已经失效了\n        \\item 这是n+e大佬在16-17年做的一些ppt：\\href{https://github.com/Trinkle23897/oi_slides}{\\color{purple}{戳我}}\n    \\end{itemize}\n\\end{frame}\n\n\n\\section{研究内容}\n\n\\subsection{美化主题}\n\n\\begin{frame}{这一份主题与原始的THU Beamer Theme区别在于}\n    \\begin{itemize}\n        \\item 顶栏的小点变成一行而不是多行\n        \\item 中文采用楷书\n        \\item 剩下我改了啥我也忘了……我16年魔改的，都四年过去了（x\n        \\item 更多该模板的功能可以参考 \\url{https://www.latexstudio.net/archives/4051.html}\n        \\item 下面列举出了一些Beamer的用法，部分节选自 \\url{https://tuna.moe/event/2018/latex/}\n    \\end{itemize}\n\\end{frame}\n\n\\subsection{如何更好地做Beamer}\n\n\\begin{frame}{Why Beamer}\n    \\begin{itemize}\n        \\item \\LaTeX 广泛用于学术界，期刊会议论文模板\n    \\end{itemize}\n    \\begin{table}[h]\n        \\centering\n        \\begin{tabular}{c|c}\n            Microsoft\\textsuperscript{\\textregistered}  Word & \\LaTeX \\\\\n            \\hline\n            文字处理工具 & 专业排版软件 \\\\\n            容易上手，简单直观 & 容易上手 \\\\\n            所见即所得 & 所见即所想，所想即所得 \\\\\n            高级功能不易掌握 & 进阶难，但一般用不到 \\\\\n            处理长文档需要丰富经验 & 和短文档处理基本无异 \\\\\n            花费大量时间调格式 & 无需担心格式，专心作者内容 \\\\\n            公式排版差强人意 & 尤其擅长公式排版 \\\\\n            二进制格式，兼容性差 & 文本文件，易读、稳定 \\\\\n            付费商业许可 & 自由免费使用 \\\\\n        \\end{tabular}\n    \\end{table}\n\\end{frame}\n\n\\begin{frame}{排版举例}\n    \\begin{exampleblock}{无编号公式} % 加 * \n        \\begin{equation*}\n            J(\\theta) = \\mathbb{E}_{\\pi_\\theta}[G_t] = \\sum_{s\\in\\mathcal{S}} d^\\pi (s)V^\\pi(s)=\\sum_{s\\in\\mathcal{S}} d^\\pi(s)\\sum_{a\\in\\mathcal{A}}\\pi_\\theta(a|s)Q^\\pi(s,a)\n        \\end{equation*}\n    \\end{exampleblock}\n    \\begin{exampleblock}{多行多列公式\\footnote{如果公式中有文字出现，请用 $\\backslash$mathrm\\{\\} 或者 $\\backslash$text\\{\\} 包含，不然就会变成 $clip$，在公式里看起来比 $\\mathrm{clip}$ 丑非常多。}}\n        % 使用 & 分隔\n        \\begin{align}\n            Q_\\mathrm{target}&=r+\\gamma Q^\\pi(s^\\prime, \\pi_\\theta(s^\\prime)+\\epsilon)\\\\\n            \\epsilon&\\sim\\mathrm{clip}(\\mathcal{N}(0, \\sigma), -c, c)\\nonumber\n        \\end{align}\n    \\end{exampleblock}\n\\end{frame}\n\n\\begin{frame}\n    \\begin{exampleblock}{编号多行公式}\n        % Taken from Mathmode.tex\n        \\begin{multline}\n            A=\\lim_{n\\rightarrow\\infty}\\Delta x\\left(a^{2}+\\left(a^{2}+2a\\Delta x+\\left(\\Delta x\\right)^{2}\\right)\\right.\\label{eq:reset}\\\\\n            +\\left(a^{2}+2\\cdot2a\\Delta x+2^{2}\\left(\\Delta x\\right)^{2}\\right)\\\\\n            +\\left(a^{2}+2\\cdot3a\\Delta x+3^{2}\\left(\\Delta x\\right)^{2}\\right)\\\\\n            +\\ldots\\\\\n            \\left.+\\left(a^{2}+2\\cdot(n-1)a\\Delta x+(n-1)^{2}\\left(\\Delta x\\right)^{2}\\right)\\right)\\\\\n            =\\frac{1}{3}\\left(b^{3}-a^{3}\\right)\n        \\end{multline}\n    \\end{exampleblock}\n\\end{frame}\n\n\\begin{frame}{图形与分栏}\n    % From thuthesis user guide.\n    \\begin{minipage}[c]{0.3\\linewidth}\n        \\psset{unit=0.8cm}\n        \\begin{pspicture}(-1.75,-3)(3.25,4)\n            \\psline[linewidth=0.25pt](0,0)(0,4)\n            \\rput[tl]{0}(0.2,2){$\\vec e_z$}\n            \\rput[tr]{0}(-0.9,1.4){$\\vec e$}\n            \\rput[tl]{0}(2.8,-1.1){$\\vec C_{ptm{ext}}$}\n            \\rput[br]{0}(-0.3,2.1){$\\theta$}\n            \\rput{25}(0,0){%\n            \\psframe[fillstyle=solid,fillcolor=lightgray,linewidth=.8pt](-0.1,-3.2)(0.1,0)}\n            \\rput{25}(0,0){%\n            \\psellipse[fillstyle=solid,fillcolor=yellow,linewidth=3pt](0,0)(1.5,0.5)}\n            \\rput{25}(0,0){%\n            \\psframe[fillstyle=solid,fillcolor=lightgray,linewidth=.8pt](-0.1,0)(0.1,3.2)}\n            \\rput{25}(0,0){\\psline[linecolor=red,linewidth=1.5pt]{->}(0,0)(0.,2)}\n%           \\psRotation{0}(0,3.5){$\\dot\\phi$}\n%           \\psRotation{25}(-1.2,2.6){$\\dot\\psi$}\n            \\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(0,2)\n            \\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(3,-1)\n            \\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(2.85,-0.95)\n            \\psarc{->}{2.1}{90}{112.5}\n            \\rput[bl](.1,.01){C}\n        \\end{pspicture}\n    \\end{minipage}\\hspace{1cm}\n    \\begin{minipage}{0.5\\linewidth}\n        \\medskip\n        %\\hspace{2cm}\n        \\begin{figure}[h]\n            \\centering\n            \\includegraphics[height=.4\\textheight]{pic/dtmf.pdf}\n        \\end{figure}\n    \\end{minipage}\n\\end{frame}\n\n\\begin{frame}[fragile]{\\LaTeX{} 常用命令}\n    \\begin{exampleblock}{命令}\n        \\centering\n        \\footnotesize\n        \\begin{tabular}{llll}\n            \\cmd{chapter} & \\cmd{section} & \\cmd{subsection} & \\cmd{paragraph} \\\\\n            章 & 节 & 小节 & 带题头段落 \\\\\\hline\n            \\cmd{centering} & \\cmd{emph} & \\cmd{verb} & \\cmd{url} \\\\\n            居中对齐 & 强调 & 原样输出 & 超链接 \\\\\\hline\n            \\cmd{footnote} & \\cmd{item} & \\cmd{caption} & \\cmd{includegraphics} \\\\\n            脚注 & 列表条目 & 标题 & 插入图片 \\\\\\hline\n            \\cmd{label} & \\cmd{cite} & \\cmd{ref} \\\\\n            标号 & 引用参考文献 & 引用图表公式等\\\\\\hline\n        \\end{tabular}\n    \\end{exampleblock}\n    \\begin{exampleblock}{环境}\n        \\centering\n        \\footnotesize\n        \\begin{tabular}{lll}\n            \\env{table} & \\env{figure} & \\env{equation}\\\\\n            表格 & 图片 & 公式 \\\\\\hline\n            \\env{itemize} & \\env{enumerate} & \\env{description}\\\\\n            无编号列表 & 编号列表 & 描述 \\\\\\hline\n        \\end{tabular}\n    \\end{exampleblock}\n\\end{frame}\n\n\\begin{frame}[fragile]{\\LaTeX{} 环境命令举例}\n    \\begin{minipage}{0.5\\linewidth}\n\\begin{lstlisting}[language=TeX]\n\\begin{itemize}\n  \\item A \\item B\n  \\item C\n  \\begin{itemize}\n    \\item C-1\n  \\end{itemize}\n\\end{itemize}\n\\end{lstlisting}\n    \\end{minipage}\\hspace{1cm}\n    \\begin{minipage}{0.3\\linewidth}\n        \\begin{itemize}\n            \\item A\n            \\item B\n            \\item C\n            \\begin{itemize}\n                \\item C-1\n            \\end{itemize}\n        \\end{itemize}\n    \\end{minipage}\n    \\medskip\n    \\pause\n    \\begin{minipage}{0.5\\linewidth}\n\\begin{lstlisting}[language=TeX]\n\\begin{enumerate}\n  \\item 巨佬 \\item 大佬\n  \\item 萌新\n  \\begin{itemize}\n    \\item[n+e] 瑟瑟发抖\n  \\end{itemize}\n\\end{enumerate}\n\\end{lstlisting}\n    \\end{minipage}\\hspace{1cm}\n    \\begin{minipage}{0.3\\linewidth}\n        \\begin{enumerate}\n            \\item 巨佬\n            \\item 大佬\n            \\item 萌新\n            \\begin{itemize}\n                \\item[n+e] 瑟瑟发抖\n            \\end{itemize}\n        \\end{enumerate}\n    \\end{minipage}\n\\end{frame}\n\n\\begin{frame}[fragile]{\\LaTeX{} 数学公式}\n    \\begin{columns}\n        \\begin{column}{.55\\textwidth}\n\\begin{lstlisting}[language=TeX]\n$V = \\frac{4}{3}\\pi r^3$\n\n\\[\n  V = \\frac{4}{3}\\pi r^3\n\\]\n\n\\begin{equation}\n  \\label{eq:vsphere}\n  V = \\frac{4}{3}\\pi r^3\n\\end{equation}\n\\end{lstlisting}\n        \\end{column}\n        \\begin{column}{.4\\textwidth}\n            $V = \\frac{4}{3}\\pi r^3$\n            \\[\n                V = \\frac{4}{3}\\pi r^3\n            \\]\n            \\begin{equation}\n                \\label{eq:vsphere}\n                V = \\frac{4}{3}\\pi r^3\n            \\end{equation}\n        \\end{column}\n    \\end{columns}\n    \\begin{itemize}\n        \\item 更多内容请看 \\href{https://zh.wikipedia.org/wiki/Help:数学公式}{\\color{purple}{这里}}\n    \\end{itemize}\n\\end{frame}\n\n\\begin{frame}[fragile]\n    \\begin{columns}\n        \\column{.6\\textwidth}\n\\begin{lstlisting}[language=TeX]\n    \\begin{table}[htbp]\n      \\caption{编号与含义}\n      \\label{tab:number}\n      \\centering\n      \\begin{tabular}{cl}\n        \\toprule\n        编号 & 含义 \\\\\n        \\midrule\n        1 & 4.0 \\\\\n        2 & 3.7 \\\\\n        \\bottomrule\n      \\end{tabular}\n    \\end{table}\n    公式~(\\ref{eq:vsphere}) 的\n    编号与含义请参见\n    表~\\ref{tab:number}。\n\\end{lstlisting}\n        \\column{.4\\textwidth}\n        \\begin{table}[htpb]\n            \\centering\n            \\caption{编号与含义}\n            \\label{tab:number}\n            \\begin{tabular}{cl}\\toprule\n                编号 & 含义 \\\\\\midrule\n                1 & 4.0\\\\\n                2 & 3.7\\\\\\bottomrule\n            \\end{tabular}\n        \\end{table}\n        \\normalsize 公式~(\\ref{eq:vsphere})的编号与含义请参见表~\\ref{tab:number}。\n    \\end{columns}\n\\end{frame}\n\n\\begin{frame}{作图}\n    \\begin{itemize}\n        \\item 矢量图 eps, ps, pdf\n        \\begin{itemize}\n            \\item METAPOST, pstricks, pgf $\\ldots$\n            \\item Xfig, Dia, Visio, Inkscape $\\ldots$\n            \\item Matlab / Excel 等保存为 pdf\n        \\end{itemize}\n        \\item 标量图 png, jpg, tiff $\\ldots$\n        \\begin{itemize}\n            \\item 提高清晰度，避免发虚\n            \\item 应尽量避免使用\n        \\end{itemize}\n    \\end{itemize}\n    \\begin{figure}[htpb]\n        \\centering\n        \\includegraphics[width=0.2\\linewidth]{pic/PKU_logo.png}\n        \\caption{这个校徽就是矢量图}\n    \\end{figure}\n\\end{frame}\n\n\\section{计划进度}\n\\begin{frame}\n    \\begin{itemize}\n        \\item 一月：完成文献调研\n        \\item 二月：复现并评测各种Beamer主题美观程度\n        \\item 三、四月：美化THU Beamer主题\n        \\item 五月：论文撰写\n    \\end{itemize}\n\\end{frame}\n\n\\section{参考文献}\n\n\\begin{frame}[allowframebreaks]\n    \\bibliography{ref}\n    \\bibliographystyle{alpha}\n    % 如果参考文献太多的话，可以像下面这样调整字体：\n    % \\tiny\\bibliographystyle{alpha}\n\\end{frame}\n\n\\begin{frame}\n    \\begin{center}\n        {\\Huge\\calligra Thanks!}\n    \\end{center}\n\\end{frame}\n\n\\end{document}\n"
  }
]