Nanjing University School of Computer Science presentation (NJU-CS beamer)
A Nanjing University (School of Computer Science) beamer theme adapted from the THU Beamer Theme: purple NJU colours, background watermark, question and answer boxes, tables, figures, equations, pstricks drawing and a BibTeX bibliography, with a Chinese sample talk that explains the template.
- Category
- Presentation
- Document class
beamer(beamer.cls) — ships with TeX Live- Workflow
- Presentation — no revision rounds
- Author
- Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template)
- Source
- Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template)
- Licence
- beamer.cls: LaTeX Project Public License (installed with TeX). The sample text is Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template)'s, provided for authors preparing a submission.
These are the publisher’s own files. This project starts from Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template)’s package for this publication — their manuscript, their beamer.cls, their bibliography style — so what compiles here is what they would have given you.
Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template) serves this exact file to Nanjing University. Check Shen Ou-Yang (yunzinan, NJU-CS-Beamer-Template)’s author pages for the current instructions.
Where this differs from the publisher’s download.
- Note: A community template, not issued by Nanjing University; check your institution's current presentation and branding rules. The school logo, the university name and motto images and the background watermark are blank placeholders.
What you get
LICENSE· 1 KBNJU.sty· 5 KBpic/cslogo.png· 1022 Bpic/dtmf.pdf· 6 KBpic/nju-motto.jpg· 58 KBpic/nju-name.jpg· 65 KBpic/nju_bg.png· 5 KBref.bib· 402 Bslide.tex— the file that is compiled · 14 KB
These become your files. Editing them afterwards changes your project and nothing else — a project owns its files from the moment it is made.
Link to this template. Send it to a student or co-author: it starts a new paper in this template, through sign-up if they need an account.
https://manulyx.com/start/nju-cs-beamer
Source
LICENSE — binary, 1 KB
NJU.sty · 5 KB
Loading…
pic/cslogo.png — binary, 1022 B
pic/dtmf.pdf — binary, 6 KB
pic/nju-motto.jpg — binary, 58 KB
pic/nju-name.jpg — binary, 65 KB
pic/nju_bg.png — binary, 5 KB
ref.bib · 402 B
Loading…
slide.tex — the file that is compiled · 14 KB
\documentclass{beamer}
\usepackage{ctex, hyperref}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{caption}
\usepackage{multirow}
\usepackage{sidecap}
\usepackage{fontawesome5}
% other packages
\usepackage{latexsym,amsmath,xcolor,multicol,booktabs,calligra,amssymb}
\usepackage{graphicx,pstricks,listings,stackengine}
\usepackage{eso-pic}
\usepackage{tikz}
\usepackage{longtable}
\usepackage{subcaption}
\usetikzlibrary{shadows}
\usepackage{NJU}
\author{Author Name}
\title{Your paper}
\subtitle{NJU CS Beamer Template}
\institute{南京大学计算机学院}
\date{\today}
% 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}
% 设置emph为红色
\renewcommand{\emph}[1]{\textcolor{red}{#1}}
\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,
}
% 定义新的颜色
\definecolor{lightgreen}{RGB}{230,255,230}
\definecolor{darkgreen}{RGB}{0,100,0}
\definecolor{lightblue}{RGB}{230,240,255}
\definecolor{darkblue}{RGB}{0,0,139}
% 设置block颜色
\setbeamercolor{block body}{bg=lightgreen}
\setbeamercolor{block title}{bg=lightgreen,fg=black}
% 在导言区添加自定义命令
\newcommand{\questionbox}[1]{
\begin{tikzpicture}
\node[draw, rounded corners=5pt, fill=lightgreen,
inner sep=10pt, text width=0.8\textwidth,
align=left,
preaction={fill=black,opacity=0.2,transform canvas={xshift=0.5ex,yshift=-0.5ex}}] {
\textcolor{darkgreen}{\faIcon{question-circle}} #1
};
\end{tikzpicture}
}
\newcommand{\answerbox}[1]{
\begin{tikzpicture}
\node[draw, rounded corners=5pt, fill=lightblue,
inner sep=10pt, text width=0.8\textwidth,
align=left,
preaction={fill=black,opacity=0.2,transform canvas={xshift=0.5ex,yshift=-0.5ex}}] {
\textcolor{darkblue}{\faIcon{lightbulb}} #1
};
\end{tikzpicture}
}
\begin{document}
\kaishu
% 封面
\begin{frame}[plain]
\setbeamertemplate{background}[title]
\begin{figure}[htbp]
\begin{center}
\begin{minipage}{0.20\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{pic/nju-name.jpg}
\end{minipage}
\hfill
\begin{minipage}{0.50\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/cslogo.png}
\end{minipage}
\hfill
\begin{minipage}{0.20\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{pic/nju-motto.jpg}
\end{minipage}
\end{center}
\end{figure}
\titlepage
\end{frame}
\begin{frame}
\tableofcontents[sectionstyle=show,subsectionstyle=show/shaded/hide,subsubsectionstyle=show/shaded/hide]
\end{frame}
\section{课题背景}
\begin{frame}{NJUCS beamer 说明}
本模板修改自\href{https://github.com/tuna/THU-Beamer-Theme}{THU Beamer Theme}。Credits to Jiayi Weng!
\vfill
\questionbox{相比于THU Beamer Theme 做了哪些变化?}
\vfill
\answerbox{
主要修改如下:
\begin{itemize}
\item 修改主题颜色为南大紫(NJUPurple),颜色取自南大校徽;
\item 增加了南大校徽背景;
\item 设计了南大风格的封面和致谢页。对于非计算机学院的同学,也可以修改中间的院系标识图片。
\end{itemize}
}
\end{frame}
\begin{frame}{用Beamer很高大上?}
\begin{itemize}[<+-| alert@+>] % 当然,除了alert,手动在里面插 \pause 也行
\item 大家都会\LaTeX{},好多学校都有自己的Beamer主题
\item 中文支持请选择 Xe\LaTeX{} 编译选项
\end{itemize}
\end{frame}
\section{研究内容}
\subsection{美化主题}
\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
文字处理工具 & 专业排版软件 \\
容易上手,简单直观 & 容易上手 \\
所见即所得 & 所见即所想,所想即所得 \\
高级功能不易掌握 & 进阶难,但一般用不到 \\
处理长文档需要丰富经验 & 和短文档处理基本无异 \\
花费大量时间调格式 & 无需担心格式,专心作者内容 \\
公式排版差强人意 & 尤其擅长公式排版 \\
二进制格式,兼容性差 & 文本文件,易读、稳定 \\
付费商业许可 & 自由免费使用 \\
\end{tabular}
\end{table}
\end{frame}
\begin{frame}{排版举例}
\begin{exampleblock}{无编号公式} % 加 *
\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}{图形与分栏}
\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} \\
标号 & 引用参考文献\cite{RN428} & 引用图表公式等\\\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 萌新
\begin{itemize}
\item[n+e] 瑟瑟发抖
\end{itemize}
\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{purple}{这里}}
\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}
\end{frame}
\section{计划进度}
\begin{frame}
\begin{itemize}
\item 一月:完成文献调研
\item 二月:复现并评测各种Beamer主题美观程度
\item 三、四月:美化NJUCS Beamer主题
\item 五月:论文撰写
\end{itemize}
\end{frame}
% 致谢页
\begin{frame}[plain]
\begin{figure}[htbp]
\vspace{-5em}
\begin{center}
\begin{minipage}{0.20\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{pic/nju-name.jpg}
\end{minipage}
\hfill
\begin{minipage}{0.50\textwidth}
\centering
\includegraphics[width=1\linewidth]{pic/cslogo.png}
\end{minipage}
\hfill
\begin{minipage}{0.20\textwidth}
\centering
\includegraphics[width=0.8\linewidth]{pic/nju-motto.jpg}
\end{minipage}
\end{center}
\end{figure}
\vspace{3em}
\begin{center}
{\Huge\calligra Thanks!}
\vspace{1em}
\rule{3cm}{0.4pt}
\vspace{2em}
{\Huge\MakeUppercase{Q\&A}}
\end{center}
\end{frame}
\appendix
\section*{参考文献}
\begin{frame}[plain, allowframebreaks]
\frametitle{参考文献}
\bibliographystyle{unsrt}
\bibliography{ref}
\end{frame}
\end{document}The first page, as this template compiles today. Click it to enlarge, and again to shrink. Open the file ↗