Skip to content

Commit

Permalink
Rename the template file from sjtumaster-xetex to sjtuthesis.
Browse files Browse the repository at this point in the history
  • Loading branch information
weijianwen committed Jan 7, 2016
1 parent a0c6bfb commit 5218bb2
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 22 deletions.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ clean:
*.lot \
*.loe \
*_latexmk \
body/*.aux
body/*.aux \
body/x.log

distclean: clean
-@rm -f ${THESISMAIN}.pdf
Expand Down
14 changes: 7 additions & 7 deletions body/chapter01.tex
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ \subsection{模板特性}
参考文献使用BibTeX处理,可以生成符合国标GBT7714风格的参考文献列表。
模板在Windows,Linux和Mac OS X下测试通过,更详细的系统要求请参考\ref{sec:requirements}。

模板的外观表现和功能都放在sjtumaster-xetex.cls和sjtumaster-xetex.cfg中,在对外观进行细微调整时,只需要更新这两个文件,不需要对.tex源文件做修改。
模板的外观表现和功能都放在sjtuthesis.cls和sjtuthesis.cfg中,在对外观进行细微调整时,只需要更新这两个文件,不需要对.tex源文件做修改。

最后,给出一个列表,罗列一下这个模板的功能要点:

Expand All @@ -59,7 +59,7 @@ \subsection{模板特性}
\item 包含中文字符的源文件(.tex, .bib, .cfg),编码都使用UTF-8;
\item 使用BibTeX处理参考文献。参考文献表现形式(格式)受.bst控制,方便在不同风格间切换,目前生成的列表符合国标GBT7714要求;
\item 可以直接插入EPS/PDF/JPG/PNG格式的图像,并且\emph{不需要}bounding box文件(.bb)。
\item 模板的格式受sjtumater-xetex.cls和sjtumaster-xetex.cfg控制,方便模板更新和模板修改。
\item 模板的格式受sjtumater-xetex.cls和sjtuthesis.cfg控制,方便模板更新和模板修改。
\end{itemize}

\subsection{系统要求}
Expand Down Expand Up @@ -91,8 +91,8 @@ \subsection{模板文件布局}
\begin{lstlisting}[basicstyle=\small\ttfamily,caption={模板文件布局},label=layout,float,numbers=none]
|-- diss.tex
|-- README.pdf
|-- sjtumaster-xetex.cfg
|-- sjtumaster-xetex.cls
|-- sjtuthesis.cfg
|-- sjtuthesis.cls
|-- body
| |-- abstract.tex
| |-- app1.tex
Expand Down Expand Up @@ -125,7 +125,7 @@ \subsubsection{格式控制文件}
\label{sec:format}

格式控制文件控制着论文的表现形式,包括以下几个文件:
sjtumaster-xetex.cfg, sjtumaster-xetex.cls和GBT7714-2005NLang.bst。
sjtuthesis.cfg, sjtuthesis.cls和GBT7714-2005NLang.bst。
其中,``.cfg''``.cls''控制论文主体格式,``.bst''控制参考文献条目的格式,

一般用户最好``忽略''格式控制文件的存在,不要去碰它们。
Expand Down Expand Up @@ -257,7 +257,7 @@ \section{硕士学位论文格式的一些说明}
你可以将diss.tex中设定文档类的语句改为:

\begin{quote}
{\scriptsize\verb+\documentclass[cs4size, a4paer, cs4size, oneside, openany]{sjtumaster-xetex}+}
{\scriptsize\verb+\documentclass[cs4size, a4paer, cs4size, oneside, openany]{sjtuthesis}+}
\end{quote}

这样,就变成了适合“单面打印”的论文,新的一章可以从偶数页开始。
Expand All @@ -277,7 +277,7 @@ \section{模板更新说明}
不管怎么说,模板更新应该是一件好事。
如果``新的格式控制文件''产生的效果对你很有吸引力,那么不妨尝试一下。
应用新的格式控制文件是一件非常简单的事情:
你只要把原来的sjtumaster-xetex.cls, sjtumaster-xetex.cfg, GBxxx.bst覆盖(建议备份或者使用版本控制系统),重新编译一遍,应该就OK了。
你只要把原来的sjtuthesis.cls, sjtuthesis.cfg, GBxxx.bst覆盖(建议备份或者使用版本控制系统),重新编译一遍,应该就OK了。

我大力推荐大家使用\href{http://git-scm.com}{git}\cndash{}一个优秀的代码控制系统\cndash{}管理整个学位论文的协作过程。使用git合并(merge)最新版本的模板,是一件非常安全且无痛的工作。

Expand Down
6 changes: 3 additions & 3 deletions diss.tex
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

% 字号选项: c5size 五号(默认) cs4size 小四
% 双面打印(注意字号设置)
\documentclass[cs4size, a4paper, twoside]{sjtumaster-xetex}
\documentclass[cs4size, a4paper, twoside]{sjtuthesis}
% 单面打印(注意字号设置)
% \documentclass[cs4size, a4paer, oneside, openany]{sjtumaster-xetex}
% \documentclass[cs4size, a4paer, oneside, openany]{sjtuthesis}


% \usepackage[sectionbib]{chapterbib}%每章都用参考文献
Expand All @@ -26,7 +26,7 @@
\graphicspath{{figure/}{figures/}{logo/}{logos/}{graph/}{graphs}}

%%========================================
%% 在sjtumaster-xetex.cls中定义的有用命令
%% 在sjtuthesis.cls中定义的有用命令
%%========================================
% \cndash 中文破折号
% 数学常量
Expand Down
6 changes: 3 additions & 3 deletions sjtumaster-xetex.cfg → sjtuthesis.cfg
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
%%==================================================
%% sjtumaster-xetex.cfg for SJTU Master Thesis
%% sjtuthesis.cfg for SJTU Master Thesis
%% based on CASthesis.cfg -- http://www.ctex.org/PackageCASthesis
%% Hosted on https://github.com/weijianwen/sjtu-thesis-template-latex
%% SJTU LaTeX Forum https://bbs.sjtu.edu.cn/bbsdoc,board,TeX_LaTeX.html
%% Encoding: UTF-8
%%==================================================

\ProvidesFile{sjtumaster-xetex.cfg}[2012/12/05 v0.5 sjtumaster-xetex configuration file]
\ProvidesFile{sjtuthesis.cfg}[2012/12/05 v0.5 sjtuthesis configuration file]
%%
%% the setup of ctex package
%%
Expand Down Expand Up @@ -206,4 +206,4 @@
\renewcommand{\proofname}{\bf 证明}
\endinput
%%
%% End of file `sjtumaster-xetex.cfg'.
%% End of file `sjtuthesis.cfg'.
16 changes: 8 additions & 8 deletions sjtumaster-xetex.cls → sjtuthesis.cls
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
%==================================================
%% sjtumaster-xetex.cls for SJTU Master Thesis
%% sjtuthesis.cls for SJTU Master Thesis
%% based on CASthesis.cls -- http://www.ctex.org/PackageCASthesis
%% Hosted on https://github.com/weijianwen/sjtu-thesis-template-latex
%% SJTU LaTeX Forum https://bbs.sjtu.edu.cn/bbsdoc,board,TeX_LaTeX.html
%% Encoding: UTF-8
%% ==================================================

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesClass{sjtumaster-xetex}[2012/12/05 v0.5 sjtumaster-xetex document class]
\ProvidesClass{sjtuthesis.cls}[2012/12/05 v0.5 sjtuthesis document class]
\newif\ifCAST@typeinfo \CAST@typeinfotrue
\DeclareOption{notypeinfo}{\CAST@typeinfofalse}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{ctexbook}}
\ProcessOptions
\LoadClass[fancyhdr,fntef,UTF8,adobefonts]{ctexbook}[2005/11/25]

%% 导入 sjtumaster-xetex.cfg 文件
\AtEndOfPackage{\makeatletter\input{sjtumaster-xetex.cfg}\makeatother}
%% 导入 sjtuthesis.cfg 文件
\AtEndOfPackage{\makeatletter\input{sjtuthesis.cfg}\makeatother}

%% 当前模板的版本
\newcommand{\version}{\CAST@value@templateversion}
Expand Down Expand Up @@ -186,10 +186,10 @@
\def\CASTfiledate{#1}%
\def\CASTfileversion{#2}%
\def\CASTfileinfo{#3}}%
\expandafter\ifx\csname ver@sjtumaster-xetex.cls\endcsname\relax
\edef\reserved@a{\csname ver@ctextemp_sjtumaster-xetex.cls\endcsname}
\expandafter\ifx\csname ver@sjtuthesis.cls\endcsname\relax
\edef\reserved@a{\csname ver@ctextemp_sjtuthesis.cls\endcsname}
\else
\edef\reserved@a{\csname ver@sjtumaster-xetex.cls\endcsname}
\edef\reserved@a{\csname ver@sjtuthesis.cls\endcsname}
\fi
\expandafter\CAST@getfileinfo\reserved@a\relax? ? \relax\relax
\def\CAST@underline[#1]#2{%
Expand Down Expand Up @@ -500,6 +500,6 @@
\endinput

%%
%% End of file `sjtumaster-xetex.cls'.
%% End of file `sjtuthesis.cls'.


0 comments on commit 5218bb2

Please sign in to comment.