Skip to content

Commit

Permalink
New Release
Browse files Browse the repository at this point in the history
Former-commit-id: 72c75cf
  • Loading branch information
HuangruiMo committed Mar 25, 2019
1 parent af82c32 commit 455d3c9
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 21 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@

## 重要通知

* `2019-03-14` 模板样式进行了修改,请查看下面的修改描述,以决定是否需要更新。
* `2019-03-25` 模板样式进行了修改,请查看下面的修改描述,以决定是否需要更新。

## 更新记录

* `2019-03-14` 根据 [opt-gaobin, issue #121](https://github.com/mohuangrui/ucasthesis/issues/121) ,修正中文标点使下划线断掉的问题。根据 [Guoqiang Zhang, email; weili-ict, issue #120](https://github.com/mohuangrui/ucasthesis/issues/120) ,修复 \proofname 命令对2015年及更早 LaTeX 编译器的兼容性问题。根据 [muzimuzhi, issue #130](https://github.com/mohuangrui/ucasthesis/issues/130) ,修正对\voffset的使用。
* `2019-03-25` 根据 [DRjy, muzimuzhi, issue #127](https://github.com/mohuangrui/ucasthesis/issues/127) ,为“摘要”等无需在目录中显示的结构元素建立书签。根据 [muzimuzhi, issue #130](https://github.com/mohuangrui/ucasthesis/issues/130) ,修正对\voffset的使用。

* `2019-03-14` 根据 [opt-gaobin, issue #121](https://github.com/mohuangrui/ucasthesis/issues/121) ,修正中文标点使下划线断掉的问题。根据 [Guoqiang Zhang, email; weili-ict, issue #120](https://github.com/mohuangrui/ucasthesis/issues/120) ,修复 \proofname 命令对2015年及更早 LaTeX 编译器的兼容性问题。

* `2019-02-20` 根据 [opt-gaobin, issue #100](https://github.com/mohuangrui/ucasthesis/issues/100) ,增加定理、定义、证明等数学环境。根据 [DRjy, issue #102](https://github.com/mohuangrui/ucasthesis/issues/102) ,调整 \mathcal 字体样式。根据 [zike Liu, email] ,适当缩减目录列表的缩进。根据 [xiaoyaoE, issue #105](https://github.com/mohuangrui/ucasthesis/issues/105) ,使数字字体和英文字体一致。完善中文版和国际版之间的中英格式切换。

Expand Down
49 changes: 42 additions & 7 deletions Style/artratex.sty
Original file line number Diff line number Diff line change
Expand Up @@ -505,14 +505,49 @@
\noindent\makebox[0.15\textwidth][l]{#2}{{#3}\hfill{#1}}\par
}
%-
%-> Macro for adding content link to the table of content and bookmark
%-
\providecommand{\intotoc}[2][\maincounter]{%
\cleardoublepage% ensure correct page reference
\markboth{\MakeUppercase{#2}}{}% set the leftmark
\phantomsection% create link in bookmarks
\addcontentsline{toc}{#1}{#2}% add content #2 to toc as #1
%-> Macro for adding link to toc and bookmark
%-
\def\munch#1{}% auxiliary command
\newcommand{\intotocnostar}[3]{% [<\chapter|...>,<*>,<title>]
#1#2{% excute command
\phantomsection% create bookmark link
\addcontentsline{toc}{\expandafter\munch\string#1}{#3}% add content #3 to toc as #1
#3%
}
\markboth{\MakeUppercase{#3}}{}% set header mark
}
\newcommand{\intotocstar}[3]{% [<\chapter|...>,<extra commands>,<title>]
#2% excute command
\phantomsection% create bookmark link
\addcontentsline{toc}{\expandafter\munch\string#1}{#3}% add content #3 to toc as #1
\markboth{\MakeUppercase{#3}}{}% set header mark
}
\newcommand{\intotoc}{\@ifstar{\intotocstar}{\intotocnostar}}% swap starred and non-starred versions
\newcommand{\intobmknostar}[4][0]{% [<level>,<\chapter|...>,<*>,<title>]
#2#3{% excute command
\phantomsection% create bookmark link
\Hy@writebookmark% write bookmark
{}%
{#4}%
{\@currentHref}%
{#1}%
{toc}%
#4%
}%
\markboth{\MakeUppercase{#4}}{}% set header mark
}
\newcommand{\intobmkstar}[3][0]{% [<level>,<extra commands>,<extra commands>,<title>]
#2% excute command
\phantomsection% create bookmark link
\Hy@writebookmark% write bookmark
{}%
{#3}%
{\@currentHref}%
{#1}%
{toc}%
\markboth{\MakeUppercase{#3}}{}% set header mark
}
\newcommand{\intobmk}{\@ifstar{\intobmkstar}{\intobmknostar}}% swap starred and non-starred versions
%-
%-> Page header and footer Style
%-
Expand Down
4 changes: 2 additions & 2 deletions Tex/Frontpages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
%-
%-> 中文摘要
%-
\chapter*{\quad}\chaptermark{摘\quad 要}% 摘要标题
\intobmk\chapter*{\quad}% 显示在书签但不显示在目录
\setcounter{page}{1}% 开始页码
\pagenumbering{Roman}% 页码符号

Expand All @@ -48,7 +48,7 @@ \chapter*{摘\quad 要}\chaptermark{摘\quad 要}% 摘要标题
%-
%-> 英文摘要
%-
\chapter*{Abstract}\chaptermark{Abstract}% 摘要标题
\intobmk\chapter*{Abstract}% 显示在书签但不显示在目录

This paper is a help documentation for the \LaTeX{} class ucasthesis, which is a thesis template for the University of Chinese Academy of Sciences. The main content is about how to use the ucasthesis, as well as how to write thesis efficiently by using \LaTeX{}.

Expand Down
3 changes: 1 addition & 2 deletions Tex/Prematter.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
\chapter*{符号列表}
\chaptermark{符号列表}
\intobmk\chapter*{符号列表}% 显示在书签但不显示在目录

\section*{字符}
\nomenclatureitem[\textbf{Unit}]{\textbf{Symbol}}{\textbf{Description}}
Expand Down
14 changes: 7 additions & 7 deletions Thesis.tex
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,12 @@
\input{Tex/Frontpages}% title page, abstract, dedication
{% content list region
\linespread{1.2}% local line space
%\intotoc{\contentsname}% add link to contents table and bookmark
\tableofcontents% contents catalog
%\intotoc{\listfigurename}% add link to contents table and bookmark
\listoffigures% figures catalog
%\intotoc{\listtablename}% add link to contents table and bookmark
\listoftables% tables catalog
\intobmk*{\cleardoublepage}{\contentsname}% add link to bookmark
\tableofcontents% content catalog
\intobmk*{\cleardoublepage}{\listfigurename}% add link to bookmark
\listoffigures% figure catalog
\intobmk*{\cleardoublepage}{\listtablename}% add link to bookmark
\listoftables% table catalog
}
\input{Tex/Prematter}% list of symbols, preface content
%-
Expand All @@ -78,7 +78,7 @@
%-> Backmatter: bibliography, glossary, index
%-
\backmatter% initialize the environment
\intotoc{\bibname}% add link to contents table and bookmark
\intotoc*{\chapter}{\cleardoublepage}{\bibname}% add link to toc
\bibliography{Biblio/ref}% bibliography
\input{Tex/Backmatter}% other information
\end{document}
Expand Down
2 changes: 1 addition & 1 deletion 模板使用说明.pdf.REMOVED.git-id
Original file line number Diff line number Diff line change
@@ -1 +1 @@
dd273ed5707cbaa84ec457683ebd0759b94ce84f
8beb4723e42aff5edccfe4652a0ee42adc006ae1

0 comments on commit 455d3c9

Please sign in to comment.