Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Wang Wen committed Feb 28, 2019
1 parent f88057f commit 9d3c4b9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 13 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,12 @@ xelatex main.tex
```
命令即可,若文档内部有交叉引用或录入参考文献则需要编译两次。

使用BibTeX录入参考文献需要先运行一次xelatex,运行一次bibtex,再运行两次xelatex。使用BibTeX录入攻读学位期间的研究成果的情况下还需要额外运行一次`bibtex achievement.aux`。所以完整地编译包含两个BibTeX文献列表(一个是参考文献,一个是攻读学位期间的研究成果)的文档需要按顺序运行以下命令:
使用BibTeX录入参考文献需要先运行一次xelatex,运行一次bibtex,再运行两次xelatex。使用BibTeX录入攻读学位期间的研究成果的情况下还需要额外运行一次`bibtex accomplish.aux`。所以完整地编译包含两个BibTeX文献列表(一个是参考文献,一个是攻读学位期间的研究成果)的文档需要按顺序运行以下命令:

```bash
xelatex main.tex
bibtex main.aux
bibtex achievement.aux
bibtex accomplish.aux
xelatex main.tex
xelatex main.tex
```
Expand Down Expand Up @@ -76,7 +76,7 @@ xelatex main.tex

### 攻读学位期间取得的成果

将文章条目添加在`thesisachievement`环境下,方法与参考文献相同。使用BibTeX录入研究成果由`\thesisloadachievement`命令导入文献列表,参考文献风格自动设置为`thesis-uestc`。此命令没有可选参数,自动在文档中列出数据库中的所有条目。
将文章条目添加在`thesisaccomplish`环境下,方法与参考文献相同。使用BibTeX录入研究成果由`\thesisloadaccomplish`命令导入文献列表,参考文献风格自动设置为`thesis-uestc`。此命令没有可选参数,自动在文档中列出数据库中的所有条目。

### 外文资料原文及译文

Expand Down Expand Up @@ -139,7 +139,7 @@ latexmk main_multifile.tex
```bash
xelatex main.tex
bibtex main.aux
bibtex achievement.aux
bibtex accomplish.aux
makeglossaries main
xelatex main.tex
xelatex main.tex
Expand Down
2 changes: 1 addition & 1 deletion main.tex
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ \section{后续工作展望}

\thesisappendix

\thesisloadachievement{publications}
\thesisloadaccomplish{publications}


\thesistranslationoriginal
Expand Down
2 changes: 1 addition & 1 deletion main_multifile.tex
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@

% comment while no need
\include{misc/appendix}
\thesisloadachievement{publications}
\thesisloadaccomplish{publications}
\include{misc/translate_original}
\include{misc/translate_chinese}

Expand Down
19 changes: 12 additions & 7 deletions thesis-uestc.cls
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,7 @@
\captionsetup{width=\textwidth - 42pt}
\captionsetup[figure]{aboveskip=6pt,belowskip=0pt}
\captionsetup[table]{belowskip=6pt}

\setlength{\extrarowheight}{5pt}
\setlength{\subfigcapskip}{0pt}
\setlength{\intextsep}{9pt}
Expand Down Expand Up @@ -674,12 +675,13 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]

\newcommand{\thesisacknowledgement}{
\renewcommand\thesection{\arabic{section}}
\addtocontents{toc}{\protect\setcounter{tocdepth}{0}}
\addtocontents{toc}{\protect\setcounter{tocdepth}{1}}
\setcounter{section}{0}
\chapter*{\hspace{12pt}谢}
\addcontentsline{toc}{chapter}{致\hspace{12pt}谢}
\markboth{致谢}{致谢}
\thispagestyle{fancy}
\hypersetup{bookmarksdepth=0}
}

\newcommand{\thesischapterexordium}{
Expand All @@ -704,6 +706,7 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]
\addcontentsline{toc}{chapter}{附录}
\markboth{附录}{附录}
\thispagestyle{fancy}
\hypersetup{bookmarksdepth=0}
\renewcommand{\theequation}{a-\arabic{equation}}
\renewcommand{\thetable}{a-\arabic{table}}
\renewcommand{\thefigure}{a-\arabic{figure}}
Expand All @@ -715,6 +718,7 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]
\addcontentsline{toc}{chapter}{外文资料原文}
\markboth{外文资料原文}{外文资料原文}
\thispagestyle{fancy}
\hypersetup{bookmarksdepth=0}
\renewcommand{\theequation}{\arabic{equation}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\thefigure}{\arabic{figure}}
Expand All @@ -728,6 +732,7 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]
\addcontentsline{toc}{chapter}{外文资料译文}
\markboth{外文资料译文}{外文资料译文}
\thispagestyle{fancy}
\hypersetup{bookmarksdepth=0}
\renewcommand{\theequation}{\arabic{equation}}
\renewcommand{\thetable}{\arabic{table}}
\renewcommand{\thefigure}{\arabic{figure}}
Expand Down Expand Up @@ -776,9 +781,9 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]
\bibliography{#2}
}

\newcites{achievement}{攻读\chinesedegreename{}学位期间取得的成果}
\newcites{accomplish}{攻读\chinesedegreename{}学位期间取得的成果}

\newenvironment{thesisachievement}{
\newenvironment{thesisaccomplish}{
\renewcommand{\bibname}{攻读\chinesedegreename{}学位期间取得的成果}
\begin{thebibliography}{lo}
\interlinepenalty=10000
Expand All @@ -790,13 +795,13 @@ UDC\textsuperscript{ 注1} \uline{\hspace{2.5in}} \\[12bp]
\renewcommand{\bibname}{参考文献}
}

\newcommand{\thesisloadachievement}[1]{
\nociteachievement{*}
\newcommand{\thesisloadaccomplish}[1]{
\nociteaccomplish{*}
\renewcommand{\bibname}{攻读\chinesedegreename{}学位期间取得的成果}
\thispagestyle{fancy}
\begin{spacing}{1.667}
\bibliographystyleachievement{thesis-uestc}
\bibliographyachievement{#1}
\bibliographystyleaccomplish{thesis-uestc}
\bibliographyaccomplish{#1}
\end{spacing}
\renewcommand{\bibname}{参考文献}
}
Expand Down

0 comments on commit 9d3c4b9

Please sign in to comment.