├── sjtu-logo.pdf ├── sjtu-name.pdf ├── sjtu-badge.pdf ├── figure ├── cn_100t.png ├── bookdown │ ├── tip.png │ ├── citr.png │ ├── cover.jpg │ ├── logo.png │ ├── note.png │ ├── by-nc-sa.png │ ├── caution.png │ ├── disqus.png │ ├── gitbook.png │ ├── warning.png │ ├── dedication.pdf │ ├── important.png │ ├── knit-logo.png │ └── mathquill.png ├── pressure15.jpg ├── pressure25.jpg └── flow_chart.tex ├── handed_pdf ├── original.pdf └── authorization.pdf ├── tex ├── content.tex ├── patents.tex ├── pubreview.tex ├── projectsreview.tex ├── projects.tex ├── app_flow_chart.tex ├── publications.tex ├── ack.tex ├── acknowledgements.tex ├── resume.tex ├── pub.tex ├── info.tex ├── summary.tex ├── abstract.tex ├── nomenclature.tex ├── app_maxwell_equations.tex ├── end_english_abstract.tex ├── template.tex ├── intro.tex ├── math_and_citations.tex └── floats.tex ├── .gitignore ├── _bookdown.yml ├── SJTUThesis-Rmd.Rproj ├── _output.yml ├── Makefile ├── rmd ├── 500-summary.Rmd ├── 000-abstract.Rmd ├── 001-symbol.Rmd ├── 101-intro.Rmd ├── 103-latex.Rmd └── 102-chapters.Rmd ├── _render.R ├── index.Rmd ├── sjtuthesis.sty ├── README.md ├── bib ├── packages.bib └── thesis.bib ├── sjtuthesis-bachelor.ltx ├── sjtuthesis-graduate.ltx └── sjtuthesis.cls /sjtu-logo.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/sjtu-logo.pdf -------------------------------------------------------------------------------- /sjtu-name.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/sjtu-name.pdf -------------------------------------------------------------------------------- /sjtu-badge.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/sjtu-badge.pdf -------------------------------------------------------------------------------- /figure/cn_100t.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/cn_100t.png -------------------------------------------------------------------------------- /figure/bookdown/tip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/tip.png -------------------------------------------------------------------------------- /figure/pressure15.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/pressure15.jpg -------------------------------------------------------------------------------- /figure/pressure25.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/pressure25.jpg -------------------------------------------------------------------------------- /handed_pdf/original.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/handed_pdf/original.pdf -------------------------------------------------------------------------------- /figure/bookdown/citr.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/citr.png -------------------------------------------------------------------------------- /figure/bookdown/cover.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/cover.jpg -------------------------------------------------------------------------------- /figure/bookdown/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/logo.png -------------------------------------------------------------------------------- /figure/bookdown/note.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/note.png -------------------------------------------------------------------------------- /tex/content.tex: -------------------------------------------------------------------------------- 1 | % 目录、插图目录、表格目录 2 | \tableofcontents 3 | \listoffigures 4 | \listoftables 5 | %\listofalgorithms -------------------------------------------------------------------------------- /figure/bookdown/by-nc-sa.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/by-nc-sa.png -------------------------------------------------------------------------------- /figure/bookdown/caution.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/caution.png -------------------------------------------------------------------------------- /figure/bookdown/disqus.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/disqus.png -------------------------------------------------------------------------------- /figure/bookdown/gitbook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/gitbook.png -------------------------------------------------------------------------------- /figure/bookdown/warning.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/warning.png -------------------------------------------------------------------------------- /handed_pdf/authorization.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/handed_pdf/authorization.pdf -------------------------------------------------------------------------------- /figure/bookdown/dedication.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/dedication.pdf -------------------------------------------------------------------------------- /figure/bookdown/important.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/important.png -------------------------------------------------------------------------------- /figure/bookdown/knit-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/knit-logo.png -------------------------------------------------------------------------------- /figure/bookdown/mathquill.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/bubifengyun/SJTUThesis-Rmd/HEAD/figure/bookdown/mathquill.png -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | .Rproj.user 2 | .Rhistory 3 | .RData 4 | .Ruserdata 5 | _book/* 6 | _bookdown_files 7 | sjtu-thesis-rmd.* 8 | *.aux 9 | -------------------------------------------------------------------------------- /_bookdown.yml: -------------------------------------------------------------------------------- 1 | book_filename: sjtu-thesis-rmd 2 | rmd_subdir: TRUE 3 | clean: [bib/thesis.bib, bib/packages.bib] 4 | delete_merged_file: TRUE 5 | -------------------------------------------------------------------------------- /tex/patents.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{patents} 6 | \item 第一发明人,“永动机”,专利申请号202510149890.0 7 | \end{patents} 8 | 9 | \begin{patents*} 10 | \item 第一发明人,“永动机”,专利申请号XXXXXXXXXXXX.X 11 | \end{patents*} 12 | 13 | %TC:endignore 14 | -------------------------------------------------------------------------------- /tex/pubreview.tex: -------------------------------------------------------------------------------- 1 | %# -*- coding: utf-8-unix -*- 2 | % !TEX program = xelatex 3 | % !TEX root = ../thesis.tex 4 | % !TEX encoding = UTF-8 Unicode 5 | 6 | \begin{publications}[99] 7 | \item\textsc{第一作者}. {中文核心期刊论文}, 2007. 8 | \item\textsc{第一作者}. {EI国际会议论文}, 2006. 9 | \end{publications} 10 | -------------------------------------------------------------------------------- /SJTUThesis-Rmd.Rproj: -------------------------------------------------------------------------------- 1 | Version: 1.0 2 | 3 | RestoreWorkspace: Default 4 | SaveWorkspace: Default 5 | AlwaysSaveHistory: Default 6 | 7 | EnableCodeIndexing: Yes 8 | UseSpacesForTab: Yes 9 | NumSpacesForTab: 2 10 | Encoding: UTF-8 11 | 12 | RnwWeave: Sweave 13 | LaTeX: XeLaTeX 14 | 15 | BuildType: Makefile 16 | -------------------------------------------------------------------------------- /tex/projectsreview.tex: -------------------------------------------------------------------------------- 1 | %# -*- coding: utf-8-unix -*- 2 | % !TEX program = xelatex 3 | % !TEX root = ../thesis.tex 4 | % !TEX encoding = UTF-8 Unicode 5 | 6 | \begin{projects}[99] 7 | \item 参与973项目子课题(2007年6月--2008年5月) 8 | \item 参与自然基金项目(2005年5月--2005年8月) 9 | \item 参与国防项目(2005年8月--2005年10月) 10 | \end{projects} 11 | -------------------------------------------------------------------------------- /_output.yml: -------------------------------------------------------------------------------- 1 | bookdown::pdf_book: 2 | keep_tex: yes 3 | dev: cairo_pdf 4 | latex_engine: xelatex 5 | citation_package: biblatex 6 | template: tex/template.tex 7 | pandoc_args: ["--listings", "--top-level-division=chapter"] 8 | quote_footer: ["\\VA{", "}{}"] 9 | md_extensions: -smart 10 | output_extensions: -smart 11 | -------------------------------------------------------------------------------- /tex/projects.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{projects} 6 | \item 参与973项目子课题(2007年6月--2008年5月) 7 | \item 参与自然基金项目(2005年5月--2005年8月) 8 | \item 参与国防项目(2005年8月--2005年10月) 9 | \end{projects} 10 | 11 | \begin{projects*} 12 | \item 973项目“XXX” 13 | \item 自然基金项目“XXX” 14 | \item 国防项目“XXX” 15 | \end{projects*} 16 | 17 | %TC:endignore 18 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | pdf: 2 | Rscript _render.R "bookdown::pdf_book" 3 | 4 | wordcount: 5 | @texcount _book/sjtu-thesis-rmd.tex -inc -ch-only | awk '/total/ {getline; print "纯中文字数\t\t\t:",$$4}' 6 | @texcount _book/sjtu-thesis-rmd.tex -inc -char-only | awk '/total/ {getline; print "英文字符数\t\t\t:",$$4}' 7 | @texcount _book/sjtu-thesis-rmd.tex -inc -chinese | awk '/total/ {getline; print "总字数(英文单词 + 中文字)\t:",$$4}' 8 | -------------------------------------------------------------------------------- /tex/app_flow_chart.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \chapter{绘制流程图} 4 | 5 | 图~\ref{fig:flow_chart} 是一张流程图示意。使用 \pkg{tikz} 环境,搭配四种预定义节 6 | 点(\verb+startstop+、\verb+process+、\verb+decision+和\verb+io+),可以容易地绘 7 | 制出流程图。 8 | 9 | \begin{figure}[!htp] 10 | \centering 11 | \resizebox{6cm}{!}{\input{figure/flow_chart.tex}} 12 | \bicaption{绘制流程图效果}{Flow chart} 13 | \label{fig:flow_chart} 14 | \end{figure} 15 | -------------------------------------------------------------------------------- /tex/publications.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{publications} 6 | \item Chen H, Chan C~T. Acoustic cloaking in three dimensions using acoustic metamaterials[J]. Applied Physics Letters, 2007, 91:183518. 7 | \item Chen H, Wu B~I, Zhang B, et al. Electromagnetic Wave Interactions with a Metamaterial Cloak[J]. Physical Review Letters, 2007, 99(6):63903. 8 | \end{publications} 9 | 10 | \begin{publications*} 11 | \item 第一作者. 中文核心期刊论文, 2007. 12 | \item 第一作者. EI 国际会议论文, 2006. 13 | \end{publications*} 14 | 15 | %TC:endignore 16 | -------------------------------------------------------------------------------- /tex/ack.tex: -------------------------------------------------------------------------------- 1 | %# -*- coding: utf-8-unix -*- 2 | % !TEX program = xelatex 3 | % !TEX root = ../thesis.tex 4 | % !TEX encoding = UTF-8 Unicode 5 | \begin{acknowledgements} 6 | 7 | 感谢所有测试和使用交大学位论文 \LaTeX 模板的同学! 8 | 9 | 感谢那位最先制作出博士学位论文 \LaTeX 模板的交大物理系同学! 10 | 11 | 感谢William Wang同学对模板移植做出的巨大贡献! 12 | 13 | 感谢 \href{https://github.com/weijianwen}{@weijianwen} 学长一直以来的开发和维护工作! 14 | 15 | 感谢 \href{https://github.com/sjtug}{@sjtug} 以及 \href{https://github.com/dyweb}{@dyweb} 对 0.9.5 之后版本的开发和维护工作! 16 | 17 | 感谢所有为模板贡献过代码的同学们, 以及所有测试和使用模板的各位同学! 18 | 19 | \end{acknowledgements} 20 | -------------------------------------------------------------------------------- /tex/acknowledgements.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{acknowledgements} 6 | 感谢那位最先制作出博士学位论文 \LaTeX 模板的交大物理系同学! 7 | 8 | 感谢 William Wang 同学对模板移植做出的巨大贡献! 9 | 10 | 感谢 \href{https://github.com/weijianwen}{@weijianwen} 学长一直以来的开发和维 11 | 护工作! 12 | 13 | 感谢 \href{https://github.com/sjtug}{@sjtug} 以及 14 | \href{https://github.com/dyweb}{@dyweb} 对 0.9.5 之后版本的开发和维护工作! 15 | 16 | 感谢所有为模板贡献过代码的同学们, 以及所有测试和使用模板的各位同学! 17 | 18 | 感谢 \LaTeX 和 \href{https://github.com/sjtug/SJTUThesis}{\sjtuthesis},帮我节 19 | 省了不少时间。 20 | \end{acknowledgements} 21 | 22 | %TC:endignore 23 | -------------------------------------------------------------------------------- /tex/resume.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{resume} 6 | \subsection*{基本情况} 7 | 某某,yyyy 年 mm 月生于 xxxx。 8 | 9 | \subsection*{教育背景} 10 | \begin{itemize} 11 | \item yyyy 年 mm 月至今,上海交通大学,博士研究生,xx 专业 12 | \item yyyy 年 mm 月至 yyyy 年 mm 月,上海交通大学,硕士研究生,xx 专业 13 | \item yyyy 年 mm 月至 yyyy 年 mm 月,上海交通大学,本科,xx 专业 14 | \end{itemize} 15 | 16 | \subsection*{研究兴趣} 17 | \LaTeX{} 排版 18 | 19 | \subsection*{联系方式} 20 | \begin{itemize} 21 | \item 地址: 上海市闵行区东川路 800 号,200240 22 | \item E-mail: \email{xxx@sjtu.edu.cn} 23 | \end{itemize} 24 | \end{resume} 25 | 26 | %TC:endignore 27 | -------------------------------------------------------------------------------- /tex/pub.tex: -------------------------------------------------------------------------------- 1 | %# -*- coding: utf-8-unix -*- 2 | % !TEX program = xelatex 3 | % !TEX root = ../thesis.tex 4 | % !TEX encoding = UTF-8 Unicode 5 | %%================================================== 6 | %% pub.tex for SJTUThesis 7 | %% Encoding: UTF-8 8 | %%================================================== 9 | 10 | \begin{publications}[99] 11 | \item\textsc{Chen H, Chan C~T}. {Acoustic cloaking in three dimensions using acoustic metamaterials}[J]. Applied Physics Letters, 2007, 91:183518. 12 | \item\textsc{Chen H, Wu B~I, Zhang B}, et al. {Electromagnetic Wave Interactions with a Metamaterial Cloak}[J]. Physical Review Letters, 2007, 99(6):63903. 13 | \end{publications} 14 | -------------------------------------------------------------------------------- /tex/info.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \title{上海交通大学学位论文 \LaTeX{} 模板示例文档} 6 | \author{某\quad{}某} 7 | \studentid{0010900990} 8 | \supervisor{某某教授} 9 | % \assisupervisor{某某教授} 10 | \degree{工学硕士} 11 | \major{某某专业} 12 | \department{某某系} 13 | \coursename{某某课程} 14 | \date{2014年12月17日} 15 | % \fund{国家 973 项目 (No. 2025CB000000) \\ 国家自然科学基金 (No. 81120250000)} 16 | \keywords{上海交大, 饮水思源, 爱国荣校} 17 | 18 | \entitle{A Sample Document for \LaTeX-based SJTU Thesis Template} 19 | \enauthor{Mo Mo} 20 | \ensupervisor{Prof. Mou Mou} 21 | % \enassisupervisor{Prof. Uom Uom} 22 | \endegree{Master of Engineering} 23 | \enmajor{A Very Important Major} 24 | \endepartment{Depart of XXX} 25 | \endate{Dec. 17th, 2014} 26 | % \enfund{National Basic Research Program of China (Grant No. 2025CB000000) \\ 27 | % National Natural Science Foundation of China (Grant No. 81120250000)} 28 | \enkeywords{SJTU, master thesis, XeTeX/LaTeX template} 29 | 30 | %TC:endignore 31 | -------------------------------------------------------------------------------- /rmd/500-summary.Rmd: -------------------------------------------------------------------------------- 1 | \input{tex/summary} 2 | 3 | \summary 4 | 5 | 这里是全文总结内容。 6 | 7 | 2015 年 2 月 28 日,中央在北京召开全国精神文明建设工作表彰暨学雷锋志愿服务大会, 8 | 公布全国文明城市(区)、文明村镇、文明单位名单。上海交通大学荣获全国文明单位称 9 | 号。 10 | 11 | 全国文明单位这一荣誉是对交大人始终高度重视文明文化工作的肯定,是对交大长期以来文 12 | 明创建工作成绩的褒奖。在学校党委、文明委的领导下,交大坚持将文明创建工作纳入学校 13 | 建设世界一流大学的工作中,全体师生医护员工群策群力、积极开拓,落实国家和上海市有 14 | 关文明创建的各项要求,以改革创新、科学发展为主线,以质量提升为目标,聚焦文明创建 15 | 工作出现的重点和难点,优化文明创建工作机制,传播学校良好形象,提升社会美誉度,显 16 | 著增强学校软实力。2007 至 2012 年间,上海交大连续三届荣获“上海市文明单位”称 17 | 号,成为创建全国文明单位的新起点。 18 | 19 | 上海交大自启动争创全国文明单位工作以来,凝魂聚气、改革创新,积极培育和践行社会主 20 | 义核心价值观。坚持统筹兼顾、多措并举,将争创全国文明单位与学校各项中心工作紧密结 21 | 合,着力构建学校文明创建新格局,不断提升师生医护员工文明素养,以“冲击世界一流大 22 | 学汇聚强大精神动力”为指导思想,以“聚焦改革、多元推进、以评促建、丰富内涵、彰显 23 | 特色”为工作原则,并由全体校领导群策领衔“党的建设深化、思想教育深入、办学成绩显 24 | 著、大学文化丰富、校园环境优化、社会责任担当”六大板块共 28 项重点突破工作,全面 25 | 展现近年来交大文明创建工作的全貌和成就。 26 | 27 | 进入新阶段,学校将继续开拓文明创建工作新格局,不断深化工作理念和工作实践,创新工 28 | 作载体、丰富活动内涵、凸显创建成效,积极服务于学校各项中心工作和改革发展的大局 29 | 面,在上级党委、文明委的关心下,在学校党委的直接领导下,与时俱进、开拓创新,为深 30 | 化内涵建设、加快建成世界一流大学、推动国家进步和社会发展而努力奋斗! 31 | 32 | 上海交通大学医学院附属仁济医院也获得全国文明单位称号。 -------------------------------------------------------------------------------- /tex/summary.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \begin{summary} 4 | 这里是全文总结内容。 5 | 6 | 2015 年 2 月 28 日,中央在北京召开全国精神文明建设工作表彰暨学雷锋志愿服务大会, 7 | 公布全国文明城市(区)、文明村镇、文明单位名单。上海交通大学荣获全国文明单位称 8 | 号。 9 | 10 | 全国文明单位这一荣誉是对交大人始终高度重视文明文化工作的肯定,是对交大长期以来文 11 | 明创建工作成绩的褒奖。在学校党委、文明委的领导下,交大坚持将文明创建工作纳入学校 12 | 建设世界一流大学的工作中,全体师生医护员工群策群力、积极开拓,落实国家和上海市有 13 | 关文明创建的各项要求,以改革创新、科学发展为主线,以质量提升为目标,聚焦文明创建 14 | 工作出现的重点和难点,优化文明创建工作机制,传播学校良好形象,提升社会美誉度,显 15 | 著增强学校软实力。2007 至 2012 年间,上海交大连续三届荣获“上海市文明单位”称 16 | 号,成为创建全国文明单位的新起点。 17 | 18 | 上海交大自启动争创全国文明单位工作以来,凝魂聚气、改革创新,积极培育和践行社会主 19 | 义核心价值观。坚持统筹兼顾、多措并举,将争创全国文明单位与学校各项中心工作紧密结 20 | 合,着力构建学校文明创建新格局,不断提升师生医护员工文明素养,以“冲击世界一流大 21 | 学汇聚强大精神动力”为指导思想,以“聚焦改革、多元推进、以评促建、丰富内涵、彰显 22 | 特色”为工作原则,并由全体校领导群策领衔“党的建设深化、思想教育深入、办学成绩显 23 | 著、大学文化丰富、校园环境优化、社会责任担当”六大板块共 28 项重点突破工作,全面 24 | 展现近年来交大文明创建工作的全貌和成就。 25 | 26 | 进入新阶段,学校将继续开拓文明创建工作新格局,不断深化工作理念和工作实践,创新工 27 | 作载体、丰富活动内涵、凸显创建成效,积极服务于学校各项中心工作和改革发展的大局 28 | 面,在上级党委、文明委的关心下,在学校党委的直接领导下,与时俱进、开拓创新,为深 29 | 化内涵建设、加快建成世界一流大学、推动国家进步和社会发展而努力奋斗! 30 | 31 | 上海交通大学医学院附属仁济医院也获得全国文明单位称号。 32 | \end{summary} 33 | -------------------------------------------------------------------------------- /tex/abstract.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \begin{abstract} 4 | 中文摘要应该将学位论文的内容要点简短明了地表达出来,应该包含论文中的基本信息, 5 | 体现科研工作的核心思想。摘要内容应涉及本项科研工作的目的和意义、研究方法、研究 6 | 成果、结论及意义。注意突出学位论文中具有创新性的成果和新见解的部分。摘要中不宜 7 | 使用公式、化学结构式、图表和非公知公用的符号和术语,不标注引用文献编号。硕士学 8 | 位论文中文摘要字数为 500 字左右,博士学位论文中文摘要字数为 800 字左右。英文摘 9 | 要内容应与中文摘要内容一致。 10 | 11 | 摘要页的下方注明本文的关键词(4~6个)。 12 | \end{abstract} 13 | 14 | \begin{enabstract} 15 | Shanghai Jiao Tong University (SJTU) is a key university in China. SJTU was 16 | founded in 1896. It is one of the oldest universities in China. The University 17 | has nurtured large numbers of outstanding figures include JIANG Zemin, DING 18 | Guangen, QIAN Xuesen, Wu Wenjun, WANG An, etc. 19 | 20 | SJTU has beautiful campuses, Bao Zhaolong Library, Various laboratories. It 21 | has been actively involved in international academic exchange programs. It is 22 | the center of CERNet in east China region, through computer networks, SJTU has 23 | faster and closer connection with the world. 24 | \end{enabstract} 25 | -------------------------------------------------------------------------------- /rmd/000-abstract.Rmd: -------------------------------------------------------------------------------- 1 | \frontmatter 2 | 3 | \begin{abstract} 4 | 中文摘要应该将学位论文的内容要点简短明了地表达出来,应该包含论文中的基本信息, 5 | 体现科研工作的核心思想。摘要内容应涉及本项科研工作的目的和意义、研究方法、研究 6 | 成果、结论及意义。注意突出学位论文中具有创新性的成果和新见解的部分。摘要中不宜 7 | 使用公式、化学结构式、图表和非公知公用的符号和术语,不标注引用文献编号。硕士学 8 | 位论文中文摘要字数为 500 字左右,博士学位论文中文摘要字数为 800 字左右。英文摘 9 | 要内容应与中文摘要内容一致。 10 | 11 | 摘要页的下方注明本文的关键词(4~6个)。 12 | \end{abstract} 13 | 14 | \begin{enabstract} 15 | Shanghai Jiao Tong University (SJTU) is a key university in China. SJTU was 16 | founded in 1896. It is one of the oldest universities in China. The University 17 | has nurtured large numbers of outstanding figures include JIANG Zemin, DING 18 | Guangen, QIAN Xuesen, Wu Wenjun, WANG An, etc. 19 | 20 | SJTU has beautiful campuses, Bao Zhaolong Library, Various laboratories. It 21 | has been actively involved in international academic exchange programs. It is 22 | the center of CERNet in east China region, through computer networks, SJTU has 23 | faster and closer connection with the world. 24 | \end{enabstract} 25 | 26 | \include{tex/content} 27 | -------------------------------------------------------------------------------- /_render.R: -------------------------------------------------------------------------------- 1 | quiet = "--quiet" %in% commandArgs(FALSE) 2 | format = commandArgs(TRUE) 3 | travis = !is.na(Sys.getenv('CI', NA)) 4 | 5 | # 配置源 6 | local({ 7 | r = getOption('repos') 8 | if (!length(r) || all(r['CRAN'] == '@CRAN@')) r['CRAN'] = 'https://cran.rstudio.com' 9 | options(repos = r) 10 | }) 11 | 12 | # 填上你需要用到的包 13 | 14 | if (system.file(package = 'rmarkdown') == '') 15 | remotes::install_github('rstudio/rmarkdown') 16 | if (system.file(package = 'bookdown') == '') 17 | install.packages('bookdown') 18 | 19 | lapply(c('diagram','DT', 'citr', 'formatR', 'svglite', 'webshot', 'devtools', 'shape'), function(pkg) { 20 | if (system.file(package = pkg) == '') install.packages(pkg) 21 | }) 22 | 23 | src = (function() { 24 | attr(body(sys.function()), 'srcfile') 25 | })()$filename 26 | if (is.null(src) || src == '') src = '.' 27 | owd = setwd(dirname(src)) 28 | 29 | # provide default format if necessary 30 | if (length(format) == 0) format = 'bookdown::pdf_book' 31 | # render the book to all formats unless they are specified via command-line args 32 | 33 | cmd = sprintf("bookdown::render_book('index.Rmd', '%s', quiet = %s)", format, quiet) 34 | res = bookdown:::Rscript(c('-e', shQuote(cmd))) 35 | if (res != 0) stop('Failed to compile the book to ', format) 36 | 37 | setwd(owd) 38 | -------------------------------------------------------------------------------- /figure/flow_chart.tex: -------------------------------------------------------------------------------- 1 | \begin{tikzpicture}[node distance=2cm] 2 | \node (pic) [startstop] {待测图片}; 3 | \node (bg) [io, below of=pic] {读取背景}; 4 | \node (pair) [process, below of=bg] {匹配特征点对}; 5 | \node (threshold) [decision, below of=pair, yshift=-0.5cm] {多于阈值}; 6 | \node (clear) [decision, right of=threshold, xshift=3cm] {清晰?}; 7 | \node (capture) [process, right of=pair, xshift=3cm, yshift=0.5cm] {重采}; 8 | \node (matrix_p) [process, below of=threshold, yshift=-0.8cm] {透视变换矩阵}; 9 | \node (matrix_a) [process, right of=matrix_p, xshift=3cm] {仿射变换矩阵}; 10 | \node (reg) [process, below of=matrix_p] {图像修正}; 11 | \node (return) [startstop, below of=reg] {配准结果}; 12 | 13 | %连接具体形状 14 | \draw [arrow](pic) -- (bg); 15 | \draw [arrow](bg) -- (pair); 16 | \draw [arrow](pair) -- (threshold); 17 | 18 | \draw [arrow](threshold) -- node[anchor=south] {否} (clear); 19 | 20 | \draw [arrow](clear) -- node[anchor=west] {否} (capture); 21 | \draw [arrow](capture) |- (pic); 22 | \draw [arrow](clear) -- node[anchor=west] {是} (matrix_a); 23 | \draw [arrow](matrix_a) |- (reg); 24 | 25 | \draw [arrow](threshold) -- node[anchor=east] {是} (matrix_p); 26 | \draw [arrow](matrix_p) -- (reg); 27 | \draw [arrow](reg) -- (return); 28 | \end{tikzpicture} 29 | -------------------------------------------------------------------------------- /rmd/001-symbol.Rmd: -------------------------------------------------------------------------------- 1 | \input{tex/nomenclature} 2 | # 主要符号对照表 3 | 4 | \begin{nomenclature}{rl} 5 | \label{chap:symb} 6 | $\epsilon$ & 介电常数 \\ 7 | $\mu$ & 磁导率 \\ 8 | $\epsilon$ & 介电常数 \\ 9 | $\mu$ & 磁导率 \\ 10 | $\epsilon$ & 介电常数 \\ 11 | $\mu$ & 磁导率 \\ 12 | $\epsilon$ & 介电常数 \\ 13 | $\mu$ & 磁导率 \\ 14 | $\epsilon$ & 介电常数 \\ 15 | $\mu$ & 磁导率 \\ 16 | $\epsilon$ & 介电常数 \\ 17 | $\mu$ & 磁导率 \\ 18 | $\epsilon$ & 介电常数 \\ 19 | $\mu$ & 磁导率 \\ 20 | $\epsilon$ & 介电常数 \\ 21 | $\mu$ & 磁导率 \\ 22 | $\epsilon$ & 介电常数 \\ 23 | $\mu$ & 磁导率 \\ 24 | $\epsilon$ & 介电常数 \\ 25 | $\mu$ & 磁导率 \\ 26 | $\epsilon$ & 介电常数 \\ 27 | $\mu$ & 磁导率 \\ 28 | $\epsilon$ & 介电常数 \\ 29 | $\mu$ & 磁导率 \\ 30 | $\epsilon$ & 介电常数 \\ 31 | $\mu$ & 磁导率 \\ 32 | $\epsilon$ & 介电常数 \\ 33 | $\mu$ & 磁导率 \\ 34 | $\epsilon$ & 介电常数 \\ 35 | $\mu$ & 磁导率 \\ 36 | $\epsilon$ & 介电常数 \\ 37 | $\mu$ & 磁导率 \\ 38 | $\epsilon$ & 介电常数 \\ 39 | $\mu$ & 磁导率 \\ 40 | $\epsilon$ & 介电常数 \\ 41 | $\mu$ & 磁导率 \\ 42 | $\epsilon$ & 介电常数 \\ 43 | $\mu$ & 磁导率 \\ 44 | $\epsilon$ & 介电常数 \\ 45 | $\mu$ & 磁导率 \\ 46 | $\epsilon$ & 介电常数 \\ 47 | $\mu$ & 磁导率 \\ 48 | $\epsilon$ & 介电常数 \\ 49 | $\mu$ & 磁导率 \\ 50 | $\epsilon$ & 介电常数 \\ 51 | $\mu$ & 磁导率 \\ 52 | $\epsilon$ & 介电常数 \\ 53 | $\mu$ & 磁导率 \\ 54 | $\epsilon$ & 介电常数 \\ 55 | $\mu$ & 磁导率 \\ 56 | $\epsilon$ & 介电常数 \\ 57 | $\mu$ & 磁导率 \\ 58 | $\epsilon$ & 介电常数 \\ 59 | $\mu$ & 磁导率 \\ 60 | \end{nomenclature} -------------------------------------------------------------------------------- /tex/nomenclature.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | %TC:ignore 4 | 5 | \begin{nomenclature}{rl} 6 | \label{chap:symb} 7 | $\epsilon$ & 介电常数 \\ 8 | $\mu$ & 磁导率 \\ 9 | $\epsilon$ & 介电常数 \\ 10 | $\mu$ & 磁导率 \\ 11 | $\epsilon$ & 介电常数 \\ 12 | $\mu$ & 磁导率 \\ 13 | $\epsilon$ & 介电常数 \\ 14 | $\mu$ & 磁导率 \\ 15 | $\epsilon$ & 介电常数 \\ 16 | $\mu$ & 磁导率 \\ 17 | $\epsilon$ & 介电常数 \\ 18 | $\mu$ & 磁导率 \\ 19 | $\epsilon$ & 介电常数 \\ 20 | $\mu$ & 磁导率 \\ 21 | $\epsilon$ & 介电常数 \\ 22 | $\mu$ & 磁导率 \\ 23 | $\epsilon$ & 介电常数 \\ 24 | $\mu$ & 磁导率 \\ 25 | $\epsilon$ & 介电常数 \\ 26 | $\mu$ & 磁导率 \\ 27 | $\epsilon$ & 介电常数 \\ 28 | $\mu$ & 磁导率 \\ 29 | $\epsilon$ & 介电常数 \\ 30 | $\mu$ & 磁导率 \\ 31 | $\epsilon$ & 介电常数 \\ 32 | $\mu$ & 磁导率 \\ 33 | $\epsilon$ & 介电常数 \\ 34 | $\mu$ & 磁导率 \\ 35 | $\epsilon$ & 介电常数 \\ 36 | $\mu$ & 磁导率 \\ 37 | $\epsilon$ & 介电常数 \\ 38 | $\mu$ & 磁导率 \\ 39 | $\epsilon$ & 介电常数 \\ 40 | $\mu$ & 磁导率 \\ 41 | $\epsilon$ & 介电常数 \\ 42 | $\mu$ & 磁导率 \\ 43 | $\epsilon$ & 介电常数 \\ 44 | $\mu$ & 磁导率 \\ 45 | $\epsilon$ & 介电常数 \\ 46 | $\mu$ & 磁导率 \\ 47 | $\epsilon$ & 介电常数 \\ 48 | $\mu$ & 磁导率 \\ 49 | $\epsilon$ & 介电常数 \\ 50 | $\mu$ & 磁导率 \\ 51 | $\epsilon$ & 介电常数 \\ 52 | $\mu$ & 磁导率 \\ 53 | $\epsilon$ & 介电常数 \\ 54 | $\mu$ & 磁导率 \\ 55 | $\epsilon$ & 介电常数 \\ 56 | $\mu$ & 磁导率 \\ 57 | $\epsilon$ & 介电常数 \\ 58 | $\mu$ & 磁导率 \\ 59 | $\epsilon$ & 介电常数 \\ 60 | $\mu$ & 磁导率 \\ 61 | \end{nomenclature} 62 | 63 | %TC:endignore 64 | -------------------------------------------------------------------------------- /index.Rmd: -------------------------------------------------------------------------------- 1 | ```{r setup, include=FALSE} 2 | 3 | # 为了让日期显示为英文 4 | locale = Sys.setlocale(category = "LC_TIME", locale = 'en_US.UTF-8') 5 | localSystem = R.Version()$system 6 | 7 | options( 8 | htmltools.dir.version = FALSE, formatR.indent = 2, width = 55, digits = 4 9 | ) 10 | 11 | if (system('phantomjs --version') != 0) 12 | webshot::install_phantomjs() 13 | 14 | # 生成依赖包 15 | knitr::write_bib(c( 16 | .packages(), 'bookdown', 'knitr', 'rmarkdown', 'htmlwidgets', 'webshot', 'DT', 17 | 'miniUI', 'tufte', 'servr', 'citr', 'rticles' 18 | ), 'bib/packages.bib') 19 | 20 | # 支持图片标题双语言,为了排版优化,强制加入 \centering 21 | # https://github.com/yihui/knitr/issues/1554 22 | library(knitr) 23 | knit_hooks$set(plot = function(x, options) { 24 | if(!is.null(options$bicap)){ 25 | paste("\\begin{figure}[!htp]", 26 | "\n\\centering", 27 | hook_plot_tex(x, options), 28 | "\n\\bicaption{", options$bicap[1], "}{",options$bicap[2],"}", 29 | "\n\\end{figure}", sep = "") 30 | } 31 | else{ 32 | hook_plot_tex(x, options) 33 | } 34 | }) 35 | 36 | ``` 37 | --- 38 | title: "上海交通大学论文 Rmd bookdown 模板" 39 | author: "某 \\quad 某" 40 | documentclass: sjtuthesis 41 | classoption: [degree=master, zihao=-4] 42 | studentid: B1103492 43 | supervisor: "深度操作系统" 44 | major: "通信与信息系统" 45 | date: "`r format(Sys.Date(),format='%Y年%m月%d日')`" 46 | keywords: "上海交大\\quad 饮水思源\\quad 爱国荣校" 47 | enauthor: "Mou Mou" 48 | ensupervisor: "Deepin" 49 | eninstitute: "Deepin OS" 50 | endate: "`r format(Sys.Date(),format='%b. %d, %Y')`" 51 | entitle: "SJTU Bookdown Template" 52 | enmajor: "Comminucation and Information Tech" 53 | enkeywords: "SJTU, XeTeX/LaTeX template, Bookdown, Rmarkdown" 54 | bibliography: [bib/thesis.bib, bib/packages.bib] 55 | biblio-style: apalike 56 | link-citations: yes 57 | colorlinks: yes 58 | lot: yes 59 | lof: yes 60 | href2footnote: yes 61 | github-repo: bubifengyun/SJTUThesis-Rmd 62 | --- 63 | 64 | 65 | -------------------------------------------------------------------------------- /sjtuthesis.sty: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `sjtuthesis.sty', 3 | %% You can put any packages you would like to use here. 4 | %% 5 | \ProvidesPackage{sjtuthesis} 6 | [2018/01/09 v0.10 Shanghai Jiao Tong University Template] 7 | 8 | % 使用 Type 1 西文字体 9 | % \RequirePackage[defaultsups]{newtxtext} 10 | % \RequirePackage[upint]{newtxmath} 11 | % \RequirePackage{bm} 12 | % \RequirePackage{upgreek} 13 | 14 | % 确定浮动对象的位置,可以使用 [H],强制将浮动对象放到这里(可能效果很差) 15 | % \RequirePackage{float} 16 | 17 | % 固定宽度的表格 18 | % \RequirePackage{tabularx} 19 | 20 | % 表格中支持跨行 21 | \RequirePackage{multirow} 22 | 23 | % 表格中数字按小数点对齐 24 | \RequirePackage{dcolumn} 25 | \newcolumntype{d}[1]{D{.}{.}{#1}} 26 | 27 | % 附带脚注的表格 28 | \RequirePackage{threeparttable} 29 | 30 | % 算法环境宏包 31 | \RequirePackage[ruled,vlined,linesnumbered]{algorithm2e} 32 | % \RequirePackage{algorithm} 33 | 34 | % 代码环境宏包 35 | \RequirePackage{listings} 36 | 37 | % 国际单位制宏包 38 | \RequirePackage{siunitx} 39 | 40 | % 定理环境宏包 41 | \RequirePackage{ntheorem} 42 | % \RequirePackage{amsthm} 43 | 44 | % 绘图宏包 45 | \RequirePackage{tikz} 46 | 47 | % 一些文档中用到的 logo 48 | \RequirePackage{hologo} 49 | \newcommand{\XeTeX}{\hologo{XeTeX}} 50 | \newcommand{\BibLaTeX}{\textsc{Bib}\LaTeX} 51 | 52 | % 借用 ltxdoc 里面的几个命令。 53 | \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} 54 | \def\cmd@to@cs#1#2{\char\number`#2\relax} 55 | \DeclareRobustCommand\cs[1]{\texttt{\char`\\#1}} 56 | 57 | \newcommand*{\meta}[1]{{% 58 | \ensuremath{\langle}\rmfamily\itshape#1\/\ensuremath{\rangle}}} 59 | \providecommand\marg[1]{% 60 | {\ttfamily\char`\{}\meta{#1}{\ttfamily\char`\}}} 61 | \providecommand\oarg[1]{% 62 | {\ttfamily[}\meta{#1}{\ttfamily]}} 63 | \providecommand\parg[1]{% 64 | {\ttfamily(}\meta{#1}{\ttfamily)}} 65 | \providecommand\pkg[1]{{\sffamily#1}} 66 | 67 | % 自定义命令 68 | 69 | % E-mail 70 | \newcommand{\email}[1]{\href{mailto:#1}{\texttt{#1}}} 71 | 72 | \endinput 73 | %% 74 | %% End of file `sjtuthesis.sty'. 75 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # 上海交通大学学位论文 Bookdown 模板 2 | 3 | 鉴于当前网速问题,后期版本更新集中于 https://gitee.com/bubifengyun/SJTUThesis-Rmd 4 | 5 | [github](https://github.com/bubifengyun/SJTUThesis-Rmd)不再更新。 6 | 7 | 当前可以编译运行。 8 | 9 | 这是为撰写上海交通大学学士、硕士或博士论文而准备的 Bookdown 模板,非官方出品。详细使用说明参见本模板内容。根据最新(2019.10.21)的[上海交通大学学位论文Latex模板1.0.0rc4](https://github.com/sjtug/SJTUThesis), 参考[谢益辉Bookdown中文模板](https://github.com/yihui/bookdown-chinese),非常感谢[@AlexaraWu](https://github.com/AlexaraWu)的支持,改写而成。在完全兼容[原交大论文LaTeX模板](https://github.com/sjtug/SJTUThesis)的基础上,通过使用 Markdown,大幅度降低撰写论文的难度,引入 R 语言,提高论文作图、数据处理的能力,真正做到让论文能够随着数据变化而变化,而不是数据错误了,要逐个手动改变。对于无法使用 Rmarkdown 实现的内容,完全复制粘贴 LaTeX 代码也能够运行,可能会多一些括号之类的,请删除。 10 | 11 | 12 | ## 如何使用 13 | 14 | 请先阅读[上海交通大学学位论文Latex模板](https://github.com/sjtug/SJTUThesis)的软件要求,这也是本模板的要求,然后安装 Pandoc,R 和 make 即可,如果可以安装 RStudio 更好。 15 | 16 | 如果您懒得制作安装环境,也可用参考[这里](https://github.com/bubifengyun/deepin-bible)的虚拟机运行方式,直接编译运行。 17 | 18 | ## 反馈问题 19 | 20 | 如果在使用上有任何问题,建议先阅读[常见问题与建议(未完成)](https://github.com/sjtug/SJTUThesis/wiki/%E5%B8%B8%E8%A7%81%E9%97%AE%E9%A2%98%E4%B8%8E%E5%BB%BA%E8%AE%AE)。如果这些不能解决你的问题,建议以如下的顺序反馈使用过程中的问题: 21 | 22 | * [在 GitHub 项目主页开 issue](https://github.com/bubifengyun/SJTUThesis-Rmd/issues) (推荐) 23 | 24 | 如果你觉得项目的使用体验不好,或者想感谢我们的维护者们等等任何与使用无关的想法,都可以通过 [issue](https://github.com/bubifengyun/SJTUThesis-Rmd/issues) 或者[邮件](mailto:bubifengyun@sina.com)告诉我们。 25 | 26 | ## 如何贡献 27 | 28 | SJTUThesis-Rmd 是一个刚刚启动的开源项目,我们非常欢迎新的贡献者! 29 | 30 | ## 后续工作计划 31 | 32 | - 兼容最新的SJTUThesis-v1.0.0rc4模板。 33 | - 提供更多 `pandoc` 标准的 markdown 例子。 34 | 35 | ## 致谢 36 | 37 | * 感谢 bookdown 的相关作者,特别是[@yihui](https://github.com/yihui)提供了非常大的帮助。 38 | * 感谢 stackoverflow 网站的相关用户,在模板起步的时候,太多坑,多谢你们的帮助 39 | * 感谢 [CTeX](http://www.ctex.org/HomePage) 提供了 LaTeX 的中文支持 40 | * 感谢那位最先制作出博士学位论文 LaTeX 模板的交大物理系同学 41 | * 感谢 William Wang 同学对模板移植做出的巨大贡献 42 | * 感谢 [@weijianwen](https://github.com/weijianwen) 学长一直以来的开发和维护工作 43 | * 感谢 [@sjtug](https://github.com/sjtug) 以及 [@dyweb](https://github.com/dyweb) 对 0.9.5 之后版本的开发和维护工作 44 | * 感谢[@AlexaraWu](https://github.com/AlexaraWu)提供了非常大的帮助。 45 | * 感谢所有为模板贡献过代码的[同学们](https://github.com/sjtug/SJTUThesis/graphs/contributors),以及所有测试和使用模板的各位同学 46 | 47 | ## 软件许可证 48 | 49 | 上海交通大学校徽校名图片(`sjtu-logo.pdf` 等)的版权归上海交通大学所有。 50 | 51 | `sjtuthesis.cls` 文档类与相关附属文件,以及 `biblatex-gb7714-2015` 样式文件使用 [LPPL](https://www.latex-project.org/lppl.txt) 授权。 52 | 53 | 其他部分使用 [Apache License 2.0](LICENSE) 授权。 54 | -------------------------------------------------------------------------------- /tex/app_maxwell_equations.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \chapter{Maxwell Equations} 4 | 5 | 选择二维情况,有如下的偏振矢量: 6 | \begin{subequations} 7 | \begin{align} 8 | {\bf E} &= E_z(r, \theta) \hat{\bf z}, \\ 9 | {\bf H} &= H_r(r, \theta) \hat{\bf r} + H_\theta(r, \theta) \hat{\bm\theta}. 10 | \end{align} 11 | \end{subequations} 12 | 对上式求旋度: 13 | \begin{subequations} 14 | \begin{align} 15 | \nabla \times {\bf E} &= \frac{1}{r} \frac{\partial E_z}{\partial\theta} 16 | \hat{\bf r} - \frac{\partial E_z}{\partial r} \hat{\bm\theta}, \\ 17 | \nabla \times {\bf H} &= \left[\frac{1}{r} \frac{\partial}{\partial r} 18 | (r H_\theta) - \frac{1}{r} \frac{\partial H_r}{\partial\theta} \right] 19 | \hat{\bf z}. 20 | \end{align} 21 | \end{subequations} 22 | 因为在柱坐标系下,$\overline{\overline\mu}$ 是对角的,所以 Maxwell 方程组中电场 23 | $\bf E$ 的旋度: 24 | \begin{subequations} 25 | \begin{align} 26 | & \nabla \times {\bf E} = \upi \omega {\bf B}, \\ 27 | & \frac{1}{r} \frac{\partial E_z}{\partial\theta} \hat{\bf r} - 28 | \frac{\partial E_z}{\partial r}\hat{\bm\theta} = \upi \omega \mu_r H_r 29 | \hat{\bf r} + \upi \omega \mu_\theta H_\theta \hat{\bm\theta}. 30 | \end{align} 31 | \end{subequations} 32 | 所以 $\bf H$ 的各个分量可以写为: 33 | \begin{subequations} 34 | \begin{align} 35 | H_r &= \frac{1}{\upi \omega \mu_r} \frac{1}{r} 36 | \frac{\partial E_z}{\partial\theta}, \\ 37 | H_\theta &= -\frac{1}{\upi \omega \mu_\theta} 38 | \frac{\partial E_z}{\partial r}. 39 | \end{align} 40 | \end{subequations} 41 | 同样地,在柱坐标系下,$\overline{\overline\epsilon}$ 是对角的,所以 Maxwell 方程 42 | 组中磁场 $\bf H$ 的旋度: 43 | \begin{subequations} 44 | \begin{align} 45 | & \nabla \times {\bf H} = -\upi \omega {\bf D}, \\ 46 | & \left[\frac{1}{r} \frac{\partial}{\partial r}(r H_\theta) - \frac{1}{r} 47 | \frac{\partial H_r}{\partial\theta} \right] \hat{\bf z} = -\upi \omega 48 | {\overline{\overline\epsilon}} {\bf E} = -\upi \omega \epsilon_z E_z 49 | \hat{\bf z}, \\ 50 | & \frac{1}{r} \frac{\partial}{\partial r}(r H_\theta) - \frac{1}{r} 51 | \frac{\partial H_r}{\partial\theta} = -\upi \omega \epsilon_z E_z. 52 | \end{align} 53 | \end{subequations} 54 | 由此我们可以得到关于 $E_z$ 的波函数方程: 55 | \begin{equation} 56 | \frac{1}{\mu_\theta \epsilon_z} \frac{1}{r} \frac{\partial}{\partial r} 57 | \left(r \frac{\partial E_z}{\partial r} \right) + \frac{1}{\mu_r \epsilon_z} 58 | \frac{1}{r^2} \frac{\partial^2E_z}{\partial\theta^2} +\omega^2 E_z = 0. 59 | \end{equation} 60 | -------------------------------------------------------------------------------- /tex/end_english_abstract.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \begin{bigabstract} 4 | An imperial edict issued in 1896 by Emperor Guangxu, established Nanyang 5 | Public School in Shanghai. The normal school, school of foreign studies, 6 | middle school and a high school were established. Sheng Xuanhuai, the person 7 | responsible for proposing the idea to the emperor, became the first president 8 | and is regarded as the founder of the university. 9 | 10 | During the 1930s, the university gained a reputation of nurturing top 11 | engineers. After the foundation of People's Republic, some faculties were 12 | transferred to other universities. A significant amount of its faculty were 13 | sent in 1956, by the national government, to Xi'an to help build up Xi'an Jiao 14 | Tong University in western China. Afterwards, the school was officially 15 | renamed Shanghai Jiao Tong University. 16 | 17 | Since the reform and opening up policy in China, SJTU has taken the lead in 18 | management reform of institutions for higher education, regaining its vigor 19 | and vitality with an unprecedented momentum of growth. SJTU includes five 20 | beautiful campuses, Xuhui, Minhang, Luwan Qibao, and Fahua, taking up an area 21 | of about 3,225,833 m2. A number of disciplines have been advancing towards the 22 | top echelon internationally, and a batch of burgeoning branches of learning 23 | have taken an important position domestically. 24 | 25 | Today SJTU has 31 schools (departments), 63 undergraduate programs, 250 26 | masters-degree programs, 203 Ph.D. programs, 28 post-doctorate programs, and 27 | 11 state key laboratories and national engineering research centers. 28 | 29 | SJTU boasts a large number of famous scientists and professors, including 35 30 | academics of the Academy of Sciences and Academy of Engineering, 95 accredited 31 | professors and chair professors of the "Cheung Kong Scholars Program" and more 32 | than 2,000 professors and associate professors. 33 | 34 | Its total enrollment of students amounts to 35,929, of which 1,564 are 35 | international students. There are 16,802 undergraduates, and 17,563 masters 36 | and Ph.D. candidates. After more than a century of operation, Jiao Tong 37 | University has inherited the old tradition of "high starting points, solid 38 | foundation, strict requirements and extensive practice." Students from SJTU 39 | have won top prizes in various competitions, including ACM International 40 | Collegiate Programming Contest, International Mathematical Contest in Modeling 41 | and Electronics Design Contests. Famous alumni include Jiang Zemin, Lu Dingyi, 42 | Ding Guangen, Wang Daohan, Qian Xuesen, Wu Wenjun, Zou Taofen, Mao Yisheng, 43 | Cai Er, Huang Yanpei, Shao Lizi, Wang An and many more. More than 200 of the 44 | academics of the Chinese Academy of Sciences and Chinese Academy of 45 | Engineering are alumni of Jiao Tong University. 46 | \end{bigabstract} 47 | -------------------------------------------------------------------------------- /tex/template.tex: -------------------------------------------------------------------------------- 1 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$babel-lang$,$endif$$if(papersize)$$papersize$paper,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$} 2 | 3 | % 所有其它可能用到的包都统一放到这里了,可以根据自己的实际添加或者删除。 4 | \usepackage{sjtuthesis} 5 | 6 | % 定义图片文件目录与扩展名 7 | \graphicspath{{figure/}} 8 | \DeclareGraphicsExtensions{.pdf,.eps,.png,.jpg,.jpeg} 9 | 10 | $for(bibliography)$ 11 | \addbibresource{$bibliography$} 12 | $endfor$ 13 | 14 | \providecommand{\tightlist}{% 15 | \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}} 16 | 17 | $if(href2footnote)$% 是否把链接改为脚注 18 | \let\oldhref\href 19 | \renewcommand{\href}[2]{#2\footnote{\url{#1}}} 20 | $endif$ 21 | 22 | \makeatletter 23 | % Setting Package listings/lstlistings 24 | \lstset{tabsize=4, % 25 | aboveskip=\medskipamount, 26 | belowskip=\medskipamount, 27 | basicstyle=\footnotesize\ttfamily, 28 | commentstyle=\slshape\color{black!60}, 29 | stringstyle=\color{green!40!black!100}, 30 | keywordstyle=\bfseries\color{blue!50!black}, 31 | extendedchars=false, 32 | upquote=true, 33 | tabsize=2, 34 | showstringspaces=false, 35 | xleftmargin=1em, 36 | xrightmargin=1em, 37 | breaklines=true, 38 | breakindent=2em, 39 | framexleftmargin=1em, 40 | framexrightmargin=1em, 41 | backgroundcolor=\color{gray!10}, 42 | columns=flexible, 43 | keepspaces=true, 44 | texcl=true, 45 | mathescape=true 46 | } 47 | \makeatother 48 | 49 | % 自定义命令 50 | 51 | 52 | 53 | % https://github.com/jgm/pandoc/issues/4716 54 | % lstinline 对数学模式存在 bug,等修复后可以改为如下方式 55 | % \newcommand{\passthrough}[1]{#1} 56 | \newcommand{\passthrough}[1]{\lstset{mathescape=false}#1\lstset{mathescape=true}} 57 | 58 | \lstset{mathescape=false} 59 | 60 | % 解决双引号不一致的问题。在写完论文后,更新所有的双引号。单引号暂时没有发现问题。 61 | \newcommand\cqh{“} 62 | \newcommand\cqt{”} 63 | 64 | % 添加引言块 65 | \def\VA#1#2{\addvspace{12pt}\raggedleft #1\rightskip3em\par #2\rightskip3em} 66 | \renewenvironment{quote} 67 | {\list{}{\rightmargin\leftmargin}% 68 | \item\relax} 69 | {\endlist} 70 | 71 | $if(title)$ 72 | \title{$title$} 73 | $endif$ 74 | $if(author)$ 75 | \author{$author$} 76 | $endif$ 77 | $if(supervisor)$ 78 | \supervisor{$supervisor$} 79 | $endif$ 80 | $if(cosupervisor)$ 81 | \cosupervisor{$cosupervisor$} 82 | $endif$ 83 | $if(date)$ 84 | \date{$date$} 85 | $endif$ 86 | $if(department)$ 87 | \department{$department$} 88 | $endif$ 89 | $if(studentid)$ 90 | \studentid{$studentid$} 91 | $endif$ 92 | $if(major)$ 93 | \major{$major$} 94 | $endif$ 95 | $if(keywords)$ 96 | \keywords{$keywords$} 97 | $endif$ 98 | 99 | $if(entitle)$ 100 | \entitle{$entitle$} 101 | $endif$ 102 | $if(enauthor)$ 103 | \enauthor{\textsc{$enauthor$}} 104 | $endif$ 105 | $if(ensupervisor)$ 106 | \ensupervisor{Prof. \textsc{$ensupervisor$}} 107 | $endif$ 108 | $if(encosupervisor)$ 109 | \encosupervisor{Prof. \textsc{$encosupervisor$}} 110 | $endif$ 111 | $if(endepartment)$ 112 | \endepartment{\textsc{$endepartment$} 113 | $endif$ 114 | $if(enmajor)$ 115 | \enmajor{$enmajor$} 116 | $endif$ 117 | $if(endate)$ 118 | \endate{$endate$} 119 | $endif$ 120 | $if(enkeywords)$ 121 | \enkeywords{$enkeywords$} 122 | $endif$ 123 | 124 | \begin{document} 125 | 126 | \maketitle 127 | 128 | \makeDeclareOriginality[handed_pdf/original.pdf] 129 | \makeDeclareAuthorization 130 | 131 | $body$ 132 | 133 | % 文后无编号部分 134 | \backmatter 135 | 136 | % 参考资料 137 | \printbibliography[heading=bibintoc] 138 | 139 | % 用于盲审的论文需隐去致谢、发表论文、参与项目、申请专利、简历 140 | 141 | % 致谢 142 | \input{tex/acknowledgements} 143 | 144 | % 发表论文、参与项目、申请专利、简历 145 | % 盲审论文中,发表学术论文及参与科研情况等仅以第几作者注明即可,不要出现作者或他人姓名 146 | \input{tex/publications} 147 | \input{tex/projects} 148 | \input{tex/patents} 149 | \input{tex/resume} 150 | 151 | % 中文学士学位论文要求在最后有一个英文大摘要,单独编页码,英文学士学位论文不需要 152 | \input{tex/end_english_abstract} 153 | 154 | \end{document} 155 | -------------------------------------------------------------------------------- /tex/intro.tex: -------------------------------------------------------------------------------- 1 | % !TEX root = ../thesis.tex 2 | 3 | \chapter{简介} 4 | 5 | 这是 \sjtuthesis 的示例文档,基本上覆盖了模板中所有格式的设置。建议大家在使用模 6 | 板之前,除了阅读《\sjtuthesis\ 使用文档》,这个示例文档也最好能看一看。 7 | 8 | \section{二级标题} 9 | 10 | \subsection{三级标题} 11 | 12 | \subsubsection{四级标题} 13 | 14 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 15 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 16 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 17 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 18 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 19 | culpa qui officia deserunt mollit anim id est laborum. 20 | 21 | \section{脚注} 22 | 23 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 24 | incididunt ut labore et dolore magna aliqua. \footnote{Ut enim ad minim veniam, 25 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 26 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 27 | dolore eu fugiat nulla pariatur.} 28 | 29 | \section{字体} 30 | 31 | 32 | 上海交通大学是我国历史最悠久的高等学府之一,是教育部直属、教育部与上海市共建的全 33 | 国重点大学,是国家“七五”、“八五”重点建设和“211 工程”、“985 工程”的首批建 34 | 设高校。经过 115 年的不懈努力,上海交通大学已经成为一所“综合性、研究型、国际化” 35 | 的国内一流、国际知名大学,并正在向世界一流大学稳步迈进。 36 | 37 | {\songti 十九世纪末,甲午战败,民族危难。中国近代著名实业家、教育家盛宣怀和一批 38 | 有识之士秉持“自强首在储才,储才必先兴学”的信念,于 1896 年在上海创办了交通大 39 | 学的前身——南洋公学。建校伊始,学校即坚持“求实学,务实业”的宗旨,以培养“第 40 | 一等人才”为教育目标,精勤进取,笃行不倦,在二十世纪二三十年代已成为国内著名的 41 | 高等学府,被誉为“东方MIT”。抗战时期,广大师生历尽艰难,移转租界,内迁重庆, 42 | 坚持办学,不少学生投笔从戎,浴血沙场。解放前夕,广大师生积极投身民主革命,学校 43 | 被誉为“民主堡垒”。} 44 | 45 | {\heiti 新中国成立初期,为配合国家经济建设的需要,学校调整出相当一部分优势专业、 46 | 师资设备,支持国内兄弟院校的发展。五十年代中期,学校又响应国家建设大西北的号 47 | 召,根据国务院决定,部分迁往西安,分为交通大学上海部分和西安部分。1959 年 3月 48 | 两部分同时被列为全国重点大学,7 月经国务院批准分别独立建制,交通大学上海部分启 49 | 用“上海交通大学”校名。历经西迁、两地办学、独立办学等变迁,为构建新中国的高等 50 | 教育体系,促进社会主义建设做出了重要贡献。六七十年代,学校先后归属国防科工委和 51 | 六机部领导,积极投身国防人才培养和国防科研,为“两弹一星”和国防现代化做出了 52 | 巨大贡献。} 53 | 54 | {\kaishu 改革开放以来,学校以“敢为天下先”的精神,大胆推进改革:率先组成教授代 55 | 表团访问美国,率先实行校内管理体制改革,率先接受海外友人巨资捐赠等,有力地推动 56 | 了学校的教学科研改革。1984 年,邓小平同志亲切接见了学校领导和师生代表,对学校 57 | 的各项改革给予了充分肯定。在国家和上海市的大力支持下,学校以“上水平、创一流” 58 | 为目标,以学科建设为龙头,先后恢复和兴建了理科、管理学科、生命学科、法学和人文 59 | 学科等。1999 年,上海农学院并入;2005 年,与上海第二医科大学强强合并。至此,学 60 | 校完成了综合性大学的学科布局。近年来,通过国家“985 工程”和“211 工程”的建 61 | 设,学校高层次人才日渐汇聚,科研实力快速提升,实现了向研究型大学的转变。与此同 62 | 时,学校通过与美国密西根大学等世界一流大学的合作办学,实施国际化战略取得重要突 63 | 破。1985 年开始闵行校区建设,历经 20 多年,已基本建设成设施完善,环境优美的现 64 | 代化大学校园,并已完成了办学重心向闵行校区的转移。学校现有徐汇、闵行、法华、七 65 | 宝和重庆南路(卢湾)5 个校区,总占地面积 4840 亩。通过一系列的改革和建设,学校 66 | 的各项办学指标大幅度上升,实现了跨越式发展,整体实力显著增强,为建设世界一流大 67 | 学奠定了坚实的基础。} 68 | 69 | {\fangsong 交通大学始终把人才培养作为办学的根本任务。一百多年来,学校为国家和社 70 | 会培养了 20余万各类优秀人才,包括一批杰出的政治家、科学家、社会活动家、实业 71 | 家、工程技术专家和医学专家,如江泽民、陆定一、丁关根、汪道涵、钱学森、吴文俊、 72 | 徐光宪、张光斗、黄炎培、邵力子、李叔同、蔡锷、邹韬奋、陈敏章、王振义、陈竺等。 73 | 在中国科学院、中国工程院院士中,有 200 余位交大校友;在国家 23 位“两弹一星” 74 | 功臣中,有 6 位交大校友;在 18 位国家最高科学技术奖获得者中,有 3 位来自交大。 75 | 交大创造了中国近现代发展史上的诸多“第一”:中国最早的内燃机、最早的电机、最早 76 | 的中文打字机等;新中国第一艘万吨轮、第一艘核潜艇、第一艘气垫船、第一艘水翼艇、 77 | 自主设计的第一代战斗机、第一枚运载火箭、第一颗人造卫星、第一例心脏二尖瓣分离 78 | 术、第一例成功移植同种原位肝手术、第一例成功抢救大面积烧伤病人手术等,都凝聚着 79 | 交大师生和校友的心血智慧。改革开放以来,一批年轻的校友已在世界各地、各行各业崭 80 | 露头角。} 81 | 82 | {\ifcsname lishu\endcsname\lishu\else[无 \cs{lishu} 字体。]\fi 截至 2011 年 12 83 | 月 31 日,学校共有 24 个学院 / 直属系(另有继续教育学院、技术学院和国际教育学 84 | 院),19 个直属单位,12 家附属医院,全日制本科生 16802 人、研究生24495 人(其 85 | 中博士研究生 5059 人);有专任教师 2979 名,其中教授 835 名;中国科学院院士 15 86 | 名,中国工程院院士 20 名,中组部“千人计划”49 名,“长江学者”95 名,国家杰出 87 | 青年基金获得者 80 名,国家重点基础研究发展计划(973 计划)首席科学家 24名,国 88 | 家重大科学研究计划首席科学家 9名,国家基金委创新研究群体 6 个,教育部创新团队 89 | 17 个。} 90 | 91 | {\ifcsname youyuan\endcsname\youyuan\else[无 \cs{youyuan} 字体。]\fi 学校现有本 92 | 科专业 68 个,涵盖经济学、法学、文学、理学、工学、农学、医学、管理学和艺术等九 93 | 个学科门类;拥有国家级教学及人才培养基地 7 个,国家级校外实践教育基地 5个,国 94 | 家级实验教学示范中心 5 个,上海市实验教学示范中心 4 个;有国家级教学团队 8个, 95 | 上海市教学团队 15 个;有国家级教学名师 7 人,上海市教学名师 35 人;有国家级精 96 | 品课程 46 门,上海市精品课程 117 门;有国家级双语示范课程 7 门;2001、2005 和 97 | 2009 年,作为第一完成单位,共获得国家级教学成果 37 项、上海市教学成果 157 98 | 项。} 99 | -------------------------------------------------------------------------------- /rmd/101-intro.Rmd: -------------------------------------------------------------------------------- 1 | \mainmatter 2 | 3 | \input{tex/intro} 4 | 5 | # 简介{#chap:intro} 6 | 7 | 这是 \sjtuthesis 的示例文档,基本上覆盖了模板中所有格式的设置。建议大家在使用模 8 | 板之前,除了阅读《\sjtuthesis\ 使用文档》,这个示例文档也最好能看一看。 9 | 10 | ## 二级标题 11 | 12 | ### 三级标题 13 | 14 | #### 四级标题 15 | 16 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 17 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 18 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 19 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 20 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 21 | culpa qui officia deserunt mollit anim id est laborum. 22 | 23 | ## 脚注 24 | 25 | Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor 26 | incididunt ut labore et dolore magna aliqua. \footnote{Ut enim ad minim veniam, 27 | quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo 28 | consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum 29 | dolore eu fugiat nulla pariatur.} 30 | 31 | ## 字体 32 | 33 | 34 | 上海交通大学是我国历史最悠久的高等学府之一,是教育部直属、教育部与上海市共建的全 35 | 国重点大学,是国家“七五”、“八五”重点建设和“211 工程”、“985 工程”的首批建 36 | 设高校。经过 115 年的不懈努力,上海交通大学已经成为一所“综合性、研究型、国际化” 37 | 的国内一流、国际知名大学,并正在向世界一流大学稳步迈进。 38 | 39 | \songti{十九世纪末,甲午战败,民族危难。中国近代著名实业家、教育家盛宣怀和一批 40 | 有识之士秉持“自强首在储才,储才必先兴学”的信念,于 1896 年在上海创办了交通大 41 | 学的前身——南洋公学。建校伊始,学校即坚持“求实学,务实业”的宗旨,以培养“第 42 | 一等人才”为教育目标,精勤进取,笃行不倦,在二十世纪二三十年代已成为国内著名的 43 | 高等学府,被誉为“东方MIT”。抗战时期,广大师生历尽艰难,移转租界,内迁重庆, 44 | 坚持办学,不少学生投笔从戎,浴血沙场。解放前夕,广大师生积极投身民主革命,学校 45 | 被誉为“民主堡垒”。} 46 | 47 | \heiti{新中国成立初期,为配合国家经济建设的需要,学校调整出相当一部分优势专业、 48 | 师资设备,支持国内兄弟院校的发展。五十年代中期,学校又响应国家建设大西北的号 49 | 召,根据国务院决定,部分迁往西安,分为交通大学上海部分和西安部分。1959 年 3月 50 | 两部分同时被列为全国重点大学,7 月经国务院批准分别独立建制,交通大学上海部分启 51 | 用“上海交通大学”校名。历经西迁、两地办学、独立办学等变迁,为构建新中国的高等 52 | 教育体系,促进社会主义建设做出了重要贡献。六七十年代,学校先后归属国防科工委和 53 | 六机部领导,积极投身国防人才培养和国防科研,为“两弹一星”和国防现代化做出了 54 | 巨大贡献。} 55 | 56 | \kaishu{改革开放以来,学校以“敢为天下先”的精神,大胆推进改革:率先组成教授代 57 | 表团访问美国,率先实行校内管理体制改革,率先接受海外友人巨资捐赠等,有力地推动 58 | 了学校的教学科研改革。1984 年,邓小平同志亲切接见了学校领导和师生代表,对学校 59 | 的各项改革给予了充分肯定。在国家和上海市的大力支持下,学校以“上水平、创一流” 60 | 为目标,以学科建设为龙头,先后恢复和兴建了理科、管理学科、生命学科、法学和人文 61 | 学科等。1999 年,上海农学院并入;2005 年,与上海第二医科大学强强合并。至此,学 62 | 校完成了综合性大学的学科布局。近年来,通过国家“985 工程”和“211 工程”的建 63 | 设,学校高层次人才日渐汇聚,科研实力快速提升,实现了向研究型大学的转变。与此同 64 | 时,学校通过与美国密西根大学等世界一流大学的合作办学,实施国际化战略取得重要突 65 | 破。1985 年开始闵行校区建设,历经 20 多年,已基本建设成设施完善,环境优美的现 66 | 代化大学校园,并已完成了办学重心向闵行校区的转移。学校现有徐汇、闵行、法华、七 67 | 宝和重庆南路(卢湾)5 个校区,总占地面积 4840 亩。通过一系列的改革和建设,学校 68 | 的各项办学指标大幅度上升,实现了跨越式发展,整体实力显著增强,为建设世界一流大 69 | 学奠定了坚实的基础。} 70 | 71 | \fangsong{交通大学始终把人才培养作为办学的根本任务。一百多年来,学校为国家和社 72 | 会培养了 20余万各类优秀人才,包括一批杰出的政治家、科学家、社会活动家、实业 73 | 家、工程技术专家和医学专家,如江泽民、陆定一、丁关根、汪道涵、钱学森、吴文俊、 74 | 徐光宪、张光斗、黄炎培、邵力子、李叔同、蔡锷、邹韬奋、陈敏章、王振义、陈竺等。 75 | 在中国科学院、中国工程院院士中,有 200 余位交大校友;在国家 23 位“两弹一星” 76 | 功臣中,有 6 位交大校友;在 18 位国家最高科学技术奖获得者中,有 3 位来自交大。 77 | 交大创造了中国近现代发展史上的诸多“第一”:中国最早的内燃机、最早的电机、最早 78 | 的中文打字机等;新中国第一艘万吨轮、第一艘核潜艇、第一艘气垫船、第一艘水翼艇、 79 | 自主设计的第一代战斗机、第一枚运载火箭、第一颗人造卫星、第一例心脏二尖瓣分离 80 | 术、第一例成功移植同种原位肝手术、第一例成功抢救大面积烧伤病人手术等,都凝聚着 81 | 交大师生和校友的心血智慧。改革开放以来,一批年轻的校友已在世界各地、各行各业崭 82 | 露头角。} 83 | 84 | \ifcsname lishu\endcsname\lishu\else[无 \cs{lishu} 字体。]\fi{截至 2011 年 12 85 | 月 31 日,学校共有 24 个学院 / 直属系(另有继续教育学院、技术学院和国际教育学 86 | 院),19 个直属单位,12 家附属医院,全日制本科生 16802 人、研究生24495 人(其 87 | 中博士研究生 5059 人);有专任教师 2979 名,其中教授 835 名;中国科学院院士 15 88 | 名,中国工程院院士 20 名,中组部“千人计划”49 名,“长江学者”95 名,国家杰出 89 | 青年基金获得者 80 名,国家重点基础研究发展计划(973 计划)首席科学家 24名,国 90 | 家重大科学研究计划首席科学家 9名,国家基金委创新研究群体 6 个,教育部创新团队 91 | 17 个。} 92 | 93 | \ifcsname youyuan\endcsname\youyuan\else[无 \cs{youyuan} 字体。]\fi{学校现有本 94 | 科专业 68 个,涵盖经济学、法学、文学、理学、工学、农学、医学、管理学和艺术等九 95 | 个学科门类;拥有国家级教学及人才培养基地 7 个,国家级校外实践教育基地 5个,国 96 | 家级实验教学示范中心 5 个,上海市实验教学示范中心 4 个;有国家级教学团队 8个, 97 | 上海市教学团队 15 个;有国家级教学名师 7 人,上海市教学名师 35 人;有国家级精 98 | 品课程 46 门,上海市精品课程 117 门;有国家级双语示范课程 7 门;2001、2005 和 99 | 2009 年,作为第一完成单位,共获得国家级教学成果 37 项、上海市教学成果 157 100 | 项。} 101 | -------------------------------------------------------------------------------- /bib/packages.bib: -------------------------------------------------------------------------------- 1 | @Manual{R-base, 2 | title = {R: A Language and Environment for Statistical Computing}, 3 | author = {{R Core Team}}, 4 | organization = {R Foundation for Statistical Computing}, 5 | address = {Vienna, Austria}, 6 | year = {2019}, 7 | url = {https://www.R-project.org/}, 8 | } 9 | @Manual{R-bookdown, 10 | title = {bookdown: Authoring Books and Technical Documents with R Markdown}, 11 | author = {Yihui Xie}, 12 | year = {2020}, 13 | note = {R package version 0.17}, 14 | url = {https://CRAN.R-project.org/package=bookdown}, 15 | } 16 | @Manual{R-citr, 17 | title = {citr: RStudio Add-in to Insert Markdown Citations}, 18 | author = {Frederik Aust}, 19 | year = {2019}, 20 | note = {R package version 0.3.2}, 21 | url = {https://CRAN.R-project.org/package=citr}, 22 | } 23 | @Manual{R-DT, 24 | title = {DT: A Wrapper of the JavaScript Library 'DataTables'}, 25 | author = {Yihui Xie and Joe Cheng and Xianying Tan}, 26 | year = {2020}, 27 | note = {R package version 0.12}, 28 | url = {https://CRAN.R-project.org/package=DT}, 29 | } 30 | @Manual{R-htmlwidgets, 31 | title = {htmlwidgets: HTML Widgets for R}, 32 | author = {Ramnath Vaidyanathan and Yihui Xie and JJ Allaire and Joe Cheng and Kenton Russell}, 33 | year = {2019}, 34 | note = {R package version 1.5.1}, 35 | url = {https://CRAN.R-project.org/package=htmlwidgets}, 36 | } 37 | @Manual{R-knitr, 38 | title = {knitr: A General-Purpose Package for Dynamic Report Generation in R}, 39 | author = {Yihui Xie}, 40 | year = {2020}, 41 | note = {R package version 1.28}, 42 | url = {https://CRAN.R-project.org/package=knitr}, 43 | } 44 | @Manual{R-miniUI, 45 | title = {miniUI: Shiny UI Widgets for Small Screens}, 46 | author = {Joe Cheng}, 47 | year = {2018}, 48 | note = {R package version 0.1.1.1}, 49 | url = {https://CRAN.R-project.org/package=miniUI}, 50 | } 51 | @Manual{R-rmarkdown, 52 | title = {rmarkdown: Dynamic Documents for R}, 53 | author = {JJ Allaire and Yihui Xie and Jonathan McPherson and Javier Luraschi and Kevin Ushey and Aron Atkins and Hadley Wickham and Joe Cheng and Winston Chang and Richard Iannone}, 54 | year = {2020}, 55 | note = {R package version 2.1}, 56 | url = {https://CRAN.R-project.org/package=rmarkdown}, 57 | } 58 | @Manual{R-webshot, 59 | title = {webshot: Take Screenshots of Web Pages}, 60 | author = {Winston Chang}, 61 | year = {2019}, 62 | note = {R package version 0.5.2}, 63 | url = {https://CRAN.R-project.org/package=webshot}, 64 | } 65 | @Book{bookdown2016, 66 | title = {bookdown: Authoring Books and Technical Documents with {R} Markdown}, 67 | author = {Yihui Xie}, 68 | publisher = {Chapman and Hall/CRC}, 69 | address = {Boca Raton, Florida}, 70 | year = {2016}, 71 | note = {ISBN 978-1138700109}, 72 | url = {https://github.com/rstudio/bookdown}, 73 | } 74 | @Book{knitr2015, 75 | title = {Dynamic Documents with {R} and knitr}, 76 | author = {Yihui Xie}, 77 | publisher = {Chapman and Hall/CRC}, 78 | address = {Boca Raton, Florida}, 79 | year = {2015}, 80 | edition = {2nd}, 81 | note = {ISBN 978-1498716963}, 82 | url = {https://yihui.org/knitr/}, 83 | } 84 | @InCollection{knitr2014, 85 | booktitle = {Implementing Reproducible Computational Research}, 86 | editor = {Victoria Stodden and Friedrich Leisch and Roger D. Peng}, 87 | title = {knitr: A Comprehensive Tool for Reproducible Research in {R}}, 88 | author = {Yihui Xie}, 89 | publisher = {Chapman and Hall/CRC}, 90 | year = {2014}, 91 | note = {ISBN 978-1466561595}, 92 | url = {http://www.crcpress.com/product/isbn/9781466561595}, 93 | } 94 | @Book{rmarkdown2018, 95 | title = {R Markdown: The Definitive Guide}, 96 | author = {Yihui Xie and J.J. Allaire and Garrett Grolemund}, 97 | publisher = {Chapman and Hall/CRC}, 98 | address = {Boca Raton, Florida}, 99 | year = {2018}, 100 | note = {ISBN 9781138359338}, 101 | url = {https://bookdown.org/yihui/rmarkdown}, 102 | } 103 | -------------------------------------------------------------------------------- /rmd/103-latex.Rmd: -------------------------------------------------------------------------------- 1 | \input{tex/math_and_citations} 2 | 3 | # 数学与引用文献的标注 4 | 5 | ## 数学 6 | 7 | ### 数字和单位 8 | 9 | 宏包 \pkg{siunitx} 提供了更好的数字和单位支持: 10 | \begin{itemize} 11 | \item \num{12345.67890} 12 | \item \num{1+-2i} 13 | \item \num{.3e45} 14 | \item \num{1.654 x 2.34 x 3.430} 15 | \item \si{kg.m.s^{-1}} 16 | \item \si{\micro\meter} $\si{\micro\meter}$ 17 | \item \si{\ohm} $\si{\ohm}$ 18 | \item \numlist{10;20} 19 | \item \numlist{10;20;30} 20 | \item \SIlist{0.13;0.67;0.80}{\milli\metre} 21 | \item \numrange{10}{20} 22 | \item \SIrange{10}{20}{\degreeCelsius} 23 | \end{itemize} 24 | 25 | ### 数学符号和公式 26 | 27 | 微分符号 $\dif$ 应使用正体,本模板提供了 \cs{dif} 命令。除此之外,模板还提供了一 28 | 些命令方便使用: 29 | \begin{itemize} 30 | \item 圆周率 $\uppi$:\verb|\uppi| 31 | \item 自然对数的底 $\upe$:\verb|\upe| 32 | \item 虚数单位 $\upi$, $\upj$:\verb|\upi| \verb|\upj| 33 | \end{itemize} 34 | 35 | 公式应另起一行居中排版。公式后应注明编号,按章顺序编排,编号右端对齐。 36 | \begin{equation} 37 | \upe^{\upi\uppi} + 1 = 0, 38 | \end{equation} 39 | \begin{equation} 40 | \frac{\dif^2 u}{\dif t^2} = \int f(x) \dif x. 41 | \end{equation} 42 | 43 | 公式末尾是需要添加标点符号的,至于用逗号还是句号,取决于公式下面一句是接着公式说的,还是另起一句。 44 | \begin{equation} 45 | \frac{2h}{\pi}\int_{0}^{\infty}\frac{\sin\left( \omega\delta \right)}{\omega} 46 | \cos\left( \omega x \right) \dif\omega = 47 | \begin{cases} 48 | h, \ \left| x \right| < \delta, \\ 49 | \frac{h}{2}, \ x = \pm \delta, \\ 50 | 0, \ \left| x \right| > \delta. 51 | \end{cases} 52 | \end{equation} 53 | 公式较长时最好在等号“$=$”处转行。 54 | \begin{align} 55 | & I (X_3; X_4) - I (X_3; X_4 \mid X_1) - I (X_3; X_4 \mid X_2) \nonumber \\ 56 | = & [I (X_3; X_4) - I (X_3; X_4 \mid X_1)] - I (X_3; X_4 \mid \tilde{X}_2) \\ 57 | = & I (X_1; X_3; X_4) - I (X_3; X_4 \mid \tilde{X}_2). 58 | \end{align} 59 | 60 | 如果在等号处转行难以实现,也可在 $+$、$-$、$\times$、$\div$运算符号处转行,转行 61 | 时运算符号仅书写于转行式前,不重复书写。 62 | \begin{multline} 63 | \frac{1}{2} \Delta (f_{ij} f^{ij}) = 64 | 2 \left(\sum_{i \delta. 51 | \end{cases} 52 | \end{equation} 53 | 公式较长时最好在等号“$=$”处转行。 54 | \begin{align} 55 | & I (X_3; X_4) - I (X_3; X_4 \mid X_1) - I (X_3; X_4 \mid X_2) \nonumber \\ 56 | = & [I (X_3; X_4) - I (X_3; X_4 \mid X_1)] - I (X_3; X_4 \mid \tilde{X}_2) \\ 57 | = & I (X_1; X_3; X_4) - I (X_3; X_4 \mid \tilde{X}_2). 58 | \end{align} 59 | 60 | 如果在等号处转行难以实现,也可在 $+$、$-$、$\times$、$\div$运算符号处转行,转行 61 | 时运算符号仅书写于转行式前,不重复书写。 62 | \begin{multline} 63 | \frac{1}{2} \Delta (f_{ij} f^{ij}) = 64 | 2 \left(\sum_{i 10 | %% (C) 2018-2019 by SJTUG 11 | %% 12 | %% This file may be distributed and/or modified under the 13 | %% conditions of the LaTeX Project Public License, either version 1.3c 14 | %% of this license or (at your option) any later version. 15 | %% The latest version of this license is in 16 | %% https://www.latex-project.org/lppl.txt 17 | %% and version 1.3c or later is part of all distributions of LaTeX 18 | %% version 2005/12/01 or later. 19 | %% 20 | %% This file has the LPPL maintenance status "maintained". 21 | %% 22 | %% The Current Maintainer of this work is Alexara Wu. 23 | %% 24 | \ProvidesFile{sjtuthesis-bachelor.ltx} 25 | [2019/06/16 1.0.0rc Shanghai Jiao Tong University Thesis Template] 26 | \ifsjtu@degree@course 27 | \sjtu@def@label{degreetypeChi}{} 28 | \sjtu@def@label{degreetypeEng}{} 29 | \else 30 | \sjtu@def@label{degreetypeChi}{学士} 31 | \sjtu@def@label{degreetypeEng}{Bachelor} 32 | \fi 33 | \sjtu@def@label{authorChi}{学生姓名} 34 | \sjtu@def@label{studentidChi}{学生学号} 35 | \sjtu@def@label{supervisorChi}{指导教师} 36 | \sjtu@def@label{coursenameChi}{课程名称} 37 | \sjtu@def@label{majorChi}{专业} 38 | \sjtu@def@label{departmentChi}{学院(系)} 39 | \ifsjtu@degree@course 40 | \sjtu@def@label{thesiscat}{课程论文} 41 | \def\sjtu@label@thesistype{\sjtu@label@thesiscat} 42 | \sjtu@def@label{subjectChi}{\sjtu@label@thesiscat} 43 | \sjtu@def@label{subjectEng}{Course Paper} 44 | \else 45 | \sjtu@def@label{thesiscat}{学位论文} 46 | \def\sjtu@label@thesistype{毕业设计(论文)} 47 | \sjtu@def@label{subjectChi}{\sjtu@label@degreetypeChi\sjtu@label@thesiscat} 48 | \sjtu@def@label{subjectEng}{Thesis of \sjtu@label@degreetypeEng} 49 | \fi 50 | \sjtu@def@label{bigabstract}{英文大摘要} 51 | \geometry{% 52 | paper = a4paper, 53 | vmargin = {84bp, 72bp}, 54 | hmargin = 90bp, 55 | headheight = 60bp, 56 | headsep = 12bp, 57 | } 58 | \ifsjtu@language@english 59 | \def\sjtu@titlemark{\sjtu@value@entitle} 60 | \newcommand{\sjtu@fancyhead}{% 61 | \parbox[b]{0.75\textwidth}{% 62 | \raggedleft\nouppercase{\footnotesize\heiti\sjtu@titlemark}}} 63 | \newcommand{\sjtu@fancyfoot}[2]{% 64 | \small --~~Page~~{\bfseries{#1}}~~of~~{\bfseries{#2}}~~--} 65 | \else 66 | \def\sjtu@titlemark{\sjtu@value@title} 67 | \newcommand{\sjtu@fancyhead}{% 68 | \parbox[b]{0.75\textwidth}{% 69 | \raggedleft\nouppercase{\small\heiti\sjtu@titlemark}}} 70 | \newcommand{\sjtu@fancyfoot}[2]{% 71 | \small 第~{\bfseries{#1}}~页\,共~{\bfseries{#2}}~页} 72 | \fi 73 | \fancypagestyle{sjtu@front}{% 74 | \fancyhf{} 75 | \fancyhead[L]{\includegraphics{sjtu-logo.pdf}} 76 | \fancyhead[R]{\sjtu@fancyhead} 77 | \fancyfoot[C]{\sjtu@fancyfoot{\thepage}{\lastpageref{pagesLTS.Roman}}} 78 | } 79 | \fancypagestyle{sjtu@plain}{% 80 | \fancyhf{} 81 | \fancyhead[L]{\includegraphics{sjtu-logo.pdf}} 82 | \fancyhead[R]{\sjtu@fancyhead} 83 | \fancyfoot[C]{\sjtu@fancyfoot{\thepage}{\lastpageref{pagesLTS.arabic}}} 84 | } 85 | \fancypagestyle{sjtu@biglast}{% 86 | \fancyhf{} 87 | \fancyhead[L]{\includegraphics{sjtu-logo.pdf}} 88 | \fancyhead[R]{\sjtu@fancyhead} 89 | \fancyfoot[C]{\sjtu@fancyfoot{\theCurrentPageLocal}% 90 | {\lastpageref{pagesLTS.roman.local}}} 91 | } 92 | \renewcommand{\frontmatter}{% 93 | \cleardoublepage 94 | \@mainmatterfalse 95 | \pagenumbering{Roman} 96 | \pagestyle{sjtu@front} 97 | } 98 | \renewcommand{\mainmatter}{% 99 | \cleardoublepage 100 | \@mainmattertrue 101 | \sjtu@setfloatfonttrue 102 | \pagenumbering{arabic} 103 | \pagestyle{sjtu@plain} 104 | } 105 | \renewcommand{\backmatter}{% 106 | \cleardoublepage 107 | \@mainmatterfalse 108 | } 109 | \ctexset{% 110 | subsection/format = \zihao{-4}\normalfont, 111 | } 112 | \renewcommand{\cftchapfont}{\normalfont} 113 | \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftdotsep}} 114 | \renewcommand{\cftchappagefont}{\normalfont} 115 | \NewDocumentEnvironment{abstract}{}{% 116 | \cleardoublepage 117 | \pdfbookmark[0]{\sjtu@label@abstract}{abstract} 118 | \chapter*{% 119 | \sjtu@value@title \vskip 2ex 120 | \begingroup 121 | \zihao{4} 122 | \sjtu@label@abstractChi 123 | \endgroup 124 | } 125 | \@mkboth{\sjtu@label@abstractChi}% 126 | {\sjtu@label@abstractChi}% 127 | }{% 128 | \vskip 3ex \noindent 129 | \begingroup 130 | \zihao{-4} 131 | \heiti\sjtu@label@keywordsChi 132 | \endgroup 133 | \begingroup 134 | \zihao{5} 135 | \sjtu@value@keywords 136 | \endgroup 137 | } 138 | \NewDocumentEnvironment{enabstract}{}{% 139 | \cleardoublepage 140 | \chapter*{% 141 | \MakeUppercase\sjtu@value@entitle \vskip 2ex 142 | \begingroup 143 | \zihao{4} 144 | \MakeUppercase\sjtu@label@abstractEng 145 | \endgroup 146 | } 147 | \@mkboth{\sjtu@label@abstractEng}% 148 | {\sjtu@label@abstractEng}% 149 | }{% 150 | \vskip 3ex \noindent 151 | \begingroup 152 | \zihao{-4}\bfseries 153 | \sjtu@label@keywordsEng 154 | \endgroup 155 | \begingroup 156 | \zihao{5} 157 | \sjtu@value@enkeywords 158 | \endgroup 159 | } 160 | \newcommand{\sjtu@bigabstract}[1]{\long\gdef\sjtu@bigabstract@body{#1}} 161 | \NewDocumentEnvironment{bigabstract}{}{% 162 | \Collect@Body\sjtu@bigabstract 163 | }{% 164 | \ifsjtu@degree@course\relax\else 165 | \ifsjtu@language@english\relax\else 166 | \AtEndDocument{% 167 | \cleardoublepage 168 | \pagenumbering{roman} 169 | \pagestyle{sjtu@biglast} 170 | \pdfbookmark[0]{\sjtu@label@bigabstract}{bigabstract}% 171 | \chapter*{\MakeUppercase\sjtu@value@entitle} 172 | \@mkboth{\sjtu@label@bigabstract}% 173 | {\sjtu@label@bigabstract}% 174 | \sjtu@bigabstract@body 175 | } 176 | \fi 177 | \fi 178 | } 179 | \RenewDocumentCommand\maketitle{}{% 180 | \pdfbookmark[0]{\sjtu@label@titlepage}{titlepage} 181 | \sjtu@makechinesetitle% 182 | } 183 | \newcommand{\sjtu@makechinesetitle}{% 184 | \cleardoublepage 185 | \thispagestyle{empty} 186 | \begin{center} 187 | \kaishu 188 | \vspace*{48bp} 189 | \includegraphics{sjtu-name.pdf} 190 | \vskip 28bp 191 | {\fontsize{32}{32}\sjtu@label@subjectChi} 192 | \vskip 16bp 193 | {\zihao{-2}\MakeUppercase\sjtu@label@subjectEng} 194 | \vskip 16bp 195 | \includegraphics{sjtu-badge.pdf} 196 | \vskip \stretch{2} 197 | \begingroup 198 | \zihao{2} 199 | \begin{tabular}{r@{:}l} 200 | 论文题目 & 201 | \begin{minipage}[t]{280pt} 202 | \zihao{-2} 203 | \begin{center} 204 | \sjtu@uline\sjtu@value@title 205 | \end{center} 206 | \end{minipage} 207 | \end{tabular} 208 | \endgroup 209 | \vskip \stretch{1} 210 | \begingroup 211 | \zihao{3} 212 | \def\arraystretch{1.1} 213 | \begin{tabular} 214 | {>{\begin{CJKfilltwosides}{4\ccwd}}r<{\end{CJKfilltwosides}}@{:}c} 215 | \sjtu@label@authorChi & \sjtu@value@author \\ \cline{2-2} 216 | \sjtu@label@studentidChi & \makebox[180pt]{\sjtu@value@studentid} \\ 217 | \cline{2-2} 218 | \ifsjtu@degree@course 219 | \sjtu@label@coursenameChi & \sjtu@value@coursename \\ \cline{2-2} 220 | \else 221 | \sjtu@label@majorChi & \sjtu@value@major \\ \cline{2-2} 222 | \fi 223 | \sjtu@label@supervisorChi & \sjtu@value@supervisor \\ \cline{2-2} 224 | \sjtu@label@departmentChi & \sjtu@value@department \\ \cline{2-2} 225 | \end{tabular} 226 | \endgroup 227 | \vskip 40bp 228 | \end{center} 229 | \cleardoublepage 230 | } 231 | \endinput 232 | %% 233 | %% End of file `sjtuthesis-bachelor.ltx'. 234 | -------------------------------------------------------------------------------- /sjtuthesis-graduate.ltx: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `sjtuthesis-graduate.ltx', 3 | %% generated with the docstrip utility. 4 | %% 5 | %% The original source files were: 6 | %% 7 | %% sjtuthesis.dtx (with options: `graduate') 8 | %% 9 | %% Copyright (C) 2009-2017 by weijianwen 10 | %% (C) 2018-2019 by SJTUG 11 | %% 12 | %% This file may be distributed and/or modified under the 13 | %% conditions of the LaTeX Project Public License, either version 1.3c 14 | %% of this license or (at your option) any later version. 15 | %% The latest version of this license is in 16 | %% https://www.latex-project.org/lppl.txt 17 | %% and version 1.3c or later is part of all distributions of LaTeX 18 | %% version 2005/12/01 or later. 19 | %% 20 | %% This file has the LPPL maintenance status "maintained". 21 | %% 22 | %% The Current Maintainer of this work is Alexara Wu. 23 | %% 24 | \ProvidesFile{sjtuthesis-graduate.ltx} 25 | [2019/06/16 1.0.0rc Shanghai Jiao Tong University Thesis Template] 26 | \ifsjtu@degree@doctor 27 | \sjtu@def@label{degreetypeChi}{博士} 28 | \sjtu@def@label{degreetypeEng}{Doctor} 29 | \else 30 | \sjtu@def@label{degreetypeChi}{硕士} 31 | \sjtu@def@label{degreetypeEng}{Master} 32 | \fi 33 | \sjtu@def@label{authorChi}{\sjtu@label@degreetypeChi 研究生} 34 | \sjtu@def@label{authorEng}{Candidate} 35 | \sjtu@def@label{studentidChi}{学号} 36 | \sjtu@def@label{studentidEng}{Student ID} 37 | \sjtu@def@label{supervisorChi}{导师} 38 | \sjtu@def@label{supervisorEng}{Supervisor} 39 | \sjtu@def@label{assisupervisorChi}{副导师} 40 | \sjtu@def@label{assisupervisorEng}{Assistant Supervisor} 41 | \sjtu@def@label{degreeChi}{申请学位} 42 | \sjtu@def@label{degreeEng}{Academic Degree Applied for} 43 | \sjtu@def@label{majorChi}{学科} 44 | \sjtu@def@label{majorEng}{Speciality} 45 | \sjtu@def@label{departmentChi}{所在单位} 46 | \sjtu@def@label{departmentEng}{Affiliation} 47 | \sjtu@def@label{defenddateChi}{答辩日期} 48 | \sjtu@def@label{defenddateEng}{Date of Defence} 49 | \sjtu@def@label{conferringChi}{授予学位单位} 50 | \sjtu@def@label{conferringEng}{Degree-Conferring-Institution} 51 | \sjtu@def@label{fundChi}{资助基金} 52 | \sjtu@def@label{fundEng}{Funded by} 53 | \sjtu@def@label{thesiscat}{学位论文} 54 | \def\sjtu@label@thesistype{\sjtu@label@thesiscat} 55 | \sjtu@def@label{subjectChi}{% 56 | \sjtu@label@schoolChi\sjtu@label@degreetypeChi\sjtu@label@thesiscat 57 | } 58 | \sjtu@def@label{subjectEng}{% 59 | Dissertation Submitted to \sjtu@label@schoolEng \\% 60 | for the Degree of \sjtu@label@degreetypeEng 61 | } 62 | \geometry{% 63 | paper = a4paper, 64 | top = 3.5cm, 65 | bottom = 4.0cm, 66 | left = 3.3cm, 67 | right = 2.8cm, 68 | headheight = 1.0cm, 69 | headsep = 0.5cm, 70 | } 71 | \newcommand{\sjtu@fancyfoot}[2]{ 72 | \ifsjtu@review\relax\else 73 | \ifx#2\@empty\else 74 | \zihao{-5}{\bfseries #1}\\{#2} 75 | \fi 76 | \fi 77 | } 78 | \fancypagestyle{sjtu@title}{% 79 | \fancyhf{} 80 | \fancyfoot[C]{\sjtu@fancyfoot{\sjtu@label@fundChi}{\sjtu@value@fund}} 81 | \renewcommand{\headrulewidth}{0pt} 82 | \renewcommand{\footrulewidth}{0pt} 83 | } 84 | \fancypagestyle{sjtu@entitle}{% 85 | \fancyhf{} 86 | \fancyfoot[C]{\sjtu@fancyfoot{\sjtu@label@fundEng}{\sjtu@value@enfund}} 87 | \renewcommand{\headrulewidth}{0pt} 88 | \renewcommand{\footrulewidth}{0pt} 89 | } 90 | \fancypagestyle{sjtu@plain}{% 91 | \fancyhf{} 92 | \fancyhead[C]{\zihao{-5}\sjtu@label@subjectChi} 93 | \fancyfoot[C]{\small ---~{\bfseries\thepage}~---} 94 | \renewcommand{\headrule}{% 95 | \hrule\@height2.25\p@\@width\headwidth 96 | \vskip 0.75\p@ 97 | \hrule\@height0.75\p@\@width\headwidth 98 | \vskip -2.75\p@ 99 | } 100 | } 101 | \renewcommand{\frontmatter}{% 102 | \cleardoublepage 103 | \@mainmatterfalse 104 | \pagenumbering{Roman} 105 | \pagestyle{sjtu@plain} 106 | } 107 | \renewcommand{\mainmatter}{% 108 | \cleardoublepage 109 | \@mainmattertrue 110 | \sjtu@setfloatfonttrue 111 | \pagenumbering{arabic} 112 | \pagestyle{sjtu@plain} 113 | } 114 | \renewcommand{\backmatter}{% 115 | \cleardoublepage 116 | \@mainmatterfalse 117 | } 118 | \renewcommand{\cftchapfont}{\bfseries\heiti} 119 | \renewcommand{\cftchapleader}{\normalfont\cftdotfill{\cftdotsep}} 120 | \NewDocumentEnvironment{abstract}{}{% 121 | \cleardoublepage 122 | \pdfbookmark[0]{\sjtu@label@abstract}{abstract} 123 | \chapter*{% 124 | \sjtu@value@title \vskip 2ex 125 | \begingroup 126 | \sjtu@label@abstractChi 127 | \endgroup 128 | } 129 | \@mkboth{\sjtu@label@abstractChi}% 130 | {\sjtu@label@abstractChi}% 131 | \zihao{4} 132 | }{% 133 | \vskip 3ex \noindent 134 | \begingroup 135 | \heiti\sjtu@label@keywordsChi 136 | \endgroup 137 | \begingroup 138 | \sjtu@value@keywords 139 | \endgroup 140 | } 141 | \NewDocumentEnvironment{enabstract}{}{% 142 | \cleardoublepage 143 | \chapter*{% 144 | \MakeUppercase\sjtu@value@entitle \vskip 2ex 145 | \begingroup 146 | \MakeUppercase\sjtu@label@abstractEng 147 | \endgroup 148 | } 149 | \@mkboth{\sjtu@label@abstractEng}% 150 | {\sjtu@label@abstractEng}% 151 | \zihao{4} 152 | }{% 153 | \vskip 3ex \noindent 154 | \begingroup 155 | \bfseries\MakeUppercase 156 | \sjtu@label@keywordsEng 157 | \endgroup 158 | \begingroup 159 | \sjtu@value@enkeywords 160 | \endgroup 161 | } 162 | \newcommand{\sjtu@bigabstract}[1]{\long\gdef\sjtu@bigabstract@body{#1}} 163 | \NewDocumentEnvironment{bigabstract}{}{% 164 | \Collect@Body\sjtu@bigabstract 165 | }{% 166 | \relax 167 | } 168 | \RenewDocumentCommand\maketitle{}{% 169 | \pdfbookmark[0]{\sjtu@label@titlepage}{titlepage} 170 | \sjtu@makechinesetitle% 171 | \sjtu@makeenglishtitle% 172 | } 173 | \newcommand{\sjtu@makechinesetitle}{% 174 | \cleardoublepage 175 | \thispagestyle{sjtu@title} 176 | \begin{center} 177 | \vspace*{40bp} 178 | {\zihao{-2}\sjtu@label@subjectChi} 179 | \vskip \stretch{4} 180 | {\zihao{2}\heiti\sjtu@value@title \vskip 1bp} 181 | \vskip \stretch{5} 182 | \begingroup 183 | \zihao{4} 184 | \def\tabcolsep{1bp} 185 | \def\arraystretch{1.25} 186 | \begin{tabular} 187 | {>{\begin{CJKfilltwosides}[t]{6.5\ccwd}\heiti}r<{\end{CJKfilltwosides}} 188 | @{:}l} 189 | \sjtu@label@authorChi & \sjtu@value@author \\ 190 | \sjtu@label@studentidChi & \sjtu@value@studentid \\ 191 | \sjtu@label@supervisorChi & \sjtu@value@supervisor \\ 192 | \ifx\sjtu@value@assisupervisor\@empty\else 193 | \sjtu@label@assisupervisorChi & \sjtu@value@assisupervisor \\ 194 | \fi 195 | \sjtu@label@degreeChi & \sjtu@value@degree \\ 196 | \sjtu@label@majorChi & \sjtu@value@major \\ 197 | \sjtu@label@departmentChi & \sjtu@value@department \\ 198 | \sjtu@label@defenddateChi & \sjtu@value@date \\ 199 | \sjtu@label@conferringChi & \sjtu@label@schoolChi \\ 200 | \end{tabular} 201 | \endgroup 202 | \vskip 26bp 203 | \end{center} 204 | \cleardoublepage 205 | } 206 | \newcommand{\sjtu@makeenglishtitle}{% 207 | \cleardoublepage 208 | \thispagestyle{sjtu@entitle} 209 | \begin{center} 210 | \vspace*{28bp} 211 | {\zihao{-2}\sjtu@label@subjectEng \vskip 1bp} 212 | \vskip \stretch{4} 213 | {\zihao{2}\bfseries\MakeUppercase\sjtu@value@entitle \vskip 1bp} 214 | \vskip \stretch{5} 215 | \begingroup 216 | \zihao{4} 217 | \def\tabcolsep{1bp} 218 | \def\arraystretch{1.3} 219 | \begin{tabular} 220 | {>{\bfseries}l<{:~}p{.45\textwidth}} 221 | \sjtu@label@authorEng & \sjtu@value@enauthor \\ 222 | \sjtu@label@studentidEng & \sjtu@value@studentid \\ 223 | \sjtu@label@supervisorEng & \sjtu@value@ensupervisor \\ 224 | \ifx\sjtu@value@enassisupervisor\@empty\else 225 | \sjtu@label@assisupervisorEng & \sjtu@value@enassisupervisor \\ 226 | \fi 227 | \sjtu@label@degreeEng & \sjtu@value@endegree \\ 228 | \sjtu@label@majorEng & \sjtu@value@enmajor \\ 229 | \sjtu@label@departmentEng & \sjtu@value@endepartment \\ 230 | \sjtu@label@defenddateEng & \sjtu@value@endate \\ 231 | \sjtu@label@conferringEng & \sjtu@label@schoolEng \\ 232 | \end{tabular} 233 | \endgroup 234 | \vskip 26bp 235 | \end{center} 236 | \cleardoublepage 237 | } 238 | \endinput 239 | %% 240 | %% End of file `sjtuthesis-graduate.ltx'. 241 | -------------------------------------------------------------------------------- /bib/thesis.bib: -------------------------------------------------------------------------------- 1 | @book{xie2015, 2 | title = {Dynamic Documents with {R} and knitr}, 3 | author = {Yihui Xie}, 4 | publisher = {Chapman and Hall/CRC}, 5 | address = {Boca Raton, Florida}, 6 | year = {2015}, 7 | edition = {2nd}, 8 | note = {ISBN 978-1498716963}, 9 | url = {http://yihui.name/knitr/}, 10 | } 11 | 12 | @book{Meta_CN, 13 | title = {电磁超介质及其应用}, 14 | address = {北京}, 15 | publisher = {国防工业出版社}, 16 | year = {2008}, 17 | author = {崔万照 and 马伟 and 邱乐德 and 张洪太} 18 | } 19 | 20 | @book{JohnD, 21 | title = {Photonic Crystals: Molding the Flow of Light}, 22 | publisher = {Princeton University Press}, 23 | year = {2008}, 24 | author = {Joannopoulos, J. D. and Johnson, S. G. and Winn, J. N.} 25 | } 26 | 27 | @book{IEEE-1363, 28 | author={IEEE Std 1363-2000}, 29 | title={IEEE Standard Specifications for Public-Key Cryptography}, 30 | address={New York}, 31 | publisher={IEEE}, 32 | year={2000} 33 | } 34 | 35 | @article{chen2007act, 36 | author = {Chen, H. and Chan, C. T.}, 37 | title = {Acoustic cloaking in three dimensions using acoustic metamaterials}, 38 | journal = {Applied Physics Letters}, 39 | year = {2007}, 40 | volume = {91}, 41 | pages = {183518}, 42 | publisher = {AIP} 43 | } 44 | 45 | @article{chen2007ewi, 46 | author = {Chen, H. and Wu, B. I. and Zhang, B. and Kong, J. A.}, 47 | title = {Electromagnetic Wave Interactions with a Metamaterial Cloak}, 48 | journal = {Physical Review Letters}, 49 | year = {2007}, 50 | volume = {99}, 51 | pages = {63903}, 52 | number = {6}, 53 | publisher = {APS} 54 | } 55 | 56 | @article{he1999, 57 | title = {标准动态力发生装置国内外研究现状}, 58 | number = {2}, 59 | journal = {机电工程}, 60 | author = {何闻}, 61 | year = {1999}, 62 | pages = {47-49}, 63 | } 64 | 65 | @inproceedings{kocher99, 66 | author={C. Kocher and J. Jaffe and B. Jun}, 67 | title={Differential Power Analysis}, 68 | editor={M. Wiener}, 69 | booktitle={Advances in Cryptology ({CRYPTO}~'99)}, 70 | series={Lecture Notes in Computer Science}, 71 | volume={1666}, 72 | pages={388-397}, 73 | publisher={Springer-Verlag}, 74 | month={9}, 75 | year={1999} 76 | } 77 | 78 | @incollection{Krasnogor2004e, 79 | AUTHOR = {N. Krasnogor}, 80 | TITLE = {Towards robust memetic algorithms}, 81 | BOOKTITLE = {Recent Advances in Memetic Algorithms}, 82 | PUBLISHER = {Springer Berlin Heidelberg}, 83 | YEAR = {2004}, 84 | PAGES = {185-207}, 85 | EDITOR = {W.E. Hart and N. Krasnogor and J.E. Smith}, 86 | VOLUME = {166}, 87 | SERIES = {Studies in Fuzziness and Soft Computing}, 88 | ADDRESS = {New York}, 89 | } 90 | 91 | @incollection{zjsw, 92 | AUTHOR = {班固}, 93 | TITLE = {苏武传}, 94 | BOOKTITLE = {传记散文英华}, 95 | PUBLISHER = {湖北人民出版社}, 96 | YEAR = {1998}, 97 | PAGES = {65-69}, 98 | EDITOR = {郑在瀛 and 汪超宏 and 周文复}, 99 | VOLUME = {2}, 100 | SERIES = {新古文观止丛书}, 101 | ADDRESS = {武汉}, 102 | } 103 | 104 | 105 | @inbook{clzs, 106 | AUTHOR = {阎真}, 107 | TITLE = {沧浪之水}, 108 | CHAPTER = {大人物还是讲人情的}, 109 | PAGES = {185-207}, 110 | PUBLISHER = {人民文学出版社}, 111 | YEAR = {2001}, 112 | } 113 | 114 | @book{tex, 115 | author = {Donald E. Knuth}, 116 | title = {The {\TeX} Book}, 117 | publisher = {Addison-Wesley Publishing Company}, 118 | address = {Reading, MA}, 119 | year = 1989, 120 | edition = {15th}, 121 | } 122 | 123 | @book{companion, 124 | author = {Michel Goosens and Frank Mittelbach and Alexander Samarin}, 125 | title = {The {\LaTeX} Companion}, 126 | publisher = {Addison-Wesley Publishing Company}, 127 | address = {Reading, MA}, 128 | PAGES = {112--125}, 129 | year = 1994, 130 | } 131 | 132 | @article{ELIDRISSI94, 133 | AUTHOR = {{Chafik El Idrissi}, M. and {Roney}, A. and {Frigon}, C. and 134 | {Larzilli{\`e}re}, M.}, 135 | TITLE = {Measurements of total kinetic-energy released to the {$N=2$} 136 | dissociation limit of {H}$_2$ --- evidence of the dissociation 137 | of very high vibrational {R}ydberg states of {H}$_2$ by 138 | doubly-excited states}, 139 | JOURNAL = {Chemical Physics Letters}, 140 | PAGES = {260-266}, 141 | VOLUME = 224, 142 | NUMBER = 10, 143 | YEAR = 1994, 144 | } 145 | 146 | @ARTICLE{MELLINGER96, 147 | AUTHOR = {Mellinger, A. and Vidal, C. R. and Jungen, Ch.}, 148 | TITLE = {Laser reduced fluorescence study of the carbon-monoxide nd 149 | triplet {R}ydberg series-experimental results and multichannel 150 | quantum-defect analysis}, 151 | JOURNAL = {J. Chem. Phys.}, 152 | PAGES = {8913-8921}, 153 | VOLUME = 104, 154 | NUMBER = 5, 155 | YEAR = 1996, 156 | } 157 | 158 | @ARTICLE{SHELL02, 159 | AUTHOR = {Michael Shell}, 160 | TITLE = {How to Use the {IEEEtran \LaTeX} Class}, 161 | JOURNAL = {Journal of {\LaTeX} Class Files}, 162 | YEAR = 2002, 163 | VOLUME = 12, 164 | NUMBER = 4, 165 | PAGES = {100--120} 166 | } 167 | 168 | @TechReport{NPB2, 169 | title = {The {NAS} Parallel Benchmarks 2.0}, 170 | author = {Alex Woo and David Bailey and Maurice Yarrow and Wijngaart 171 | Wijngaart and Tim Harris and William Saphir}, 172 | year = 1995, 173 | month = 12, 174 | institution = {The Pennsylvania State University CiteSeer Archives}, 175 | url = {http://www.nasa.org/} 176 | } 177 | 178 | @INPROCEEDINGS{DPMG, 179 | author = {Kim, Sangbum and Woo, Namyoon and Yeom, Heon Y. and Park, 180 | Taesoon and Park, Hyoungwoo}, 181 | title = {Design and {I}mplementation of {D}ynamic {P}rocess 182 | {M}anagement for {G}rid-enabled {MPICH}}, 183 | booktitle = {the 10th European PVM/MPI Users' Group Conference}, 184 | year = 2003, 185 | address = {Venice, Italy}, 186 | month = sep, 187 | } 188 | 189 | @INPROCEEDINGS{cnproceed, 190 | author = {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝}, 191 | title = {武林高手论文集}, 192 | booktitle = {第~$N$~次华山论剑}, 193 | year = 2006, 194 | address = {西安, 中国}, 195 | publisher = {中国古籍出版社}, 196 | month = sep, 197 | } 198 | 199 | @ARTICLE{cnarticle, 200 | AUTHOR = {贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春}, 201 | TITLE = {论刘姥姥食量大如牛之现实意义}, 202 | JOURNAL = {红楼梦杂谈}, 203 | PAGES = {260--266}, 204 | VOLUME = 224, 205 | YEAR = 1800, 206 | } 207 | 208 | @thesis{zhubajie, 209 | author = {猪八戒}, 210 | title = {论流体食物的持久保存}, 211 | school = {广寒宫大学}, 212 | year = 2005, 213 | address = {北京}, 214 | } 215 | 216 | @thesis{shaheshang, 217 | title = {论流沙河的综合治理}, 218 | author = {沙和尚}, 219 | school = {清华大学}, 220 | year = 2005, 221 | address = {北京}, 222 | } 223 | 224 | @thesis{metamori2004, 225 | author = {Ashwin Raju Jeyakumar}, 226 | title = {Metamori: A library for Incremental File Checkpointing}, 227 | school = {Virgina Tech}, 228 | year = 2004, 229 | month = 7, 230 | address = {Blacksburg}, 231 | } 232 | 233 | @thesis{FistSystem01, 234 | AUTHOR = {Erez Zadok}, 235 | TITLE = {FiST: A System for Stackable File System Code Generation}, 236 | YEAR = 2001, 237 | MONTH = {5}, 238 | SCHOOL = {Computer Science Department, Columbia University}, 239 | ADDRESS = {USA} 240 | } 241 | 242 | @INBOOK{ColdSources, 243 | AUTHOR = {P. Gr{\"o}ning and L. Nilsson and P. Ruffieux and R. 244 | Clergereaux and O. Gr{\"o}ning}, 245 | TITLE = {Encyclopedia of Nanoscience and Nanotechnology}, 246 | pages = {547--579}, 247 | PUBLISHER = {American Scientific Publishers}, 248 | YEAR = 2004, 249 | volume = 1, 250 | } 251 | 252 | @phdthesis{bai2008, 253 | title={信用风险传染模型和信用衍生品的定价}, 254 | author={白云芬}, 255 | year={2008}, 256 | school={上海交通大学}, 257 | address={上海}, 258 | } 259 | 260 | 261 | %萧钰.出版业信息化迈人快车道[EB/OL]. (2001-12-19)[2002-04-15]. http://www.creader.com/news/20011219/200112190019. html. 262 | @article{xiaoyu2001, 263 | author = {萧钰}, 264 | title = {出版业信息化迈人快车道}, 265 | year = {2001}, 266 | TypeofLit = {EB/OL}, 267 | modifydate = {2001-12-19}, 268 | citedate = {2002-04-15}, 269 | url = {http://www.creader.com/news/20011219/200112190019.html}, 270 | } 271 | 272 | % 在线析出文献 273 | @article{CHRISTINE1998, 274 | author = {Christine, Mlot}, 275 | title = {Plant physiology: plant biology in the Genome Era}, 276 | journal = {Science}, 277 | volume = {281}, 278 | pages = {331-332}, 279 | year = {1998}, 280 | TypeofLit = {J/OL}, 281 | citedate = {1998-09-23}, 282 | url = {http://www.sciencemag.org/cgi/collection/anatmorp}, 283 | } 284 | 285 | @book{RManual, 286 | Address = {Vienna, Austria}, 287 | Author = {{R Core Team}}, 288 | Note = {{ISBN} 3-900051-07-0}, 289 | Organization = {R Foundation for Statistical Computing}, 290 | title = {R: A Language and Environment for Statistical Computing}, 291 | url = {http://www.R-project.org/}, 292 | Year = {2012}, 293 | } 294 | 295 | -------------------------------------------------------------------------------- /rmd/102-chapters.Rmd: -------------------------------------------------------------------------------- 1 | \input{tex/floats} 2 | 3 | # 浮动体 4 | 5 | ## 插图 6 | 7 | 插图功能是利用 \TeX\ 的特定编译程序提供的机制实现的,不同的编译程序支持不同的图 8 | 形方式。有的同学可能听说“\LaTeX\ 只支持 EPS”,事实上这种说法是不准确的。\XeTeX 9 | 可以很方便地插入 EPS、PDF、PNG、JPEG 格式的图片。 10 | 11 | 一般图形都是处在浮动环境中。之所以称为浮动是指最终排版效果图形的位置不一定与源文 12 | 件中的位置对应,这也是刚使用 \LaTeX\ 同学可能遇到的问题。如果要强制固定浮动图形 13 | 的位置,请使用 \pkg{float} 宏包,它提供了 \texttt{[H]} 参数。 14 | 15 | ### 单个图形 16 | 17 | 图要有图题,研究生图题采用中英文对照,并置于图的编号之后,图的编号和图题应置于图 18 | 下方的居中位置。引用图应在图题右上角标出文献来源。当插图中组成部件由数字或字母等 19 | 编号表示时,可在插图下方添加图注进行说明,如图~\ref{fig:cn_100t} 所示。 20 | 21 | \begin{figure}[!htp] 22 | \centering 23 | \includegraphics[width=4cm]{cn_100t.png} \\ 24 | 1.立柱 2.提升释放机构 3.标准冲击加速度计 \\ 25 | 4.导轨 5.重锤 6.被校力传感器 7.底座 \\ 26 | \bicaption[出现在插图索引中] 27 | {单个图形示例\cite{he1999}。如果表格的标题很长,那么在表格索引中就会很不美观。可 28 | 以在前面用中括号写一个简短的标题,这个标题会出现在索引中。} 29 | {Stay hungry, stay foolish.} 30 | \label{fig:cn_100t} 31 | \end{figure} 32 | 33 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 34 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 35 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 36 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 37 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 38 | culpa qui officia deserunt mollit anim id est laborum. 39 | 40 | \subsection{多个图形} 41 | 42 | 简单插入多个图形的例子如图~\ref{fig:SRR} 所示。这两个水平并列放置的子图共用一个 43 | 图形计数器,没有各自的子图题。 44 | 45 | \begin{figure}[!htp] 46 | \centering 47 | \includegraphics[height=2cm]{sjtu-badge.pdf} 48 | \hspace{1cm} 49 | \includegraphics[height=2cm]{sjtu-badge.pdf} 50 | \bicaption{中文题图}{English caption} 51 | \label{fig:SRR} 52 | \end{figure} 53 | 54 | 如果多个图形相互独立,并不共用一个图形计数器,那么用 \texttt{minipage} 或者 55 | \texttt{parbox} 就可以,如图~\ref{fig:parallel1} 与图~\ref{fig:parallel2}。 56 | 57 | \begin{figure}[!htp] 58 | \begin{minipage}{0.48\textwidth} 59 | \centering 60 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 61 | \caption{并排第一个图} 62 | \label{fig:parallel1} 63 | \end{minipage}\hfill 64 | \begin{minipage}{0.48\textwidth} 65 | \centering 66 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 67 | \caption{并排第二个图} 68 | \label{fig:parallel2} 69 | \end{minipage} 70 | \end{figure} 71 | 72 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 73 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 74 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 75 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 76 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 77 | culpa qui officia deserunt mollit anim id est laborum. 78 | 79 | 如果要为共用一个计数器的多个子图添加子图题,建议使用较新的 \pkg{subcaption}宏 80 | 包,不建议使用 \pkg{subfigure} 或 \pkg{subfig} 等宏包。 81 | 82 | 推荐使用 \pkg{subcaption} 宏包的 \cs{subcaptionbox} 并排子图,子图题置于子图之 83 | 下,子图号用 a)、b) 等表示。也可以使用 \pkg{subcaption} 宏包的 \cs{subcaption} 84 | (放在 minipage中,用法同 \cs{caption})。 85 | 86 | 搭配 \pkg{bicaption} 宏包时,可以启用 \cs{subcaptionbox} 和 \cs{subcaption} 的双 87 | 语变种 \cs{bisubcaptionbox} 和 \cs{bisubcaption},如图~\ref{fig:bisubcaptionbox} 88 | 所示。 89 | 90 | \begin{figure}[!hbtp] 91 | \centering 92 | \bisubcaptionbox{$R_3 = 1.5\text{mm}$ 时轴承的压力分布云图}% 93 | {Pressure contour of bearing when $R_3 = 1.5\text{mm}$}% 94 | [6.4cm]{\includegraphics[height=2.5cm]{pressure15.jpg}} 95 | \hspace{1cm} 96 | \bisubcaptionbox{$R_3 = 2.5\text{mm}$ 时轴承的压力分布云图}% 97 | {Pressure contour of bearing when $R_3 = 2.5\text{mm}$}% 98 | [6.4cm]{\includegraphics[height=2.5cm]{/pressure25.jpg}} 99 | \bicaption{包含子图题的范例(使用 subcaptionbox)} 100 | {Example with subcaptionbox} 101 | \label{fig:bisubcaptionbox} 102 | \end{figure} 103 | 104 | \pkg{subcaption} 宏包也提供了 \pkg{subfigure} 和 \pkg{subtable} 环境,如 105 | 图~\ref{fig:subfigure}。 106 | 107 | \begin{figure}[!htp] 108 | \centering 109 | \begin{subfigure}{0.3\textwidth} 110 | \centering 111 | \includegraphics[height=2cm]{sjtu-badge.pdf} 112 | \caption{校徽} 113 | \end{subfigure} 114 | \hspace{1cm} 115 | \begin{subfigure}{0.4\textwidth} 116 | \centering 117 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 118 | \caption{校名。注意这个图略矮些,subfigure 中同一行的子图在顶端对齐。} 119 | \end{subfigure} 120 | \caption{包含子图题的范例(使用 subfigure)} 121 | \label{fig:subfigure} 122 | \end{figure} 123 | 124 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 125 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 126 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 127 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 128 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 129 | culpa qui officia deserunt mollit anim id est laborum. 130 | 131 | ## 表格 132 | 133 | ### 基本表格 134 | 135 | 编排表格应简单明了,表达一致,明晰易懂,表文呼应、内容一致。表题置于表上,研究生 136 | 学位论文可以用中、英文两种文字居中排写,中文在上,也可以只用中文。 137 | 138 | 表格的编排建议采用国际通行的三线表\footnote{三线表,以其形式简洁、功能分明、阅读 139 | 方便而在科技论文中被推荐使用。三线表通常只有 3 条线,即顶线、底线和栏目线,没有 140 | 竖线。}。三线表可以使用 \pkg{booktabs} 提供的 \cs{toprule}、\cs{midrule} 和 141 | \cs{bottomrule}。它们与 \pkg{longtable} 能很好的配合使用。 142 | 143 | \begin{table}[!hpt] 144 | \caption[一个颇为标准的三线表]{一个颇为标准的三线表\footnotemark} 145 | \label{tab:firstone} 146 | \centering 147 | \begin{tabular}{@{}llr@{}} \toprule 148 | \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2} 149 | Animal & Description & Price (\$)\\ \midrule 150 | Gnat & per gram & 13.65 \\ 151 | & each & 0.01 \\ 152 | Gnu & stuffed & 92.50 \\ 153 | Emu & stuffed & 33.33 \\ 154 | Armadillo & frozen & 8.99 \\ \bottomrule 155 | \end{tabular} 156 | \end{table} 157 | \footnotetext{这个例子来自 158 | \href{https://mirrors.sjtug.sjtu.edu.cn/ctan/macros/latex/contrib/booktabs/booktabs.pdf}% 159 | {《Publication quality tables in LaTeX》}(\pkg{booktabs} 宏包的文档)。这也是 160 | 一个在表格中使用脚注的例子,请留意与 \pkg{threeparttable} 实现的效果有何不 161 | 同。} 162 | 163 | ### 复杂表格 164 | 165 | 我们经常会在表格下方标注数据来源,或者对表格里面的条目进行解释。可以用 166 | \pkg{threeparttable} 实现带有脚注的表格,如表~\ref{tab:footnote}。 167 | 168 | \begin{table}[!htpb] 169 | \bicaption{一个带有脚注的表格的例子}{A Table with footnotes} 170 | \label{tab:footnote} 171 | \centering 172 | \begin{threeparttable}[b] 173 | \begin{tabular}{ccd{4}cccc} 174 | \toprule 175 | \multirow{2}*{total} & \multicolumn{2}{c}{20\tnote{a}} & \multicolumn{2}{c}{40} & \multicolumn{2}{c}{60} \\ 176 | \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7} 177 | & www & \multicolumn{1}{c}{k} & www & k & www & k \\ % 使用说明符 d 的列会自动进入数学模式,使用 \multicolumn 对文字表头做特殊处理 178 | \midrule 179 | & $\underset{(2.12)}{4.22}$ & 120.0140\tnote{b} & 333.15 & 0.0411 & 444.99 & 0.1387 \\ 180 | & 168.6123 & 10.86 & 255.37 & 0.0353 & 376.14 & 0.1058 \\ 181 | & 6.761 & 0.007 & 235.37 & 0.0267 & 348.66 & 0.1010 \\ 182 | \bottomrule 183 | \end{tabular} 184 | \begin{tablenotes} 185 | \item [a] the first note.% or \item [a] 186 | \item [b] the second note.% or \item [b] 187 | \end{tablenotes} 188 | \end{threeparttable} 189 | \end{table} 190 | 191 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 192 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 193 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 194 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 195 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 196 | culpa qui officia deserunt mollit anim id est laborum. 197 | 198 | 如某个表需要转页接排,可以用 \pkg{longtable} 实现。接排时表题省略,表头应重复书 199 | 写,并在右上方写“续表 xx”,如表~\ref{tab:performance}。 200 | 201 | \begin{longtable}[c]{c*{6}{r}} 202 | \bicaption{实验数据}{Experimental data} 203 | \label{tab:performance} \\ 204 | \toprule 205 | 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} 206 | & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复} 207 | & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\ 208 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 209 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 210 | & \multicolumn{1}{c}{时间 (s)} & 文件(KB)\\ 211 | \midrule 212 | \endfirsthead 213 | \multicolumn{7}{r}{续表~\thetable} \\ 214 | \toprule 215 | 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} 216 | & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复} 217 | & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\ 218 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 219 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 220 | & \multicolumn{1}{c}{时间 (s)}& 文件(KB)\\ 221 | \midrule 222 | \endhead 223 | \hline 224 | \multicolumn{7}{r}{续下页} 225 | \endfoot 226 | \endlastfoot 227 | CG.A.2 & 23.05 & 0.002 & 0.116 & 0.035 & 0.589 & 32491 \\ 228 | CG.A.4 & 15.06 & 0.003 & 0.067 & 0.021 & 0.351 & 18211 \\ 229 | CG.A.8 & 13.38 & 0.004 & 0.072 & 0.023 & 0.210 & 9890 \\ 230 | CG.B.2 & 867.45 & 0.002 & 0.864 & 0.232 & 3.256 & 228562 \\ 231 | CG.B.4 & 501.61 & 0.003 & 0.438 & 0.136 & 2.075 & 123862 \\ 232 | CG.B.8 & 384.65 & 0.004 & 0.457 & 0.108 & 1.235 & 63777 \\ 233 | MG.A.2 & 112.27 & 0.002 & 0.846 & 0.237 & 3.930 & 236473 \\ 234 | MG.A.4 & 59.84 & 0.003 & 0.442 & 0.128 & 2.070 & 123875 \\ 235 | MG.A.8 & 31.38 & 0.003 & 0.476 & 0.114 & 1.041 & 60627 \\ 236 | MG.B.2 & 526.28 & 0.002 & 0.821 & 0.238 & 4.176 & 236635 \\ 237 | MG.B.4 & 280.11 & 0.003 & 0.432 & 0.130 & 1.706 & 123793 \\ 238 | MG.B.8 & 148.29 & 0.003 & 0.442 & 0.116 & 0.893 & 60600 \\ 239 | LU.A.2 & 2116.54 & 0.002 & 0.110 & 0.030 & 0.532 & 28754 \\ 240 | LU.A.4 & 1102.50 & 0.002 & 0.069 & 0.017 & 0.255 & 14915 \\ 241 | LU.A.8 & 574.47 & 0.003 & 0.067 & 0.016 & 0.192 & 8655 \\ 242 | LU.B.2 & 9712.87 & 0.002 & 0.357 & 0.104 & 1.734 & 101975 \\ 243 | LU.B.4 & 4757.80 & 0.003 & 0.190 & 0.056 & 0.808 & 53522 \\ 244 | LU.B.8 & 2444.05 & 0.004 & 0.222 & 0.057 & 0.548 & 30134 \\ 245 | EP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1834 \\ 246 | EP.A.4 & 61.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1743 \\ 247 | EP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1661 \\ 248 | EP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2011 \\ 249 | EP.B.4 & 247.69 & 0.002 & 0.012 & 0.004 & 0.122 & 1663 \\ 250 | EP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.083 & 1656 \\ 251 | SP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1854 \\ 252 | SP.A.4 & 51.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1543 \\ 253 | SP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1671 \\ 254 | SP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2411 \\ 255 | SP.B.4 & 247.69 & 0.002 & 0.014 & 0.006 & 0.152 & 2653 \\ 256 | SP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.082 & 1755 \\ 257 | \bottomrule 258 | \end{longtable} 259 | 260 | ## 算法环境 261 | 262 | 算法环境可以使用 \pkg{algorithms} 宏包或者较新的 \pkg{algorithm2e} 实现。 263 | 算法~\ref{algo:algorithm} 是一个使用 \pkg{algorithm2e} 的例子。关于排版算法环境 264 | 的具体方法,请阅读相关宏包的官方文档。 265 | 266 | \begin{algorithm}[htb] 267 | \caption{算法示例} 268 | \label{algo:algorithm} 269 | \small 270 | \SetAlgoLined 271 | \KwData{this text} 272 | \KwResult{how to write algorithm with \LaTeXe } 273 | 274 | initialization\; 275 | \While{not at end of this document}{ 276 | read current\; 277 | \eIf{understand}{ 278 | go to next section\; 279 | current section becomes this one\; 280 | }{ 281 | go back to the beginning of current section\; 282 | } 283 | } 284 | \end{algorithm} 285 | 286 | ## 代码环境 287 | 288 | 我们可以在论文中插入算法,但是不建议插入大段的代码。如果确实需要插入代码,建议使 289 | 用 \pkg{listings} 宏包。 290 | 291 | ```c 292 | #include 293 | #include 294 | #include 295 | #include 296 | 297 | int main() { 298 | pid_t pid; 299 | 300 | switch ((pid = fork())) { 301 | case -1: 302 | printf("fork failed\n"); 303 | break; 304 | case 0: 305 | /* child calls exec */ 306 | execl("/bin/ls", "ls", "-l", (char*)0); 307 | printf("execl failed\n"); 308 | break; 309 | default: 310 | /* parent uses wait to suspend execution until child finishes */ 311 | wait((int*)0); 312 | printf("is completed\n"); 313 | break; 314 | } 315 | 316 | return 0; 317 | } 318 | ``` 319 | -------------------------------------------------------------------------------- /tex/floats.tex: -------------------------------------------------------------------------------- 1 | % !TeX root = ../thesis.tex 2 | 3 | \chapter{浮动体} 4 | 5 | \section{插图} 6 | 7 | 插图功能是利用 \TeX\ 的特定编译程序提供的机制实现的,不同的编译程序支持不同的图 8 | 形方式。有的同学可能听说“\LaTeX\ 只支持 EPS”,事实上这种说法是不准确的。\XeTeX 9 | 可以很方便地插入 EPS、PDF、PNG、JPEG 格式的图片。 10 | 11 | 一般图形都是处在浮动环境中。之所以称为浮动是指最终排版效果图形的位置不一定与源文 12 | 件中的位置对应,这也是刚使用 \LaTeX\ 同学可能遇到的问题。如果要强制固定浮动图形 13 | 的位置,请使用 \pkg{float} 宏包,它提供了 \texttt{[H]} 参数。 14 | 15 | \subsection{单个图形} 16 | 17 | 图要有图题,研究生图题采用中英文对照,并置于图的编号之后,图的编号和图题应置于图 18 | 下方的居中位置。引用图应在图题右上角标出文献来源。当插图中组成部件由数字或字母等 19 | 编号表示时,可在插图下方添加图注进行说明,如图~\ref{fig:cn_100t} 所示。 20 | 21 | \begin{figure}[!htp] 22 | \centering 23 | \includegraphics[width=4cm]{cn_100t.png} \\ 24 | 1.立柱 2.提升释放机构 3.标准冲击加速度计 \\ 25 | 4.导轨 5.重锤 6.被校力传感器 7.底座 \\ 26 | \bicaption[出现在插图索引中] 27 | {单个图形示例\cite{he1999}。如果表格的标题很长,那么在表格索引中就会很不美观。可 28 | 以在前面用中括号写一个简短的标题,这个标题会出现在索引中。} 29 | {Stay hungry, stay foolish.} 30 | \label{fig:cn_100t} 31 | \end{figure} 32 | 33 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 34 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 35 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 36 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 37 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 38 | culpa qui officia deserunt mollit anim id est laborum. 39 | 40 | \subsection{多个图形} 41 | 42 | 简单插入多个图形的例子如图~\ref{fig:SRR} 所示。这两个水平并列放置的子图共用一个 43 | 图形计数器,没有各自的子图题。 44 | 45 | \begin{figure}[!htp] 46 | \centering 47 | \includegraphics[height=2cm]{sjtu-badge.pdf} 48 | \hspace{1cm} 49 | \includegraphics[height=2cm]{sjtu-badge.pdf} 50 | \bicaption{中文题图}{English caption} 51 | \label{fig:SRR} 52 | \end{figure} 53 | 54 | 如果多个图形相互独立,并不共用一个图形计数器,那么用 \texttt{minipage} 或者 55 | \texttt{parbox} 就可以,如图~\ref{fig:parallel1} 与图~\ref{fig:parallel2}。 56 | 57 | \begin{figure}[!htp] 58 | \begin{minipage}{0.48\textwidth} 59 | \centering 60 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 61 | \caption{并排第一个图} 62 | \label{fig:parallel1} 63 | \end{minipage}\hfill 64 | \begin{minipage}{0.48\textwidth} 65 | \centering 66 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 67 | \caption{并排第二个图} 68 | \label{fig:parallel2} 69 | \end{minipage} 70 | \end{figure} 71 | 72 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 73 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 74 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 75 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 76 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 77 | culpa qui officia deserunt mollit anim id est laborum. 78 | 79 | 如果要为共用一个计数器的多个子图添加子图题,建议使用较新的 \pkg{subcaption}宏 80 | 包,不建议使用 \pkg{subfigure} 或 \pkg{subfig} 等宏包。 81 | 82 | 推荐使用 \pkg{subcaption} 宏包的 \cs{subcaptionbox} 并排子图,子图题置于子图之 83 | 下,子图号用 a)、b) 等表示。也可以使用 \pkg{subcaption} 宏包的 \cs{subcaption} 84 | (放在 minipage中,用法同 \cs{caption})。 85 | 86 | 搭配 \pkg{bicaption} 宏包时,可以启用 \cs{subcaptionbox} 和 \cs{subcaption} 的双 87 | 语变种 \cs{bisubcaptionbox} 和 \cs{bisubcaption},如图~\ref{fig:bisubcaptionbox} 88 | 所示。 89 | 90 | \begin{figure}[!hbtp] 91 | \centering 92 | \bisubcaptionbox{$R_3 = 1.5\text{mm}$ 时轴承的压力分布云图}% 93 | {Pressure contour of bearing when $R_3 = 1.5\text{mm}$}% 94 | [6.4cm]{\includegraphics[height=2.5cm]{pressure15.jpg}} 95 | \hspace{1cm} 96 | \bisubcaptionbox{$R_3 = 2.5\text{mm}$ 时轴承的压力分布云图}% 97 | {Pressure contour of bearing when $R_3 = 2.5\text{mm}$}% 98 | [6.4cm]{\includegraphics[height=2.5cm]{/pressure25.jpg}} 99 | \bicaption{包含子图题的范例(使用 subcaptionbox)} 100 | {Example with subcaptionbox} 101 | \label{fig:bisubcaptionbox} 102 | \end{figure} 103 | 104 | \pkg{subcaption} 宏包也提供了 \pkg{subfigure} 和 \pkg{subtable} 环境,如 105 | 图~\ref{fig:subfigure}。 106 | 107 | \begin{figure}[!htp] 108 | \centering 109 | \begin{subfigure}{0.3\textwidth} 110 | \centering 111 | \includegraphics[height=2cm]{sjtu-badge.pdf} 112 | \caption{校徽} 113 | \end{subfigure} 114 | \hspace{1cm} 115 | \begin{subfigure}{0.4\textwidth} 116 | \centering 117 | \includegraphics[height=1.5cm]{sjtu-name.pdf} 118 | \caption{校名。注意这个图略矮些,subfigure 中同一行的子图在顶端对齐。} 119 | \end{subfigure} 120 | \caption{包含子图题的范例(使用 subfigure)} 121 | \label{fig:subfigure} 122 | \end{figure} 123 | 124 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 125 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 126 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 127 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 128 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 129 | culpa qui officia deserunt mollit anim id est laborum. 130 | 131 | \section{表格} 132 | 133 | \subsection{基本表格} 134 | 135 | 编排表格应简单明了,表达一致,明晰易懂,表文呼应、内容一致。表题置于表上,研究生 136 | 学位论文可以用中、英文两种文字居中排写,中文在上,也可以只用中文。 137 | 138 | 表格的编排建议采用国际通行的三线表\footnote{三线表,以其形式简洁、功能分明、阅读 139 | 方便而在科技论文中被推荐使用。三线表通常只有 3 条线,即顶线、底线和栏目线,没有 140 | 竖线。}。三线表可以使用 \pkg{booktabs} 提供的 \cs{toprule}、\cs{midrule} 和 141 | \cs{bottomrule}。它们与 \pkg{longtable} 能很好的配合使用。 142 | 143 | \begin{table}[!hpt] 144 | \caption[一个颇为标准的三线表]{一个颇为标准的三线表\footnotemark} 145 | \label{tab:firstone} 146 | \centering 147 | \begin{tabular}{@{}llr@{}} \toprule 148 | \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2} 149 | Animal & Description & Price (\$)\\ \midrule 150 | Gnat & per gram & 13.65 \\ 151 | & each & 0.01 \\ 152 | Gnu & stuffed & 92.50 \\ 153 | Emu & stuffed & 33.33 \\ 154 | Armadillo & frozen & 8.99 \\ \bottomrule 155 | \end{tabular} 156 | \end{table} 157 | \footnotetext{这个例子来自 158 | \href{https://mirrors.sjtug.sjtu.edu.cn/ctan/macros/latex/contrib/booktabs/booktabs.pdf}% 159 | {《Publication quality tables in LaTeX》}(\pkg{booktabs} 宏包的文档)。这也是 160 | 一个在表格中使用脚注的例子,请留意与 \pkg{threeparttable} 实现的效果有何不 161 | 同。} 162 | 163 | \subsection{复杂表格} 164 | 165 | 我们经常会在表格下方标注数据来源,或者对表格里面的条目进行解释。可以用 166 | \pkg{threeparttable} 实现带有脚注的表格,如表~\ref{tab:footnote}。 167 | 168 | \begin{table}[!htpb] 169 | \bicaption{一个带有脚注的表格的例子}{A Table with footnotes} 170 | \label{tab:footnote} 171 | \centering 172 | \begin{threeparttable}[b] 173 | \begin{tabular}{ccd{4}cccc} 174 | \toprule 175 | \multirow{2}*{total} & \multicolumn{2}{c}{20\tnote{a}} & \multicolumn{2}{c}{40} & \multicolumn{2}{c}{60} \\ 176 | \cmidrule(lr){2-3}\cmidrule(lr){4-5}\cmidrule(lr){6-7} 177 | & www & \multicolumn{1}{c}{k} & www & k & www & k \\ % 使用说明符 d 的列会自动进入数学模式,使用 \multicolumn 对文字表头做特殊处理 178 | \midrule 179 | & $\underset{(2.12)}{4.22}$ & 120.0140\tnote{b} & 333.15 & 0.0411 & 444.99 & 0.1387 \\ 180 | & 168.6123 & 10.86 & 255.37 & 0.0353 & 376.14 & 0.1058 \\ 181 | & 6.761 & 0.007 & 235.37 & 0.0267 & 348.66 & 0.1010 \\ 182 | \bottomrule 183 | \end{tabular} 184 | \begin{tablenotes} 185 | \item [a] the first note.% or \item [a] 186 | \item [b] the second note.% or \item [b] 187 | \end{tablenotes} 188 | \end{threeparttable} 189 | \end{table} 190 | 191 | Lorem ipsum dolor sit amet, consectetur adipisici elit, sed do eiusmod tempor 192 | incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis 193 | nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. 194 | Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu 195 | fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in 196 | culpa qui officia deserunt mollit anim id est laborum. 197 | 198 | 如某个表需要转页接排,可以用 \pkg{longtable} 实现。接排时表题省略,表头应重复书 199 | 写,并在右上方写“续表 xx”,如表~\ref{tab:performance}。 200 | 201 | \begin{longtable}[c]{c*{6}{r}} 202 | \bicaption{实验数据}{Experimental data} 203 | \label{tab:performance} \\ 204 | \toprule 205 | 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} 206 | & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复} 207 | & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\ 208 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 209 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 210 | & \multicolumn{1}{c}{时间 (s)} & 文件(KB)\\ 211 | \midrule 212 | \endfirsthead 213 | \multicolumn{7}{r}{续表~\thetable} \\ 214 | \toprule 215 | 测试程序 & \multicolumn{1}{c}{正常运行} & \multicolumn{1}{c}{同步} 216 | & \multicolumn{1}{c}{检查点} & \multicolumn{1}{c}{卷回恢复} 217 | & \multicolumn{1}{c}{进程迁移} & \multicolumn{1}{c}{检查点} \\ 218 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 219 | & \multicolumn{1}{c}{时间 (s)} & \multicolumn{1}{c}{时间 (s)} 220 | & \multicolumn{1}{c}{时间 (s)}& 文件(KB)\\ 221 | \midrule 222 | \endhead 223 | \hline 224 | \multicolumn{7}{r}{续下页} 225 | \endfoot 226 | \endlastfoot 227 | CG.A.2 & 23.05 & 0.002 & 0.116 & 0.035 & 0.589 & 32491 \\ 228 | CG.A.4 & 15.06 & 0.003 & 0.067 & 0.021 & 0.351 & 18211 \\ 229 | CG.A.8 & 13.38 & 0.004 & 0.072 & 0.023 & 0.210 & 9890 \\ 230 | CG.B.2 & 867.45 & 0.002 & 0.864 & 0.232 & 3.256 & 228562 \\ 231 | CG.B.4 & 501.61 & 0.003 & 0.438 & 0.136 & 2.075 & 123862 \\ 232 | CG.B.8 & 384.65 & 0.004 & 0.457 & 0.108 & 1.235 & 63777 \\ 233 | MG.A.2 & 112.27 & 0.002 & 0.846 & 0.237 & 3.930 & 236473 \\ 234 | MG.A.4 & 59.84 & 0.003 & 0.442 & 0.128 & 2.070 & 123875 \\ 235 | MG.A.8 & 31.38 & 0.003 & 0.476 & 0.114 & 1.041 & 60627 \\ 236 | MG.B.2 & 526.28 & 0.002 & 0.821 & 0.238 & 4.176 & 236635 \\ 237 | MG.B.4 & 280.11 & 0.003 & 0.432 & 0.130 & 1.706 & 123793 \\ 238 | MG.B.8 & 148.29 & 0.003 & 0.442 & 0.116 & 0.893 & 60600 \\ 239 | LU.A.2 & 2116.54 & 0.002 & 0.110 & 0.030 & 0.532 & 28754 \\ 240 | LU.A.4 & 1102.50 & 0.002 & 0.069 & 0.017 & 0.255 & 14915 \\ 241 | LU.A.8 & 574.47 & 0.003 & 0.067 & 0.016 & 0.192 & 8655 \\ 242 | LU.B.2 & 9712.87 & 0.002 & 0.357 & 0.104 & 1.734 & 101975 \\ 243 | LU.B.4 & 4757.80 & 0.003 & 0.190 & 0.056 & 0.808 & 53522 \\ 244 | LU.B.8 & 2444.05 & 0.004 & 0.222 & 0.057 & 0.548 & 30134 \\ 245 | EP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1834 \\ 246 | EP.A.4 & 61.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1743 \\ 247 | EP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1661 \\ 248 | EP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2011 \\ 249 | EP.B.4 & 247.69 & 0.002 & 0.012 & 0.004 & 0.122 & 1663 \\ 250 | EP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.083 & 1656 \\ 251 | SP.A.2 & 123.81 & 0.002 & 0.010 & 0.003 & 0.074 & 1854 \\ 252 | SP.A.4 & 51.92 & 0.003 & 0.011 & 0.004 & 0.073 & 1543 \\ 253 | SP.A.8 & 31.06 & 0.004 & 0.017 & 0.005 & 0.073 & 1671 \\ 254 | SP.B.2 & 495.49 & 0.001 & 0.009 & 0.003 & 0.196 & 2411 \\ 255 | SP.B.4 & 247.69 & 0.002 & 0.014 & 0.006 & 0.152 & 2653 \\ 256 | SP.B.8 & 126.74 & 0.003 & 0.017 & 0.005 & 0.082 & 1755 \\ 257 | \bottomrule 258 | \end{longtable} 259 | 260 | \section{算法环境} 261 | 262 | 算法环境可以使用 \pkg{algorithms} 宏包或者较新的 \pkg{algorithm2e} 实现。 263 | 算法~\ref{algo:algorithm} 是一个使用 \pkg{algorithm2e} 的例子。关于排版算法环境 264 | 的具体方法,请阅读相关宏包的官方文档。 265 | 266 | \begin{algorithm}[htb] 267 | \caption{算法示例} 268 | \label{algo:algorithm} 269 | \small 270 | \SetAlgoLined 271 | \KwData{this text} 272 | \KwResult{how to write algorithm with \LaTeXe } 273 | 274 | initialization\; 275 | \While{not at end of this document}{ 276 | read current\; 277 | \eIf{understand}{ 278 | go to next section\; 279 | current section becomes this one\; 280 | }{ 281 | go back to the beginning of current section\; 282 | } 283 | } 284 | \end{algorithm} 285 | 286 | \section{代码环境} 287 | 288 | 我们可以在论文中插入算法,但是不建议插入大段的代码。如果确实需要插入代码,建议使 289 | 用 \pkg{listings} 宏包。 290 | 291 | \begin{codeblock}[language=C] 292 | #include 293 | #include 294 | #include 295 | #include 296 | 297 | int main() { 298 | pid_t pid; 299 | 300 | switch ((pid = fork())) { 301 | case -1: 302 | printf("fork failed\n"); 303 | break; 304 | case 0: 305 | /* child calls exec */ 306 | execl("/bin/ls", "ls", "-l", (char*)0); 307 | printf("execl failed\n"); 308 | break; 309 | default: 310 | /* parent uses wait to suspend execution until child finishes */ 311 | wait((int*)0); 312 | printf("is completed\n"); 313 | break; 314 | } 315 | 316 | return 0; 317 | } 318 | \end{codeblock} 319 | -------------------------------------------------------------------------------- /sjtuthesis.cls: -------------------------------------------------------------------------------- 1 | %% 2 | %% This is file `sjtuthesis.cls', 3 | %% generated with the docstrip utility. 4 | %% 5 | %% The original source files were: 6 | %% 7 | %% sjtuthesis.dtx (with options: `class') 8 | %% 9 | %% Copyright (C) 2009-2017 by weijianwen 10 | %% (C) 2018-2019 by SJTUG 11 | %% 12 | %% This file may be distributed and/or modified under the 13 | %% conditions of the LaTeX Project Public License, either version 1.3c 14 | %% of this license or (at your option) any later version. 15 | %% The latest version of this license is in 16 | %% https://www.latex-project.org/lppl.txt 17 | %% and version 1.3c or later is part of all distributions of LaTeX 18 | %% version 2005/12/01 or later. 19 | %% 20 | %% This file has the LPPL maintenance status "maintained". 21 | %% 22 | %% The Current Maintainer of this work is Alexara Wu. 23 | %% 24 | \NeedsTeXFormat{LaTeX2e} 25 | \ProvidesClass{sjtuthesis} 26 | [2019/06/16 1.0.0rc Shanghai Jiao Tong University Thesis Template] 27 | \hyphenation{SJTU-Thesis} 28 | \def\sjtuthesis{SJTU\textsc{Thesis}} 29 | \def\version{1.0.0rc} 30 | \RequirePackage{kvoptions} 31 | \SetupKeyvalOptions{ 32 | family=sjtu, 33 | prefix=sjtu@, 34 | setkeys=\kvsetkeys} 35 | \DeclareStringOption[doctor]{degree}[doctor] 36 | \DeclareStringOption[chinese]{language}[chinese] 37 | \DeclareStringOption[5]{zihao}[5] 38 | \DeclareStringOption[all]{setlatinfont}[all] 39 | \DeclareStringOption[GB]{mathstyle}[GB] 40 | \DeclareStringOption[gb7714-2015]{bibstyle}[gb7714-2015] 41 | \DeclareBoolOption{review} 42 | \DeclareDefaultOption{\PassOptionsToClass{\CurrentOption}{ctexbook}} 43 | \ProcessKeyvalOptions* 44 | \newcommand{\sjtu@validate@key}[1]{% 45 | \@ifundefined{sjtu@#1@\csname sjtu@#1\endcsname true}{% 46 | \ClassError{sjtuthesis}{Invalid value '\csname sjtu@#1\endcsname'}{}% 47 | }{% 48 | \csname sjtu@#1@\csname sjtu@#1\endcsname true\endcsname 49 | }% 50 | } 51 | \newif\ifsjtu@degree@course 52 | \newif\ifsjtu@degree@bachelor 53 | \newif\ifsjtu@degree@master 54 | \newif\ifsjtu@degree@doctor 55 | \sjtu@validate@key{degree} 56 | \ifsjtu@degree@course\sjtu@degree@bachelortrue\fi 57 | \ifsjtu@degree@doctor\sjtu@degree@mastertrue\fi 58 | \newif\ifsjtu@language@chinese 59 | \newif\ifsjtu@language@english 60 | \sjtu@validate@key{language} 61 | \newif\ifsjtu@setlatinfont@none 62 | \newif\ifsjtu@setlatinfont@main 63 | \newif\ifsjtu@setlatinfont@math 64 | \newif\ifsjtu@setlatinfont@all 65 | \sjtu@validate@key{setlatinfont} 66 | \ifsjtu@setlatinfont@all 67 | \sjtu@setlatinfont@maintrue 68 | \sjtu@setlatinfont@mathtrue 69 | \fi 70 | \newif\ifsjtu@mathstyle@GB 71 | \@ifundefined{sjtu@mathstyle@\csname sjtu@mathstyle\endcsname true}{}{% 72 | \sjtu@mathstyle@GBtrue 73 | \def\sjtu@mathstyle{ISO} 74 | } 75 | \ifsjtu@language@english 76 | \PassOptionsToClass{scheme=plain}{ctexbook} 77 | \fi 78 | \PassOptionsToPackage{no-math}{fontspec} 79 | \PassOptionsToPackage{math-style=\sjtu@mathstyle}{unicode-math} 80 | \LoadClass[a4paper,zihao=\sjtu@zihao,linespread=1.3,UTF8]{ctexbook} 81 | \ifsjtu@degree@bachelor 82 | \AtEndOfClass{\input{sjtuthesis-bachelor.ltx}} 83 | \else 84 | \ifsjtu@degree@master 85 | \AtEndOfClass{\input{sjtuthesis-graduate.ltx}} 86 | \fi 87 | \fi 88 | \RequirePackage{etoolbox} 89 | \RequirePackage{xparse} 90 | \RequirePackage{environ} 91 | \RequirePackage{geometry} 92 | \RequirePackage{fancyhdr} 93 | \RequirePackage{pageslts} 94 | \RequirePackage{amsmath} 95 | \ifsjtu@setlatinfont@math 96 | \RequirePackage{unicode-math} 97 | \fi 98 | \RequirePackage{anyfontsize} 99 | \RequirePackage{xcolor} 100 | \RequirePackage{graphicx} 101 | \RequirePackage{array} 102 | \RequirePackage{booktabs} 103 | \RequirePackage{longtable} 104 | \RequirePackage{caption} 105 | \RequirePackage[list=off]{bicaption} 106 | \RequirePackage{subcaption} 107 | \RequirePackage[backend=biber,style=\sjtu@bibstyle]{biblatex} 108 | \RequirePackage[titles]{tocloft} 109 | \RequirePackage[inline]{enumitem} 110 | \RequirePackage[perpage, bottom]{footmisc} 111 | \RequirePackage{pdfpages} 112 | \includepdfset{fitpaper=true} 113 | \RequirePackage{hyperref} 114 | \newcommand{\sjtu@def@term}[1]{% 115 | \expandafter\gdef\csname #1\endcsname##1{% 116 | \expandafter\gdef\csname sjtu@value@#1\endcsname{##1}} 117 | \csname #1\endcsname{} 118 | \define@key{sjtuvalue}{#1}{\csname #1\endcsname{##1}}} 119 | \sjtu@def@term{title} 120 | \sjtu@def@term{entitle} 121 | \sjtu@def@term{keywords} 122 | \sjtu@def@term{enkeywords} 123 | \sjtu@def@term{author} 124 | \sjtu@def@term{supervisor} 125 | \sjtu@def@term{assisupervisor} 126 | \sjtu@def@term{enauthor} 127 | \sjtu@def@term{ensupervisor} 128 | \sjtu@def@term{enassisupervisor} 129 | \sjtu@def@term{studentid} 130 | \sjtu@def@term{degree} 131 | \sjtu@def@term{endegree} 132 | \sjtu@def@term{department} 133 | \sjtu@def@term{endepartment} 134 | \sjtu@def@term{major} 135 | \sjtu@def@term{enmajor} 136 | \sjtu@def@term{coursename} 137 | \sjtu@def@term{encoursename} 138 | \sjtu@def@term{fund} 139 | \sjtu@def@term{enfund} 140 | \sjtu@def@term{date} 141 | \sjtu@def@term{endate} 142 | \NewDocumentCommand\sjtuSetInfo{}{\setkeys{sjtuvalue}} 143 | \newcommand{\sjtu@def@label}[2]{% 144 | \expandafter\gdef\csname sjtu@label@#1\endcsname{#2} 145 | \define@key{sjtulabel}{#1}{% 146 | \expandafter\gdef\csname sjtu@label@#1\endcsname{##1}}} 147 | \sjtu@def@label{schoolChi}{上海交通大学} 148 | \sjtu@def@label{schoolEng}{Shanghai Jiao Tong University} 149 | \sjtu@def@label{originalityChi}{原创性声明} 150 | \sjtu@def@label{originalityEng}{Declaration of Originality} 151 | \sjtu@def@label{authorizationChi}{版权使用授权书} 152 | \sjtu@def@label{authorizationEng}{Declaration of Authorization} 153 | \sjtu@def@label{origtitle}{\sjtu@label@thesistype\sjtu@label@originalityChi} 154 | \sjtu@def@label{authtitle}{\sjtu@label@thesistype\sjtu@label@authorizationChi} 155 | \sjtu@def@label{origbody}{% 156 | 本人郑重声明:所呈交的\sjtu@label@thesistype ,是本人在导师的指导下, 157 | 独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本论文不包含 158 | 任何其他个人或集体已经发表或撰写过的作品成果。对本文的研究做出重要贡献 159 | 的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律结果 160 | 由本人承担。} 161 | \sjtu@def@label{authbody}{% 162 | 本\sjtu@label@thesistype 作者 163 | 完全了解学校有关保留、使用\sjtu@label@thesistype 的规定,同意学校保留 164 | 并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。 165 | 本人授权\sjtu@label@schoolChi 可以将本\sjtu@label@thesistype 的全部或 166 | 部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存 167 | 和汇编本\sjtu@label@thesistype 。} 168 | \sjtu@def@label{abstractChi}{摘\quad 要} 169 | \sjtu@def@label{abstractEng}{Abstract} 170 | \sjtu@def@label{keywordsChi}{关键词:} 171 | \sjtu@def@label{keywordsEng}{Key words:~} 172 | \ifsjtu@language@english 173 | \sjtu@def@label{titlepage}{Title Page} 174 | \def\sjtu@label@originality{\sjtu@label@originalityEng} 175 | \def\sjtu@label@authorization{\sjtu@label@authorizationEng} 176 | \def\sjtu@label@abstract{\sjtu@label@abstractEng} 177 | \sjtu@def@label{contents}{Contents} 178 | \sjtu@def@label{figure}{Figure} 179 | \sjtu@def@label{listfigure}{List of Figures} 180 | \sjtu@def@label{table}{Table} 181 | \sjtu@def@label{listtable}{List of Tables} 182 | \sjtu@def@label{algorithm}{Algorithm} 183 | \sjtu@def@label{listalgorithm}{List of Algorithms} 184 | \sjtu@def@label{nomenclature}{Nomenclature} 185 | \sjtu@def@label{summary}{Summary} 186 | \sjtu@def@label{acknowledgements}{Acknowledgements} 187 | \sjtu@def@label{publications}{Publications} 188 | \sjtu@def@label{patents}{Patents} 189 | \sjtu@def@label{projects}{Projects} 190 | \sjtu@def@label{resume}{Resume} 191 | \else 192 | \sjtu@def@label{titlepage}{扉页} 193 | \def\sjtu@label@originality{\sjtu@label@originalityChi} 194 | \def\sjtu@label@authorization{\sjtu@label@authorizationChi} 195 | \def\sjtu@label@abstract{\sjtu@label@abstractChi} 196 | \sjtu@def@label{contents}{目\quad 录} 197 | \sjtu@def@label{figure}{图} 198 | \sjtu@def@label{listfigure}{插图索引} 199 | \sjtu@def@label{table}{表} 200 | \sjtu@def@label{listtable}{表格索引} 201 | \sjtu@def@label{algorithm}{算法} 202 | \sjtu@def@label{listalgorithm}{算法索引} 203 | \sjtu@def@label{nomenclature}{主要符号对照表} 204 | \sjtu@def@label{summary}{全文总结} 205 | \sjtu@def@label{acknowledgements}{致\quad 谢} 206 | \sjtu@def@label{publications}% 207 | {攻读\sjtu@label@degreetypeChi 学位期间已发表或录用的论文} 208 | \sjtu@def@label{patents}% 209 | {攻读\sjtu@label@degreetypeChi 学位期间申请的专利} 210 | \sjtu@def@label{projects}% 211 | {攻读\sjtu@label@degreetypeChi 学位期间参与的项目} 212 | \sjtu@def@label{resume}{简\quad 历} 213 | \fi 214 | \NewDocumentCommand\sjtuSetLabel{}{\setkeys{sjtulabel}} 215 | \ctexset{% 216 | contentsname = \sjtu@label@contents, 217 | listfigurename = \sjtu@label@listfigure, 218 | listtablename = \sjtu@label@listtable} 219 | \newif\ifsjtu@xitsnew 220 | \@ifpackagelater{fontspec}{2017/01/20}{ 221 | \IfFontExistsTF{XITSMath-Regular.otf}{ 222 | \sjtu@xitsnewtrue 223 | }{} 224 | }{} 225 | \ifsjtu@setlatinfont@main 226 | \ifsjtu@xitsnew 227 | \setmainfont{XITS}[ 228 | Extension = .otf, 229 | UprightFont = *-Regular, 230 | BoldFont = *-Bold, 231 | ItalicFont = *-Italic, 232 | BoldItalicFont = *-BoldItalic, 233 | UprightFeatures = { SmallCapsFont = texgyretermes-regular }, 234 | BoldFeatures = { SmallCapsFont = texgyretermes-bold }, 235 | ItalicFeatures = { SmallCapsFont = texgyretermes-italic }, 236 | BoldItalicFeatures = { SmallCapsFont = texgyretermes-bolditalic }, 237 | SmallCapsFeatures = { Letters = SmallCaps } 238 | ] 239 | \else 240 | \setmainfont{xits}[ 241 | Extension = .otf, 242 | UprightFont = *-regular, 243 | BoldFont = *-bold, 244 | ItalicFont = *-italic, 245 | BoldItalicFont = *-bolditalic, 246 | UprightFeatures = { SmallCapsFont = texgyretermes-regular }, 247 | BoldFeatures = { SmallCapsFont = texgyretermes-bold }, 248 | ItalicFeatures = { SmallCapsFont = texgyretermes-italic }, 249 | BoldItalicFeatures = { SmallCapsFont = texgyretermes-bolditalic }, 250 | SmallCapsFeatures = { Letters = SmallCaps } 251 | ] 252 | \fi 253 | \RequirePackage[opentype,scaled=.9]{sourcesanspro} 254 | \RequirePackage[opentype,scaled=.9]{sourcecodepro} 255 | \fi 256 | \ifsjtu@setlatinfont@math 257 | \ifsjtu@xitsnew 258 | \setmathfont{XITSMath-Regular}[ 259 | Extension = .otf, 260 | BoldFont = XITSMath-Bold, 261 | StylisticSet = 8 262 | ] 263 | \setmathfont{XITSMath-Regular.otf}[range={cal,bfcal},StylisticSet=1] 264 | \else 265 | \setmathfont{xits-math}[ 266 | Extension = .otf, 267 | BoldFont = *bold, 268 | StylisticSet = 8 269 | ] 270 | \setmathfont{xits-math.otf}[range={cal,bfcal},StylisticSet=1] 271 | \fi 272 | \fi 273 | \patchcmd\cleardoublepage% 274 | {\newpage}{\thispagestyle{empty}\newpage} 275 | {}{} 276 | \patchcmd\chapter% 277 | {\thispagestyle{\CTEX@chapter@pagestyle}}{} 278 | {}{} 279 | \AtBeginDocument{% 280 | \pagenumbering{Alph} 281 | \pagestyle{empty}} 282 | \ctexset{% 283 | chapter={% 284 | format = \zihao{3}\bfseries\heiti\centering, 285 | nameformat = {}, 286 | titleformat = {}, 287 | aftername = \quad, 288 | afterindent = true, 289 | beforeskip = 1ex, 290 | afterskip = 2ex 291 | }, 292 | section={% 293 | format = \zihao{4}\bfseries\heiti, 294 | afterindent = true, 295 | afterskip = 1ex \@plus .2ex 296 | }, 297 | subsection={% 298 | format = \zihao{-4}\bfseries\heiti, 299 | afterindent = true, 300 | afterskip = 1ex \@plus .2ex 301 | }, 302 | subsubsection={% 303 | format = \zihao{-4}\normalfont, 304 | afterindent = true, 305 | afterskip = 1ex \@plus .2ex 306 | }, 307 | paragraph/afterindent = true, 308 | subparagraph/afterindent = true} 309 | \ctexset{% 310 | punct = quanjiao, 311 | space = auto, 312 | autoindent = true} 313 | \AtEndOfClass{\sloppy} 314 | \setlist{nosep} 315 | \setlist*{leftmargin=*} 316 | \setlist[1]{labelindent=\parindent} 317 | \setcounter{secnumdepth}{3} 318 | \setcounter{tocdepth}{2} 319 | \renewcommand{\tableofcontents}{% 320 | \cleardoublepage% 321 | \pdfbookmark[0]{\contentsname}{toc}% 322 | \chapter*{\contentsname}% 323 | \@mkboth{\contentsname}{\contentsname}% 324 | \@starttoc{toc} 325 | } 326 | \renewcommand{\listoffigures}{% 327 | \cleardoublepage% 328 | \pdfbookmark[0]{\listfigurename}{lof}% 329 | \chapter*{\listfigurename}% 330 | \@mkboth{\listfigurename}{\listfigurename}% 331 | \@starttoc{lof} 332 | } 333 | \renewcommand{\listoftables}{% 334 | \cleardoublepage% 335 | \pdfbookmark[0]{\listtablename}{lot}% 336 | \chapter*{\listtablename}% 337 | \@mkboth{\listtablename}{\listtablename}% 338 | \@starttoc{lot} 339 | } 340 | \renewcommand{\cftfigpresnum}{\sjtu@label@figure~} 341 | \renewcommand{\cfttabpresnum}{\sjtu@label@table~} 342 | \AtEndPreamble{% 343 | \newlength{\sjtu@cftfignumwidth@tmp} 344 | \settowidth{\sjtu@cftfignumwidth@tmp}{\cftfigpresnum} 345 | \addtolength{\cftfignumwidth}{\sjtu@cftfignumwidth@tmp} 346 | \newlength{\sjtu@cfttabnumwidth@tmp} 347 | \settowidth{\sjtu@cfttabnumwidth@tmp}{\cfttabpresnum} 348 | \addtolength{\cfttabnumwidth}{\sjtu@cfttabnumwidth@tmp} 349 | } 350 | \renewcommand{\textfraction}{0.15} 351 | \renewcommand{\topfraction}{0.85} 352 | \renewcommand{\bottomfraction}{0.65} 353 | \renewcommand{\floatpagefraction}{0.60} 354 | \AtBeginDocument{% 355 | \renewcommand{\theequation}{\thechapter--\arabic{equation}} 356 | \renewcommand{\thefigure}{\thechapter--\arabic{figure}} 357 | \renewcommand{\p@subfigure}{\thefigure} 358 | \renewcommand{\thetable}{\thechapter--\arabic{table}} 359 | } 360 | \newif\ifsjtu@setfloatfont 361 | \renewcommand{\@floatboxreset}{% 362 | \reset@font 363 | \ifsjtu@setfloatfont 364 | \zihao{5} 365 | \else 366 | \normalsize 367 | \fi 368 | \@setminipage 369 | } 370 | \BeforeBeginEnvironment{longtable} 371 | {\begingroup\ifsjtu@setfloatfont\zihao{5}\fi} 372 | \AfterEndEnvironment{longtable} 373 | {\endgroup} 374 | \NewDocumentCommand{\sjtuSetFloatFontOn}{}{\sjtu@setfloatfonttrue} 375 | \NewDocumentCommand{\sjtuSetFloatFontOff}{}{\sjtu@setfloatfontfalse} 376 | \DeclareCaptionFont{sjtucaptionfont}{\zihao{5}\kaishu} 377 | \DeclareCaptionFont{sjtusubcaptionfont}{\zihao{5}\normalfont} 378 | \captionsetup{% 379 | format = plain, 380 | labelformat = simple, 381 | labelsep = space, 382 | justification = centering, 383 | font = sjtucaptionfont 384 | } 385 | \captionsetup[sub]{% 386 | format = hang, 387 | labelformat = brace, 388 | justification = justified, 389 | font = sjtusubcaptionfont 390 | } 391 | \DeclareCaptionOption{bi-first}[]{% 392 | \def\tablename{\sjtu@label@table} 393 | \def\figurename{\sjtu@label@figure}} 394 | \DeclareCaptionOption{bi-second}[]{% 395 | \def\tablename{Table} 396 | \def\figurename{Figure}} 397 | \captionsetup[bi-first]{bi-first} 398 | \captionsetup[bi-second]{bi-second} 399 | \ifsjtu@mathstyle@GB 400 | \let\mathellipsis\cdots 401 | \AtBeginDocument{% 402 | \renewcommand{\Re}{\operatorname{Re}}% 403 | \renewcommand{\Im}{\operatorname{Im}}% 404 | } 405 | \fi 406 | \newcommand\upe{\mathrm{e}} 407 | \newcommand\upi{\mathrm{i}} 408 | \newcommand\upj{\mathrm{j}} 409 | \newcommand\dif{\mathop{}\!\mathrm{d}} 410 | \newcommand{\sjtu@square}{% 411 | \begingroup\CJKfamily+{zhsong}\symbol{"25A1}\endgroup 412 | } 413 | \newcommand{\sjtu@authconf}{% 414 | \par\hspace{7em}% 415 | {\heiti 保\quad 密}~\sjtu@square,在 \uline{\hspace{3em}} 416 | 年解密后适用本授权书。\par 417 | 本\sjtu@label@thesiscat 属于 418 | \par\hspace{7em}% 419 | {\heiti 不保密}~\sjtu@square。 420 | \vskip 1ex 421 | (请在以上方框内打“$\checkmark$”) 422 | } 423 | \newcommand{\sjtu@signbox}[1]{% 424 | \parbox{.45\textwidth}{% 425 | #1 签名: \vskip 4em% 426 | 日期: \hspace{\stretch{3}} 年% 427 | \hspace{\stretch{2}} 月 \hspace{\stretch{2}} 日% 428 | } 429 | } 430 | \NewDocumentCommand{\makeDeclareOriginality}{o}{% 431 | \ifsjtu@review\relax\else 432 | \cleardoublepage 433 | \pdfbookmark[0]{\sjtu@label@originality}{origtitle} 434 | \IfNoValueTF{#1}{% 435 | \thispagestyle{empty} 436 | \chapter*{\zihao{-2}\sjtu@label@schoolChi \\% 437 | \sjtu@label@origtitle} 438 | \begingroup 439 | \zihao{4} 440 | \sjtu@label@origbody 441 | \vskip 16ex 442 | \noindent 443 | \begin{minipage}{\textwidth} 444 | \hfill 445 | \sjtu@signbox{\sjtu@label@thesiscat 作者} 446 | \end{minipage} 447 | \endgroup 448 | } 449 | {\includepdf[pagecommand={\thispagestyle{empty}}]{#1}} 450 | \cleardoublepage 451 | \fi 452 | } 453 | \NewDocumentCommand{\makeDeclareAuthorization}{o}{% 454 | \ifsjtu@review\relax\else 455 | \cleardoublepage 456 | \pdfbookmark[0]{\sjtu@label@authorization}{authtitle} 457 | \IfNoValueTF{#1}{% 458 | \thispagestyle{empty} 459 | \chapter*{\zihao{-2}\sjtu@label@schoolChi \\% 460 | \sjtu@label@authtitle} 461 | \begingroup 462 | \zihao{4} 463 | \sjtu@label@authbody 464 | \vskip 1ex 465 | \sjtu@authconf 466 | \vskip 16ex 467 | \noindent 468 | \begin{minipage}{\textwidth} 469 | \sjtu@signbox{\sjtu@label@thesiscat 作者} 470 | \hfill 471 | \sjtu@signbox{指导教师} 472 | \end{minipage} 473 | \endgroup 474 | } 475 | {\includepdf[pagecommand={\thispagestyle{empty}}]{#1}} 476 | \cleardoublepage 477 | \fi 478 | } 479 | \NewDocumentEnvironment{nomenclature}{m}{% 480 | \cleardoublepage 481 | \pdfbookmark[0]{\sjtu@label@nomenclature}{nomenclature} 482 | \chapter*{\sjtu@label@nomenclature} 483 | \@mkboth{\sjtu@label@nomenclature}% 484 | {\sjtu@label@nomenclature}% 485 | \begin{longtable}{#1} 486 | }{\end{longtable}} 487 | \NewDocumentEnvironment{summary}{}{% 488 | \cleardoublepage 489 | \chapter*{\sjtu@label@summary} 490 | \@mkboth{\sjtu@label@summary}% 491 | {\sjtu@label@summary}% 492 | \addcontentsline{toc}{chapter}{\sjtu@label@summary}% 493 | }{} 494 | \newcommand{\sjtu@acknowledgements}[1]{\long\gdef\sjtu@acknowledgements@body{#1}} 495 | \NewDocumentEnvironment{acknowledgements}{}{% 496 | \Collect@Body\sjtu@acknowledgements 497 | }{% 498 | \ifsjtu@review\relax\else 499 | \cleardoublepage 500 | \chapter*{\sjtu@label@acknowledgements} 501 | \@mkboth{\sjtu@label@acknowledgements}% 502 | {\sjtu@label@acknowledgements}% 503 | \addcontentsline{toc}{chapter}{\sjtu@label@acknowledgements}% 504 | \sjtu@acknowledgements@body 505 | \fi 506 | } 507 | \newenvironment{sjtu@bibliolist}[2]{% 508 | \cleardoublepage 509 | \chapter{#2} 510 | \@mkboth{#2}{#2}% 511 | \list{\@biblabel{\@arabic\c@enumiv}}% 512 | {\settowidth\labelwidth{\@biblabel{#1}}% 513 | \leftmargin\labelwidth 514 | \advance\leftmargin\labelsep 515 | \@openbib@code 516 | \usecounter{enumiv}% 517 | \let\p@enumiv\@empty 518 | \renewcommand\theenumiv{\@arabic\c@enumiv}}% 519 | \sloppy 520 | \clubpenalty4000 521 | \@clubpenalty \clubpenalty 522 | \widowpenalty4000% 523 | \sfcode`\.\@m 524 | }{% 525 | \def\@noitemerr 526 | {\@latex@warning{Empty `bibliolist' environment}}% 527 | \endlist 528 | } 529 | \newcommand{\sjtu@publications}[1]{\long\gdef\sjtu@publications@body{#1}} 530 | \NewDocumentEnvironment{publications}{O{99}}{% 531 | \Collect@Body\sjtu@publications 532 | }{% 533 | \ifsjtu@review\relax\else 534 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@publications} 535 | \sjtu@publications@body 536 | \end{sjtu@bibliolist} 537 | \fi 538 | } 539 | \newcommand{\sjtu@@publications}[1]{\long\gdef\sjtu@@publications@body{#1}} 540 | \NewDocumentEnvironment{publications*}{O{99}}{% 541 | \Collect@Body\sjtu@@publications 542 | }{% 543 | \ifsjtu@review 544 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@publications} 545 | \sjtu@@publications@body 546 | \end{sjtu@bibliolist} 547 | \fi 548 | } 549 | \newcommand{\sjtu@projects}[1]{\long\gdef\sjtu@projects@body{#1}} 550 | \NewDocumentEnvironment{projects}{O{99}}{% 551 | \Collect@Body\sjtu@projects 552 | }{% 553 | \ifsjtu@review\relax\else 554 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@projects} 555 | \sjtu@projects@body 556 | \end{sjtu@bibliolist} 557 | \fi 558 | } 559 | \newcommand{\sjtu@@projects}[1]{\long\gdef\sjtu@@projects@body{#1}} 560 | \NewDocumentEnvironment{projects*}{O{99}}{% 561 | \Collect@Body\sjtu@@projects 562 | }{% 563 | \ifsjtu@review 564 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@projects} 565 | \sjtu@@projects@body 566 | \end{sjtu@bibliolist} 567 | \fi 568 | } 569 | \newcommand{\sjtu@patents}[1]{\long\gdef\sjtu@patents@body{#1}} 570 | \NewDocumentEnvironment{patents}{O{99}}{% 571 | \Collect@Body\sjtu@patents 572 | }{% 573 | \ifsjtu@review\relax\else 574 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@patents} 575 | \sjtu@patents@body 576 | \end{sjtu@bibliolist} 577 | \fi 578 | } 579 | \newcommand{\sjtu@@patents}[1]{\long\gdef\sjtu@@patents@body{#1}} 580 | \NewDocumentEnvironment{patents*}{O{99}}{% 581 | \Collect@Body\sjtu@@patents 582 | }{% 583 | \ifsjtu@review 584 | \begin{sjtu@bibliolist}{#1}{\sjtu@label@patents} 585 | \sjtu@@patents@body 586 | \end{sjtu@bibliolist} 587 | \fi 588 | } 589 | \newcommand{\sjtu@resume}[1]{\long\gdef\sjtu@resume@body{#1}} 590 | \NewDocumentEnvironment{resume}{}{% 591 | \Collect@Body\sjtu@resume 592 | }{% 593 | \ifsjtu@review\relax\else 594 | \cleardoublepage 595 | \chapter{\sjtu@label@resume} 596 | \@mkboth{\sjtu@label@resume}% 597 | {\sjtu@label@resume}% 598 | \sjtu@resume@body 599 | \fi 600 | } 601 | \AtBeginDocument{ 602 | \ifsjtu@review% 603 | \sjtuSetInfo{% 604 | author={}, 605 | supervisor={}, 606 | assisupervisor={}, 607 | enauthor={}, 608 | ensupervisor={}, 609 | enassisupervisor={}, 610 | studentid={}, 611 | date={}, 612 | endate={} 613 | } 614 | \fi 615 | \hypersetup{% 616 | pdftitle = \sjtu@value@title, 617 | pdfauthor = \sjtu@value@author, 618 | pdfsubject = \sjtu@label@subjectChi, 619 | pdfkeywords = \sjtu@value@keywords, 620 | pdfcreator = {LaTeX with SJTUThesis \version} 621 | }% 622 | } 623 | \NewDocumentCommand{\encrypt}{m O{***}}{% 624 | \ifsjtu@review 625 | {#2} 626 | \else 627 | {#1} 628 | \fi 629 | } 630 | \newcommand{\sjtu@uline}[1]{% 631 | \begingroup 632 | \setbox0=\vbox{\strut #1\strut}% 633 | \dimen0=0pt 634 | \loop\ifdim\ht0>0pt 635 | \dimen1=\dimexpr\ht0 - \baselineskip\relax 636 | \setbox1=\vsplit0 to \ht\strutbox 637 | \advance\dimen1 by -\ht0 638 | \noindent\raisebox{-\dimen0}[\ht\strutbox][\dp\strutbox]{\box1}% 639 | \advance\dimen0 by \dimen1 640 | \vspace{-0.2ex}\hrule\vskip 0.2ex 641 | \repeat 642 | \endgroup 643 | } 644 | \hypersetup{ 645 | linktoc = all, 646 | bookmarksnumbered = true, 647 | bookmarksopen = true, 648 | bookmarksopenlevel = 1, 649 | unicode = true, 650 | psdextra = true, 651 | breaklinks = true, 652 | plainpages = false, 653 | hidelinks, 654 | } 655 | \pdfstringdefDisableCommands{% 656 | \let\\\@empty 657 | \let\quad\@empty 658 | \let\hspace\@gobble 659 | } 660 | \urlstyle{same} 661 | \def\UrlBreaks{% 662 | \do\/% 663 | \do\a\do\b\do\c\do\d\do\e\do\f\do\g\do\h\do\i\do\j\do\k\do\l% 664 | \do\m\do\n\do\o\do\p\do\q\do\r\do\s\do\t\do\u\do\v\do\w\do\x\do\y\do\z% 665 | \do\A\do\B\do\C\do\D\do\E\do\F\do\G\do\H\do\I\do\J\do\K\do\L% 666 | \do\M\do\N\do\O\do\P\do\Q\do\R\do\S\do\T\do\U\do\V\do\W\do\X\do\Y\do\Z% 667 | \do0\do1\do2\do3\do4\do5\do6\do7\do8\do9\do=\do/\do.\do:% 668 | \do\*\do\-\do\~\do\'\do\"\do\-} 669 | \Urlmuskip=0mu plus 0.1mu 670 | \newcommand{\sjtu@atendpackage}{\csname ctex_at_end_package:nn\endcsname} 671 | \sjtu@atendpackage{unicode-math}{ 672 | \newcommand{\bm}{\symbf} 673 | \renewcommand{\boldsymbol}{\symbf} 674 | \newcommand{\square}{\mdlgwhtsquare} 675 | \@ifpackagelater{hyperref}{2019/04/27}{}{% 676 | \g@addto@macro\psdmapshortnames{\let\mu\textmugreek}% 677 | } 678 | } 679 | \sjtu@atendpackage{threeparttable}{ 680 | \appto\TPTnoteSettings{\footnotesize} 681 | } 682 | \sjtu@atendpackage{siunitx}{ 683 | \sisetup{ 684 | detect-all, 685 | group-minimum-digits = 4, 686 | separate-uncertainty = true, 687 | inter-unit-product = \ensuremath{{}\cdot{}}, 688 | } 689 | \ifsjtu@language@chinese 690 | \sisetup{ 691 | list-final-separator = { 和 }, 692 | list-pair-separator = { 和 }, 693 | range-phrase = {~}, 694 | } 695 | \fi 696 | } 697 | \PassOptionsToPackage{amsmath,thmmarks,hyperref}{ntheorem} 698 | \sjtu@atendpackage{ntheorem}{ 699 | \ifsjtu@language@chinese 700 | \def\sjtu@label@assertion{断言} 701 | \def\sjtu@label@assumption{假设} 702 | \def\sjtu@label@axiom{公理} 703 | \def\sjtu@label@corollary{推论} 704 | \def\sjtu@label@definition{定义} 705 | \def\sjtu@label@example{例} 706 | \def\sjtu@label@lemma{引理} 707 | \def\sjtu@label@proof{证明} 708 | \def\sjtu@label@proposition{命题} 709 | \def\sjtu@label@remark{注} 710 | \def\sjtu@label@theorem{定理} 711 | \else 712 | \def\sjtu@label@assertion{Assertion} 713 | \def\sjtu@label@assumption{Assumption} 714 | \def\sjtu@label@axiom{Axiom} 715 | \def\sjtu@label@corollary{Corollary} 716 | \def\sjtu@label@definition{Definition} 717 | \def\sjtu@label@example{Example} 718 | \def\sjtu@label@lemma{Lemma} 719 | \def\sjtu@label@proof{Proof} 720 | \def\sjtu@label@proposition{Proposition} 721 | \def\sjtu@label@remark{Remark} 722 | \def\sjtu@label@theorem{Theorem} 723 | \fi 724 | \theoremheaderfont{\bfseries\heiti} 725 | \theorembodyfont{\normalfont} 726 | \theoremseparator{\enskip} 727 | \theoremsymbol{\ensuremath{\square}} 728 | \newtheorem*{proof}{\sjtu@label@proof} 729 | \theoremstyle{plain} 730 | \theoremsymbol{} 731 | \newtheorem{theorem} {\sjtu@label@theorem} [chapter] 732 | \newtheorem{assertion} [theorem]{\sjtu@label@assertion} 733 | \newtheorem{axiom} [theorem]{\sjtu@label@axiom} 734 | \newtheorem{corollary} [theorem]{\sjtu@label@corollary} 735 | \newtheorem{lemma} [theorem]{\sjtu@label@lemma} 736 | \newtheorem{proposition}[theorem]{\sjtu@label@proposition} 737 | \newtheorem{assumption} {\sjtu@label@assumption} [chapter] 738 | \newtheorem{definition} {\sjtu@label@definition} [chapter] 739 | \newtheorem{example} {\sjtu@label@example} [chapter] 740 | \newtheorem*{remark} {\sjtu@label@remark} 741 | } 742 | \sjtu@atendpackage{amsthm}{ 743 | \ifsjtu@language@chinese 744 | \def\sjtu@label@assertion{断言} 745 | \def\sjtu@label@assumption{假设} 746 | \def\sjtu@label@axiom{公理} 747 | \def\sjtu@label@corollary{推论} 748 | \def\sjtu@label@definition{定义} 749 | \def\sjtu@label@example{例} 750 | \def\sjtu@label@lemma{引理} 751 | \def\sjtu@label@proof{证明} 752 | \def\sjtu@label@proposition{命题} 753 | \def\sjtu@label@remark{注} 754 | \def\sjtu@label@theorem{定理} 755 | \else 756 | \def\sjtu@label@assertion{Assertion} 757 | \def\sjtu@label@assumption{Assumption} 758 | \def\sjtu@label@axiom{Axiom} 759 | \def\sjtu@label@corollary{Corollary} 760 | \def\sjtu@label@definition{Definition} 761 | \def\sjtu@label@example{Example} 762 | \def\sjtu@label@lemma{Lemma} 763 | \def\sjtu@label@proof{Proof} 764 | \def\sjtu@label@proposition{Proposition} 765 | \def\sjtu@label@remark{Remark} 766 | \def\sjtu@label@theorem{Theorem} 767 | \fi 768 | \newtheoremstyle{sjtuplain} 769 | {}{} 770 | {\normalfont}{} 771 | {\bfseries\heiti}{} 772 | {\ccwd}{} 773 | \theoremstyle{sjtuplain} 774 | \newtheorem{theorem} {\sjtu@label@theorem} [chapter] 775 | \newtheorem{assertion} [theorem]{\sjtu@label@assertion} 776 | \newtheorem{axiom} [theorem]{\sjtu@label@axiom} 777 | \newtheorem{corollary} [theorem]{\sjtu@label@corollary} 778 | \newtheorem{lemma} [theorem]{\sjtu@label@lemma} 779 | \newtheorem{proposition}[theorem]{\sjtu@label@proposition} 780 | \newtheorem{assumption} {\sjtu@label@assumption} [chapter] 781 | \newtheorem{definition} {\sjtu@label@definition} [chapter] 782 | \newtheorem{example} {\sjtu@label@example} [chapter] 783 | \newtheorem*{remark} {\sjtu@label@remark} 784 | \renewcommand\proofname\sjtu@label@proof 785 | \renewenvironment{proof}[1][\proofname]{\par 786 | \pushQED{\qed}% 787 | \normalfont \topsep6\p@\@plus6\p@\relax 788 | \trivlist 789 | \item\relax 790 | {\bfseries\heiti #1~} 791 | \hspace\labelsep\ignorespaces 792 | }{% 793 | \popQED\endtrivlist\@endpefalse 794 | } 795 | } 796 | \PassOptionsToPackage{algochapter}{algorithm2e} 797 | \sjtu@atendpackage{algorithm2e}{ 798 | \SetAlgorithmName{\sjtu@label@algorithm}% 799 | {\sjtu@label@algorithm}% 800 | {\sjtu@label@listalgorithm} 801 | \SetAlgoCaptionSeparator{~} 802 | \newcommand{\cftalgpresnum}{\sjtu@label@algorithm~} 803 | \AtEndPreamble{% 804 | \newlength{\cftalgindent} 805 | \setlength{\cftalgindent}{1.5em} 806 | \newlength{\cftalgnumwidth} 807 | \setlength{\cftalgnumwidth}{2.3em} 808 | \newlength{\sjtu@cftalgnumwidth@tmp} 809 | \settowidth{\sjtu@cftalgnumwidth@tmp}{\cftalgpresnum} 810 | \addtolength{\cftalgnumwidth}{\sjtu@cftalgnumwidth@tmp} 811 | } 812 | \renewcommand*{\l@algocf}{% 813 | \let\@cftbsnum \cftalgpresnum 814 | \@dottedtocline{1}{\cftalgindent}{\cftalgnumwidth} 815 | } 816 | \renewcommand{\listofalgorithms}{% 817 | \cleardoublepage% 818 | \pdfbookmark[0]{\listalgorithmcfname}{loa}% 819 | \chapter*{\listalgorithmcfname}% 820 | \@mkboth{\listalgorithmcfname}{\listalgorithmcfname}% 821 | \@starttoc{loa} 822 | } 823 | \AtBeginDocument{% 824 | \renewcommand{\thealgocf}{\thechapter--\@arabic\c@algocf} 825 | } 826 | } 827 | \sjtu@atendpackage{algorithm}{ 828 | \RequirePackage{algorithmicx, algpseudocode} 829 | \floatname{algorithm}{\sjtu@label@algorithm} 830 | \@addtoreset{algorithm}{chapter} 831 | \patchcmd\@chapter% 832 | {\if@twocolumn} 833 | {\addtocontents{loa}{\protect\addvspace{10\p@}}% 834 | \if@twocolumn} 835 | {}{} 836 | \renewcommand{\listalgorithmname}{\sjtu@label@listalgorithm} 837 | \newcommand{\cftalgpresnum}{\sjtu@label@algorithm~} 838 | \AtEndPreamble{% 839 | \newlength{\cftalgindent} 840 | \setlength{\cftalgindent}{1.5em} 841 | \newlength{\cftalgnumwidth} 842 | \setlength{\cftalgnumwidth}{2.3em} 843 | \newlength{\sjtu@cftalgnumwidth@tmp} 844 | \settowidth{\sjtu@cftalgnumwidth@tmp}{\cftalgpresnum} 845 | \addtolength{\cftalgnumwidth}{\sjtu@cftalgnumwidth@tmp} 846 | } 847 | \newcommand*{\l@algorithm}{% 848 | \let\@cftbsnum \cftalgpresnum 849 | \@dottedtocline{1}{\cftalgindent}{\cftalgnumwidth} 850 | } 851 | \renewcommand{\listofalgorithms}{% 852 | \cleardoublepage% 853 | \pdfbookmark[0]{\listalgorithmname}{loa}% 854 | \chapter*{\listalgorithmname}% 855 | \@mkboth{\listalgorithmname}{\listalgorithmname}% 856 | \@starttoc{loa} 857 | } 858 | \AtBeginDocument{% 859 | \renewcommand{\thealgorithm}{\thechapter--\arabic{algorithm}} 860 | } 861 | } 862 | \sjtu@atendpackage{listings}{ 863 | \lstdefinestyle{lstStyleCode}{ 864 | aboveskip=\medskipamount, 865 | belowskip=\medskipamount, 866 | basicstyle=\footnotesize\ttfamily, 867 | commentstyle=\slshape\color{black!60}, 868 | stringstyle=\color{green!40!black!100}, 869 | keywordstyle=\bfseries\color{blue!50!black}, 870 | extendedchars=false, 871 | upquote=true, 872 | tabsize=2, 873 | showstringspaces=false, 874 | xleftmargin=1em, 875 | xrightmargin=1em, 876 | breaklines=true, 877 | breakindent=2em, 878 | framexleftmargin=1em, 879 | framexrightmargin=1em, 880 | backgroundcolor=\color{gray!10}, 881 | columns=flexible, 882 | keepspaces=true, 883 | texcl=true, 884 | mathescape=true 885 | } 886 | \lstnewenvironment{codeblock}[1][] 887 | {\lstset{style=lstStyleCode,#1}}{} 888 | } 889 | \sjtu@atendpackage{tikz}{ 890 | \usetikzlibrary{shapes.geometric, arrows} 891 | \tikzstyle{startstop} = [ 892 | rectangle, 893 | rounded corners, 894 | minimum width=2cm, 895 | minimum height=1cm, 896 | text centered, 897 | draw=black 898 | ] 899 | \tikzstyle{io} = [ 900 | trapezium, 901 | trapezium left angle=75, 902 | trapezium right angle=105, 903 | minimum width=1cm, 904 | minimum height=1cm, 905 | text centered, 906 | draw=black 907 | ] 908 | \tikzstyle{process} = [ 909 | rectangle, 910 | minimum width=2cm, 911 | minimum height=1cm, 912 | text centered, 913 | draw=black 914 | ] 915 | \tikzstyle{decision} = [ 916 | diamond, 917 | minimum width=2cm, 918 | minimum height=1cm, 919 | text centered, 920 | draw=black] 921 | \tikzstyle{arrow} = [thick, ->, >=stealth] 922 | } 923 | \endinput 924 | %% 925 | %% End of file `sjtuthesis.cls'. 926 | --------------------------------------------------------------------------------