diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..91fbe1d --- /dev/null +++ b/.gitignore @@ -0,0 +1,12 @@ +*.aux +*.bbl +*.blg +*.fdb_latexmk +*.fls +*.log +*.out +*.synctex.gz +*.toc +*.xdv +.DS_Store +logo/.DS_Store \ No newline at end of file diff --git a/logo/NJU_Logo.jpg b/logo/NJU_Logo.jpg new file mode 100644 index 0000000..35aa57f Binary files /dev/null and b/logo/NJU_Logo.jpg differ diff --git a/logo/NJU_LogoAndName.jpg b/logo/NJU_LogoAndName.jpg new file mode 100644 index 0000000..e86750e Binary files /dev/null and b/logo/NJU_LogoAndName.jpg differ diff --git a/sample.pdf b/sample.pdf new file mode 100644 index 0000000..4a5be25 Binary files /dev/null and b/sample.pdf differ diff --git a/sample.tex b/sample.tex new file mode 100644 index 0000000..f576cfc --- /dev/null +++ b/sample.tex @@ -0,0 +1,66 @@ +\documentclass[xetex,mathserif,serif,handout]{beamer} +\usepackage{style} +\addbibresource{sample_ref.bib} + + +\begin{document} + \title{起一个帅气一点的标题} + \author{徐子豪} + \id{151242052} + \institute{匡亚明学院} + \date{\today} + + \frame{\titlepage} + + \begin{frame} + \frametitle{目录} + \makecontents + \end{frame} + + \section{第一节} + \begin{frame} + \frametitle{标题} + 这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文这里是正文\cite{XENON1T:SD} + \end{frame} + + \section{第二节} + \subsection{第二节第一部分} + \begin{frame} + \frametitle{标题} + \begin{figure} + \centering + \includegraphics[width=0.8\textwidth]{logo/NJU_LogoAndName.jpg} + \caption{这里是Caption。} + \end{figure} + \end{frame} + \subsection{第二节第二部分} + \begin{frame} + \frametitle{标题} + \end{frame} + \subsection{第二节第三部分} + \begin{frame} + \frametitle{标题} + \end{frame} + + + \section{第三节} + \subsection{第三节第一部分} + \begin{frame} + \frametitle{标题} + \end{frame} + \subsection{第三节第二部分} + \begin{frame} + \frametitle{标题} + \end{frame} + \subsection{第三节第三部分} + \begin{frame} + \frametitle{标题} + \end{frame} + + \section{第四节} + \begin{frame} + \frametitle{标题} + \end{frame} + + +\end{document} \ No newline at end of file diff --git a/sample_ref.bib b/sample_ref.bib new file mode 100644 index 0000000..6fe4390 --- /dev/null +++ b/sample_ref.bib @@ -0,0 +1,16 @@ +@article{XENON1T:SD, + author = "Aprile, E. and others", + title = "{Constraining the spin-dependent WIMP-nucleon cross + sections with XENON1T}", + collaboration = "XENON", + journal = "Phys. Rev. Lett.", + volume = "122", + year = "2019", + number = "14", + pages = "141301", + doi = "10.1103/PhysRevLett.122.141301", + eprint = "1902.03234", + archivePrefix = "arXiv", + primaryClass = "astro-ph.CO", + SLACcitation = "%%CITATION = ARXIV:1902.03234;%%" +} \ No newline at end of file diff --git a/style.sty b/style.sty new file mode 100644 index 0000000..e9cf2f6 --- /dev/null +++ b/style.sty @@ -0,0 +1,121 @@ +\usepackage{ctex} +\usepackage{setspace} +% \usepackage[english]{babel} +\usepackage[backend=biber,style=nature]{biblatex} + + + +\setCJKfamilyfont{zhsong}[AutoFakeBold = {2.17}]{STSong} +\renewcommand*{\songti}{\CJKfamily{zhsong}} +\setCJKfamilyfont{zhkai}[AutoFakeBold = {2.17}]{STKaiti} +\renewcommand*{\kaishu}{\CJKfamily{zhkai}} +\setCJKfamilyfont{zhhei}[AutoFakeBold = {2.17}]{STHeiti} +\renewcommand*{\heiti}{\CJKfamily{zhhei}} + +\setbeamerfont{title}{family=\zihao{3}\bfseries} +\setbeamerfont{frametitle}{family=\zihao{-3}\bfseries} +\setbeamerfont{block title}{family=\heiti} +\setbeamerfont{author}{family=\zihao{5}\kaishu} +\setbeamerfont{institute}{family=\zihao{5}\kaishu} +\setbeamerfont{id}{family=\zihao{5}\kaishu} +\setbeamerfont{date}{family=\zihao{5}\kaishu} +\setbeamerfont{caption}{family=\zihao{-5}\kaishu} +\setbeamerfont{footnote}{family=\zihao{-6}\kaishu} +\setbeamerfont{section in toc}{family=\zihao{5}\heiti} +\setbeamerfont{subsection in toc}{family=\zihao{-5}\songti} +\setbeamerfont{section number projected}{family=\usebeamerfont{section in toc}} +\setbeamerfont{subsection number projected}{family=\usebeamerfont{subsection in toc}} + +\definecolor{njuPurple}{RGB}{110,15,109} +\setbeamercolor{background canvas}{bg=white} +\setbeamercolor{block body}{bg=normal text.bg!90!black} +\setbeamercolor{block title}{bg=njuPurple, fg=white} +\setbeamercolor{frametitle}{fg=njuPurple} +\setbeamercolor{title}{bg=njuPurple, fg=white} +\setbeamercolor{structure}{fg=njuPurple} +\setbeamercolor{footnote}{fg=black, bg=black} +\setbeamercolor{section number projected}{bg=njuPurple,fg=white} +\setbeamercolor{subsection number projected}{bg=njuPurple,fg=white} + + +\setbeamertemplate{footline}[page number]{} +\setbeamertemplate{navigation symbols}{} +\setbeamertemplate{blocks}[rounded][shadow=false] +\setbeamertemplate{block title}[rounded] +\setbeamertemplate{section in toc}[sections numbered] +\setbeamertemplate{subsection in toc}[subsections numbered] +\setbeamertemplate{title page} +{ + \vfill + \vskip-10pt\hskip-10pt + \includegraphics[width=0.25\paperwidth]{logo/NJU_LogoAndName.jpg}\\ + \vskip40pt + \hfill + \begin{beamercolorbox}[rounded=true,wd=0.75\paperwidth,shadow=true]{title} + \centering\begin{spacing}{1.1}\usebeamerfont{title}\inserttitle\end{spacing} + \end{beamercolorbox} + \hfill\hfill + \vskip25pt + \hfill\usebeamerfont{author}姓名: \insertauthor\quad\quad\usebeamerfont{id}学号: \insertid\hfill\hfill + \vskip10pt + \hfill\usebeamerfont{institute}院系: \insertinstitute\hfill\hfill + \vskip10pt + \hfill\usebeamerfont{date}答辩日期: \insertdate\hfill\hfill + \vfill +} +\setbeamertemplate{frametitle} +{ + \vskip10pt\hskip-10pt + \includegraphics[height=25pt]{logo/NJU_Logo.jpg} + \vskip-28pt\hskip20pt + \usebeamerfont{title}\usebeamercolor{title}\insertframetitle + \vskip-10pt\noindent\hskip15pt\rule{0.8\paperwidth}{1pt} + \vskip-5pt +} +\setbeamertemplate{headline}{} + + +\newcommand{\id}[1]{\newcommand{\insertid}{#1}} +\renewcommand*{\cite}[1]{\footnote[frame]{\fullcite{#1}}} +\newcommand*{\makecontents} +{ + \begin{spacing}{1.5} + \hfill + \parbox[t]{.95\textwidth} + { + \begin{minipage}[c][0.75\textheight]{\textwidth} + \tableofcontents + \end{minipage} + } + \end{spacing} +} +\AtBeginSection[] +{ + \begin{frame} + \frametitle{目录} + \begin{spacing}{1.5} + \hfill + \parbox[t]{.95\textwidth} + { + \begin{minipage}[c][0.1\textheight]{\textwidth} + \tableofcontents[currentsection] + \end{minipage} + } + \end{spacing} + \end{frame} +} +\AtBeginSubsection[] +{ + \begin{frame} + \frametitle{目录} + \begin{spacing}{1.5} + \hfill + \parbox[t]{.95\textwidth} + { + \begin{minipage}[c][0.75\textheight]{\textwidth} + \tableofcontents[currentsection,currentsubsection] + \end{minipage} + } + \end{spacing} + \end{frame} +}