├── .gitattributes ├── .gitignore ├── Demo.tex ├── Image ├── Demo_1.png ├── Demo_2.png ├── Demo_3.png ├── Demo_4.png └── Demo_5.png ├── MakeDemo.bat ├── MakeThemeManual.bat ├── Makefile ├── README.md ├── XDUstyle.dtx ├── XDUstyle.pdf ├── XDUtheme ├── logo_xdblue.pdf ├── logo_xdred.pdf └── waves.pdf └── clean.bat /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | ## Core latex/pdflatex auxiliary files: 2 | *.aux 3 | *.lof 4 | *.log 5 | *.lot 6 | *.fls 7 | *.out 8 | *.toc 9 | *.fmt 10 | *.fot 11 | *.cb 12 | *.cb2 13 | 14 | ## Intermediate documents: 15 | *.dvi 16 | *-converted-to.* 17 | # these rules might exclude image files for figures etc. 18 | # *.ps 19 | # *.eps 20 | # *.pdf 21 | 22 | ## Bibliography auxiliary files (bibtex/biblatex/biber): 23 | *.bbl 24 | *.bcf 25 | *.blg 26 | *-blx.aux 27 | *-blx.bib 28 | *.brf 29 | *.run.xml 30 | 31 | ## Build tool auxiliary files: 32 | *.fdb_latexmk 33 | *.synctex 34 | *.synctex.gz 35 | *.synctex.gz(busy) 36 | *.pdfsync 37 | 38 | ## Auxiliary and intermediate files from other packages: 39 | # algorithms 40 | *.alg 41 | *.loa 42 | 43 | # achemso 44 | acs-*.bib 45 | 46 | # amsthm 47 | *.thm 48 | 49 | # beamer 50 | *.nav 51 | *.snm 52 | *.vrb 53 | 54 | # cprotect 55 | *.cpt 56 | 57 | # fixme 58 | *.lox 59 | 60 | #(r)(e)ledmac/(r)(e)ledpar 61 | *.end 62 | *.?end 63 | *.[1-9] 64 | *.[1-9][0-9] 65 | *.[1-9][0-9][0-9] 66 | *.[1-9]R 67 | *.[1-9][0-9]R 68 | *.[1-9][0-9][0-9]R 69 | *.eledsec[1-9] 70 | *.eledsec[1-9]R 71 | *.eledsec[1-9][0-9] 72 | *.eledsec[1-9][0-9]R 73 | *.eledsec[1-9][0-9][0-9] 74 | *.eledsec[1-9][0-9][0-9]R 75 | 76 | # glossaries 77 | *.acn 78 | *.acr 79 | *.glg 80 | *.glo 81 | *.gls 82 | *.glsdefs 83 | 84 | # gnuplottex 85 | *-gnuplottex-* 86 | 87 | # hyperref 88 | *.brf 89 | 90 | # knitr 91 | *-concordance.tex 92 | # TODO Comment the next line if you want to keep your tikz graphics files 93 | *.tikz 94 | *-tikzDictionary 95 | 96 | # listings 97 | *.lol 98 | 99 | # makeidx 100 | *.idx 101 | *.ilg 102 | *.ind 103 | *.ist 104 | 105 | # minitoc 106 | *.maf 107 | *.mlf 108 | *.mlt 109 | *.mtc 110 | *.mtc[0-9] 111 | *.mtc[1-9][0-9] 112 | 113 | # minted 114 | _minted* 115 | *.pyg 116 | 117 | # morewrites 118 | *.mw 119 | 120 | # mylatexformat 121 | *.fmt 122 | 123 | # nomencl 124 | *.nlo 125 | 126 | # sagetex 127 | *.sagetex.sage 128 | *.sagetex.py 129 | *.sagetex.scmd 130 | 131 | # sympy 132 | *.sout 133 | *.sympy 134 | sympy-plots-for-*.tex/ 135 | 136 | # pdfcomment 137 | *.upa 138 | *.upb 139 | 140 | # pythontex 141 | *.pytxcode 142 | pythontex-files-*/ 143 | 144 | # TikZ & PGF 145 | *.dpth 146 | *.md5 147 | *.auxlock 148 | 149 | # todonotes 150 | *.tdo 151 | 152 | # xindy 153 | *.xdy 154 | 155 | # xypic precompiled matrices 156 | *.xyc 157 | 158 | # endfloat 159 | *.ttt 160 | *.fff 161 | 162 | # Latexian 163 | TSWLatexianTemp* 164 | 165 | ## Editors: 166 | # WinEdt 167 | *.bak 168 | *.sav 169 | 170 | # Texpad 171 | .texpadtmp 172 | 173 | # Kile 174 | *.backup 175 | 176 | # KBibTeX 177 | *~[0-9]* 178 | 179 | # ========================= 180 | # Operating System Files 181 | # ========================= 182 | 183 | # OSX 184 | # ========================= 185 | 186 | .DS_Store 187 | .AppleDouble 188 | .LSOverride 189 | 190 | # Thumbnails 191 | ._* 192 | 193 | # Files that might appear in the root of a volume 194 | .DocumentRevisions-V100 195 | .fseventsd 196 | .Spotlight-V100 197 | .TemporaryItems 198 | .Trashes 199 | .VolumeIcon.icns 200 | 201 | # Directories potentially created on remote AFP share 202 | .AppleDB 203 | .AppleDesktop 204 | Network Trash Folder 205 | Temporary Items 206 | .apdisk 207 | 208 | # Windows 209 | # ========================= 210 | 211 | # Windows image file caches 212 | Thumbs.db 213 | ehthumbs.db 214 | 215 | # Folder config file 216 | Desktop.ini 217 | 218 | # Recycle Bin used on file shares 219 | $RECYCLE.BIN/ 220 | 221 | # Windows Installer files 222 | *.cab 223 | *.msi 224 | *.msm 225 | *.msp 226 | 227 | # Windows shortcuts 228 | *.lnk 229 | -------------------------------------------------------------------------------- /Demo.tex: -------------------------------------------------------------------------------- 1 | %!TEX program = xelatex 2 | \documentclass[10pt,mathserif]{beamer}%,aspectratio=169 %画面比例16:9% 3 | 4 | \usepackage{xeCJK} 5 | \usetheme[ 6 | sidebar, % 会在每页左侧加上导航栏,参考 The AAU Sidebar Beamer Theme 设置 7 | % xdblue, % 不选会默认西电红色调,选上会将主题设置为西电蓝色调 8 | % english % 选上,会将图表等标题还原回英文标题 9 | ]{XDUstyle} 10 | 11 | 12 | \title{标题} 13 | \subtitle{子标题} 14 | \institute[西安电子科技大学\\数学与统计学院]{西安电子科技大学数学与统计学院12级本科生} % 中括号部分为导航栏底所用尽可能精简 15 | \author{崔元顺} 16 | \date{\today}% 时间可自行设置 17 | 18 | \begin{document}% 19 | {\xdbg \frame[plain,noframenumbering]{\titlepage}}%首页标题页 20 | 21 | \part{测试部分} 22 | 23 | \section{大标题} 24 | \begin{frame}{大标题}{副标题} 25 | 测试页 26 | \end{frame} 27 | 28 | \subsection{子标题} 29 | \begin{frame}{子标题}{副标题} 30 | 测试页 31 | \end{frame} 32 | 33 | {\xdbg%末页致谢 34 | \begin{frame}[plain,noframenumbering] 35 | \finalpage{{\huge 感谢观看!}} 36 | \end{frame}} 37 | 38 | \end{document} -------------------------------------------------------------------------------- /Image/Demo_1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/Image/Demo_1.png -------------------------------------------------------------------------------- /Image/Demo_2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/Image/Demo_2.png -------------------------------------------------------------------------------- /Image/Demo_3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/Image/Demo_3.png -------------------------------------------------------------------------------- /Image/Demo_4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/Image/Demo_4.png -------------------------------------------------------------------------------- /Image/Demo_5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/Image/Demo_5.png -------------------------------------------------------------------------------- /MakeDemo.bat: -------------------------------------------------------------------------------- 1 | xelatex -synctex=1 -interaction=nonstopmode Demo 2 | xelatex -synctex=1 -interaction=nonstopmode Demo -------------------------------------------------------------------------------- /MakeThemeManual.bat: -------------------------------------------------------------------------------- 1 | xelatex XDUstyle.dtx 2 | makeindex -s gind.ist -o XDUstyle.ind XDUstyle.idx 3 | makeindex -s gglo.ist -o XDUstyle.gls XDUstyle.glo 4 | xelatex XDUstyle.dtx 5 | xelatex XDUstyle.dtx -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | xelatex: 2 | xelatex -synctex=1 -interaction=nonstopmode Demo 3 | xelatex -synctex=1 -interaction=nonstopmode Demo 4 | 5 | thememanual: 6 | xelatex XDUstyle.dtx 7 | makeindex -s gind.ist -o XDUstyle.ind XDUstyle.idx 8 | makeindex -s gglo.ist -o XDUstyle.gls XDUstyle.glo 9 | xelatex XDUstyle.dtx 10 | xelatex XDUstyle.dtx 11 | 12 | clean: 13 | rm -f *.toc *.bbl *.blg *.out *.aux *.log *.bak *.thm *.synctex.gz *.fdb_latexmk *.fls *.glo *.gls *.idx *.ilg *.ind *.nav *.snm 14 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 西安电子科技大学 Beamer 主题 2 | --- 3 | Xidian University Style Beamer Theme 4 | --- 5 | 6 | ## 声明 7 | 本主题参考西安电子科技大学VI系统而写,写作过程借鉴了 The AAU Sidebar Beamer Theme. 8 | 9 | ## 主题介绍 10 | 终于抽出了时间,将该项目整理了一下,希望之前 Fork 过本项目的同学更新一下,这次比之前的正规了许多,更加便于维护了。 11 | 12 | ### 参数设置 13 | 14 | 本主题默认参数设置为:西电红主题配色、中文图表等标题环境、无导航栏。 15 | 16 | 可选参数如下: 17 | 18 | sidebar % 插入导航栏 19 | xdblue % 将主题配色改为西电蓝风格 20 | english % 图表等标题为英文 21 | 22 | ## 使用方法 23 | 24 | ### Windows用户 25 | 26 | > 为方便 Windows 用户,专门写好了两种编译脚本;还有示例可供学习使用。 27 | 28 | **使用前,请仔细阅读 XDUstyle.pdf 主题用户手册!** 29 | 30 | `MakeThemeManual.bat` 脚本,生成主题和用户手册 31 | 32 | `MakeDemo.bat` 脚本,生成示例 Beamer 文件预览 33 | 34 | `Clean.bat` 脚本,清理编译过程的中间文件 35 | 36 | ### Linux/Mac用户 37 | 38 | #### 生成模板和用户说明手册 39 | 40 | ```bash 41 | $ make thememanual 42 | ``` 43 | 44 | #### 生成示例 45 | 46 | 使用`XeLaTeX`编译示例文档: 47 | 48 | ```bash 49 | $ make xelatex 50 | ``` 51 | 52 | #### 清理文件夹 53 | 54 | ```bash 55 | $ make clean 56 | ``` 57 | 58 | ### 文件(夹)介绍 59 | 60 | 用户手册:XDUstyle.pdf 61 | 62 | 主题主要文件(需编译生成): 63 | |--------- beamerthemeXDUstyle.sty % 主题文件 64 | |--------- beamerouterthemeXDUstyle.sty % 外部主题 65 | |--------- beamerinnerthemeXDUstyle.sty % 内部主题 66 | |--------- beamercolorthemeXDUstyle.sty % 配色主题 67 | 68 | 示例文件: 69 | |------- Demo.tex 70 | |------- Demo.pdf(需编译生成) 71 | 72 | 文件夹: 73 | |----- XDUtheme % 主题用到的矢量图文件夹 74 | |----- Image % 图片文件文件夹,用于存放自己用到的图片,避免与主题的混淆。 75 | 76 | ## 主题示例 77 | 78 | ![图一](./Image/Demo_1.png) 79 | ![图二](./Image/Demo_2.png) 80 | ![图三](./Image/Demo_3.png) 81 | ![图四](./Image/Demo_4.png) 82 | ![图五](./Image/Demo_5.png) 83 | 84 | -------------------------------------------------------------------------------- /XDUstyle.dtx: -------------------------------------------------------------------------------- 1 | % \iffalse meta-comment 2 | % !TeX program = XeLaTeX 3 | % !TeX encoding = UTF-8 4 | % 5 | % Copyright (C) 2015--2016 by Stick Cui 6 | % 7 | % This file may be distributed and/or modified under the 8 | % conditions of the LaTeX Project Public License, either version 1.3c 9 | % of this license or (at your option) any later version. 10 | % The latest version of this license is in: 11 | % 12 | % http://www.latex-project.org/lppl.txt 13 | % 14 | % and version 1.3c or later is part of all distributions of LaTeX 15 | % version 2008/05/04 or later. 16 | 17 | %<*internal> 18 | \def\nameofplainTeX{plain} 19 | \ifx\fmtname\nameofplainTeX\else 20 | \expandafter\begingroup 21 | \fi 22 | % 23 | %<*install> 24 | 25 | \input docstrip 26 | \keepsilent 27 | \askforoverwritefalse 28 | \preamble 29 | 30 | This is a generated file. 31 | 32 | Copyright (C) 2015--\the\year by Stick Cui 33 | 34 | This file may be distributed and/or modified under the 35 | conditions of the LaTeX Project Public License, either version 1.3c 36 | of this license or (at your option) any later version. 37 | The latest version of this license is in: 38 | 39 | http://www.latex-project.org/lppl.txt 40 | 41 | and version 1.3c or later is part of all distributions of LaTeX 42 | version 2008/05/04 or later. 43 | 44 | To produce the documentation run the original source files ending with `.dtx' 45 | through LaTeX. 46 | 47 | \endpreamble 48 | \postamble 49 | 50 | This package consists of the file XDUstyle.dtx, 51 | and the derived files XDUstyle.pdf, 52 | beamerthemeXDUstyle.sty, 53 | beamercolorthemeXDUstyle.sty, 54 | beamerinnerthemeXDUstyle.sty, 55 | beamerouterthemeXDUstyle.sty. 56 | 57 | \endpostamble 58 | 59 | \usedir{tex/latex/XDUstyle} 60 | \generate 61 | { 62 | \file{beamerthemeXDUstyle.sty}{\from{\jobname.dtx}{xdustyle}} 63 | \file{beamercolorthemeXDUstyle.sty}{\from{\jobname.dtx}{xducolorstyle}} 64 | \file{beamerinnerthemeXDUstyle.sty}{\from{\jobname.dtx}{xduinnerstyle}} 65 | \file{beamerouterthemeXDUstyle.sty}{\from{\jobname.dtx}{xduouterstyle}} 66 | } 67 | 68 | \Msg{***********************************************************} 69 | \Msg{*} 70 | \Msg{* To finish the installation you have to move the following} 71 | \Msg{* files into a directory searched by TeX:} 72 | \Msg{*} 73 | \Msg{* The recommended directory is TEXMF/tex/latex/XDUstyle} 74 | \Msg{*} 75 | \Msg{* \space\space beamerthemeXDUstyle.sty} 76 | \Msg{* \space\space beamercolorthemeXDUstyle.sty} 77 | \Msg{* \space\space beamerinnerthemeXDUstyle.sty} 78 | \Msg{* \space\space beamerouterthemeXDUstyle.sty} 79 | \Msg{*} 80 | \Msg{* To produce the documentation run the files ending with} 81 | \Msg{* `.dtx' through LaTeX.} 82 | \Msg{*} 83 | \Msg{* Happy TeXing!} 84 | \Msg{***********************************************************} 85 | 86 | % 87 | %\endbatchfile 88 | %<*internal> 89 | 90 | \usedir{tex/latex/XDUstyle} 91 | \generate 92 | { 93 | \file{\jobname.ins}{\from{\jobname.dtx}{install}} 94 | } 95 | \nopreamble\nopostamble 96 | 97 | \ifx\fmtname\nameofplainTeX 98 | \expandafter\endbatchfile 99 | \else 100 | \expandafter\endgroup 101 | \fi 102 | % 103 | %\NeedsTeXFormat{LaTeX2e} 104 | %\ProvidesPackage{beamerthemeXDUstyle} 105 | %\ProvidesPackage{beamercolorthemeXDUstyle} 106 | %\ProvidesPackage{beamerinnerthemeXDUstyle} 107 | %\ProvidesPackage{beamerouterthemeXDUstyle} 108 | %[2015/12/27 v0.0.1 The Xidian University Style Beamer Theme] 109 | %<*driver> 110 | \ProvidesFile{XDUstyle.dtx}[2015/12/27 v0.0.1 The Xidian University Style Beamer Theme] 111 | \documentclass[10pt]{ltxdoc} 112 | 113 | \usepackage[left=4cm,right=3cm,top=3cm,bottom=2cm]{geometry} 114 | \usepackage[SlantFont,BoldFont,CJKchecksingle]{xeCJK} 115 | \usepackage{indentfirst} 116 | \setlength{\parindent}{2em} 117 | \usepackage[toc,page,title,titletoc,header]{appendix} 118 | \usepackage{longtable,multirow,hhline,tabularx,array,makecell,booktabs,diagbox} 119 | \usepackage{metalogo,xcolor} 120 | \usepackage{pst-barcode}%二维码 121 | \usepackage{fancyvrb,CJKfntef} 122 | \usepackage[bookmarks=true,% 123 | linkcolor=black,% 124 | citecolor=black,% 125 | unicode=true,% 126 | colorlinks=true,% 127 | pdfborder=001,% 128 | linkcolor=black,% 129 | citecolor=black,% 130 | urlcolor=black, 131 | bookmarksnumbered=true%标签显示章节编号 132 | ]{hyperref} 133 | \def\XDUstyle{X\kern -.1667em\lower .5ex\hbox {D}\kern -.125emU\textit{style}{}} 134 | 135 | \renewcommand{\abstractname}{摘\quad 要} 136 | \renewcommand{\contentsname}{目\quad 录} 137 | \renewcommand{\appendixname}{附\quad 录} 138 | \renewcommand{\figurename}{图} 139 | \renewcommand{\tablename}{表} 140 | \renewcommand\refname{参考文献} 141 | \renewcommand{\indexname}{索\quad 引} 142 | \def\pkg#1{\texttt{#1}} 143 | 144 | \usepackage{fancyhdr} 145 | \setlength{\headheight}{15pt} 146 | \fancyhf{} 147 | \fancyhead[L]{\leftmark} 148 | \fancyhead[R]{\thepage} 149 | \renewcommand\headrulewidth{0.5pt} 150 | \renewcommand{\footrulewidth}{0pt} 151 | \fancypagestyle{headings}{ 152 | \fancyhf{} 153 | \fancyhead[C]{\contentsname} 154 | \renewcommand{\headrulewidth}{0.5pt} 155 | \renewcommand{\footrulewidth}{0pt}} 156 | \pagestyle{fancy} 157 | 158 | \newfontfamily\CouNew{Courier New} 159 | \def\codebasicfont{\fontfamily{Courier New}\selectfont} 160 | 161 | \DefineVerbatimEnvironment{example}{Verbatim}% 162 | {frame=single,framerule=0.3mm,rulecolor=\color{red!70!green!20!blue!20},% 163 | fillcolor=\color{red!75!green!50!blue!15},framesep=0.5mm,baselinestretch=1.2,% 164 | fontsize=\small,gobble=1} 165 | \DefineVerbatimEnvironment{shell}{Verbatim}% 166 | {frame=single,framerule=0.3mm,rulecolor=\color{red!0!green!25!blue!51},% 167 | fillcolor=\color{red!20!green!20!blue!50},framesep=0.5mm,fontsize=\small,gobble=1} 168 | 169 | \EnableCrossrefs 170 | \CodelineIndex 171 | \RecordChanges 172 | 173 | \begin{document} 174 | \DocInput{\jobname.dtx} 175 | \PrintChanges 176 | \PrintIndex 177 | \end{document} 178 | % 179 | % 180 | % \fi 181 | % 182 | % \CheckSum{611} 183 | % \CharacterTable 184 | % {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z 185 | % Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z 186 | % Digits \0\1\2\3\4\5\6\7\8\9 187 | % Exclamation \! Double quote \" Hash (number) \# 188 | % Dollar \$ Percent \% Ampersand \& 189 | % Acute accent \' Left paren \( Right paren \) 190 | % Asterisk \* Plus \+ Comma \, 191 | % Minus \- Point \. Solidus \/ 192 | % Colon \: Semicolon \; Less than \< 193 | % Equals \= Greater than \> Question mark \? 194 | % Commercial at \@ Left bracket \[ Backslash \\ 195 | % Right bracket \] Circumflex \^ Underscore \_ 196 | % Grave accent \` Left brace \{ Vertical bar \| 197 | % Right brace \} Tilde \~} 198 | % 199 | % \GetFileInfo{\jobname.dtx} 200 | % 201 | % \changes{v0.0.1}{2015/12/27}{Finish the Xidian University Style Beamer Theme initially.} 202 | % 203 | % \DoNotIndex{\begin,\end,\begingroup,\endgroup} 204 | % \DoNotIndex{\ifx,\ifdim,\ifnum,\ifcase,\else,\or,\fi} 205 | % \DoNotIndex{\let,\def,\xdef,\newcommand,\renewcommand} 206 | % \DoNotIndex{\expandafter,\csname,\endcsname,\relax,\protect} 207 | % \DoNotIndex{\Huge,\huge,\LARGE,\Large,\large,\normalsize} 208 | % \DoNotIndex{\small,\footnotesize,\scriptsize,\tiny} 209 | % \DoNotIndex{\normalfont,\bfseries,\slshape,\interlinepenalty} 210 | % \DoNotIndex{\hfil,\par,\hskip,\vskip,\vspace,\quad} 211 | % \DoNotIndex{\centering,\raggedright} 212 | % \DoNotIndex{\c@secnumdepth,\@startsection,\@setfontsize} 213 | % \DoNotIndex{\ ,\@plus,\@minus,\p@,\z@,\@m,\@M,\@ne,\m@ne} 214 | % \DoNotIndex{\@@par,\DeclareOperation,\RequirePackage,\LoadClass} 215 | % \DoNotIndex{\AtBeginDocument,\AtEndDocument} 216 | % 217 | % \IndexPrologue{\section*{索~~~~引}} 218 | % \GlossaryPrologue{\section*{修改记录}} 219 | % 220 | % \title{ 西安电子科技大学\XDUstyle{} Beamer主题\thanks{Xidian University \XDUstyle Beamer Theme}} 221 | % \author{崔元顺\thanks{西安电子科技大学数学与统计学院2012级本科生}} 222 | % \date{\fileversion\ (\filedate)} 223 | % 224 | % \maketitle\thispagestyle{empty} 225 | % \begin{abstract} 226 | % 本主题根据\href{http://news.xidian.edu.cn/zt/vis/index.htm}{西安电子科技大学VI系统}中演示文稿标准而制作, 227 | % 旨在帮助学校师生进行学术交流或其他需要演示文稿活动时,方便的使用\LaTeX{}制作含有学校特色的演示文稿。 228 | % \end{abstract} 229 | % 230 | % \vspace*{2em} 231 | % \def\abstractname{免责声明} 232 | % \begin{abstract} 233 | % \noindent 234 | % \begin{enumerate} 235 | % \item 本主题在制作时借鉴了 The AAU Sidebar Beamer Theme,且遵守 \LaTeX{} Project Public License,使用前请认真阅读协议内容。 236 | % \item 本主题的制作过程参考\href{http://news.xidian.edu.cn/zt/vis/index.htm}{西安电子科技大学VI系统},仅供\href{http://www.xidian.edu.cn}{西安电子科技大学}师生制作Beamer演示文稿使用。 237 | % \item 本主题为作者个人制作,使用仅供参考,任何由于使用本主题而引起的任何问题均与本主题作者无关。 238 | % \item 任何个人或组织以本主题为基础进行修改、扩展而生成的新的专用模板,请严格遵守 \LaTeX{} Project Public License 协议。由于违犯协议而引起的任何纠纷争端均与本模板作者无关。 239 | % \end{enumerate} 240 | % \end{abstract} 241 | % \clearpage 242 | % \thispagestyle{headings} 243 | % \begin{multicols}{2}[ 244 | % \setlength{\columnseprule}{.4pt} 245 | % \setlength{\columnsep}{18pt}] 246 | % \tableofcontents 247 | % \end{multicols} 248 | % \clearpage 249 | % \pagenumbering{arabic} 250 | % 251 | % \section{写在前面} 252 | % 本主题是我校的VI系统公布后,本人一直想要制作的,由于2015年的事比较多,拖了很久才做出初代版本。在看到The AAU Sidebar Beamer Theme主题后,结合其比较有特色的导航栏生成了本版本的\XDUstyle{}主题。 253 | % 254 | % 鉴于初代版本的代码未加整理便进行了托管,特将其整理后进行了上传发布。 255 | % 256 | % \section{主题介绍} 257 | % 本主题专门为我校师生所写,发布主旨已在前面提到,不再赘述。 258 | % 259 | % 在此,有关本模主题的使用方法以及相关注意事项,将尽可能地在本文中叙述; 260 | % 261 | % \subsection{主题组成} 262 | % \begin{longtable}[c]{l|m{9cm}} 263 | % \caption{\XDUstyle{} 主题主要文件(夹)及功能介绍}\label{Tab:XDUstyleALL}\\ 264 | % \hline 265 | % \textbf{文件(夹)} & \textbf{功能描述}\\\hline\hline 266 | % \endfirsthead 267 | % \multicolumn{2}{l}{(续表)}\\ 268 | % \hline 269 | % \textbf{文件(夹)} & \textbf{功能描述}\\\hline\hline 270 | % \endhead 271 | % \hline 272 | % \multicolumn{2}{c}{接下页$\cdots$} 273 | % \endfoot 274 | % \hline 275 | % \endlastfoot 276 | % 277 | % XDUstyle.dtx & 主题宏包、说明文档以及主题驱动文件的混排文件\\ 278 | % Demo.tex & 主题测试文档\\ 279 | % XDUtheme/ & 主题相关矢量图存储文件夹\\ 280 | % logo\_xdred.pdf & 西电校徽及校名logo(西电红)\\ 281 | % logo\_xdblue.pdf & 西电校徽及校名logo(西电蓝)\\ 282 | % Image/ & 图片存储文件夹,避免与主题图片混淆\\ 283 | % MakeThemeManual.bat & 生成主题与用户手册脚本\\ 284 | % MakeDemo.bat & 编译测试样例脚本\\ 285 | % Clean.bat & 编译过程中间文件清理Windows脚本\\ 286 | % Makefile & Linux \& Mac OS脚本\\ 287 | % \textbf{XDUstyle.pdf} & 用户手册(本文档)\\ 288 | % \end{longtable} 289 | % \textbf{注:}使用前,请仔细阅读\textbf{XDUstyle.pdf},即本文档。 290 | % 291 | % \subsection{使用前的准备} 292 | % 目前为止,本主题不需要依赖太多额外宏包,但 \pkg{tikz} 和 \pkg{calc} 宏包必须要有。 293 | % 294 | % \section{如何提问} 295 | % 这一节本想只介绍如何联系作者本人解决问题呢,后来想想,肯定忙不过来就算了。还是将 \XDUstyle{} 和 \LaTeX{} 本身的疑问分开来叙述比较妥当。 296 | % \subsection[关于XDUstyle主题的疑问]{关于\XDUstyle{} 模板的疑问} 297 | % 使用本模板的过程中,如有任何关于本主题的疑问或是不懂之处可通过以下渠道联系作者本人: 298 | % \begin{itemize} 299 | % \item 新浪微博:\href{http://weibo.com/StickCui}{I-am-13}. 或手机扫描以下二维码私信作者。 300 | % 301 | % \begin{center} 302 | % \begin{pspicture}(1.5in,1.5in) 303 | % \psbarcode{http://weibo.cn/qr/userinfo?uid=3024285285}{includetext guardwhitespace width=1.5 includetext guardwhitespace height=1.5 eclevel=H}{qrcode} 304 | % \end{pspicture} 305 | % \end{center} 306 | % 307 | % \item 邮箱:\href{mailto:Stick\_Cui@163.com}{Stick\_Cui@163.com} 308 | % \end{itemize} 309 | % 就说上面两个吧,知道作者QQ的童鞋还可以直接私聊。 310 | % 311 | % \subsection[关于LaTeX的疑问]{关于\LaTeX{} 的疑问} 312 | % 313 | % 使用\LaTeX{} 排版写作的过程不是一帆风顺的。一个完整的文章往往需要几十上百次,有的甚至上千次的编译调试才能完成。 314 | % 315 | % 中间碰到的任何问题都有可能把写作人绊住。因为不是所有问题都能单独去解决的,这时就需要去上网检索解决方案,但不是所有检索到的解决方案都是适用的,有些可能已过时。这就需要写作人一一辨别、尝试。 316 | % 317 | % 在这里作者给大家提几条网上检索的工具: 318 | % \begin{itemize} 319 | % \item 谷歌搜索: \href{https://www.google.com}{https://www.google.com} 320 | % 321 | % 这个一般国内用户无法使用,原因不提。但无疑它是最好的,有能力科学上网的用户可以选择它,如何检索不提了。 322 | % 323 | % \item 知乎: \href{http://www.zhihu.com}{http://www.zhihu.com} 324 | % 325 | % 知乎里面的\textbf{\LaTeX{}} 话题以及\textbf{\LaTeX{} 排版与设计}话题下有很多关于排版难题以及技巧的高质量答案。这方面领域的牛人有:\href{http://www.zhihu.com/people/qinglee}{李清}、\href{http://www.zhihu.com/people/li-a-ling}{李阿玲}\footnote{本名:马起园,男,pTeX-ng开发者}、\href{http://www.zhihu.com/people/liu-haiyang}{刘海洋}、\href{http://www.zhihu.com/people/LiamHuang}{孟晨}等。 326 | % 327 | % \item 百度:这个不给链接了,也不多解释了。 328 | % \end{itemize} 329 | % 330 | % \section{使用模板} 331 | % \subsection{如何编译}\label{SubSec:HowToMake} 332 | % \subsubsection{Windows用户} 333 | % 主题项目里已经列出了脚本:\\ 334 | % 首先双击 MakeThemeManual.bat 脚本,生成主题和用户手册;然后双击 MakeDemo.bat 脚本生成测试 Beamer 文件预览\footnote{如编译后有些索引标志位置不准确,请多编译几次。};最后双击 Clean.bat 清理编译过程的中间文件。 335 | % 336 | % \subsubsection{Linux \& Mac OS用户} 337 | % 首先运行下面命令生成主题和用户手册; 338 | % \begin{shell} 339 | % $ make thememanual 340 | % \end{shell} 341 | % 342 | % 然后运行下面命令生成测试 Beamer 文件预览; 343 | % \begin{shell} 344 | % $ make xelatex 345 | % \end{shell} 346 | % 347 | % 最后运行下面命令清理编译过程的中间文件。 348 | % \begin{shell} 349 | % $ make clean 350 | % \end{shell} 351 | % 352 | % \subsection{可选参数} 353 | % 可选参数部分比较多,目前时间有限,先列举最可能用到的三个,有时间有精力了,再详细讲解其他参数的功能(部分暂时无效或需要依赖其他参数)。 354 | % \begin{itemize} 355 | % \item \textbf{sidebar}:插入导航栏 356 | % \item \textbf{xdblue}:将主题配色改为西电蓝风格 357 | % \item \textbf{english}:图表等标题为英文 358 | % \end{itemize} 359 | % 360 | % \section{致谢} 361 | % 感谢The AAU Sidebar Beamer Theme的作者。感谢我自己,竟然能挤出这么多时间。人啊,就得逼自己一下。还要感谢昌旭同学,让我有信心厚着脸皮把该项目公布出来。 362 | % 363 | % \StopEventually{\PrintChanges\PrintIndex}% 364 | % \section{实现细节} 365 | % \subsection{主题主文件部分} 366 | % 导入必要宏包 367 | % \begin{macrocode} 368 | %<*xdustyle> 369 | \def\XDUstyle{X\kern -.1667em\lower .5ex\hbox {D}\kern -.125emU\textit{style}{}} 370 | \RequirePackage{tikz} 371 | \usetikzlibrary{external} 372 | \RequirePackage{calc} 373 | % \end{macrocode} 374 | % 主题选项 375 | % \begin{macrocode} 376 | \DeclareOptionBeamer{width}{\PassOptionsToPackage{width=#1}{beamerouterthemeXDUstyle}} 377 | \DeclareOptionBeamer{hideothersubsections} 378 | {\PassOptionsToPackage{hideothersubsections} 379 | {beamerouterthemeXDUstyle}} 380 | \DeclareOptionBeamer{hideallsubsections} 381 | {\PassOptionsToPackage{hideallsubsections} 382 | {beamerouterthemeXDUstyle}} 383 | \DeclareOptionBeamer{hidetitle} 384 | {\PassOptionsToPackage{hidetitle}{beamerouterthemeXDUstyle}} 385 | \DeclareOptionBeamer{hideauthor} 386 | {\PassOptionsToPackage{hideauthor}{beamerouterthemeXDUstyle}} 387 | \DeclareOptionBeamer{hideinstitute} 388 | {\PassOptionsToPackage{hideinstitute}{beamerouterthemeXDUstyle}} 389 | \DeclareOptionBeamer{shownavsym}{\PassOptionsToPackage{shownavsym}{beamerouterthemeXDUstyle}} 390 | 391 | \DeclareOptionBeamer{xdred}{% 392 | \PassOptionsToPackage{xdred}{beamercolorthemeXDUstyle}% 393 | \PassOptionsToPackage{xdred}{beamerinnerthemeXDUstyle}% 394 | \PassOptionsToPackage{xdred}{beamerouterthemeXDUstyle}% 395 | } 396 | \DeclareOptionBeamer{xdblue}{% 397 | \PassOptionsToPackage{xdblue}{beamercolorthemeXDUstyle}% 398 | \PassOptionsToPackage{xdblue}{beamerinnerthemeXDUstyle}% 399 | \PassOptionsToPackage{xdblue}{beamerouterthemeXDUstyle}% 400 | } 401 | \DeclareOptionBeamer{english}{% 402 | \PassOptionsToPackage{english}{beamerinnerthemeXDUstyle}% 403 | } 404 | \DeclareOptionBeamer{sidebar}{% 405 | \PassOptionsToPackage{sidebar}{beamercolorthemeXDUstyle}% 406 | \PassOptionsToPackage{sidebar}{beamerinnerthemeXDUstyle}% 407 | \PassOptionsToPackage{sidebar}{beamerouterthemeXDUstyle}% 408 | } 409 | \ProcessOptionsBeamer 410 | % \end{macrocode} 411 | % 特殊设置 412 | % \begin{macrocode} 413 | \mode 414 | { 415 | \useinnertheme{XDUstyle} 416 | \useoutertheme{XDUstyle} 417 | \usecolortheme{XDUstyle} 418 | }%end of beamer specific options 419 | 420 | \mode 421 | % 422 | % \end{macrocode} 423 | % \subsection{主题配色文件部分} 424 | % 参数设置 425 | % \begin{macrocode} 426 | %<*xducolorstyle> 427 | \DeclareOptionBeamer{xdred}{\def\beamer@xducolor{xdred}}%缺省默认 428 | \DeclareOptionBeamer{xdblue}{\def\beamer@xducolor{xdblue}} 429 | \DeclareOptionBeamer{sidebar}{\def\beamer@xdusidebar{true}}%缺省无 430 | \ProcessOptionsBeamer 431 | 432 | \def\beamer@xducolorblue{xdblue} 433 | % \end{macrocode} 434 | % 特殊设置,颜色设置。 435 | % \begin{macrocode} 436 | \mode 437 | { 438 | \ifx\beamer@xducolor\beamer@xducolorblue% 439 | \definecolor{beamer@barcolor}{RGB}{38,81,107}% 冷色系辅助色 440 | \definecolor{beamer@headercolor}{RGB}{0,65,130}% xdblue 441 | \definecolor{beamer@normaltextcolor}{RGB}{0,0,0}% balck 442 | \else% 443 | \definecolor{beamer@barcolor}{RGB}{180,76,76}% 暖色系辅助色 444 | \definecolor{beamer@headercolor}{RGB}{175,33,37}% xdred 445 | \definecolor{beamer@normaltextcolor}{RGB}{0,0,0}% black 446 | \fi% 447 | 448 | \setbeamercolor{structure}{fg=beamer@headercolor} 449 | \setbeamercolor{normal text}{fg=beamer@normaltextcolor,bg=white} 450 | \setbeamercolor{frametitle}{fg=white,bg=beamer@headercolor} 451 | \ifx\beamer@xdusidebar\undefined% 452 | {}% 453 | \else% 454 | \setbeamercolor{XDUsidebar}{fg=gray!50,bg=white}% 455 | \fi% 456 | }%end of beamer specific options 457 | 458 | \mode 459 | % 460 | % \end{macrocode} 461 | % \subsection{内部主题文件部分} 462 | % 必要宏包 463 | % \begin{macrocode} 464 | %<*xduinnerstyle> 465 | \RequirePackage{tikz} 466 | \usetikzlibrary{external} 467 | % \end{macrocode} 468 | % 参数设置 469 | % \begin{macrocode} 470 | \DeclareOptionBeamer{xdred}{\def\beamer@xducolor{xdred}} 471 | \DeclareOptionBeamer{xdblue}{\def\beamer@xducolor{xdblue}} 472 | \DeclareOptionBeamer{sidebar}{\def\beamer@sidebar{true}} 473 | \DeclareOptionBeamer{english}{\def\beamer@english{true}} 474 | \ProcessOptionsBeamer 475 | 476 | \newlength{\beamer@plainpagewidth} 477 | \def\beamer@xducolorblue{xdblue} 478 | % \end{macrocode} 479 | % 特殊设置 480 | % \begin{macrocode} 481 | \mode 482 | { 483 | % \end{macrocode} 484 | % 标题页设置 485 | % \begin{macrocode} 486 | \setbeamertemplate{title page}{% 487 | {}\vspace*{\baselineskip} 488 | \ifx\beamer@sidebar\undefined% 489 | \setlength{\beamer@plainpagewidth}{\textwidth} 490 | \else% 491 | \setlength{\beamer@plainpagewidth}{\textwidth+\beamer@leftsidebar}% 492 | \hskip-\beamer@leftsidebar% 493 | \fi% 494 | \begin{minipage}[c][\textheight][c]{\beamer@plainpagewidth} 495 | \ifx\beamer@xducolor\beamer@xducolorblue% 496 | \includegraphics[width=4cm]{XDUtheme/logo_xdblue}% 497 | \else% 498 | \includegraphics[width=4cm]{XDUtheme/logo_xdred}% 499 | \fi% 500 | \vfill 501 | \centering 502 | {\usebeamerfont{title}\usebeamercolor[fg]{title}\inserttitle} 503 | 504 | {\usebeamerfont{subtitle}\usebeamercolor[fg]{subtitle}\insertsubtitle}\vspace*{\baselineskip} 505 | 506 | \begin{beamercolorbox}[wd=\beamer@plainpagewidth,center,sep=\baselineskip]{frametitle}% 507 | {\usebeamerfont{author}\insertauthor}\vspace*{\baselineskip} 508 | 509 | {\usebeamerfont{institute}\insertinstitute}\vspace*{\baselineskip} 510 | 511 | {\usebeamerfont{date}\insertdate}\vspace*{\baselineskip} 512 | \end{beamercolorbox}\vspace*{\baselineskip} 513 | \vfill 514 | {}\vspace*{\baselineskip} 515 | \end{minipage} 516 | } 517 | % \end{macrocode} 518 | % 结尾页设置 519 | % \begin{macrocode} 520 | \defbeamertemplate{final page}{text}[1]{% 521 | {}\vspace*{\baselineskip} 522 | \ifx\beamer@sidebar\undefined% 523 | \setlength{\beamer@plainpagewidth}{\textwidth} 524 | \else% 525 | \setlength{\beamer@plainpagewidth}{\textwidth+\beamer@leftsidebar}% 526 | \hskip-\beamer@leftsidebar% 527 | \fi% 528 | \begin{minipage}[c][\textheight][c]{\beamer@plainpagewidth} 529 | \ifx\beamer@xducolor\beamer@xducolorblue% 530 | \includegraphics[width=4cm]{XDUtheme/logo_xdblue}% 531 | \else% 532 | \includegraphics[width=4cm]{XDUtheme/logo_xdred}% 533 | \fi% 534 | \vfill 535 | \centering 536 | \vspace*{-2\baselineskip} 537 | \begin{beamercolorbox}[wd=\textwidth,center,sep=2\baselineskip]{frametitle} 538 | #1 539 | \end{beamercolorbox} 540 | \vfill 541 | {}\vspace*{\baselineskip} 542 | \end{minipage} 543 | } 544 | \newcommand{\finalpage}[1]{% 545 | \setbeamertemplate{final page}[text]{#1} 546 | \usebeamertemplate{final page} 547 | } 548 | % \end{macrocode} 549 | % 设置背景,采用自定义命令形式,作用于底层 550 | % \begin{macrocode} 551 | \newcommand{\xdbg}{ 552 | \setbeamertemplate{background}{% 设置背景 553 | \tikzexternaldisable 554 | \begin{tikzpicture}[overlay] 555 | \fill[structure.fg] (0,-\paperheight+3ex) rectangle (2ex,-\paperheight+4ex); 556 | \fill[structure.fg] (0ex,-\paperheight+5ex) rectangle (2ex,-\paperheight+6ex); 557 | \fill[structure.fg] (0ex,-\paperheight+7ex) rectangle (2ex,-\paperheight+8ex); 558 | \fill[structure.fg] (0ex,-\paperheight+9ex) rectangle (2ex,-\paperheight+10ex); 559 | \fill[structure.fg] (0ex,-\paperheight+11ex) rectangle (2ex,-\paperheight+12ex); 560 | \end{tikzpicture}% 561 | \tikzexternalenable 562 | } 563 | } 564 | % \end{macrocode} 565 | % 对图表,参考文献等进行个性化设置,并做中文环境下的汉化操作 566 | % \begin{macrocode} 567 | \setbeamertemplate{bibliography item}[text] 568 | \setbeamertemplate{caption}[numbered] 569 | \setbeamercovered{transparent} 570 | \ifx\beamer@english\undefined% 571 | \renewcommand{\figurename}{图} 572 | \renewcommand{\tablename}{表} 573 | \renewcommand\refname{参考文献} 574 | \fi% 575 | % \end{macrocode} 576 | % Part页设置,分别对中英文环境下进行了个性化设置 577 | % \begin{macrocode} 578 | \AtBeginPart{{\xdbg\frame[plain,noframenumbering]{% 579 | {}\vspace*{\baselineskip}% 580 | \ifx\beamer@sidebar\undefined% 581 | \ifx\beamer@xducolor\beamer@xducolorblue% 582 | \includegraphics[width=4cm]{XDUtheme/logo_xdblue}% 583 | \else% 584 | \includegraphics[width=4cm]{XDUtheme/logo_xdred}% 585 | \fi% 586 | \vspace*{-3\baselineskip}% 587 | \partpage 588 | \else% 589 | \hskip-1.6\beamer@height% 590 | \ifx\beamer@xducolor\beamer@xducolorblue% 591 | \includegraphics[width=4cm]{XDUtheme/logo_xdblue}% 592 | \else% 593 | \includegraphics[width=4cm]{XDUtheme/logo_xdred}% 594 | \fi% 595 | \vspace*{-3\baselineskip}% 596 | \hskip-1.6\beamer@height% 597 | \partpage 598 | \fi% 599 | }}} 600 | \defbeamertemplate*{part page}{sidebar theme}{% 601 | \ifx\beamer@sidebar\undefined% 602 | \setlength{\beamer@plainpagewidth}{\textwidth} 603 | \else% 604 | \setlength{\beamer@plainpagewidth}{\textwidth+\beamer@leftsidebar}% 605 | \hskip-\beamer@leftsidebar% 606 | \fi% 607 | \begin{minipage}[c][\textheight][c]{\beamer@plainpagewidth} 608 | \centering 609 | \ifx\beamer@english\undefined% 610 | {\usebeamerfont{title}\usebeamercolor[fg]{author}{第 \Roman{part} 部分}}\vspace*{\baselineskip} 611 | \else% 612 | {\usebeamerfont{title}\usebeamercolor[fg]{author}{Part \Roman{part}}}\vspace*{\baselineskip} 613 | \fi% 614 | 615 | {\usebeamerfont{title}\usebeamercolor[fg]{title}{\insertpart}} 616 | \end{minipage} 617 | } 618 | % \end{macrocode} 619 | % 设置结束 620 | % \begin{macrocode} 621 | } 622 | 623 | \mode 624 | % 625 | % \end{macrocode} 626 | % \subsection{外部主题文件部分} 627 | % 必要宏包部分 628 | % \begin{macrocode} 629 | %<*xduouterstyle> 630 | \RequirePackage{tikz} 631 | \usetikzlibrary{external} 632 | \RequirePackage{calc} 633 | % \end{macrocode} 634 | % 参数设置 635 | % \begin{macrocode} 636 | \newlength{\beamer@width} 637 | \setlength{\beamer@width}{2cm} 638 | \DeclareOptionBeamer{width}{\beamer@width=#1} 639 | \DeclareOptionBeamer{sidebar}{\def\beamer@sidebar{true}} 640 | \DeclareOptionBeamer{hideothersubsections}[]{\beamer@nav@subsectionstyle{show/show/hide}} 641 | \DeclareOptionBeamer{hideallsubsections}[]{\beamer@nav@subsectionstyle{hide}} 642 | \DeclareOptionBeamer{hidetitle}{\def\beamer@hidetitle{true}} 643 | \DeclareOptionBeamer{hideauthor}{\def\beamer@hideauthor{true}} 644 | \DeclareOptionBeamer{hideinstitute}{\def\beamer@hideinst{true}} 645 | \DeclareOptionBeamer{shownavsym}{\def\beamer@shownavsym{true}} 646 | \DeclareOptionBeamer{xdred}{\def\beamer@xducolor{xdred}} 647 | \DeclareOptionBeamer{xdblue}{\def\beamer@xducolor{xdblue}} 648 | \DeclareOptionBeamer{sidebar}{\def\beamer@sidebar{true}} 649 | \ProcessOptionsBeamer 650 | 651 | \def\beamer@xducolorblue{xdblue} 652 | %the height of the header is 1.8 times the lineheight of the frame title 653 | \newlength{\beamer@height} 654 | \usebeamerfont{frametitle} %use the frame title font 655 | \setlength{\beamer@height}{1.8\baselineskip} 656 | \reset@font %reset fonts 657 | %width of vertical bar separating the main text from the sidebar 658 | \newlength{\beamer@barwidth} 659 | % the bar width depends on the header height (by a factor of 7.5) 660 | \setlength{\beamer@barwidth}{2\beamer@height/15} 661 | % \end{macrocode} 662 | % 特殊设置 663 | % \begin{macrocode} 664 | \mode% 665 | { 666 | % \end{macrocode} 667 | % 关于导航栏 668 | % \begin{macrocode} 669 | \ifx\beamer@sidebar\undefined% 670 | {} 671 | \else% 672 | \ifbeamercolorempty[fg]{XDUsidebar}{% 673 | %define the sidebar color if it is not defined 674 | %(which may be due to that the XDUsidebar color theme is not loaded) 675 | \setbeamercolor{XDUsidebar} 676 | {use={structure,palette sidebar primary},fg=palette sidebar primary.fg,bg=structure.fg} 677 | }{% 678 | % 679 | } 680 | \setbeamersize{sidebar width left=\beamer@width} 681 | \setbeamersize{text margin left=0.5cm,text margin right=0.5cm} 682 | \fi% 683 | % \end{macrocode} 684 | % 关于标题栏 685 | % \begin{macrocode} 686 | \defbeamertemplate*{headline}{XDUstyle theme}{% 687 | \XDUheaderbackground% 688 | } 689 | % \end{macrocode} 690 | % 帧标题模板设置 691 | % \begin{macrocode} 692 | \defbeamertemplate*{frametitle}{XDUstyle theme}{% 693 | \begin{minipage}[c][\beamer@height][c]{\textwidth-\beamer@height/2} 694 | \begin{flushright} 695 | {\usebeamercolor[fg]{frametitle}\usebeamerfont{frametitle}\insertframetitle\par}% 696 | {\usebeamercolor[fg]{framesubtitle}\usebeamerfont{framesubtitle}\insertframesubtitle\par}% 697 | \end{flushright} 698 | \end{minipage} 699 | \hfill% 700 | } 701 | % \end{macrocode} 702 | % 导航栏内容设置 703 | % \begin{macrocode} 704 | \ifx\beamer@sidebar\undefined% 705 | {} 706 | \else% 707 | %sidebar 708 | \defbeamertemplate*{sidebar left}{XDUstyle theme}{% 709 | \XDUsidebarbackground% 710 | \vspace{\beamer@height}% 711 | \vspace{2\baselineskip}\par% 712 | \ifx\beamer@hidetitle\undefined% insert short title 713 | \vspace{-\baselineskip} 714 | \hspace{0.05\beamer@width}% 715 | {% 716 | \usebeamercolor[fg]{title in sidebar} 717 | \usebeamerfont{title in sidebar}% 718 | \insertshorttitle[width={0.9\beamer@width},center,respectlinebreaks] 719 | }% 720 | \hspace{0.05\beamer@width} 721 | \vspace{2\baselineskip}\par% 722 | \fi 723 | \ifx\beamer@hideauthor\undefined% insert short author 724 | \vspace{-\baselineskip} 725 | \hspace{0.05\beamer@width}% 726 | {% 727 | \usebeamercolor[fg]{author in sidebar} 728 | \usebeamerfont{author in sidebar}% 729 | \insertshortauthor[width={0.9\beamer@width},center,respectlinebreaks] 730 | } 731 | \hspace{0.05\beamer@width} 732 | \vspace{\baselineskip}\par% 733 | \fi 734 | \insertverticalnavigation{\beamer@width}% 735 | \strut\vfill% 736 | \ifx\beamer@hideinst\undefined% insert short institute 737 | \vbox{\hspace{0.05\beamer@width}% 738 | {% 739 | \usebeamercolor[fg]{title in sidebar} 740 | \usebeamerfont{subtitle in sidebar}% 741 | \insertshortinstitute[width={0.9\beamer@width},center,respectlinebreaks] 742 | } 743 | \hspace{0.05\beamer@width}% 744 | \vspace*{\baselineskip} 745 | }% 746 | \fi 747 | \ifx\beamer@shownavsym\undefined% insert navigation symbols 748 | %do nothing 749 | \else 750 | % 751 | \fi 752 | } 753 | 754 | % current section in the sidebar 755 | \defbeamertemplate*{section in sidebar}{XDUstyle theme}{% 756 | \vbox{% 757 | \vskip1ex% add some extra space when inserting a new section 758 | \sidebarnavitem{4pt}{section in sidebar}{% 759 | \sidebarcurframe{\insertframenumber}% 760 | \insertsectionhead 761 | } 762 | } 763 | } 764 | 765 | % all section in the sidebar but the current 766 | \defbeamertemplate*{section in sidebar shaded}{XDUstyle theme}{% 767 | \vbox{% 768 | \vskip1ex% add some extra space when inserting a new section 769 | \sidebarnavitem{4pt}{section in sidebar shaded}{\insertsectionhead} 770 | } 771 | } 772 | 773 | % current subsection in the sidebar 774 | \defbeamertemplate*{subsection in sidebar}{XDUstyle theme}{% 775 | \sidebarnavitem{6pt}{subsection in sidebar}{ 776 | \sidebarcurframe{\insertframenumber}% 777 | \insertsubsectionhead 778 | } 779 | } 780 | 781 | % all subsection in the sidebar but the current 782 | \defbeamertemplate*{subsection in sidebar shaded}{XDUstyle theme}{% 783 | \sidebarnavitem{6pt}{subsection in sidebar shaded}{\insertsubsectionhead} 784 | } 785 | 786 | % current subsubsection in the sidebar 787 | \defbeamertemplate*{subsubsection in sidebar}{XDUstyle theme}{% 788 | \sidebarnavitem{8pt}{subsubsection in sidebar}{ 789 | \sidebarcurframe{\insertframenumber}% 790 | \insertsubsubsectionhead 791 | } 792 | } 793 | 794 | % all subsubsection in the sidebar but the current 795 | \defbeamertemplate*{subsubsection in sidebar shaded}{XDUstyle theme}{% 796 | \sidebarnavitem{8pt}{subsubsection in sidebar shaded}{\insertsubsubsectionhead} 797 | } 798 | \fi% 799 | % \end{macrocode} 800 | % 导航符号设置,暂未指定; 801 | % \begin{macrocode} 802 | \ifx\beamer@shownavsym\undefined% insert navigation symbols 803 | \setbeamertemplate{navigation symbols}{% 804 | %disable navigation symbols 805 | } 806 | \fi 807 | } 808 | % \end{macrocode} 809 | % 标题栏背景绘制 810 | % \begin{macrocode} 811 | \newcommand{\XDUheaderbackground}[0]{% 812 | \tikzexternaldisable 813 | \begin{tikzpicture}[overlay] 814 | 815 | 816 | \coordinate (UC) at (\paperwidth,0); %upper right corner of the slide 817 | \coordinate (LC) at (3ex+3.4cm,-\paperheight); %lower left corner of the slide 818 | \coordinate (BS) at (\paperwidth,-\beamer@height+1ex); %start coordinate of the bar 819 | \coordinate (BE) at (\beamer@width+\beamer@barwidth/2,-\paperheight); %end coordinate of the bar 820 | \coordinate (BF) at (3ex+3.4cm,-\beamer@height); 821 | 822 | \coordinate (IS) at (BS -| BE); %intersection 823 | 824 | \coordinate (XDL1) at (0,0); 825 | \coordinate (XDR1) at (4ex,-\beamer@height/9); 826 | \coordinate (XDL2) at (0,-2\beamer@height/9); 827 | \coordinate (XDR2) at (4ex,-3\beamer@height/9); 828 | \coordinate (XDL3) at (0,-4\beamer@height/9); 829 | \coordinate (XDR3) at (4ex,-5\beamer@height/9); 830 | \coordinate (XDL4) at (0,-6\beamer@height/9); 831 | \coordinate (XDR4) at (4ex,-7\beamer@height/9); 832 | \coordinate (XDL5) at (0,-8\beamer@height/9); 833 | \coordinate (XDR5) at (4ex,-\beamer@height); 834 | 835 | \fill[gray!50] (BF) rectangle (BS); 836 | {\usebeamercolor{frametitle}% 837 | \draw[draw=none,fill=frametitle.bg] (UC) rectangle (IS -| LC); 838 | \draw[draw=none,fill=frametitle.bg] (XDL1) rectangle (XDR1); 839 | \draw[draw=none,fill=frametitle.bg] (XDL2) rectangle (XDR2); 840 | \draw[draw=none,fill=frametitle.bg] (XDL3) rectangle (XDR3); 841 | \draw[draw=none,fill=frametitle.bg] (XDL4) rectangle (XDR4); 842 | \draw[draw=none,fill=frametitle.bg] (XDL5) rectangle (XDR5); 843 | } 844 | 845 | \coordinate (logopos) at ([yshift=\beamer@height/2] IS);%coordinate of the logo 846 | \ifx\beamer@xducolor\beamer@xducolorblue% 847 | \node at (logopos) {\includegraphics[width=3cm]{XDUtheme/logo_xdblue}}; 848 | \else% 849 | \node at (logopos) {\includegraphics[width=3cm]{XDUtheme/logo_xdred}}; 850 | \fi% 851 | \end{tikzpicture}% 852 | \tikzexternalenable 853 | } 854 | % \end{macrocode} 855 | % 导航栏背景、标签、导航符号等绘制 856 | % \begin{macrocode} 857 | \ifx\beamer@sidebar\undefined% 858 | {} 859 | \else 860 | % the fancy background in the sidebar 861 | \newcommand{\XDUsidebarbackground}[0]{% 862 | \tikzexternaldisable 863 | \begin{tikzpicture}[remember picture,overlay] 864 | \coordinate (BS) at (\paperwidth,-\beamer@height); %start coordinate of the bar 865 | \coordinate (DBS) at (\paperwidth,-\beamer@height-6.5ex); 866 | \coordinate (BE) at (\beamer@width+\beamer@barwidth/2,-\paperheight); %end coordinate of the bar 867 | \coordinate (IS) at (BS -| BE); %intersection 868 | \coordinate (DIS) at (DBS -| BE); 869 | %draw the thick line 870 | {\usebeamercolor{XDUsidebar}% 871 | \draw[color=fg,line width=\beamer@barwidth] (IS) -- (BE); 872 | } 873 | %draw the circle with the total frame number 874 | {\usebeamercolor{palette sidebar primary}% 875 | \usebeamercolor{XDUsidebar}% 876 | \usebeamerfont{subsection in sidebar}% 877 | \node[fill=palette sidebar primary.bg,draw=XDUsidebar.fg,circle,very thick,minimum width=4mm] at ([yshift=2mm] BE) 878 | {{\usebeamercolor[fg]{subsection in sidebar}\inserttotalframenumber}}; 879 | \node[fill=palette sidebar primary.bg,draw=XDUsidebar.fg,circle,very thick,minimum width=4mm] at ([yshift=2mm] DIS) 880 | {{\usebeamercolor[fg]{subsection in sidebar}1}}; 881 | } 882 | \end{tikzpicture}% 883 | \tikzexternalenable 884 | } 885 | 886 | % sidebar navigation item 887 | \newcommand{\sidebarnavitem}[3]{% 888 | \begin{beamercolorbox}[wd=\beamer@width,leftskip=#1,rightskip=1ex plus1fil,vmode]{#2} 889 | \vbox{}% insert a blank line 890 | #3\par% 891 | \vbox{}% insert a blank line 892 | \vskip-1.5ex% 893 | \end{beamercolorbox} 894 | } 895 | 896 | % current frame number 897 | \newcommand{\sidebarcurframe}[1]{% 898 | \tikzexternaldisable 899 | \begin{tikzpicture}[remember picture,overlay] 900 | \coordinate (CS) at (0,0.8ex); % coordinate of the current section 901 | \coordinate (CF) at (IS |- CS); % coordinate of the current frame number 902 | {% 903 | \usebeamercolor{palette sidebar primary}% 904 | \usebeamercolor{XDUsidebar}% 905 | % \draw[color=bg,line width=\beamer@barwidth] (IS) -| (CF); 906 | \node[fill=palette sidebar primary.bg,draw=XDUsidebar.fg,circle,minimum width=3.5mm,thick] at (CF) 907 | {{\fontsize{4}{5}\selectfont{\usebeamercolor[fg]{subsection in sidebar}#1}}}; 908 | } 909 | \end{tikzpicture}% 910 | \tikzexternalenable 911 | } 912 | \fi% 913 | % \end{macrocode} 914 | % 设置结束 915 | % \begin{macrocode} 916 | \mode 917 | % 918 | % \end{macrocode} 919 | % 920 | % \Finale 921 | % 922 | \endinput -------------------------------------------------------------------------------- /XDUstyle.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/XDUstyle.pdf -------------------------------------------------------------------------------- /XDUtheme/logo_xdblue.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/XDUtheme/logo_xdblue.pdf -------------------------------------------------------------------------------- /XDUtheme/logo_xdred.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/XDUtheme/logo_xdred.pdf -------------------------------------------------------------------------------- /XDUtheme/waves.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/StickCui/XDUstyle-Beamer-Theme/33dbc6d65d473c5b7f7a1bbec4e2ee6bfb7556ce/XDUtheme/waves.pdf -------------------------------------------------------------------------------- /clean.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | del *.toc /s 3 | del *.bbl /s 4 | del *.blg /s 5 | del *.out /s 6 | del *.aux /s 7 | del *.log /s 8 | del *.bak /s 9 | del *.thm /s 10 | del *.synctex.gz /s 11 | del *.fdb_latexmk /s 12 | del *.fls /s 13 | del *.glo /s 14 | del *.gls /s 15 | del *.idx /s 16 | del *.ilg /s 17 | del *.ind /s 18 | del *.nav /s 19 | del *.snm /s --------------------------------------------------------------------------------