Please wait
LaTeX beamer theme for Northwest University students. Chinese support.
Here is the GitHub page: https://github.com/starryious/NWU-latex-template
% This template mostly comes from Jiayi Weng.
% https://github.com/Trinkle23897/THU-Beamer-Theme
% The lateset NWU-Beamer-Theme is modified by Xuankai Wang.
% The latex template file for NWU can be found here:
% https://github.com/starryious/NWU-latex-template
\documentclass{beamer}
\usepackage{ctex, hyperref}
\usepackage[T1]{fontenc}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra}
\usepackage{graphicx,pstricks,listings,stackengine}
\author{\href{https://starryious.github.io/KamdenWang2003.github.io/}{王宣凯}}
\institute{\href{https://math.nwu.edu.cn/}{西北大学数学学院}}
\title{NWU Beamer Theme}
\subtitle{使用 \LaTeX 制作精致的学术演示文档}
\date{2023年3月29日}
\usepackage{NWU_Beamer}
% defs
\def\cmd#1{\texttt{\color{red}\footnotesize $\backslash$#1}}
\def\env#1{\texttt{\color{blue}\footnotesize #1}}
\definecolor{deepblue}{rgb}{0,0,0.5}
\definecolor{deepred}{rgb}{0.6,0,0}
\definecolor{deepgreen}{rgb}{0,0.5,0}
\definecolor{halfgray}{gray}{0.55}
\lstset{
basicstyle=\ttfamily\small,
keywordstyle=\bfseries\color{deepblue},
emphstyle=\ttfamily\color{deepred},
% Custom highlighting style
stringstyle=\color{deepgreen},
numbers=left,
numberstyle=\small\color{halfgray},
rulesepcolor=\color{red!20!green!20!blue!20},
frame=shadowbox,
}
\begin{document}
\kaishu
\begin{frame}
\titlepage
\begin{figure}[htpb]
\begin{center}
\includegraphics[width=0.4\linewidth]{pic/nwu-logo.png}
\end{center}
\end{figure}
\end{frame}
\begin{frame}
\tableofcontents[sectionstyle=show,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
% 内容从这里开始
\section{课题背景}
\begin{frame}{用Beamer很高大上?}
\begin{itemize}[<+-| alert@+>]
% 除了alert,手动在里面插 \pause 也能达成“一页一单元”的效果
\item 好多学校都有专属的Beamer主题,NWU也不能没有!
\item 中文支持请选择 Xe\LaTeX{} 编译选项
\item 原始项目的Overleaf地址位于 \url{https://www.overleaf.com/latex/templates/thu-beamer-theme/vwnqmzndvwyb}
\item 本项目的GitHub地址位于 \url{https://github.com/starryious/NWU-latex-template}
\item 如果有bug或者feature request欢迎去里面提issue
\end{itemize}
\end{frame}
\section{研究现状}
\subsection{Beamer主题分类}
\begin{frame}
\begin{itemize}
\item \LaTeX{} 模版有很多,可以在这里找到 \newline \url{https://cn.overleaf.com/gallery}
\item 各高校的Beamer模板最初来源自 \newline \url{https://www.latexstudio.net/archives/4051.html}
\item 本模板在Weng的THU-Beamer-Theme基础上修改而成,感谢Weng同学!\href{https://trinkle23897.github.io/}{\color{blue}{戳这里,一起膜拜大神}}
\end{itemize}
\end{frame}
\section{研究内容}
\subsection{美化主题}
\begin{frame}{这一份主题与原始的THU Beamer Theme区别在于}
\begin{itemize}
\item 顶栏的小点变成一行而不是多行
\item 中文采用楷书
\item 更多该模板的功能可以参考 \url{https://www.latexstudio.net/archives/4051.html}
\item 如果你想从头开始学习Beamer,非常建议观看这个视频 \url{https://www.bilibili.com/video/BV1Sd4y157cJ/}
\item 下面我们列举出了一些Beamer的用法,供你参考
\end{itemize}
\end{frame}
\subsection{使用Beamer来制作演示文档}
\begin{frame}{Why Beamer}
\begin{itemize}
\item \LaTeX 广泛用于学术界,期刊会议论文模板
\end{itemize}
\begin{table}[h]
\centering
\begin{tabular}{c|c}
Microsoft\textsuperscript{\textregistered} Word & \LaTeX \\
\hline
文字处理工具 & 专业排版软件 \\
容易上手,简单直观 & 容易上手,进阶困难 \\
所见即所得 & {\color{blue}{所想即所得}} \\
高级功能不易掌握 & 进阶难,但一般用不到 \\
处理长文档需要丰富经验 & 长短文档的处理基本无异 \\
需要花费大量时间调整格式 & 可以专注于内容本身 \\
公式排版差强人意 & 尤其擅长公式排版 \\
二进制格式,兼容性差 & 文本文件,易读、稳定 \\
付费商业许可 & {\color{blue}{开源,自由,免费}} \\
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{排版举例}
\begin{exampleblock}{无编号公式} % equation 加 * 即可
\begin{equation*}
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)
\end{equation*}
\end{exampleblock}
\begin{exampleblock}
{多行多列公式\footnote{如果公式中有文字出现,请用 $\backslash$mathrm\{\} 或者 $\backslash$text\{\} 包含,不然就会变成 $clip$,在公式里看起来比 $\mathrm{clip}$ 丑非常多。}}
% 使用 & 分隔
\begin{align}
Q_\mathrm{target}&=r+\gamma Q^\pi(s^\prime, \pi_\theta(s^\prime)+\epsilon)\\
\epsilon&\sim\mathrm{clip}(\mathcal{N}(0, \sigma), -c, c)\nonumber
\end{align}
\end{exampleblock}
\end{frame}
\begin{frame}
\begin{exampleblock}{编号多行公式}
% Taken from Mathmode.tex
\begin{multline}
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}\\
+\left(a^{2}+2\cdot2a\Delta x+2^{2}\left(\Delta x\right)^{2}\right)\\
+\left(a^{2}+2\cdot3a\Delta x+3^{2}\left(\Delta x\right)^{2}\right)\\
+\ldots\\
\left.+\left(a^{2}+2\cdot(n-1)a\Delta x+(n-1)^{2}\left(\Delta x\right)^{2}\right)\right)\\
=\frac{1}{3}\left(b^{3}-a^{3}\right)
\end{multline}
\end{exampleblock}
\end{frame}
\begin{frame}{图形与分栏}
% From thuthesis user guide.
\begin{minipage}[c]{0.3\linewidth}
\psset{unit=0.8cm}
\begin{pspicture}(-1.75,-3)(3.25,4)
\psline[linewidth=0.25pt](0,0)(0,4)
\rput[tl]{0}(0.2,2){$\vec e_z$}
\rput[tr]{0}(-0.9,1.4){$\vec e$}
\rput[tl]{0}(2.8,-1.1){$\vec C_{ptm{ext}}$}
\rput[br]{0}(-0.3,2.1){$\theta$}
\rput{25}(0,0){%
\psframe[fillstyle=solid,fillcolor=lightgray,linewidth=.8pt](-0.1,-3.2)(0.1,0)}
\rput{25}(0,0){%
\psellipse[fillstyle=solid,fillcolor=yellow,linewidth=3pt](0,0)(1.5,0.5)}
\rput{25}(0,0){%
\psframe[fillstyle=solid,fillcolor=lightgray,linewidth=.8pt](-0.1,0)(0.1,3.2)}
\rput{25}(0,0){\psline[linecolor=red,linewidth=1.5pt]{->}(0,0)(0.,2)}
% \psRotation{0}(0,3.5){$\dot\phi$}
% \psRotation{25}(-1.2,2.6){$\dot\psi$}
\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(0,2)
\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(3,-1)
\psline[linecolor=red,linewidth=1.25pt]{->}(0,0)(2.85,-0.95)
\psarc{->}{2.1}{90}{112.5}
\rput[bl](.1,.01){C}
\end{pspicture}
\end{minipage}\hspace{1cm}
\begin{minipage}{0.5\linewidth}
\medskip
%\hspace{2cm}
\begin{figure}[h]
\centering
\includegraphics[height=.4\textheight]{pic/dtmf.pdf}
\end{figure}
\end{minipage}
\end{frame}
\begin{frame}[fragile]{\LaTeX{} 常用命令}
\begin{exampleblock}{命令}
\centering
\footnotesize
\begin{tabular}{llll}
\cmd{chapter} & \cmd{section} & \cmd{subsection} & \cmd{paragraph} \\
章 & 节 & 小节 & 带题头段落 \\\hline
\cmd{centering} & \cmd{emph} & \cmd{verb} & \cmd{url} \\
居中对齐 & 强调 & 原样输出 & 超链接 \\\hline
\cmd{footnote} & \cmd{item} & \cmd{caption} & \cmd{includegraphics} \\
脚注 & 列表条目 & 标题 & 插入图片 \\\hline
\cmd{label} & \cmd{cite} & \cmd{ref} \\
标号 & 引用参考文献 & 引用图表公式等\\\hline
\end{tabular}
\end{exampleblock}
\begin{exampleblock}{环境}
\centering
\footnotesize
\begin{tabular}{lll}
\env{table} & \env{figure} & \env{equation}\\
表格 & 图片 & 公式 \\\hline
\env{itemize} & \env{enumerate} & \env{description}\\
无编号列表 & 编号列表 & 描述 \\\hline
\end{tabular}
\end{exampleblock}
\end{frame}
\begin{frame}[fragile]{\LaTeX{} 环境命令举例}
\begin{minipage}{0.5\linewidth}
\begin{lstlisting}[language=TeX]
\begin{itemize}
\item A \item B
\item C
\begin{itemize}
\item C-1
\end{itemize}
\end{itemize}
\end{lstlisting}
\end{minipage}\hspace{1cm}
\begin{minipage}{0.3\linewidth}
\begin{itemize}
\item A
\item B
\item C
\begin{itemize}
\item C-1
\end{itemize}
\end{itemize}
\end{minipage}
\medskip
\pause
\begin{minipage}{0.5\linewidth}
\begin{lstlisting}[language=TeX]
\begin{enumerate}
\item 国民 \item 表率
\item 社会
\begin{itemize}
\item[n+e] 栋梁
\end{itemize}
\end{enumerate}
\end{lstlisting}
\end{minipage}\hspace{1cm}
\begin{minipage}{0.3\linewidth}
\begin{enumerate}
\item 国民
\item 表率
\item 社会
\end{enumerate}
\end{minipage}
\end{frame}
\begin{frame}[fragile]{\LaTeX{} 数学公式}
\begin{columns}
\begin{column}{.55\textwidth}
\begin{lstlisting}[language=TeX]
$V = \frac{4}{3}\pi r^3$
\[
V = \frac{4}{3}\pi r^3
\]
\begin{equation}
\label{eq:vsphere}
V = \frac{4}{3}\pi r^3
\end{equation}
\end{lstlisting}
\end{column}
\begin{column}{.4\textwidth}
$V = \frac{4}{3}\pi r^3$
\[
V = \frac{4}{3}\pi r^3
\]
\begin{equation}
\label{eq:vsphere}
V = \frac{4}{3}\pi r^3
\end{equation}
\end{column}
\end{columns}
\begin{itemize}
\item 学习更多内容,请看 \href{https://zh.wikipedia.org/wiki/Help:数学公式}{\color{deepblue}{这里}}
\end{itemize}
\end{frame}
\begin{frame}[fragile]
\begin{columns}
\column{.6\textwidth}
\begin{lstlisting}[language=TeX]
\begin{table}[htbp]
\caption{编号与含义}
\label{tab:number}
\centering
\begin{tabular}{cl}
\toprule
编号 & 含义 \\
\midrule
1 & 4.0 \\
2 & 3.7 \\
\bottomrule
\end{tabular}
\end{table}
公式~(\ref{eq:vsphere}) 的
编号与含义请参见
表~\ref{tab:number}。
\end{lstlisting}
\column{.4\textwidth}
\begin{table}[htpb]
\centering
\caption{编号与含义}
\label{tab:number}
\begin{tabular}{cl}\toprule
编号 & 含义 \\\midrule
1 & 4.0\\
2 & 3.7\\\bottomrule
\end{tabular}
\end{table}
\normalsize 公式~(\ref{eq:vsphere})的编号与含义请参见表~\ref{tab:number}。
\end{columns}
\end{frame}
\begin{frame}{作图}
\begin{itemize}
\item 矢量图 eps, ps, pdf
\begin{itemize}
\item METAPOST, pstricks, pgf $\ldots$
\item Xfig, Dia, Visio, Inkscape $\ldots$
\item Matlab / Excel 等保存为 pdf
\end{itemize}
\item 标量图 png, jpg, tiff $\ldots$
\begin{itemize}
\item 提高清晰度,避免发虚
\item 应尽量避免使用
\end{itemize}
\end{itemize}
\begin{figure}[htpb]
\centering
\includegraphics[width=0.5\linewidth]{pic/nwu-logo.png}
\caption{图片}
\end{figure}
\end{frame}
\section{计划进度}
\begin{frame}
\begin{itemize}
\item 一月:了解overleaf
\item 二月:使用overleaf的各类模板进行编写
\item 三月:制作NWU Beamer主题
\item 五月:各类汇报
\end{itemize}
\end{frame}
\section{参考文献}
\begin{frame}{参考链接} % [allowframebreaks]
\begin{itemize}
\item 各高校的Beamer模板最初来源自 \newline \url{https://www.latexstudio.net/archives/4051.html}
\item 原始项目的Overleaf地址位于 \newline \url{https://www.overleaf.com/latex/templates/thu-beamer-theme/vwnqmzndvwyb}
\item 本项目的GitHub地址位于 \newline \url{https://github.com/starryious/NWU-latex-template}
\end{itemize}
% 参考文献引用方式:
% \bibliography{ref}
% \bibliographystyle{alpha}
% 如果参考文献太多的话,可以像下面这样调整字体:
% \tiny\bibliographystyle{alpha}
\end{frame}
\begin{frame}
\begin{center}
{\Huge\calligra Best Wishes!}
\end{center}
\end{frame}
\end{document}
% The lateset NWU-Beamer-Theme is modified by Xuankai Wang.
% The latex template file for NWU can be found here:
% https://github.com/starryious/NWU-latex-template
Overleaf is perfect for all types of projects — from papers and presentations to newsletters, CVs and much more! It's also a great way to learn how to use LaTeX and produce professional looking projects quickly.
Upload or create templates for journals you submit to and theses and presentation templates for your institution. Just create it as a project on Overleaf and use the publish menu. It's free! No sign-up required.
New template are added all the time. Follow us on twitter for the highlights!
Overleaf is a free online collaborative LaTeX editor. No sign up required.
Learn more