Skip to content

Commit

Permalink
0.8.2
Browse files Browse the repository at this point in the history
  • Loading branch information
weijianwen committed Jan 8, 2016
2 parents 1d276e6 + 721b185 commit 875f726
Show file tree
Hide file tree
Showing 20 changed files with 200 additions and 225 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,18 @@ LATEXMK_OPT = -xelatex -gg -silent -f

all: $(THESIS).pdf

.PHONY : all clean
.PHONY : all clean validate view

$(THESIS).pdf : $(THESIS).tex $(TEX_DIR)/*.tex $(BIB_DIR)/*.bib sjtuthesis.cls sjtuthesis.cfg Makefile
-latexmk $(LATEXMK_OPT) $(THESIS)

validate :
xelatex -no-pdf -halt-on-error $(THESIS)
biber --debug $(THESIS)

view : $(THESIS).pdf
open $<

clean :
latexmk -C
-rm *.xdv *.bbl *.fls $(TEX_DIR)/*.xdv $(TEX_DIR)/*.aux $(TEX_DIR)/*.log $(TEX_DIR)/*.fls _tmp_.pdf *.xml
Expand Down
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ SJTUThesis is an *unofficial* XeLaTeX template for preparing bachelor, master, o

### 系统需求

* 支持XeTeX的**完整**TeX发行版。2014年以后的CTeX、TeXLive和MacTeX发行版应该都能编译此模板
* 支持XeTeX的**完整**TeX发行版。2014年以后的[CTeX](http://www.ctex.org/ctexdownload)[TeXLive](https://www.tug.org/texlive/)[MacTeX](https://www.tug.org/mactex/)发行版都能编译此模板
* TeX Gyre Font西文字体和Adobe四款中文字体:AdobeSongStd、AdobeKaitiStd、AdobeHeitiStd、AdobeFangsongStd。
* Windows用户请使用[Cygwin](http://cygwin.com)安装GNU make工具
* Windows用户请使用[Cygwin](http://cygwin.com)安装git和GNUmake工具

### 获取模板

Expand All @@ -29,7 +29,7 @@ SJTUThesis is an *unofficial* XeLaTeX template for preparing bachelor, master, o

或者是将本地模板更新到最新版

$ git pull --rebase upstream master
$ git pull upstream master

### 编译模板

Expand All @@ -44,8 +44,8 @@ SJTUThesis is an *unofficial* XeLaTeX template for preparing bachelor, master, o
编译失败时,可以尝试手动逐次编译。
结合文档[README.pdf][README]中的说明,有助于定位故障。

$ xelatex thesis
$ bibtex thesis
$ xelatex -no-pdf thesis
$ biber --debug thesis
$ xelatex thesis
$ xelatex thesis

Expand All @@ -59,10 +59,8 @@ SJTUThesis is an *unofficial* XeLaTeX template for preparing bachelor, master, o
后续工作计划
------

* 移除冗余代码,适当使用LaTeX命令替换复杂的TeX操作序列。包括移除```sjtuspace```命令、简化页面布局中过于繁杂的操作。
* 增加例子,如Algorithm宏包。
* 使用```biber```模块替代```bibtex```处理参考文献。
* 撰写idx文件。
* 精简代码;
* 改进开章页设计;

所有版本
------
Expand Down
2 changes: 1 addition & 1 deletion bib/thesis.bib
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
% Encoding: UTF-8
%# -*- coding: utf-8-unix -*-
@book{Meta_CN,
title = {{电磁超介质及其应用}},
Expand Down
87 changes: 28 additions & 59 deletions sjtuthesis.cfg
Original file line number Diff line number Diff line change
@@ -1,41 +1,26 @@
%# -*- coding: utf-8-unix -*-
%%==================================================
%% sjtuthesis.cfg for SJTU Thesis
%% Encoding: UTF-8
%%==================================================

\ProvidesFile{sjtuthesis.cfg}[2012/12/05 v0.5 sjtuthesis configuration file]
\ProvidesFile{sjtuthesis.cfg}[2015/05/01 v0.8 sjtuthesis configuration file]

%% 目录、插图索引、表格索引
\def\sjtu@contentsname{目\sjtuspace 录}
\def\sjtu@contentsname{目~~~~录}
\def\sjtu@listfigurename{插图索引}
\def\sjtu@listtablename{表格索引}

%%
%% Page Layout Values
%%
\def\sjtu@value@oddsidemarginCM{1.5}
\def\sjtu@value@evensidemarginCM{0}
\def\sjtu@value@textheightCM{21}
\def\sjtu@value@textwidthCM{14.5}
\def\sjtu@listalgorithmname{算法索引}

%%
%% labels in the title page
%%
\def\sjtu@label@major{专业}
\def\sjtu@label@title{论文题目}
\def\sjtu@label@author{论文作者}
\def\sjtu@label@classification{分类号}
\def\sjtu@label@confidential{密级}
\def\sjtu@label@serialnumber{编号}
\def\sjtu@label@thesis{学位论文}
\def\sjtu@label@advisor{导师}
\def\sjtu@label@coadvisor{副导师}
\def\sjtu@label@degree{申请学位级别}
\def\sjtu@label@submitdate{论文提交日期}
\def\sjtu@label@defenddate{答辩日期}
\def\sjtu@label@institute{培养单位}
\def\sjtu@label@school{学位授予单位}
\def\sjtu@label@chairman{答辩委员会主席}
\def\sjtu@label@studentnumber{学号}

%%
Expand Down Expand Up @@ -71,22 +56,13 @@
\def\sjtu@label@authorsign{学位论文作者签名:}
\def\sjtu@label@Supervisorsign{指导教师签名:}
\def\sjtu@label@originalDate{日\hspace{1em}期:\hrulefill\hrulefill 年 \hrulefill 月 \hrulefill 日}
\def\sjtu@label@originalcontent{\sjtuspace 本人郑重声明:所呈交的学位论文,是本人在导师的指导下,独立进行研究
工作所取得的成果。除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已
经发表或撰写过的作品成果。对本文的研究做出重要贡献的个人和集体,均已在文中以明
确方式标明。本人完全意识到本声明的法律结果由本人承担。}
\def\sjtu@label@authorizationcontent{\sjtuspace 本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留
并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权上
海交通大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、
缩印或扫描等复制手段保存和汇编本学位论文。\\

\hspace{9em} \textbf{保\hspace{1em}密} $\square$,在~\hrulefill~年解密后适用本授权书。\\[-10pt]

本学位论文属于\\[-10pt]

\hspace*{9em} \textbf{不保密} $\square$。\\[-10pt]

(请在以上方框内打\,\checked\,)
\def\sjtu@label@originalcontent{本人郑重声明:所呈交的学位论文,是本人在导师的指导下, 独立进行研究工作所取得的成果。除文中已经注明引用的内容外,本论文不包含任何其他个人或集体已经发表或撰写过的作品成果。对本文的研究做出重要贡献的个人和集体,均已在文中以明确方式标明。本人完全意识到本声明的法律结果由本人承担。
}
\def\sjtu@label@authorizationcontent{本学位论文作者完全了解学校有关保留、使用学位论文的规定,同意学校保留并向国家有关部门或机构送交论文的复印件和电子版,允许论文被查阅和借阅。本人授权上海交通大学可以将本学位论文的全部或部分内容编入有关数据库进行检索,可以采用影印、缩印或扫描等复制手段保存和汇编本学位论文。\par
本学位论文属于\\
\hspace*{9em}\textbf{保\hspace{1em}密} $\square$,在~\hrulefill~年解密后适用本授权书。\\
\hspace*{9em}\textbf{不保密} $\square$。\\
(请在以上方框内打$\checked$)
}


Expand All @@ -102,7 +78,7 @@
%%
%% labels in the abstracts
%%
\def\sjtu@label@abstract{摘\sjtuspace 要}
\def\sjtu@label@abstract{摘~~~~要}
\def\sjtu@label@englishabstract{ABSTRACT}
\def\sjtu@label@keywords{关键词:}
\def\sjtu@label@englishkeywords{KEY WORDS:~}
Expand All @@ -129,41 +105,34 @@
%%
%% labels in the resume
%%
\def\sjtu@label@resume{简\sjtuspace 历}
\def\sjtu@label@resume{简~~~~历}


%%
%% labels in the thanks
%%
\def\sjtu@label@thanks{致\sjtuspace 谢}
\def\sjtu@label@thanks{致~~~~谢}

%%%
%% listings name
%%
\def\sjtu@value@listingname{代码}

%%
%% the theorems definitions
%%
\theoremstyle{plain}
\newtheorem{algo}{算法~}[chapter]
\newtheorem{thm}{定理~}[chapter]
\newtheorem{lem}[thm]{引理~}
\newtheorem{prop}[thm]{命题~}
\newtheorem{cor}[thm]{推论~}
\theoremstyle{definition}
\newtheorem{defn}{定义~}[chapter]
\newtheorem{conj}{猜想~}[chapter]
\newtheorem{exmp}{例~}[chapter]
\newtheorem{rem}{注~}
\newtheorem{case}{情形~}
\theoremstyle{break}
\newtheorem{bthm}[thm]{定理~}
\newtheorem{blem}[thm]{引理~}
\newtheorem{bprop}[thm]{命题~}
\newtheorem{bcor}[thm]{推论~}
\renewcommand{\proofname}{\bf 证明}
\endinput
%% the theorem name definitions
%%
\def\sjtu@label@algo{算法}
\def\sjtu@label@thm{定理}
\def\sjtu@label@lem{引理}
\def\sjtu@label@prop{命题}
\def\sjtu@label@cor{推论}
\def\sjtu@label@defn{定义}
\def\sjtu@label@conj{猜想}
\def\sjtu@label@exmp{例}
\def\sjtu@label@rem{注}
\def\sjtu@label@case{情形}
\def\sjtu@label@proof{证明}

\endinput

%% End of file `sjtuthesis.cfg'.
Loading

0 comments on commit 875f726

Please sign in to comment.