init
This commit is contained in:
@@ -549,3 +549,4 @@ fabric.properties
|
|||||||
!.vscode/extensions.json
|
!.vscode/extensions.json
|
||||||
*.code-workspace
|
*.code-workspace
|
||||||
|
|
||||||
|
build/
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
#
|
||||||
|
# Makefile
|
||||||
|
# Copyright (C) 2022 veypi <i@veypi.com>
|
||||||
|
# 2022-09-26 04:05
|
||||||
|
# Distributed under terms of the Apache license.
|
||||||
|
#
|
||||||
|
|
||||||
|
pdf:
|
||||||
|
@rm ./build/main.pdf
|
||||||
|
@xelatex -output-directory=./build/ main.tex
|
||||||
|
# @zathura ./build/main.pdf
|
||||||
|
@open ./build/main.pdf
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@find . -name '*.aux' -print0 | xargs -0 rm -rf
|
||||||
|
@rm -rf *.lof *.log *.lot *.out *.toc *.bbl *.blg *.thm
|
||||||
|
|
||||||
+1482
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
|
||||||
|
% 中英文摘要
|
||||||
|
\begin{cabstract}
|
||||||
|
数字产品定义(Digital product definition, DPD)经历了从二维到三维的发展。业界提出了以产品设计为核心的数字仿真(DMU)、虚拟样机等技术,产品设计信息的定义和表达也越来越完善。近年来,国内外制造业的经验表明,3D数字化定义的产品模式已经成熟,其效益被反复验证。但是,目前的数字化产品定义还存在描述不涉及制造、运行和维护阶段、产品定义和过程定义之间缺乏相关性、后续模拟基于“理想定义”对真实产品的指导有限等问题。为了解决上述问题,“数字孪生”技术应运而生。数字孪生技术被誉为有望改变未来航空制造“游戏规则”的顶级技术。这项技术使用数据馈送来映射物理实体,并正在对工业的许多领域产生颠覆性的影响。德国信息技术和新媒体协会预测,在制造业市场中,数字孪生的价值是巨大的,到2025年将超过780亿欧元。Gartner已经连续两年(2016、2017)将数字孪生列为十大战略技术发展趋势之一。2017年11月,世界上最大的武器制造商洛克希德·马丁公司将数字孪生列为未来国防和航空航天工业的六大顶级技术。\par
|
||||||
|
数字孪生是真实产品的虚拟表示。它拥有产品的信息,从产品生命的开始一直到产品的处置。在网络物理系统的语境中,数字孪生可以被看作是一个网络表征,是其特征点的对象集合,泛函其物理机制、虚拟特征和与人的交互关系.\par
|
||||||
|
在真实的实践场景中,往往会遇到复杂的现实问题,如海量信息的建模、处理问题,模型的结构化专有化问题等等。单一场景都有可能面临构建几千孪生体和处理每秒几十万量级数据,如何去已有的知识去构建模型,如何去描述模型特征和状态,如何去关联、分析、响应大量数据,这就是本篇研究的内容。
|
||||||
|
\end{cabstract}
|
||||||
|
|
||||||
|
\begin{eabstract}
|
||||||
|
\end{eabstract}
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{常见问题}
|
||||||
|
\label{chapter-faq}
|
||||||
|
\begin{enumerate}
|
||||||
|
\item 本模板如何使用?
|
||||||
|
\label{faq-howtouse}
|
||||||
|
\begin{itemize}
|
||||||
|
\item 按照第2章的要求,先下载和安装相应的软件,推荐使用\TeX{}Live;
|
||||||
|
\item 下载cls文件;
|
||||||
|
\item 使用tex的编辑器或其他编辑器,编写论文,注意保存为UTF-8编码;
|
||||||
|
\item xelatex编译。
|
||||||
|
\end{itemize}
|
||||||
|
\item Windows下的msmake.bat如何使用?
|
||||||
|
\label{faq-msmake}
|
||||||
|
\begin{itemize}
|
||||||
|
\item 使用Windows的CMD命令行,进入到msmake.bat所在目录;
|
||||||
|
\item 键入~msmake~后会显示相应的帮助文件;
|
||||||
|
\item 按照所显示的相关信息再键入相应命令即可。
|
||||||
|
\end{itemize}
|
||||||
|
\item 使用TexLive如何更新?
|
||||||
|
\label{faq-texliveupdate}
|
||||||
|
TUG官方推荐\TeX{}Live通过镜像站进行更新,具体步骤为:
|
||||||
|
\begin{itemize}
|
||||||
|
\item 在“开始”菜单中,找到有TeX Live Manage程序;
|
||||||
|
\item 在菜单“tlmgr”下选择“载入其他仓库”,选择最近的仓库即可(如果是北航校内用户并能够
|
||||||
|
访问到\href{http://mirror.buaa.edu.cn/}{北航开源镜像站}的话,可以在仓库地址中
|
||||||
|
输入\texttt{http://mirror.buaa.edu.cn/CTAN/systems/texlive/tlnet/});
|
||||||
|
\item 按照目录选择更新。
|
||||||
|
\end{itemize}
|
||||||
|
\end{enumerate}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{联系我们}
|
||||||
+240
@@ -0,0 +1,240 @@
|
|||||||
|
This file was created with JabRef 2.1 beta 2.
|
||||||
|
Encoding: GB2312
|
||||||
|
|
||||||
|
@book{kottwitz2011latex,
|
||||||
|
title={LaTeX Beginner's Guide},
|
||||||
|
author={Kottwitz, S.},
|
||||||
|
isbn={9781847199867},
|
||||||
|
url={http://books.google.com.hk/books?id=rB1Cb62dVnUC},
|
||||||
|
year={2011},
|
||||||
|
publisher={Packt Publishing}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ARTICLE{idlemem,
|
||||||
|
author = {A. Acharya and S. Setia},
|
||||||
|
title = {Availability and Utility of Idle Memory in Workstation Clusters},
|
||||||
|
journal = {ACM SIGMETRICS Performance Evaluation Review},
|
||||||
|
year = {1999}
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@TECHREPORT{sigsegv,
|
||||||
|
author = {E. A. Anderson and J. M. Neefe},
|
||||||
|
title = {An Exploration of Network RAM},
|
||||||
|
institution = {UC Berkley},
|
||||||
|
year = {1994},
|
||||||
|
number = {CSD-98-1000},
|
||||||
|
month = dec
|
||||||
|
}
|
||||||
|
%技术报告?
|
||||||
|
|
||||||
|
@ARTICLE{Myrinet,
|
||||||
|
author = {N.J. Boden and D. Cohen and R.E. Felderman and A.E. Kulawik and C.
|
||||||
|
L. Seitz and J.N. Seizovic and W. Su},
|
||||||
|
title = {Myrinet: A Gigabit-per-Second Local Area Network},
|
||||||
|
journal = {IEEE Micro},
|
||||||
|
year = {1995},
|
||||||
|
volume = {15},
|
||||||
|
pages = {29--36},
|
||||||
|
number = {1}
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@BOOK{ulk3rd,
|
||||||
|
title = {Understanding the Linux Kernel},
|
||||||
|
publisher = {O'{\MakeUppercase{R}}eilly},
|
||||||
|
year = {2005},
|
||||||
|
author = {Daniel P. Bovet and Marco Cesati},
|
||||||
|
edition = {3rd},
|
||||||
|
booktitle = {Understanding the Linux Kernel},
|
||||||
|
isbn = {0-596-00565-2}
|
||||||
|
}
|
||||||
|
%书籍
|
||||||
|
|
||||||
|
@BOOK{ldd3rd,
|
||||||
|
title = {Linux Device Drivers},
|
||||||
|
publisher = {O'{\MakeUppercase{R}}eilly},
|
||||||
|
year = {2005},
|
||||||
|
author = {Jonathan Corbet and Alessandro Rubini and Greg Kroah-Hartman},
|
||||||
|
edition = {3rd},
|
||||||
|
booktitle = {Linux Device Drivers}
|
||||||
|
}
|
||||||
|
%书籍
|
||||||
|
|
||||||
|
@ARTICLE{GMM,
|
||||||
|
author = {M. J. Feeley and W. E. Morgan and F. H. Pighin and A. R. Karlin and
|
||||||
|
H. M. Levy and C. A. Thekkath},
|
||||||
|
title = {Implementing Global Memory Management in a Workstation Cluster},
|
||||||
|
journal = {ACM SIGOPS Operating Systems Review},
|
||||||
|
year = {1995},
|
||||||
|
pages = {201--212}
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@ARTICLE{nrd,
|
||||||
|
author = {M. D. Flouris and E. P. Markatos},
|
||||||
|
title = {The Network RamDisk: Using Remote Memory on Heterogeneous NOWs},
|
||||||
|
journal = {Cluster Computing},
|
||||||
|
year = {1999},
|
||||||
|
volume = {2},
|
||||||
|
pages = {281--293},
|
||||||
|
number = {4}
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@INPROCEEDINGS{1992GMM,
|
||||||
|
author = {M. J. Frankling and M. J. Carey and M. Livny},
|
||||||
|
title = {Globla memory management in client-server DBMS architectures},
|
||||||
|
booktitle = {Proceeding of the 18th VLDB Conference},
|
||||||
|
year = {1992},
|
||||||
|
month = aug
|
||||||
|
}
|
||||||
|
%会议论文?
|
||||||
|
|
||||||
|
@INPROCEEDINGS{iSCSIIOprof,
|
||||||
|
author = {Jizhong Han and Dan Zhou and Xubin He and Jinzhu Gao},
|
||||||
|
title = {I/{\MakeUppercase{O}} Profiling for Distributed IP Storage Systems},
|
||||||
|
booktitle = {Proceeding of The Second International Conference on Embedded Software
|
||||||
|
and Systems},
|
||||||
|
year = {2005},
|
||||||
|
month = dec
|
||||||
|
}
|
||||||
|
|
||||||
|
@INPROCEEDINGS{icache1,
|
||||||
|
author = {X. He and Q. Yang and M. Zhang},
|
||||||
|
title = {A Caching Strategy to Improve iSCSI Performance},
|
||||||
|
booktitle = {Proceeding of Local Computer Networks},
|
||||||
|
year = {2002}
|
||||||
|
}
|
||||||
|
|
||||||
|
@MASTERSTHESIS{NFS,
|
||||||
|
author = {M. R. Hines and M. Lewandowski and K. Gopalan},
|
||||||
|
title = {Anemone: Adaptive Network Memory Engine},
|
||||||
|
school = {Florida State University},
|
||||||
|
year = {2003}
|
||||||
|
}
|
||||||
|
%硕士论文
|
||||||
|
|
||||||
|
@INPROCEEDINGS{memserver,
|
||||||
|
author = {L. Iftode and K. Li and K. Petersen},
|
||||||
|
title = {Memory Servers for Multicomputers},
|
||||||
|
booktitle = {Proceeding of the IEEE Spring COMPCON 93},
|
||||||
|
year = {1993},
|
||||||
|
pages = {538-547},
|
||||||
|
month = feb
|
||||||
|
}
|
||||||
|
|
||||||
|
@INPROCEEDINGS{dodo,
|
||||||
|
author = {S. Koussih and A. Acharyam, S. Setia},
|
||||||
|
title = {Dodo:A User-level System for Exploiting Idle Memory in Workstation
|
||||||
|
Clusters},
|
||||||
|
booktitle = {Proceeding of the Eighth IEEE International Symposium on High Performance
|
||||||
|
Distributed Computing},
|
||||||
|
year = {1999}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ARTICLE{HPBD,
|
||||||
|
author = {S. Liang and R. Notonha and D. K. Panda},
|
||||||
|
title = {Swapping to Remote Memory over InfiniBand: An Approach using a High
|
||||||
|
Performance Network Block Device},
|
||||||
|
journal = {IEEE Cluster Computing},
|
||||||
|
year = {2005},
|
||||||
|
month = sep
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@BOOK{lkd2nd,
|
||||||
|
title = {Linux Kernel Development},
|
||||||
|
publisher = {Sams Publishing},
|
||||||
|
year = {2005},
|
||||||
|
author = {Robert Love},
|
||||||
|
edition = {2nd},
|
||||||
|
booktitle = {Linux Kernel Development},
|
||||||
|
isbn = {0-672-32720-1}
|
||||||
|
}
|
||||||
|
%书籍
|
||||||
|
|
||||||
|
@INPROCEEDINGS{rrmp,
|
||||||
|
author = {E. P. Markatos and G. Dramitions},
|
||||||
|
title = {Implementation of a Reliable Remote Memory Pager},
|
||||||
|
booktitle = {Proceeding of the 1996 Usenix Technical Conference},
|
||||||
|
year = {1996}
|
||||||
|
}
|
||||||
|
|
||||||
|
@OTHER{stream,
|
||||||
|
author = {John McCalpin},
|
||||||
|
etype = {CP},
|
||||||
|
howpublished = {http://www.streambench.org},
|
||||||
|
title = {Streambenchmark},
|
||||||
|
url = {http://www.streambench.org}
|
||||||
|
}
|
||||||
|
%其他
|
||||||
|
|
||||||
|
@INPROCEEDINGS{Nswap,
|
||||||
|
author = {T. Newhall and S. Finney and K. Ganchevm and M. Spiegel},
|
||||||
|
title = {Nswap:A Network Swapping Module for Linux Clusters},
|
||||||
|
booktitle = {Proceeding of Euro-Par'03 International Conference on Parallel and
|
||||||
|
Distributed Computing},
|
||||||
|
year = {2003},
|
||||||
|
address = {Klagenfurt, Austria},
|
||||||
|
month = aug
|
||||||
|
}
|
||||||
|
|
||||||
|
@INPROCEEDINGS{manager,
|
||||||
|
author = {J. Oleszkiewicz and L. Xiao and Y. Liu},
|
||||||
|
title = {Parallel Network RAM: Effectively Utilizing Global Cluster memory
|
||||||
|
for Large Data-Intensive Parallel Programs},
|
||||||
|
booktitle = {Proceeding of International Conference on Parallel Proceeding},
|
||||||
|
year = {2004},
|
||||||
|
pages = {577-592}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ARTICLE{Quadrics,
|
||||||
|
author = {Fabrizio Petrini and Eitan Frachtenberg and Adolfy Hoisie and Salvador
|
||||||
|
Coll},
|
||||||
|
title = {Performance Evaluation of the Quadrics Interconnection Network},
|
||||||
|
journal = {Journal of Cluster Computing},
|
||||||
|
year = {2003},
|
||||||
|
volume = {6},
|
||||||
|
pages = {125--142},
|
||||||
|
number = {2},
|
||||||
|
month = apr
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@INPROCEEDINGS{NBD,
|
||||||
|
author = {Sun, H. Tang and M. Chen and J. Fan},
|
||||||
|
title = {A Scalable Dynamic Network Memory Service System},
|
||||||
|
booktitle = {Proceeding of High-Performance Computing in Asia-Pacific Region},
|
||||||
|
year = {2005}
|
||||||
|
}
|
||||||
|
|
||||||
|
@INPROCEEDINGS{VMA,
|
||||||
|
author = {T. S. Trevisan and V. S. Costal and L. Whately and C. L. Amorim},
|
||||||
|
title = {Distributed Shared Memory in Kernel Mode},
|
||||||
|
booktitle = {Proceeding of Computer Architecture and High Performance Computing},
|
||||||
|
year = {2002}
|
||||||
|
}
|
||||||
|
|
||||||
|
@ARTICLE{bigmem,
|
||||||
|
author = {L. Xiao and S. Chen and X. Zhang},
|
||||||
|
title = {Adaptive Memory Allocations in Clusters to Handle Unexpctedly Large
|
||||||
|
Data-Intensive Jobs},
|
||||||
|
journal = {IEEE Transactions on Parallel and Distributed Systems},
|
||||||
|
year = {2004},
|
||||||
|
volume = {15},
|
||||||
|
pages = {577-592},
|
||||||
|
number = {6},
|
||||||
|
month = jun
|
||||||
|
}
|
||||||
|
%期刊文章
|
||||||
|
|
||||||
|
@OTHER{IB,
|
||||||
|
etype = {OL},
|
||||||
|
howpublished = {http://www.infinibandta.org/spec},
|
||||||
|
key = {ITA},
|
||||||
|
organization = {InfiniBand Trade Association},
|
||||||
|
title = {The InfiniBand Architecture},
|
||||||
|
url = {http://www.infinibandta.org/spec}
|
||||||
|
}
|
||||||
|
%其他
|
||||||
@@ -0,0 +1,82 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{简介}
|
||||||
|
|
||||||
|
\section{项目说明}
|
||||||
|
|
||||||
|
欢迎使用北京航空航天大学毕业设计论文毕业设计论文\LaTeX{}模板,
|
||||||
|
本模板由北航开源俱乐部(BHOSC)维护,根据北京航空航天大学教务处的
|
||||||
|
本科生毕业设计论文要求和研究生毕业设计论文要求来编写的。
|
||||||
|
|
||||||
|
目前本模板支持本科、硕士和博士研究生毕业设计论文要求规范。
|
||||||
|
|
||||||
|
本模板在编写过程中尽可能满足学校要求,但是由于原始规范主要针对Word。
|
||||||
|
和\LaTeX{}之间不可避免的差异加之编写者的水平限制,本模板很难做到完全一致。
|
||||||
|
我们十分欢迎北航的\LaTeX{}爱好者/专家参与到本模板的完善工作中,
|
||||||
|
希望本模板能够对各位同学的论文撰写工作提供便利,
|
||||||
|
感谢您对我们工作的信任以及任何可能的反馈和贡献。
|
||||||
|
如果您对开发和完善本模板\,BUAAthesis.cls\,有兴趣,
|
||||||
|
或者有任何想法和建议,请与我们联系!
|
||||||
|
|
||||||
|
{\heiti 注意:}本模板在尽可能满足学校要求的同时,在细节处理上,
|
||||||
|
倾向于遵从\LaTeX{}排版规范,避免使用奇怪的宏包和编写者认为不规范的设置。
|
||||||
|
所以难免和学校提供的基于Word的样张存在细微差异,请谨慎使用!
|
||||||
|
|
||||||
|
\section{相关信息}
|
||||||
|
|
||||||
|
\subsection{模板维护及联系方式}
|
||||||
|
\begin{tabular}{ll}
|
||||||
|
\multicolumn{2}{l}{北航开源俱乐部 BeiHang OpenSource Club (BHOSC)} \\
|
||||||
|
GoogleGroup & \url{https://groups.google.com/d/forum/BHOSC/} \\
|
||||||
|
Github & \url{https://github.com/BHOSC/} \\
|
||||||
|
IRC & \#beihang-osc @ FreeNode
|
||||||
|
\end{tabular}
|
||||||
|
|
||||||
|
\subsection{代码托管及相关页面}
|
||||||
|
\begin{itemize}
|
||||||
|
\item 毕业设计论文模板代码
|
||||||
|
\item[] \url{https://github.com/BHOSC/BUAAthesis/}
|
||||||
|
% TODO(huxuan): Others pages related to BUAAthesis
|
||||||
|
% \item 软件学院本科毕设答辩演示模板
|
||||||
|
% \item[] \url{https://github.com/huxuan/latex\_buaasoft\_bachelor\_slide}
|
||||||
|
% \item 研究生毕设综述报告和开题报告模板
|
||||||
|
% \item[] \url{https://github.com/JosephPeng/ZongshuKaiti\}
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\subsection{贡献者}
|
||||||
|
\begin{tabularx}{\textwidth}{@{\hspace{2em}}ll}
|
||||||
|
\href{https://github.com/JosephPeng/}{Joseph \footnote{目前的维护者}} &
|
||||||
|
\href{mailto:pengyongbuaa@gmail.com}{pengyongbuaa@gmail.com} \\
|
||||||
|
\href{http://huxuan.org/}{huxuan \textsuperscript{1}} &
|
||||||
|
\href{mailto:i@huxuan.org}{i@huxuan.org} \\
|
||||||
|
\end{tabularx}
|
||||||
|
|
||||||
|
\subsection{项目协议}
|
||||||
|
本项目主要遵从以下两套协议
|
||||||
|
\begin{itemize}
|
||||||
|
\item \href{http://www.gnu.org/licenses/gpl.txt}
|
||||||
|
{GNU General Public License (GPLv3)}
|
||||||
|
\item \href{http://www.latex-project.org/lppl.txt}
|
||||||
|
{\LaTeX{} Project Public License (LPPL)}
|
||||||
|
\end{itemize}
|
||||||
|
使用前请认真阅读相关协议,详情请见项目代码根目录下的 LICENSE 文件
|
||||||
|
|
||||||
|
\section{免责声明}
|
||||||
|
本模板为编写者依据北京航空航天大学研究生院及教务处出台的
|
||||||
|
《北京航空航天大学研究生撰写学位论文规定(2009年7月修订)》和
|
||||||
|
《本科生毕业设计(论文)撰写规范及要求》编写而成,
|
||||||
|
旨在方便北京航空航天大学毕业生撰写学位论文使用。
|
||||||
|
|
||||||
|
如前所述,本模板为北航开源俱乐部\LaTeX{}爱好者依据学校的要求规范编写,
|
||||||
|
研究生院及教务处只提供毕业论文的写作规范,目前并未提供官方\LaTeX{}模板,
|
||||||
|
也未授权第三方模板为官方模板,故此模板仅为论文规范的参考实现,
|
||||||
|
不保证格式能完全满足审查老师要求。任何由于使用本模板而引起的论文格式等问题,
|
||||||
|
以及造成的可能后果,均与本模板编写者无关。
|
||||||
|
|
||||||
|
任何组织或个人以本模板为基础进行修改、扩展而生成新模板,请严格遵守相关协议。
|
||||||
|
由于违反协议而引起的任何纠纷争端均与本模板编写者无关。
|
||||||
|
|
||||||
|
\section{版本历史}
|
||||||
|
\begin{itemize}
|
||||||
|
\item[1.0] 2012/07/24 已完成大体功能,说明文档和细节方面还有待完善。
|
||||||
|
% “a.b”为版本号,b为奇数时为内测版本,为偶数时为发行版。
|
||||||
|
\end{itemize}
|
||||||
@@ -0,0 +1,188 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{环境配置}
|
||||||
|
|
||||||
|
\section{C\TeX{}套装 [Windows Only]}
|
||||||
|
|
||||||
|
C\TeX{}套装是Windows下为中文优化的\LaTeX{}系统套件,主要基于MiKTeX系统,
|
||||||
|
集成了编辑器WinEdt和其他相关软件。整个系统封装在一个安装程序中,
|
||||||
|
安装方法与常规软件相同,无需任何配置,适合大部分Windows用户使用。
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[下载地址] \hfill
|
||||||
|
\begin{description}
|
||||||
|
\item[官方页面]
|
||||||
|
\url{http://www.ctex.org/CTeXDownload}
|
||||||
|
\item[清华镜像]
|
||||||
|
\url{https://mirrors.tuna.tsinghua.edu.cn/ctex/unstable/}
|
||||||
|
\item[中科大镜像]
|
||||||
|
\url{http://mirrors.ustc.edu.cn/ctex/unstable/}
|
||||||
|
\end{description}
|
||||||
|
\item[安装方法] \hfill
|
||||||
|
\begin{itemize}
|
||||||
|
\item[] 与常规软件的安装方法类似
|
||||||
|
\item[] 一直下一步稍加一些自定义(如安装路径)即可
|
||||||
|
\item[] {\bf 注意:} 安装程序在某些情况下可能覆盖PATH环境变量,请在安装前注意备份PATH环境变量
|
||||||
|
\end{itemize}
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
\section{\TeX{}Live [ Windows \& Linux ]}
|
||||||
|
|
||||||
|
\TeX{}是自由软件,有很多发行版本,就像Linux的Ubuntu、Fedora等等。
|
||||||
|
每个发行版本都是一套工具集合,包括plain\TeX{},\LaTeX{},pdf\TeX{},dvips等。
|
||||||
|
其中比较流行的是\TeX{}Live,也包含在CTAN的开源镜像中。
|
||||||
|
|
||||||
|
推荐通过下载ISO镜像文件的方式安装:
|
||||||
|
\begin{description}
|
||||||
|
\item[官方说明]
|
||||||
|
\url{http://www.tug.org/texlive/acquire-iso.html}
|
||||||
|
\item[下载地址] 官方地址会自动跳转寻找"最近"镜像,还有几个较快的教育网镜像
|
||||||
|
\begin{description}
|
||||||
|
\item[官方地址]
|
||||||
|
\url{http://mirror.ctan.org/systems/texlive/Images/texlive2016.iso}
|
||||||
|
\item[清华镜像]
|
||||||
|
\url{http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/texlive/Images/}
|
||||||
|
\item[中科大镜像]
|
||||||
|
\url{https://mirrors.ustc.edu.cn/CTAN/systems/texlive/Images/}
|
||||||
|
\end{description}
|
||||||
|
\item[安装方法] \hfill
|
||||||
|
\begin{enumerate}
|
||||||
|
\item 通过虚拟光驱挂载镜像也可以直接打开或解压缩不过会比较慢
|
||||||
|
\item 双击运行光盘镜像或者运行脚本
|
||||||
|
\item[] Windows 用户可以直接双击运行\textsl{install-tl.bat}
|
||||||
|
\item[] Linux 用户可以在终端下执行命令\textsl{./install-tl}
|
||||||
|
\item 按照提示下一步即可,安装大致耗时10$\sim$20分钟,受机器配置影响。
|
||||||
|
\end{enumerate}
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
当然官方也提供了通过网络安装的方式,虽然通过可以通过镜像选择达到比较快的速度,
|
||||||
|
但是这里简便期间不再赘述,有兴趣的同学可以参考官方说明
|
||||||
|
\url{http://www.tug.org/texlive/acquire-netinstall.html}。
|
||||||
|
|
||||||
|
\section{Mac\TeX{} [ Mac ]}
|
||||||
|
|
||||||
|
Mac\TeX{}是基于\TeX{}Live为Mac系统设计的套件。
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[官方网站]
|
||||||
|
\url{http://tug.org/mactex/}
|
||||||
|
\item[下载地址] 官方地址会自动跳转寻找"最近"镜像,还有几个较快的教育网镜像
|
||||||
|
\begin{description}
|
||||||
|
\item[官方地址]
|
||||||
|
\url{http://mirror.ctan.org/systems/mac/mactex/MacTeX.pkg}
|
||||||
|
\item[清华镜像]
|
||||||
|
\url{http://mirrors.tuna.tsinghua.edu.cn/CTAN/systems/mac/mactex/}
|
||||||
|
\item[中科大镜像]
|
||||||
|
\url{https://mirrors.ustc.edu.cn/CTAN/systems/mac/mactex/}
|
||||||
|
\end{description}
|
||||||
|
\item[安装方法] 同一般软件安装,下一步即可
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
\section{兼容性}
|
||||||
|
|
||||||
|
本模板依赖v2.0及以上版本的ctex包,\TeX{}Live 2015及以上版本、C\TeX{}2.9.3 可以正常使用。
|
||||||
|
对于低版本的\LaTeX{}发行版,需要使用包管理器升级ctex宏包。
|
||||||
|
|
||||||
|
\section{安装字体 [ Linux ]}
|
||||||
|
|
||||||
|
北航的毕业设计论文要求使用Times New Roman和华文行楷这两种字体,在Linux系统上,这两种字
|
||||||
|
是没有预装在系统里的,因此Linux用户需要手动安装字体才能正常使用本模板。本节将以Ubuntu系统
|
||||||
|
为例演示字体的安装。
|
||||||
|
|
||||||
|
首先需要获取字体文件,Windows系统默认包含了Times New Roman和华文行楷这两种字体,可以从
|
||||||
|
\verb|C:\Windows\Fonts\|文件夹下将字体文件拷贝出来(显示为\verb|STXingkai|和
|
||||||
|
\verb|Times New Roman|),当然,用户也可以从其他途径获取这两个字体文件。然后将字体文件
|
||||||
|
拷贝到Ubuntu的\verb|/usr/share/fonts|目录下,为了方便管理,可以在这些外部字体放在一个新
|
||||||
|
文件夹中:
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={拷贝字体文件},
|
||||||
|
label={copy-fonts},
|
||||||
|
]
|
||||||
|
sudo cp <your font files> /usr/share/fonts/msfonts/
|
||||||
|
\end{lstlisting}
|
||||||
|
然后将字体文件的权限设置为644:
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={设置字体文件权限},
|
||||||
|
label={set-fonts-permission},
|
||||||
|
]
|
||||||
|
sudo chmod 644 /usr/share/fonts/msfonts/*
|
||||||
|
\end{lstlisting}
|
||||||
|
接下来,进入到{\verb /usr/share/fonts/msfonts } 目录下,依次运行以下三个命令:
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={安装字体},
|
||||||
|
label={install-fonts},
|
||||||
|
]
|
||||||
|
sudo mkfontscale
|
||||||
|
sudo mkfontdir
|
||||||
|
sudo fc-cache -fv
|
||||||
|
\end{lstlisting}
|
||||||
|
当看到命令行输出
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={正常输出结果},
|
||||||
|
label={install-font-success},
|
||||||
|
]
|
||||||
|
fc-cache: succeeded
|
||||||
|
\end{lstlisting}
|
||||||
|
时,就完成了字体的安装。
|
||||||
|
|
||||||
|
\section{关于编辑器}
|
||||||
|
|
||||||
|
以上介绍了三款\LaTeX{}套装,涵盖了主流的三大平台,除了C\TeX{}自带了WinEdt,
|
||||||
|
其余两款均需要自己选择编辑器,理论上任何文本编辑器都是可以使用的,
|
||||||
|
如Windows上的 vscode,Linux/MacOS上的vim,emacs,
|
||||||
|
一方面要考虑对\LaTeX{}的支持,一方面还是自己的熟悉程度。
|
||||||
|
|
||||||
|
这里推荐一款大众化的编辑器\TeX{}maker,它是跨平台的,支持Windows、Linux和MacOS。
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[官方网站]
|
||||||
|
\url{http://www.xm1math.net/texmaker/}
|
||||||
|
\item[下载地址]
|
||||||
|
\url{http://www.xm1math.net/texmaker/download.html}
|
||||||
|
\item[相关说明]
|
||||||
|
\begin{itemize}
|
||||||
|
\item 安装同一般软件的安装
|
||||||
|
\item 配置Xe\LaTeX{}的编译,选择菜单栏“选项”->“配置\TeX{}Maker”,
|
||||||
|
\item[] 在“\LaTeX{}”一栏填写
|
||||||
|
\texttt{xelatex -interaction=nonstopmode\%.tex}
|
||||||
|
\end{itemize}
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
\section{关于编译}
|
||||||
|
|
||||||
|
\LaTeX{}的文件是通过编译生成的,对于本模板和毕业设计论文而言,
|
||||||
|
需要经过代码\ref{code-compile}所示步骤(以sample-bachelor.tex为例):
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={编译步骤},
|
||||||
|
label={code-compile},
|
||||||
|
]
|
||||||
|
xelatex sample-bachelor.tex
|
||||||
|
bibtex sample-bachelor.aux
|
||||||
|
xelatex sample-bachelor.tex
|
||||||
|
xelatex sample-bachelor.tex
|
||||||
|
\end{lstlisting}
|
||||||
|
当然,我们在模板里也提供了编译的执行脚本。
|
||||||
|
|
||||||
|
\subsection{批处理 [ Windows only ]}
|
||||||
|
|
||||||
|
进入cmd(Win+R,然后输入cmd),cd到BUAAthesis对应目录,
|
||||||
|
如\verb|D:\BUAAthesis\|,然后运行\verb|msmake|即可。
|
||||||
|
|
||||||
|
\subsection{Makefile [ Windows(cygwin) / Linux / MacOS ]}
|
||||||
|
需要要你的命令行环境支持Make,cd到BUAAthesis相应目录,
|
||||||
|
目前支持如代码\ref{code-make}所示的功能:
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={make 命令},
|
||||||
|
label={code-make},
|
||||||
|
]
|
||||||
|
make bachelor # 编译本科生的\LaTeX{}(文件默认项,亦可直接输入make)
|
||||||
|
make master # 编译研究生的\LaTeX{}文件
|
||||||
|
make kaitireport # 编译本科生/研究生的开题报告/文献综述的\LaTeX{}文件
|
||||||
|
make clean # 删除编译过程中生成的文件(除了pdf)
|
||||||
|
make depclean # 删除编译过程中生成的文件(包括pdf)
|
||||||
|
\end{lstlisting}
|
||||||
@@ -0,0 +1,86 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{下载}
|
||||||
|
|
||||||
|
\section{发行版本}
|
||||||
|
|
||||||
|
发行版本是本模板编写者会不定期更新打包的版本,适合大部分用户使用,
|
||||||
|
优点是相对较为稳定,下载和使用都更方便便捷,
|
||||||
|
缺点是可能不包含一些最新的更新,不过应该足够满足常规毕业设计论文撰写需求。
|
||||||
|
由于本模板仍在开发之中,我们将适时更新本说明文档及相关项目介绍和使用方法,
|
||||||
|
敬请关注后续进展。
|
||||||
|
|
||||||
|
\section{开发版本}
|
||||||
|
|
||||||
|
开发版本是通过Git直接clone本模板托管在Github版本库中的最新代码,
|
||||||
|
适合有版本管理工具使用经验和对LaTeX使用较为熟练的用户。
|
||||||
|
优点是包含最新的模板代码,
|
||||||
|
缺点是稳定性无法保证,可能有一些小问题,
|
||||||
|
当然我们很欢迎您通过所有可能的方式将问题反馈给我们。
|
||||||
|
|
||||||
|
\subsection{下载方法}
|
||||||
|
首先你需要打开准备存放毕业设计论文的目录,
|
||||||
|
通过命令\ref{code-git-clone}即可获取最新的模板代码,
|
||||||
|
需要注意的是这将在当前目录下新建一个名为BUAAthesis的文件夹。
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={git clone},
|
||||||
|
label={code-git-clone},
|
||||||
|
]
|
||||||
|
git clone git://github.com/BHOSC/BUAAthesis.git
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\subsection{更新方法}
|
||||||
|
通过命令\ref{code-git-pull}即可实现模板代码的更新,
|
||||||
|
需要注意的是此处可能会出现冲突,相关处理方法将在后续说明。
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={bash},
|
||||||
|
caption={git pull},
|
||||||
|
label={code-git-pull},
|
||||||
|
]
|
||||||
|
git pull origin master
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\section{目录结构}
|
||||||
|
|
||||||
|
本模板项目完整的文件目录结构如下所示:
|
||||||
|
|
||||||
|
{
|
||||||
|
\dirtree{%
|
||||||
|
.1 BUAAthesis/\DTcomment{根目录}.
|
||||||
|
.2 buaathesis.cls\DTcomment{模板文件}.
|
||||||
|
.2 buaathesis.bst\DTcomment{参考文献样式}.
|
||||||
|
.2 sample-bachelor.tex\DTcomment{本科生示例文件}.
|
||||||
|
.2 sample-master.tex\DTcomment{研究生示例文件}.
|
||||||
|
.2 data/\DTcomment{数据文件夹}.
|
||||||
|
.3 abstract.tex\DTcomment{中英文摘要}.
|
||||||
|
.3 appendix1-faq.tex\DTcomment{附录1,常见问题}.
|
||||||
|
.3 appendix2-contactus.tex\DTcomment{附录2,联系我们}.
|
||||||
|
.3 bibs.bib\DTcomment{参考文献文件}.
|
||||||
|
.3 chapter1-intro.tex.
|
||||||
|
.3 chapter2-config.tex.
|
||||||
|
.3 chapter3-download.tex.
|
||||||
|
.3 chapter4-baisc.tex.
|
||||||
|
.3 chapter5-usage.tex.
|
||||||
|
.3 chapter6-implement.tex.
|
||||||
|
.3 com\_info.tex\DTcomment{通用自定义信息}.
|
||||||
|
.3 reference.tex\DTcomment{参考文献}.
|
||||||
|
.3 bachelor/\DTcomment{本科生专属文件}.
|
||||||
|
.4 assign.tex\DTcomment{任务书}.
|
||||||
|
.4 bachelor\_info.tex\DTcomment{本科生专属信息}.
|
||||||
|
.4 acknowledgement.tex\DTcomment{致谢页}.
|
||||||
|
.3 master/\DTcomment{研究生专属文件}.
|
||||||
|
.4 back1-achievement.tex\DTcomment{附页1,取得成绩}.
|
||||||
|
.4 back2-acknowledgement.tex\DTcomment{附页2,致谢}.
|
||||||
|
.4 back3-aboutauthor.tex\DTcomment{附页3,关于作者}.
|
||||||
|
.4 denotation.tex\DTcomment{主要符号对照表}.
|
||||||
|
.4 master\_info.tex\DTcomment{研究生专属信息}.
|
||||||
|
.2 figure/\DTcomment{图片存放路径}.
|
||||||
|
.3 buaamark.eps\DTcomment{北航Logo,用于页眉}.
|
||||||
|
.3 buaaname.eps\DTcomment{北航校名,用于首页}.
|
||||||
|
.3 fgbt.jpg\DTcomment{北航未来花园Logo,用于测试}.
|
||||||
|
.2 Makefile\DTcomment{Linux下辅助脚本}.
|
||||||
|
.2 msmake.bat\DTcomment{Windows下辅助脚本}.
|
||||||
|
.2 README.md\DTcomment{Github项目说明}.
|
||||||
|
.2 .gitignore\DTcomment{Git版本管理配置文件}.
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,581 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{\LaTeX{}基础知识}
|
||||||
|
\label{chapter-basic}
|
||||||
|
|
||||||
|
本章主要为常用示例,推荐入门用户参照本文档的相应代码进行编写,
|
||||||
|
编写过程中主要考虑论文写作过程中主要使用到的样式类型,
|
||||||
|
更全面的\LaTeX{}基础语法请常见推荐的入门文档。
|
||||||
|
% TODO(huxuan): Add reference of recommended document
|
||||||
|
|
||||||
|
\section{\LaTeX{}的优势}
|
||||||
|
\label{sec-latex-advantage}
|
||||||
|
|
||||||
|
\subsection{样式格式}
|
||||||
|
\label{subsec-style}
|
||||||
|
|
||||||
|
\LaTeX{}可以实现内容和格式的分离,使得专注内容和忽略格式成为可能。
|
||||||
|
结合已有的模版,用户可以利用最基本的文本编辑器完成复杂格式文档的书写。
|
||||||
|
|
||||||
|
你不需要关心整个论文中任何的标题、目录、正文等所有内容的字体、字号,
|
||||||
|
还有段落的首行缩进、段前段后的间隔,利用本模版即可完成所有的工作。
|
||||||
|
包括目录(包括表格目录等)本身以及所有章节、图表的序号均为自动生成,
|
||||||
|
\LaTeX{}都会自动帮你完成其他工作,你需要做的只有一个---专注于你写的内容。
|
||||||
|
|
||||||
|
\subsection{版本管理}
|
||||||
|
\label{subsec-version-control}
|
||||||
|
|
||||||
|
用\LaTeX{}编写的文档都是纯文本文件,所以可以使用版本管理,
|
||||||
|
正如你现在所看到的说明文档,是和\LaTeX{}模版一起托管在了Github上。
|
||||||
|
至于版本管理及其好处不在此赘述,感兴趣的同学请自行了解。
|
||||||
|
|
||||||
|
\section{字体}
|
||||||
|
\label{sec-font}
|
||||||
|
|
||||||
|
毕设论文一般不应过多使用字体。模版也已经设置好默认字体:{\bf 宋体}
|
||||||
|
和{\bf Times New Roman}字体。如有需要特别强调的地方,可参考以下示例。
|
||||||
|
\begin{itemize}
|
||||||
|
\item {\heiti 床前明月光,疑是地上霜。举头望明月,低头思故乡。}
|
||||||
|
\item {\bf 床前明月光,疑是地上霜。举头望明月,低头思故乡。}
|
||||||
|
\item \textbf{To be, or not to be, that's a question.}
|
||||||
|
\item \texttt{To be, or not to be, that's a question.}
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\section{特殊符号}
|
||||||
|
\label{sec-symbol}
|
||||||
|
|
||||||
|
由于\LaTeX{}命令需要用到一些符号,因此一些特殊符号的录入需要特殊处理。
|
||||||
|
比较常见的有“\% \$ \& \{ \} \# \_ \^{} \textbackslash”等,
|
||||||
|
其他符号请自行搜索或参考tex自带的文档。
|
||||||
|
% TODO(huxuan): Add reference of symbol document
|
||||||
|
|
||||||
|
\section{长度单位和命令}
|
||||||
|
\label{sec-length}
|
||||||
|
|
||||||
|
\begin{itemize}
|
||||||
|
\item 常规长度单位
|
||||||
|
\begin{description}
|
||||||
|
\item[cm] 厘米
|
||||||
|
\item[in] 英寸
|
||||||
|
\end{description}
|
||||||
|
\item 文字相关长度,适用于与文字混排
|
||||||
|
\begin{description}
|
||||||
|
\item[em] 当前字体字符“M”的宽度,常用于水平距离
|
||||||
|
\item[ex] 当前字体字符“x”的宽度,常用于竖直距离
|
||||||
|
\end{description}
|
||||||
|
\item 页面相关长度,适用于图表等浮动元素
|
||||||
|
\begin{description}
|
||||||
|
\item[\textbackslash textwidth] 页面主体文字部分的宽度
|
||||||
|
\item[\textbackslash textheight] 页面主体文字部分的高度
|
||||||
|
\end{description}
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\section{空格、换行与分段}
|
||||||
|
\label{sec-space-linkbreak-par}
|
||||||
|
|
||||||
|
在\LaTeX{}中,换行都会被忽略,连续的空格都会被认为是一个空格。
|
||||||
|
需使用空格时可以选择表\ref{tab-space}中适当的命令。换行与分段是不同的概念,
|
||||||
|
换行只是重新开始一行,新的段落需通过一个单独的空行实现。
|
||||||
|
故编写\LaTeX{}源文件时推荐以标点为间隔换行,一行不超过80个字符,
|
||||||
|
示例见本文档源文件。
|
||||||
|
|
||||||
|
\begin{table}
|
||||||
|
\centering
|
||||||
|
\caption{\LaTeX{}中的空格}
|
||||||
|
\label{tab-space}
|
||||||
|
\begin{tabular}{l|l}
|
||||||
|
\hline
|
||||||
|
\verb|\qquad| & 当前字体下2个字母“M”的宽度 \\ \hline
|
||||||
|
\verb|\quad| & 当前字体下1个字母“M”的宽度 \\ \hline
|
||||||
|
\verb|\ | & 当前字体下1/3个字母“M”的宽度(斜杠后是一个空格) \\ \hline
|
||||||
|
\verb|\;| & 当前字体下2/7个字母“M”的宽度 \\ \hline
|
||||||
|
\verb|\,| & 当前字体下1/6个字母“M”的宽度 \\ \hline
|
||||||
|
\verb|\!| & {\bf 缩进}当前字体下1/6个字母“M”的宽度 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\section{标签和引用}
|
||||||
|
\label{sec-label-ref}
|
||||||
|
|
||||||
|
标签和引用是用来生成如“见图6.4”等类似语句中的"6.4"这样的序号,
|
||||||
|
它的好处是当你改变顺序或者删除之前的某一个图表等内容时,
|
||||||
|
所有序号会在下次编译时自动重排。
|
||||||
|
|
||||||
|
设置标签是\verb|\label{}|命令,参数为该标签的名称,在引用时使用。
|
||||||
|
引用标签是\verb|\ref{}|命令,参数为设定好的对应标签名称。
|
||||||
|
引用标签所在页的页码是\verb|\pageref{}|命令,参数也是设定好的对应标签名称。
|
||||||
|
设置标签也是\LaTeX{}编码时的一个好习惯,推荐在即使用不到的情况下,
|
||||||
|
也给所有的章节和图表等内容都设定标签,示例见本文档源文件。
|
||||||
|
|
||||||
|
\section{章、节、条、款、项}
|
||||||
|
\label{sec-title}
|
||||||
|
|
||||||
|
\subsection{章、节、条}
|
||||||
|
\label{subsec-chap-etc}
|
||||||
|
|
||||||
|
\begin{description}
|
||||||
|
\item[章] \verb|\chapter{|章标题\}
|
||||||
|
\item[节] \verb|\section{|节标题\}
|
||||||
|
\item[条] \verb|\subsection{|条标题\}
|
||||||
|
\end{description}
|
||||||
|
|
||||||
|
\subsection{款、项}
|
||||||
|
\label{subsec-item}
|
||||||
|
条目环境即目录结构中的款和项分为itemize,enumerate,description三种。
|
||||||
|
itemize是最简单的,enumerate是带序号的,description是带描述的,
|
||||||
|
具体示例如下:
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item enumerate第一条:
|
||||||
|
\begin{itemize}
|
||||||
|
\item itemize第一点。
|
||||||
|
\item itemize第二点。
|
||||||
|
\end{itemize}
|
||||||
|
\item enumerate第二条:
|
||||||
|
\begin{description}
|
||||||
|
\item[观点三] description第三点。
|
||||||
|
\item[观点四] description第四点。
|
||||||
|
\end{description}
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
默认情况下,列表项正文如果较长,列表项的内容将与第一行保持一致的缩进,例如
|
||||||
|
|
||||||
|
\begin{enumerate}
|
||||||
|
\item 列表项短文本
|
||||||
|
\item 列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本
|
||||||
|
列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
使用\verb|itemize|或\verb|enumerate|环境时,加上\verb|[wide]|选项就可以解决这个问题,
|
||||||
|
并且使用\verb|enumerate|环境创建的列表中的项同样会自动编号,
|
||||||
|
例如\verb|\begin{enumerate}[wide]|的效果:
|
||||||
|
|
||||||
|
\begin{enumerate}[wide]
|
||||||
|
\item 列表项短文本
|
||||||
|
\item 列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本
|
||||||
|
列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本列表项长文本
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
\section{图形}
|
||||||
|
\label{sec-figure}
|
||||||
|
插入图形时可以使用\texttt{figure}环境,示例如图\ref{fig-sample}所示。
|
||||||
|
其中figure环境的参数\verb|[h!]|表示尽量排版在当前位置,一般情况下照用即可。
|
||||||
|
\verb|\includegraphics|的参数\verb|[width=0.4\textwidth]|是图片大小的设置,
|
||||||
|
也可以使用height或者两个一起使用,设置其中一个即可实现等比例缩放。
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.4\textwidth]{figure/image.pdf}
|
||||||
|
\caption{图片}
|
||||||
|
\label{fig-sample}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\section{表格}
|
||||||
|
\label{sec-table}
|
||||||
|
|
||||||
|
\subsection{浮动环境}
|
||||||
|
\label{subsec-table-float}
|
||||||
|
\texttt{table}为表格的浮动环境,主要用于添加标题和标签
|
||||||
|
\texttt{tabular}为表格环境,通过参数定义表格列方向的样式,
|
||||||
|
如\verb+{l||c|r}+表示表格共三列,第一列左对齐{\bf l},
|
||||||
|
第二列居中对齐{\bf c},第三列右对齐{\bf r}。
|
||||||
|
其中前两列用两条竖线分隔,后两列之间只有一条竖线。
|
||||||
|
表格行方向的横线用\verb|\hline|表示,横线或竖线均可多条。
|
||||||
|
每一行中的列用“\&”作为间隔符,每一行之间使用“\verb|\\|”换行,
|
||||||
|
示例见表格\ref{tab-sample}。
|
||||||
|
\begin{table}
|
||||||
|
\centering
|
||||||
|
\caption{浮动表格示例}
|
||||||
|
\label{tab-sample}
|
||||||
|
\begin{tabular}{l||c|r}
|
||||||
|
\hline
|
||||||
|
第一列 & 第二列 & 第三列 \\ \hline \hline
|
||||||
|
左 & 居中对齐 & 右对齐 \\ \hline
|
||||||
|
左对 & 居中 & 右对 \\ \hline
|
||||||
|
左对齐 & 对齐 & 右 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
如果在表格中需要使用脚注(footnote)功能,则需要将浮动表格环境置于一个minipage中,
|
||||||
|
否则脚注会被内容所吞掉。比如下表所示。但目前能力有限,无法将此表格居中,也无法添加
|
||||||
|
表格标题和引用。待改进。
|
||||||
|
|
||||||
|
\begin{minipage}[h]{\textwidth}
|
||||||
|
\begin{tabular}{|c|c|c|}
|
||||||
|
\hline
|
||||||
|
aaa\footnote{test} & bbb & ccc \\
|
||||||
|
\hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{minipage}
|
||||||
|
|
||||||
|
\subsection{三线表格}
|
||||||
|
\label{three-line-table}
|
||||||
|
|
||||||
|
论文中给出的表格示例为三线表格,在\LaTeX{}中制作三表表格也非常容易。使用\verb|\toprule|、
|
||||||
|
\verb|\midrule|、\verb|\bottomrule|这三个命令来绘制横分割线即可。以本科生毕业设计手册中的
|
||||||
|
一个表格\ref{tab-three-line-table-example}为例:
|
||||||
|
|
||||||
|
\begin{table}
|
||||||
|
\centering
|
||||||
|
\caption{降压损失计算结果}
|
||||||
|
\label{tab-three-line-table-example}
|
||||||
|
\begin{tabular}{lcr}
|
||||||
|
\toprule
|
||||||
|
换热器 & 热边压降损失 & 冷边压降损失 \\
|
||||||
|
\midrule
|
||||||
|
初级 & 2974.37 & 2931.52 \\
|
||||||
|
次级 & 2924.65 & 3789.76 \\
|
||||||
|
\bottomrule
|
||||||
|
\end{tabular}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\subsection{列合并和行合并}
|
||||||
|
\label{subsec-tab-col-row}
|
||||||
|
列合并用\verb|\multicolumn{#1}{#2}{#3}|命令,\#1为所合并的列数,
|
||||||
|
\#2为该列的样式,\#3为该列中的内容,示例如表\ref{tab-col}。
|
||||||
|
其中合并了第二行的二三列,合并的列数为2,样式是“c|”。需要注意的是,
|
||||||
|
列分隔符包含两列间可能的竖线(根据表格样式),故只需指定右侧是否有竖线即可。
|
||||||
|
|
||||||
|
行合并的命令为\verb|\multirow{#1}{#2}{#3}|,参数\#1和\#3与列合并相同。
|
||||||
|
\#2为行合并单元格的宽度,一般用*来表示默认的计算值,
|
||||||
|
行合并后表格线一般是多段间断的线,需要使用命令\verb|\cline{X-Y}|,
|
||||||
|
来表示从第X列起始到第Y列结尾的横线,多段横线依次指定即可,
|
||||||
|
示例如表\ref{tab-row}所示,被合并的单元格只需留空即可。
|
||||||
|
|
||||||
|
\begin{table}
|
||||||
|
\begin{minipage}{.5\textwidth}
|
||||||
|
\centering
|
||||||
|
\caption{列合并示例}
|
||||||
|
\label{tab-col}
|
||||||
|
\begin{tabular}{l|l|l|l}
|
||||||
|
\hline
|
||||||
|
1.1 & 1.2 & 1.3 & 1.4 \\ \hline
|
||||||
|
2.1 & \multicolumn{2}{c|}{2.2 \& 2.3} & 2.4 \\ \hline
|
||||||
|
3.1 & 3.2 & 3.3 & 3.4 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{minipage}
|
||||||
|
\begin{minipage}{.5\textwidth}
|
||||||
|
\centering
|
||||||
|
\caption{行合并示例}
|
||||||
|
\label{tab-row}
|
||||||
|
\begin{tabular}{l|l|l}
|
||||||
|
\hline
|
||||||
|
1.1 & 1.2 & 1.3 \\ \hline
|
||||||
|
2.1 & \multirow{2}*{2.2 \& 3.2} & 2.3 \\ \cline{1-1} \cline{3-3}
|
||||||
|
3.1 & & 3.3 \\ \hline
|
||||||
|
4.1 & 4.2 & 4.3 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{minipage}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
\section{数学公式}
|
||||||
|
\label{sec-math}
|
||||||
|
数学公式分为内嵌行公式和独立行公式。内嵌行公式是与正文段落混合排布的公式,
|
||||||
|
\verb|$ $|表示内嵌行公式的环境,如$sin^2{\alpha}+cos^2{\alpha}=1$。独立行公式是独占一行的公式,
|
||||||
|
独立行公式分为两种,一种是后面不带公式编号,如下方公式所示。$$\begin{Bmatrix}1 & 2\\3 &4\end{Bmatrix}$$
|
||||||
|
另外一种是常用的带公式编号的独立行公式,推荐使用equation环境来自动实现独立行公式的编号,示例见公式\eqref{equ-sample}。
|
||||||
|
\begin{equation}
|
||||||
|
\label{equ-sample}
|
||||||
|
E=mc^2
|
||||||
|
\end{equation}
|
||||||
|
|
||||||
|
一般的数学公式只需掌握几个简单的命令,复杂的数学公式可能会用到更多的命令,
|
||||||
|
更深入的数学公式相关内容请参见文档。
|
||||||
|
% TODO(huxuan): Add reference of recommended document relatex to formula
|
||||||
|
% 数学符号可以翻阅symbols.pdf,或者使用工具http://detexify.kirelabs.org/classify.html
|
||||||
|
|
||||||
|
\section{使用listings显示代码}
|
||||||
|
\label{sec-listings}
|
||||||
|
使用\texttt{listings}环境可以进行更美观的代码整理和展示。
|
||||||
|
代码\ref{code-c-sample}即为一个简单示例。
|
||||||
|
\begin{lstlisting}[
|
||||||
|
language={C},
|
||||||
|
caption={一段C源代码},
|
||||||
|
label={code-c-sample},
|
||||||
|
]
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
|
void main()
|
||||||
|
{
|
||||||
|
printf("Hello, world!");
|
||||||
|
}
|
||||||
|
\end{lstlisting}
|
||||||
|
|
||||||
|
\section{更复杂的操作}
|
||||||
|
\label{sec-more}
|
||||||
|
|
||||||
|
\subsection{多图排列}
|
||||||
|
\label{subsec-multi-fig}
|
||||||
|
两个或多个图形并排排列,可以参照图\ref{fig-mini-l}和\ref{fig-mini-r}的示例代码。
|
||||||
|
\begin{figure}[h!] % [h!] 表示尽量排在当前位置
|
||||||
|
\begin{minipage}{.5\textwidth} % .5\textwidth 表示正文宽度的一半
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.6\textwidth]{figure/image.pdf}
|
||||||
|
\caption{并排的左图}
|
||||||
|
\label{fig-mini-l}
|
||||||
|
\end{minipage}
|
||||||
|
\begin{minipage}{.5\textwidth}
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.6\textwidth]{figure/image.pdf}
|
||||||
|
\caption{并排的右图}
|
||||||
|
\label{fig-mini-r}
|
||||||
|
\end{minipage}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
图\ref{fig-sub}为子图排列,两个子图有各自的图题,
|
||||||
|
分别为图\ref{fig-sub-l}和图\ref{fig-sub-r},并有一个共同的图题。
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\centering
|
||||||
|
\subfigure[并排小图a]{
|
||||||
|
\label{fig-sub-l}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
}
|
||||||
|
\hspace{4em} % 水平间隔
|
||||||
|
\subfigure[并排小图b]{
|
||||||
|
\label{fig-sub-r}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
}
|
||||||
|
\caption{子图并排的示例}
|
||||||
|
\label{fig-sub}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
若要将四个或多个图形以矩阵形式排列,可以参见图\ref{fig-matrix},
|
||||||
|
四个子图分别为图\ref{fig-matrix-a}、图\ref{fig-matrix-b}、
|
||||||
|
图\ref{fig-matrix-c}和图\ref{fig-matrix-d}。
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\centering
|
||||||
|
\subfigcapskip=6pt
|
||||||
|
\begin{tabular}{cc}
|
||||||
|
\subfigure[矩阵子图A]{
|
||||||
|
\label{fig-matrix-a}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
} \hspace{4em} &
|
||||||
|
\subfigure[矩阵子图B]{
|
||||||
|
\label{fig-matrix-b}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
} \\
|
||||||
|
\subfigure[矩阵子图C]{
|
||||||
|
\label{fig-matrix-c}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
} \hspace{4em} &
|
||||||
|
\subfigure[矩阵子图D]{
|
||||||
|
\label{fig-matrix-d}
|
||||||
|
\includegraphics[width=0.3\textwidth]{figure/image.pdf}
|
||||||
|
} \\
|
||||||
|
\end{tabular}
|
||||||
|
\caption{矩形的subfig排列}
|
||||||
|
\label{fig-matrix}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
复杂的图形排列基本到此为止,一般情况下很少会用到也并不推荐使用,
|
||||||
|
如果对图形的编排的兴趣,可以参考推荐书目。
|
||||||
|
% TODO(huxuan): Add reference to 《\LaTeX{}插图指南》
|
||||||
|
|
||||||
|
\subsection{图形表格等混排}
|
||||||
|
\label{subsec-morefigtab}
|
||||||
|
图形表格的并排显示可以参照图\ref{fig-tab-mix}和表格\ref{tab-fig-mix}的实现。
|
||||||
|
大体思路同图形的并排排列,亦可扩展至其他元素类型。
|
||||||
|
\begin{figure}[h!]
|
||||||
|
\begin{minipage}{0.5\textwidth}
|
||||||
|
\centering
|
||||||
|
\includegraphics[width=0.6\textwidth]{figure/image.pdf}
|
||||||
|
\figcaption{左侧的图片} % 用于生成图片的编号
|
||||||
|
\label{fig-tab-mix}
|
||||||
|
\end{minipage}
|
||||||
|
\begin{minipage}{0.5\textwidth}
|
||||||
|
\centering
|
||||||
|
\begin{tabular}{c||c|c} \hline
|
||||||
|
Day & Data & other \\ \hline \hline
|
||||||
|
Monday & 1 & 1.5 \\
|
||||||
|
Tuesday & 2 & 2.5 \\
|
||||||
|
Wednesday & 3 & 3.5 \\
|
||||||
|
Thursday & 4 & 4.5 \\
|
||||||
|
Friday & 5 & 5.5 \\ \hline
|
||||||
|
\end{tabular}
|
||||||
|
\tabcaption{右侧的表格} % 用于生成表格的编号
|
||||||
|
\label{tab-fig-mix}
|
||||||
|
\end{minipage}
|
||||||
|
\end{figure}
|
||||||
|
|
||||||
|
\subsection{长表格}
|
||||||
|
\label{subsec-longtab}
|
||||||
|
当表格超过一页时可以使用longtable环境,如表\ref{tab-long-example}所示。
|
||||||
|
|
||||||
|
\begin{longtable}{|l|l|l|}
|
||||||
|
% 表格的首个表头
|
||||||
|
\caption{长表格示例\label{tab-long-example}} \\
|
||||||
|
\hline
|
||||||
|
\multicolumn{1}{|c|}{\textbf{Time (s)}} &
|
||||||
|
\multicolumn{1}{c|}{\textbf{Triple chosen}} &
|
||||||
|
\multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline
|
||||||
|
\endfirsthead
|
||||||
|
% 表格的其他表头
|
||||||
|
\multicolumn{3}{l}{{\bfseries\tablename\ \thetable{} --接\,上\,页}} \\
|
||||||
|
\hline \multicolumn{1}{|c|}{\textbf{Time (s)}} &
|
||||||
|
\multicolumn{1}{c|}{\textbf{Triple chosen}} &
|
||||||
|
\multicolumn{1}{c|}{\textbf{Other feasible triples}} \\ \hline
|
||||||
|
\endhead
|
||||||
|
% 表格的其他表尾
|
||||||
|
\hline \multicolumn{3}{|r|}{{接\,下\,页}} \\ \hline
|
||||||
|
\endfoot
|
||||||
|
% 表格的最后表尾
|
||||||
|
\hline \hline
|
||||||
|
\endlastfoot
|
||||||
|
0 & (1, 11, 13725) & (1, 12, 10980), (1, 13, 8235), (2, 2, 0) \\
|
||||||
|
2745 & (1, 12, 10980) & (1, 13, 8235), (2, 2, 0), (2, 3, 0) \\
|
||||||
|
5490 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
8235 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
10980 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
13725 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
16470 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
19215 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
21960 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
24705 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
27450 & (1, 12, 16470) & (1, 13, 13725), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
30195 & (2, 2, 2745) & (2, 3, 0), (3, 1, 0) \\
|
||||||
|
32940 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
35685 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
38430 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
41175 & (1, 12, 13725) & (1, 13, 10980), (2, 2, 2745), (2, 3, 0) \\
|
||||||
|
43920 & (1, 13, 10980) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
150975 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
153720 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
156465 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
159210 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
161955 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
164700 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
150975 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
153720 & (1, 12, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
156465 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
159210 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
161955 & (1, 13, 16470) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
164700 & (1, 13, 13725) & (2, 2, 2745), (2, 3, 0), (3, 1, 0) \\
|
||||||
|
\end{longtable}
|
||||||
|
|
||||||
|
|
||||||
|
\subsection{定理定义环境}
|
||||||
|
\label{subsec-thm}
|
||||||
|
本模版支持的定理定义环境及示例:如假设\ref{thm-assumption-example}、
|
||||||
|
定义\ref{thm-definition-example}、命题\ref{thm-proposition-example}、
|
||||||
|
注释\ref{thm-remark-example}、公理\ref{thm-axiom-example}、
|
||||||
|
引理\ref{thm-lemma-example}、定理\ref{thm-theorem-example}、
|
||||||
|
证明\ref{thm-proof-example}、推论\ref{thm-corollary-example}、
|
||||||
|
例\ref{thm-example-example}、练习\ref{thm-exercise-example}、
|
||||||
|
猜想\ref{thm-conjecture-example}、问题\ref{thm-problem-example}。
|
||||||
|
|
||||||
|
\begin{assumption}
|
||||||
|
\label{thm-assumption-example}
|
||||||
|
待月西厢下,迎风户半开;隔墙花影动,疑是玉人来。
|
||||||
|
\begin{eqnarray}
|
||||||
|
\label{equ-example-assumption}
|
||||||
|
c & = & a^2 - b^2\\
|
||||||
|
& = & (a+b)(a-b)
|
||||||
|
\end{eqnarray}
|
||||||
|
\end{assumption}
|
||||||
|
|
||||||
|
\begin{definition}
|
||||||
|
\label{thm-definition-example}
|
||||||
|
子曰:「道千乘之国,敬事而信,节用而爱人,使民以时。」
|
||||||
|
\end{definition}
|
||||||
|
|
||||||
|
\begin{proposition}
|
||||||
|
\label{thm-proposition-example}
|
||||||
|
曾子曰:「吾日三省吾身 --- 为人谋而不忠乎?与朋友交而不信乎?传不习乎?」
|
||||||
|
\end{proposition}
|
||||||
|
|
||||||
|
\begin{remark}
|
||||||
|
\label{thm-remark-example}
|
||||||
|
天不言自高,水不言自流。
|
||||||
|
\begin{gather*}
|
||||||
|
\begin{split}
|
||||||
|
\varphi(x,z)
|
||||||
|
& = z-\gamma_{10}x-\gamma_{mn}x^mz^n\\
|
||||||
|
& = z-Mr^{-1}x-Mr^{-(m+n)}x^mz^n
|
||||||
|
\end{split} \\[6pt]
|
||||||
|
\begin{align}
|
||||||
|
\zeta^0 & = (\xi^0)^2,\\
|
||||||
|
\zeta^1 & = \xi^0\xi^1,\\
|
||||||
|
\zeta^2 & = (\xi^1)^2,
|
||||||
|
\end{align}
|
||||||
|
\end{gather*}
|
||||||
|
\end{remark}
|
||||||
|
|
||||||
|
\begin{axiom}
|
||||||
|
\label{thm-axiom-example}
|
||||||
|
两点间直线段距离最短。
|
||||||
|
\begin{align}
|
||||||
|
x & \equiv y+1\pmod{m^2}\\
|
||||||
|
x & \equiv y+1\mod{m^2}\\
|
||||||
|
x & \equiv y+1\pod{m^2}
|
||||||
|
\end{align}
|
||||||
|
\end{axiom}
|
||||||
|
|
||||||
|
\begin{lemma}
|
||||||
|
\label{thm-lemma-example}
|
||||||
|
《猫和老鼠》是我最爱看的动画片。
|
||||||
|
\begin{multline*}%\tag*{[a]} % 这个不出现在索引中
|
||||||
|
\int_a^b\biggl\{\int_a^b[f(x)^2g(y)^2+f(y)^2g(x)^2]
|
||||||
|
-2f(x)g(x)f(y)g(y)dx\biggr\}dy \\
|
||||||
|
=\int_a^b\biggl\{g(y)^2\int_a^bf^2
|
||||||
|
+f(y)^2\int_a^bg^2-2f(y)g(y)\int_a^b fg\biggr\}dy
|
||||||
|
\end{multline*}
|
||||||
|
\end{lemma}
|
||||||
|
|
||||||
|
\begin{theorem}
|
||||||
|
\label{thm-theorem-example}
|
||||||
|
犯我强汉者,虽远必诛\hfill --- 陈汤(汉)
|
||||||
|
\end{theorem}
|
||||||
|
|
||||||
|
\begin{proof}
|
||||||
|
\label{thm-proof-example}
|
||||||
|
燕赵古称多感慨悲歌之士。董生举进士,连不得志于有司,怀抱利器,郁郁适兹土,吾
|
||||||
|
知其必有合也。董生勉乎哉?
|
||||||
|
|
||||||
|
夫以子之不遇时,苟慕义强仁者,皆爱惜焉,矧燕、赵之士出乎其性者哉!然吾尝闻
|
||||||
|
风俗与化移易,吾恶知其今不异于古所云邪?聊以吾子之行卜之也。董生勉乎哉?
|
||||||
|
|
||||||
|
吾因子有所感矣。为我吊望诸君之墓,而观于其市,复有昔时屠狗者乎?为我谢
|
||||||
|
曰:“明天子在上,可以出而仕矣!” \hfill --- 韩愈《送董邵南序》
|
||||||
|
\end{proof}
|
||||||
|
|
||||||
|
\begin{corollary}
|
||||||
|
\label{thm-corollary-example}
|
||||||
|
四川话配音的《猫和老鼠》是世界上最好看最好听最有趣的动画片。
|
||||||
|
\begin{alignat}{3}
|
||||||
|
V_i & =v_i - q_i v_j, & \qquad X_i & = x_i - q_i x_j, &
|
||||||
|
\qquad U_i & = u_i, \qquad \text{for $i\ne j$;} \\
|
||||||
|
V_j & = v_j, & \qquad X_j & = x_j, &
|
||||||
|
\qquad U_j & u_j + \sum_{i\ne j} q_i u_i.
|
||||||
|
\end{alignat}
|
||||||
|
\end{corollary}
|
||||||
|
|
||||||
|
\begin{example}
|
||||||
|
\label{thm-example-example}
|
||||||
|
大家来看这个例子。
|
||||||
|
\begin{equation}
|
||||||
|
\left\{
|
||||||
|
\begin{array}{l}
|
||||||
|
\nabla f({\mbox{\boldmath $x$}}^*)-
|
||||||
|
\sum\limits_{j=1}^p\lambda_j\nabla g_j
|
||||||
|
({\mbox{\boldmath $x$}}^*)=0 \\ [0.3cm]
|
||||||
|
\lambda_jg_j({\mbox{\boldmath $x$}}^*)=0,
|
||||||
|
\quad j=1,2,\cdots,p \\ [0.2cm]
|
||||||
|
\lambda_j\ge 0,\quad j=1,2,\cdots,p.
|
||||||
|
\end{array}
|
||||||
|
\right.
|
||||||
|
\end{equation}
|
||||||
|
\end{example}
|
||||||
|
|
||||||
|
\begin{exercise}
|
||||||
|
\label{thm-exercise-example}
|
||||||
|
清列出 Andrew S. Tanenbaum 和 W. Richard Stevens 的所有著作。
|
||||||
|
\end{exercise}
|
||||||
|
|
||||||
|
\begin{conjecture}
|
||||||
|
\label{thm-conjecture-example}
|
||||||
|
\textit{Poincare Conjecture} If in a closed three-dimensional space,
|
||||||
|
any closed curves can shrink to a point continuously,
|
||||||
|
this space can be deformed to a sphere.
|
||||||
|
\end{conjecture}
|
||||||
|
|
||||||
|
\begin{problem}
|
||||||
|
\label{thm-problem-example}
|
||||||
|
回答还是不回答,是个问题。
|
||||||
|
\end{problem}
|
||||||
@@ -0,0 +1,97 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{使用说明}
|
||||||
|
\section{基本范例}
|
||||||
|
\begin{table}
|
||||||
|
\begin{center}
|
||||||
|
\begin{tabular}{c||c}
|
||||||
|
\hline
|
||||||
|
本科生论文基本结构 & 研究生论文基本结构\\\hline\hline
|
||||||
|
封面 & 封面(中、英文)\\
|
||||||
|
扉页 & 题名页、独创性声明和使用授权书\\
|
||||||
|
中英文摘要 & 中英文摘要\\
|
||||||
|
目录 & 目录\\
|
||||||
|
正文 & 图表清单及主要符号表(根据情况可省略)\\
|
||||||
|
致谢 & 主体部分\\
|
||||||
|
参考文献 & 参考文献\\
|
||||||
|
附录 & 附录\\
|
||||||
|
~~ & 攻读硕士/博士期间取得的研究\slash 学术成果\\
|
||||||
|
~~ & 致谢\\
|
||||||
|
~~ & 作者简介(仅博士生)\\
|
||||||
|
\hline
|
||||||
|
\end{tabular}
|
||||||
|
\end{center}
|
||||||
|
\end{table}
|
||||||
|
|
||||||
|
本科生论文结构推荐按如下的代码形式来组织整个论文。
|
||||||
|
\lstinputlisting[
|
||||||
|
language={[LaTeX]TeX},
|
||||||
|
caption={本科生论文结构},
|
||||||
|
label={code-bachelor-structure},
|
||||||
|
]{sample-bachelor.tex}
|
||||||
|
|
||||||
|
研究生则推荐使用如下的代码形式来组织论文。
|
||||||
|
\lstinputlisting[
|
||||||
|
language={[LaTeX]TeX},
|
||||||
|
caption={研究生论文结构},
|
||||||
|
label={code-master-structure},
|
||||||
|
]{sample-master.tex}
|
||||||
|
|
||||||
|
对于本科生或研究生的开题报告或文献综述,则推荐使用如下的代码形式组织。
|
||||||
|
\lstinputlisting[
|
||||||
|
language={[LaTeX]TeX},
|
||||||
|
caption={开题报告/文献综述论文结构},
|
||||||
|
label={code-kaitireport-structure},
|
||||||
|
]{sample-kaitireport.tex}
|
||||||
|
|
||||||
|
\section{模板选项}
|
||||||
|
\subsection{学位选项}
|
||||||
|
\begin{itemize}
|
||||||
|
\item bachelor---学士学位;
|
||||||
|
\item master---硕士学位;
|
||||||
|
\item doctor---博士学位;
|
||||||
|
\item professional---添加该选项为专业硕士\slash 博士学位,否则为学术硕士\slash 博士学位。
|
||||||
|
\item kaitireport---添加该选项为开题报告\slash 文献综述,否则为毕业论文。
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\subsection{其他选项}
|
||||||
|
\begin{itemize}
|
||||||
|
\item oneside\slash twoside---单面\slash 双面打印;
|
||||||
|
\item openany\slash openright---新的章节在任何页面开始\slash 新的章节从奇数页开始;
|
||||||
|
\item classfied---保密论文;
|
||||||
|
\item color---将论文中的链接文字用颜色标识。
|
||||||
|
\end{itemize}
|
||||||
|
|
||||||
|
\section{封面及正文前的一些设置}
|
||||||
|
\subsection{封面}
|
||||||
|
本科生论文封面直接使用\texttt{\textbackslash maketitle}命令,将编译生成论文封面和任务书(任务书中的各项需要自己在assign.tex中填写),以及“本人声明”页。只需将\texttt{data/bachelor/bachelor\_info.tex}中的信息填写完整即可自行编译生成。
|
||||||
|
|
||||||
|
研究生(包括博士研究生)的毕设论文封面使用\texttt{\textbackslash maketitle}将生成中英文封面、题名页、和独创性声明与使用授权书。只需将\texttt{data/master/master\_info.tex}中的信息填写完整即可自行编译生成。
|
||||||
|
|
||||||
|
\subsection{中英文摘要}
|
||||||
|
本科生和研究生的论文中英文摘要为\texttt{abstract.tex},请直接按照模板示例进行更改替换即可,关键词以及其他的一些个人论文信息在\texttt{data/bachelor/bachelor\_info.tex}或\texttt{data/master/master\_info.tex}中自行定义。
|
||||||
|
|
||||||
|
\subsection{目录}
|
||||||
|
生成目录为命令\texttt{\textbackslash tableofcontents},需要xelatex两遍才能正确生成目录。
|
||||||
|
|
||||||
|
对于研究生,论文还需要有图表目录以及论文主要符号表。分别使用命令\texttt{\textbackslash listoffig\hyp{}ures}和\texttt{\textbackslash listoftables},而主要符号表则在\texttt{data/master/denotation.tex}中,请自行按照模板给出的样式替换即可。
|
||||||
|
|
||||||
|
\section{正文}
|
||||||
|
\subsection{章节}
|
||||||
|
正文中的各个章节,推荐将其每一章分为单独的\texttt{.tex}文件,然后使用\texttt{\textbackslash include\{chap\hyp{}ter.tex\}}将其包含进来即可。
|
||||||
|
|
||||||
|
章节中的内容如何编写,请见\hyperref[chapter-basic]{第\ref{chapter-basic}章~~\LaTeX{}基础知识}。
|
||||||
|
|
||||||
|
\subsection{参考文献}
|
||||||
|
参考文献使用\texttt{BiBTeX}工具,参考文献的数据库为\texttt{bibs.bib},可以使用记事本等文本编辑器进行编辑。具体如何进行编辑也可参照示例模板给出的范例来编写。在Winedt软件中有具体的增加参考文献的选项;在\url{book.google.com}中搜索到的书籍,在页面的最下方也有\texttt{BiBTeX}的导出选项。
|
||||||
|
|
||||||
|
\texttt{.bib}参考文献数据库文件中,每个类别后的第一个为标号,在示例的\texttt{bibs.bib}中第一个书箱的标号为\textbf{kottwitz2011latex},在引用此文献时,使用\verb|\upcite{kottwitz2011latex}|即可得到此文献\upcite{kottwitz2011latex}的引用\footnote{左侧“文献”的右上方即得到了此文献的引用。}。
|
||||||
|
使用\verb|\cite{kottwitz2011latex}|即可得到文献\cite{kottwitz2011latex}的引用\footnote{“文献”的后面得到了此文献的引用,不是上标形式。}。
|
||||||
|
|
||||||
|
\section{正文之后的内容}
|
||||||
|
\subsection{附录}
|
||||||
|
附录和正文中的章节编写方式一样。无特殊之处。
|
||||||
|
\subsection{攻读硕士\slash 博士期间所取得的研究\slash 学术成果(研究生)}
|
||||||
|
\subsection{致谢}
|
||||||
|
\subsection{作者简介(博士研究生)}
|
||||||
|
博士学位论文应该提供作者简介,主要包括:姓名、性别、出生年月日、民族、出生地;
|
||||||
|
简要学历、工作经历(职务);以及攻读学位期间获得的其它奖励(除攻读学位期间取得的研究成果之外)。
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{模板代码实现}
|
||||||
@@ -0,0 +1,45 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
|
||||||
|
% 学院中英文名,中文不需要“学院”二字
|
||||||
|
% 院系英文名可从以下导航页面进入各个学院的主页查看
|
||||||
|
% https://www.buaa.edu.cn/jgsz/yxsz.htm
|
||||||
|
\school
|
||||||
|
{集成电路科学与工程学院}{School of Integrated Circuit Science and Engineering}
|
||||||
|
|
||||||
|
% 专业中英文名
|
||||||
|
\major
|
||||||
|
{电子信息与科学技术}{(Name of Major)}
|
||||||
|
|
||||||
|
% 论文中英文标题
|
||||||
|
\thesistitle
|
||||||
|
{数字孪生平台研发及其\\数据和知识建模方法研究}
|
||||||
|
{}
|
||||||
|
|
||||||
|
% 作者中英文名
|
||||||
|
|
||||||
|
\thesisauthor{蒋亮亮}{veypi jiang}
|
||||||
|
|
||||||
|
% 导师中英文名
|
||||||
|
\teacher
|
||||||
|
{胡远奇}{yuanqi hu}
|
||||||
|
% 副导师中英文名
|
||||||
|
% 注:慎用‘副导师’,见北航研究生毕业论文规范
|
||||||
|
%\subteacher{(副导师姓名)}{(Name of Subteacher)}
|
||||||
|
|
||||||
|
% 中图分类号,可在 http://www.ztflh.com/ 查询
|
||||||
|
\category{TP29}
|
||||||
|
|
||||||
|
% 本科生为毕设开始时间;研究生为学习开始时间
|
||||||
|
\thesisbegin{2020}{9}{1}
|
||||||
|
|
||||||
|
% 本科生为毕设结束时间;研究生为学习结束时间
|
||||||
|
\thesisend{2023}{1}{1}
|
||||||
|
|
||||||
|
% 毕设答辩时间
|
||||||
|
\defense{(年)}{(月)}{(日)}
|
||||||
|
|
||||||
|
% 中文摘要关键字
|
||||||
|
\ckeyword{数字孪生, 分布式}
|
||||||
|
|
||||||
|
% 英文摘要关键字
|
||||||
|
\ekeyword{digital twins, message queue}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter*{结论\markboth{结论}{}}
|
||||||
|
\addcontentsline{toc}{chapter}{结论}
|
||||||
|
|
||||||
|
本文主要介绍使用\LaTeX{}进行撰写论文的方法,文中范例丰富,涵盖基本的论文使用,在使用本\LaTeX{}模板时
|
||||||
|
可直接复制后进行内容的替换更改即可使用。
|
||||||
|
|
||||||
|
在第一章主要介绍了\LaTeX{}的背景、本模板的维护者信息以及开源协议等;
|
||||||
|
在第二章介绍了各个操作系统平台下\LaTeX{}的配置方法;
|
||||||
|
在第三章介绍了各\LaTeX{}版本及软件的下载地址;
|
||||||
|
在第四章介绍了\LaTeX{}的基本常用语法以及代码示例,高阶使用技巧等;
|
||||||
|
|
||||||
|
\ldots\ldots\ldots
|
||||||
|
|
||||||
|
通过使用本模块来完成论文,可以基本掌握\LaTeX{}的使用,也在最小学习成本的基础上满足规范的论文格式,省去
|
||||||
|
后期调格式之苦,使作者更专注于论文,亦可更高效的完成论文。
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{攻读博士/硕士学位期间取得的学术成果}
|
||||||
|
% 此处标题及内容请自行更改
|
||||||
|
\noindent 发表论文:
|
||||||
|
\begin{enumerate}
|
||||||
|
|
||||||
|
\item
|
||||||
|
Gang Bai and Yue Qi. An Interactive 3D Exhibition System with
|
||||||
|
Global Illumination for Digital Museum. In Lecture Notes in
|
||||||
|
Computer Science, 2009, Volume 5670, Learning by Playing.
|
||||||
|
Game-based Education System Design and Development, Pages 85-92.
|
||||||
|
|
||||||
|
\item
|
||||||
|
Hu Yong, Qi Yue and Bai Gang. Modeling and Editing Isotropic BRDF.
|
||||||
|
In proceedings of the Second International Conference on Modeling,
|
||||||
|
Simulation and Visualization Methods (WMSVM). 15-16 May, 2010,
|
||||||
|
Sanya, China. Pages 74-77.
|
||||||
|
|
||||||
|
\end{enumerate}
|
||||||
|
|
||||||
|
\noindent 申请专利:
|
||||||
|
\begin{enumerate}
|
||||||
|
|
||||||
|
\item
|
||||||
|
齐越,马宗泉,白刚.基于任意位置多球的光源方向标定[P]. 中国发明专利(200910092909), 公开日2010年2月17日
|
||||||
|
|
||||||
|
\end{enumerate}
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{致谢}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\chapter{作者简介}
|
||||||
|
xxxx 年 xx 月 xx 日出生于 xx 省 xx 县。
|
||||||
|
|
||||||
|
xxxx 年 9 月考入 xx 大学 xx 系 xx 专业,xxxx 年 7 月本科毕业并获得 xx 学士学位。
|
||||||
|
|
||||||
|
xxxx 年 9 月免试进入 xx 大学 xx 系攻读 xx 学位至今。
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\begin{denotation}
|
||||||
|
\item[HPC] 高性能计算 (High Performance Computing)
|
||||||
|
\item[cluster] 集群
|
||||||
|
\item[SMP] 对称多处理
|
||||||
|
\item[MBD] 基于模型的设计
|
||||||
|
\item[API] 应用程序编程接口
|
||||||
|
\item[Digital Twin] 数字孪生
|
||||||
|
\item[entity] 实体对象
|
||||||
|
\item[physical entity] 物理对象
|
||||||
|
\item[virtual entity] 虚拟对象
|
||||||
|
\item[physical domain(space)] 物理域(物理空间)
|
||||||
|
\item[$E$] 能量
|
||||||
|
\item[$m$] 质量
|
||||||
|
\item[$c$] 光速
|
||||||
|
\item[$P$] 概率
|
||||||
|
\item[$T$] 时间
|
||||||
|
\item[$v$] 速度
|
||||||
|
\end{denotation}
|
||||||
@@ -0,0 +1,25 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
|
||||||
|
% 研究方向
|
||||||
|
\direction{数字孪生}
|
||||||
|
|
||||||
|
% 导师职称中英文
|
||||||
|
% \teacherdegree{(导师职称)}{(Tutor Degree)}
|
||||||
|
% 副导师职称中英文
|
||||||
|
% 注:慎用‘副导师’,见北航研究生毕业论文规范
|
||||||
|
%\subteacherdegree{(副导师职称)}{(Subteacher Degree)}
|
||||||
|
|
||||||
|
% 保密等级 保密期限,注:非保密论文时不需要此项
|
||||||
|
%\mibao{(保密等级)}{(保密期限)}
|
||||||
|
|
||||||
|
%申请学位级别
|
||||||
|
\applydegree{硕士}
|
||||||
|
|
||||||
|
% 论文编号,由10006+学号组成
|
||||||
|
\thesisID{10006SY2041109}
|
||||||
|
|
||||||
|
% 论文提交时间
|
||||||
|
\commit{(年)}{(月)}{(日)}
|
||||||
|
|
||||||
|
% 学位授予日期
|
||||||
|
\award{(年)}{(月)}{(日)}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\cleardoublepage
|
||||||
|
\phantomsection
|
||||||
|
\addcontentsline{toc}{chapter}{参考文献}
|
||||||
|
\nocite{*}
|
||||||
|
\bibliography{data/bibs}
|
||||||
|
\cleardoublepage
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1407
File diff suppressed because one or more lines are too long
@@ -0,0 +1,58 @@
|
|||||||
|
% !Mode:: "TeX:UTF-8"
|
||||||
|
\documentclass[master,openright,twoside,color,AutoFakeBold=true]{buaathesis}
|
||||||
|
\usepackage[UTF8]{ctex}
|
||||||
|
|
||||||
|
|
||||||
|
\begin{document}
|
||||||
|
|
||||||
|
% 用户信息
|
||||||
|
\include{data/com_info}
|
||||||
|
\include{data/master/master_info}
|
||||||
|
|
||||||
|
\maketitle
|
||||||
|
|
||||||
|
% 前言页眉页脚样式
|
||||||
|
\pagestyle{frontmatter}
|
||||||
|
|
||||||
|
% 摘要
|
||||||
|
\include{data/abstract}
|
||||||
|
% 目录、插图目录、表格目录
|
||||||
|
\tableofcontents
|
||||||
|
\listoffigures
|
||||||
|
% \listoftables
|
||||||
|
% 符号表
|
||||||
|
\include{data/master/denotation}
|
||||||
|
|
||||||
|
|
||||||
|
% 正文页码样式
|
||||||
|
\mainmatter
|
||||||
|
% 正文页眉页脚样式
|
||||||
|
\pagestyle{mainmatter}
|
||||||
|
|
||||||
|
|
||||||
|
% 正文
|
||||||
|
\include{data/chapter1-intro}
|
||||||
|
\include{data/chapter2-config}
|
||||||
|
% \include{data/chapter3-download}
|
||||||
|
% \include{data/chapter4-basic}
|
||||||
|
% \include{data/chapter5-usage}
|
||||||
|
% \include{data/chapter6-implement}
|
||||||
|
\include{data/conclusion}
|
||||||
|
|
||||||
|
% 参考文献
|
||||||
|
\include{data/reference}
|
||||||
|
% 附录
|
||||||
|
\appendix
|
||||||
|
\include{data/appendix1-faq}
|
||||||
|
\include{data/appendix2-contactus}
|
||||||
|
|
||||||
|
% 附页标题样式
|
||||||
|
\backmatter
|
||||||
|
|
||||||
|
% 附页
|
||||||
|
\include{data/master/back1-achievement}
|
||||||
|
\include{data/master/back2-acknowledgement}
|
||||||
|
\include{data/master/back3-aboutauthor}
|
||||||
|
|
||||||
|
\end{document}
|
||||||
|
|
||||||
Reference in New Issue
Block a user