texlive[53659] Master/texmf-dist: thuthesis (3feb20)

commits+karl at tug.org commits+karl at tug.org
Mon Feb 3 23:32:24 CET 2020


Revision: 53659
          http://tug.org/svn/texlive?view=revision&revision=53659
Author:   karl
Date:     2020-02-03 23:32:24 +0100 (Mon, 03 Feb 2020)
Log Message:
-----------
thuthesis (3feb20)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/thuthesis/README.md
    trunk/Master/texmf-dist/doc/latex/thuthesis/data/denotation.tex
    trunk/Master/texmf-dist/doc/latex/thuthesis/main.pdf
    trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex
    trunk/Master/texmf-dist/doc/latex/thuthesis/ref/appendix.bib
    trunk/Master/texmf-dist/doc/latex/thuthesis/ref/refs.bib
    trunk/Master/texmf-dist/doc/latex/thuthesis/spine.pdf
    trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
    trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
    trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/README.md	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/README.md	2020-02-03 22:32:24 UTC (rev 53659)
@@ -6,15 +6,15 @@
 [![CTAN](https://img.shields.io/ctan/v/thuthesis)](https://www.ctan.org/pkg/thuthesis)
 
 # What's ThuThesis?
-ThuThesis is an abbreviation of <b>T</b>sing<b>h</b>ua <b>U</b>niversity <b>Thesis</b> LaTeX Template.
+**ThuThesis** is an abbreviation of **T**sing**h**ua **U**niversity **Thesis** LaTeX Template.
 
 This package establishes a simple and easy-to-use LaTeX template for Tsinghua dissertations, including general undergraduate research papers, masters theses, doctoral dissertations, and postdoctoral reports. An English translation of this README follows the Chinese below.
 
 
-# ThuThesis是什么?
-ThuThesis为 <b>T</b>sing<b>h</b>ua <b>U</b>niversity <b>Thesis</b> LaTeX Template之缩写。
+# ThuThesis 是什么?
+**ThuThesis** 是 **T**sing**h**ua **U**niversity **Thesis** LaTeX Template 的缩写。
 
-此宏包旨在建立一个简单易用的清华大学学位论文LaTeX模板,包括本科综合论文训练、硕士论文、博士论文以及博士后出站报告。
+此宏包旨在建立一个简单易用的清华大学学位论文 LaTeX 模板,包括本科综合论文训练、硕士论文、博士论文以及博士后出站报告。
 
 # 文档
 请[下载](https://github.com/xueruini/thuthesis/releases)模板,里面包括具体使用说明以及示例文档:
@@ -31,9 +31,11 @@
 通过 TeX 发行版工具自动从 [CTAN](https://www.ctan.org/pkg/thuthesis) 更新。
 
 ## 手动更新
-从 [GitHub](https://github.com/xueruini/thuthesis) 下载放入论文目录,执行命令(Windows 用户在文件夹空白处按`Shift+鼠标右键`,点击“在此处打开命令行窗口”):
+从 [GitHub](https://github.com/xueruini/thuthesis) 下载放入论文目录,执行命令(Windows 用户在文件夹空白处按 `Shift + 鼠标右键`,点击“在此处打开命令行窗口”):
 
-    xetex thuthesis.ins
+```shell
+xetex thuthesis.ins
+```
 
 即可得到 `thuthesis.cls` 等模板文件。
 
@@ -58,6 +60,8 @@
 * `make cleanall`  删除示例文件的中间文件和 main.pdf;
 * `make distclean` 删除示例文件和模板的所有中间文件和 PDF。
 
+---
+
 # Documentation
 Download and unzip the template. Specific usage documentation and examples can be found in the files below. At present, these documents are <b>only available in Chinese</b>:
 * Template usage (thuthesis.pdf)
@@ -69,12 +73,14 @@
 
 # Updates
 ## Automatic
-Get the most up-to-date published version of the TeX tools from [CTAN](https://www.ctan.org/pkg/thuthesis).
+Get the most up-to-date published version with your TeX distribution from [CTAN](https://www.ctan.org/pkg/thuthesis).
 
 ## Manual
-Download the package from [GitHub](https://github.com/xueruini/thuthesis) to the root directory of your thesis, then execute the command (Windows users `Shift + right click` white area in the file window and click "Open command line window here from the popup menu"):
+Download the package from [GitHub](https://github.com/xueruini/thuthesis) to the root directory of your thesis, then execute the command (Windows users `Shift + right click` white area in the file window and click "Open command line window here" from the popup menu):
 
-    xetex thuthesis.ins
+```shell
+xetex thuthesis.ins
+```
 
 You'll get `thuthesis.cls` along with other template files.
 

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/data/denotation.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/data/denotation.tex	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/data/denotation.tex	2020-02-03 22:32:24 UTC (rev 53659)
@@ -12,7 +12,7 @@
 \item[MPBI] 聚苯并咪唑模型化合物,N-苯基苯并咪唑
 \item[PY] 聚吡咙
 \item[PMDA-BDA]	均苯四酸二酐与联苯四胺合成的聚吡咙薄膜
-\item[$\Delta G$] 活化自由能 (Activation Free Energy)
+\item[$\increment G$] 活化自由能 (Activation Free Energy)
 \item[$\chi$] 传输系数 (Transmission Coefficient)
 \item[$E$] 能量
 \item[$m$] 质量
@@ -49,7 +49,7 @@
 % \nomenclature{MPBI}{聚苯并咪唑模型化合物,N-苯基苯并咪唑}
 % \nomenclature{PY}{聚吡咙}
 % \nomenclature{PMDA-BDA}{均苯四酸二酐与联苯四胺合成的聚吡咙薄膜}
-% \nomenclature{$\Delta G$}{活化自由能 (Activation Free Energy)}
+% \nomenclature{$\increment G$}{活化自由能 (Activation Free Energy)}
 % \nomenclature{$\chi$}{传输系数 (Transmission Coefficient)}
 % \nomenclature{$E$}{能量}
 % \nomenclature{$m$}{质量}

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/main.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/main.tex	2020-02-03 22:32:24 UTC (rev 53659)
@@ -2,7 +2,7 @@
 % !TeX program = xelatex
 % !TeX spellcheck = en_US
 
-\documentclass[fontset=windows,degree=master]{thuthesis}
+\documentclass[degree=master,fontset=windows]{thuthesis}
   % 学位 degree:
   %   doctor | master | bachelor | postdoc
   % 学位类型 degree-type:

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/ref/appendix.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/ref/appendix.bib	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/ref/appendix.bib	2020-02-03 22:32:24 UTC (rev 53659)
@@ -1,14 +1,14 @@
 @book{abrahams99tex,
-  author =       {Paul W. Abrahams and Karl Berry and Kathryn A. Hargreaves},
-  title =        {{\TeX} for the Impatient},
-  publisher =    {Addison-Wesley},
-  year =         {1990},
+  author          = {Paul W. Abrahams and Karl Berry and Kathryn A. Hargreaves},
+  title           = {{\TeX} for the Impatient},
+  publisher       = {Addison-Wesley},
+  year            = 1990,
 }
 
 @incollection{salomon1995advanced,
-  author =       {David Salomon},
-  title =        {The advanced {\TeX}book},
-  address =      {New York},
-  publisher =    {Springer},
-  year =         {1995},
+  author          = {David Salomon},
+  title           = {The advanced {\TeX}book},
+  address         = {New York},
+  publisher       = {Springer},
+  year            = 1995,
 }

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/ref/refs.bib
===================================================================
--- trunk/Master/texmf-dist/doc/latex/thuthesis/ref/refs.bib	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/doc/latex/thuthesis/ref/refs.bib	2020-02-03 22:32:24 UTC (rev 53659)
@@ -1,113 +1,113 @@
 @book{IEEE-1363,
-  author =       {{IEEE Std 1363-2000}},
-  title =        {{IEEE} Standard Specifications for Public-Key Cryptography},
-  address =      {New York},
-  publisher =    {IEEE},
-  year =         2000
+  author          = {{IEEE Std 1363-2000}},
+  title           = {{IEEE} Standard Specifications for Public-Key Cryptography},
+  address         = {New York},
+  publisher       = {IEEE},
+  year            = 2000
 }
 
 @inproceedings{kocher99,
-  author =       {C. Kocher and J. Jaffe and B. Jun},
-  title =        {Differential Power Analysis},
-  editor =       {M. Wiener},
-  booktitle =    {Advances in Cryptology ({CRYPTO}~'99)},
-  series =       {Lecture Notes in Computer Science},
-  volume =       1666,
-  pages =        {388-397},
-  publisher =    {Springer-Verlag},
-  address   =    {Germany},
-  month =        {August},
-  year =         1999
+  author          = {C. Kocher and J. Jaffe and B. Jun},
+  title           = {Differential Power Analysis},
+  editor          = {M. Wiener},
+  booktitle       = {Advances in Cryptology ({CRYPTO}~'99)},
+  series          = {Lecture Notes in Computer Science},
+  volume          = 1666,
+  pages           = {388-397},
+  publisher       = {Springer-Verlag},
+  address         = {Germany},
+  month           = {August},
+  year            = 1999
 }
 
 @incollection{Krasnogor2004e,
-  author =       {N. Krasnogor},
-  title =        {Towards robust memetic algorithms},
-  booktitle =    {Recent Advances in Memetic Algorithms},
-  publisher =    {Springer Berlin Heidelberg},
-  year =         2004,
-  pages =        {185-207},
-  editor =       {W.E. Hart and N. Krasnogor and J.E. Smith},
-  volume =       166,
-  series =       {Studies in Fuzziness and Soft Computing},
-  address =      {New York},
+  author          = {N. Krasnogor},
+  title           = {Towards robust memetic algorithms},
+  booktitle       = {Recent Advances in Memetic Algorithms},
+  publisher       = {Springer Berlin Heidelberg},
+  year            = 2004,
+  pages           = {185-207},
+  editor          = {W.E. Hart and N. Krasnogor and J.E. Smith},
+  volume          = 166,
+  series          = {Studies in Fuzziness and Soft Computing},
+  address         = {New York},
 }
 
 @incollection{zjsw,
-  author =       {班固},
-  title =        {苏武传},
-  booktitle =    {传记散文英华},
-  publisher =    {湖北人民出版社},
-  year =         1998,
-  pages =        {65-69},
-  editor =       {郑在瀛 and 汪超宏 and 周文复},
-  volume =       2,
-  series =       {新古文观止丛书},
-  address =      {武汉},
+  author          = {班固},
+  title           = {苏武传},
+  booktitle       = {传记散文英华},
+  publisher       = {湖北人民出版社},
+  year            = 1998,
+  pages           = {65-69},
+  editor          = {郑在瀛 and 汪超宏 and 周文复},
+  volume          = 2,
+  series          = {新古文观止丛书},
+  address         = {武汉},
 }
 
 @inbook{clzs,
-  author =       {阎真},
-  title =        {沧浪之水},
-  chapter =      {大人物还是讲人情的},
-  pages =        {185-207},
-  publisher =    {人民文学出版社},
-  address =      {北京},
-  year =         2001,
+  author          = {阎真},
+  title           = {沧浪之水},
+  chapter         = {大人物还是讲人情的},
+  pages           = {185-207},
+  publisher       = {人民文学出版社},
+  address         = {北京},
+  year            = 2001,
 }
 
 @book{tex,
-  author =       "Donald E. Knuth",
-  title =        "The {\TeX}book",
-  publisher =    "Addison-Wesley Publishing Company",
-  address =      "Reading, MA",
-  year =         1989,
-  edition =      "15th",
+  author          = "Donald E. Knuth",
+  title           = "The {\TeX}book",
+  publisher       = "Addison-Wesley Publishing Company",
+  address         = "Reading, MA",
+  year            = 1989,
+  edition         = "15th",
 }
 
 @book{companion,
-  author =       "Michel Goosens and Frank Mittelbach and Alexander Samarin",
-  title =        "The {\LaTeX} Companion",
-  publisher =    "Addison-Wesley Publishing Company",
-  address =      "Reading, MA",
-  PAGES =        "112--125",
-  year =         1994,
+  author          = "Michel Goosens and Frank Mittelbach and Alexander Samarin",
+  title           = "The {\LaTeX} Companion",
+  publisher       = "Addison-Wesley Publishing Company",
+  address         = "Reading, MA",
+  PAGES           = "112--125",
+  year            = 1994,
 }
 
 @article{ELIDRISSI94,
-  author =       "{Chafik El Idrissi}, M. and {Roney}, A. and {Frigon}, C. and
-                  {Larzilli{\`e}re}, M.",
-  title =        "Measurements of total kinetic-energy released to the {$N=2$}
-                  dissociation limit of {H}$_2$ --- evidence of the dissociation
-                  of very high vibrational {R}ydberg states of {H}$_2$ by
-                  doubly-excited states",
-  journal =      "Chemical Physics Letters",
-  pages =        "260-266",
-  volume =       224,
-  number =       10,
-  year =         1994,
+  author          = "{Chafik El Idrissi}, M. and {Roney}, A. and {Frigon}, C.
+                  and {Larzilli{\`e}re}, M.",
+  title           = "Measurements of total kinetic-energy released to the
+                  {$N=2$} dissociation limit of {H}$_2$ --- evidence of the
+                  dissociation of very high vibrational {R}ydberg states of
+                  {H}$_2$ by doubly-excited states",
+  journal         = "Chemical Physics Letters",
+  pages           = "260-266",
+  volume          = 224,
+  number          = 10,
+  year            = 1994,
 }
 
 @article{MELLINGER96,
-  author =       "Mellinger, A. and Vidal, C. R. and Jungen, Ch.",
-  title =        "Laser reduced fluorescence study of the carbon-monoxide nd
+  author          = "Mellinger, A. and Vidal, C. R. and Jungen, Ch.",
+  title           = "Laser reduced fluorescence study of the carbon-monoxide nd
                   triplet {R}ydberg series-experimental results and multichannel
                   quantum-defect analysis",
-  journal =      "J. Chem. Phys.",
-  pages =        "8913-8921",
-  volume =       104,
-  number =       5,
-  year =         1996,
+  journal         = "J. Chem. Phys.",
+  pages           = "8913-8921",
+  volume          = 104,
+  number          = 5,
+  year            = 1996,
 }
 
 @article{SHELL02,
-  author =       "Michael Shell",
-  title =        "How to Use the {IEEEtran \LaTeX} Class",
-  journal =      "Journal of {\LaTeX} Class Files",
-  year =         2002,
-  volume =       12,
-  number =       4,
-  pages =        "100--120"
+  author          = "Michael Shell",
+  title           = "How to Use the {IEEEtran \LaTeX} Class",
+  journal         = "Journal of {\LaTeX} Class Files",
+  year            = 2002,
+  volume          = 12,
+  number          = 4,
+  pages           = "100--120"
 }
 
 @TechReport{NPB2,
@@ -121,35 +121,35 @@
 }
 
 @inproceedings{DPMG,
-  author =       {Kim, Sangbum and Woo, Namyoon and Yeom, Heon Y. and Park,
+  author          = {Kim, Sangbum and Woo, Namyoon and Yeom, Heon Y. and Park,
                   Taesoon and Park, Hyoungwoo},
-  title =        {Design and {I}mplementation of {D}ynamic {P}rocess
+  title           = {Design and {I}mplementation of {D}ynamic {P}rocess
                   {M}anagement for {G}rid-enabled {MPICH}},
-  booktitle =    {the 10th European PVM/MPI Users' Group Conference},
-  editor =       {Jack Dongarra and Domenico Laforenza and Salvatore Orlando},
-  publisher =    {Springer-Verlag},
-  year =         2003,
-  address =      {Venice, Italy},
-  month =        sep,
+  booktitle       = {the 10th European PVM/MPI Users' Group Conference},
+  editor          = {Jack Dongarra and Domenico Laforenza and Salvatore Orlando},
+  publisher       = {Springer-Verlag},
+  year            = 2003,
+  address         = {Venice, Italy},
+  month           = sep,
 }
 
 @inproceedings{cnproceed,
-  author =       {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝},
-  publisher =    {金大庸},
-  title =        {武林高手从入门到精通},
-  booktitle =    {第~$N$~次华山论剑},
-  year =         2006,
-  address =      {西安, 中国},
-  month =        sep,
+  author          = {王重阳 and 黄药师 and 欧阳峰 and 洪七公 and 段皇帝},
+  publisher       = {金大庸},
+  title           = {武林高手从入门到精通},
+  booktitle       = {第~$N$~次华山论剑},
+  year            = 2006,
+  address         = {西安, 中国},
+  month           = sep,
 }
 
 @article{cnarticle,
-  author =       "贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春",
-  title =        "论刘姥姥食量大如牛之现实意义",
-  journal =      "红楼梦杂谈",
-  pages =        "260--266",
-  volume =       224,
-  year =         1800,
+  author          = "贾宝玉 and 林黛玉 and 薛宝钗 and 贾探春",
+  title           = "论刘姥姥食量大如牛之现实意义",
+  journal         = "红楼梦杂谈",
+  pages           = "260--266",
+  volume          = 224,
+  year            = 1800,
 }
 
 @mastersthesis{zhubajie,
@@ -187,37 +187,36 @@
 }
 
 @inbook{ColdSources,
-  author =       {P. Gr{\"o}ning and L. Nilsson and P. Ruffieux and R.
+  author          = {P. Gr{\"o}ning and L. Nilsson and P. Ruffieux and R.
                   Clergereaux and O. Gr{\"o}ning},
-  title =        {Encyclopedia of Nanoscience and Nanotechnology},
-  pages =        {547--579},
-  publisher =    {American Scientific Publishers},
-  year =         2004,
-  volume =       1,
-  address =      {USA},
+  title           = {Encyclopedia of Nanoscience and Nanotechnology},
+  pages           = {547--579},
+  publisher       = {American Scientific Publishers},
+  year            = 2004,
+  volume          = 1,
+  address         = {USA},
 }
 
 @online{chuban2001,
-  author =      {萧钰},
-  title =       {出版业信息化迈入快车道},
-  date  =       {2001-12-19},
-  urldate =     {2002-04-15},
-  url =         {http://www.creader.com/news/200112190019.htm},
+  author          = {萧钰},
+  title           = {出版业信息化迈入快车道},
+  date            = {2001-12-19},
+  urldate         = {2002-04-15},
+  url             = {http://www.creader.com/news/200112190019.htm},
 }
 
 @online{oclc2000,
-  author =      {{Online Computer Library Center, Inc.}},
-  title =       {History of {OCLC}},
-  year =        2000,
-  urldate =     {2000-01-08},
-  url =         {http://www.oclc.org/about/history/default.htm},
+  author          = {{Online Computer Library Center, Inc.}},
+  title           = {History of {OCLC}},
+  year            = 2000,
+  urldate         = {2000-01-08},
+  url             = {http://www.oclc.org/about/history/default.htm},
 }
 
-
 @online{thuthesis,
-  author =      {薛瑞尼},
-  title =       {ThuThesis: 清华大学学位论文模板},
-  urldate =     {2019-04-27},
-  url =         {https://github.com/xueruini/thuthesis},
-  year =        2017,
+  author          = {薛瑞尼},
+  title           = {ThuThesis: 清华大学学位论文模板},
+  urldate         = {2019-04-27},
+  url             = {https://github.com/xueruini/thuthesis},
+  year            = 2017,
 }

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/spine.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/thuthesis/thuthesis.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/source/latex/thuthesis/thuthesis.dtx	2020-02-03 22:32:24 UTC (rev 53659)
@@ -16,7 +16,7 @@
 %
 % \iffalse
 %<*driver>
-\ProvidesFile{thuthesis.dtx}[2020/01/06 6.0.0 Tsinghua University Thesis Template]
+\ProvidesFile{thuthesis.dtx}[2020/02/03 6.0.1 Tsinghua University Thesis Template]
 \documentclass{ltxdoc}
 \usepackage{dtx-style}
 
@@ -150,6 +150,7 @@
 % thuthesis.cls & 模板类文件\\
 % thuthesis-numeric.bst & 参考文献样式文件\\
 % thuthesis-author-year.bst & 参考文献样式文件\\
+% thuthesis-bachelor.bst & 参考文献样式文件\\
 % tsinghua.pdf & 校名 logo,系统无隶书字体时使用 \\\midrule
 % main.tex & 示例文档主文件\\
 % spine.tex & 书脊示例文档\\
@@ -929,7 +930,7 @@
 %    \begin{macrocode}
 %<cls>\NeedsTeXFormat{LaTeX2e}
 %<cls>\ProvidesClass{thuthesis}
-%<cls>[2020/01/06 6.0.0 Tsinghua University Thesis Template]
+%<cls>[2020/02/03 6.0.1 Tsinghua University Thesis Template]
 %    \end{macrocode}
 %
 % 检查编译引擎,要求使用 \XeLaTeX。
@@ -945,7 +946,7 @@
 %<*cls>
 \hyphenation{Thu-Thesis}
 \def\thuthesis{ThuThesis}
-\def\version{6.0.0}
+\def\version{6.0.1}
 \RequirePackage{kvdefinekeys}
 \RequirePackage{kvsetkeys}
 \RequirePackage{kvoptions}
@@ -2071,6 +2072,7 @@
 % 正体会到 \TeX{} macro 的力量!
 %    \begin{macrocode}
 \newcommand\thu at pdfbookmark[2]{}
+\newcommand\thu at phantomsection{}
 \NewDocumentCommand\thu at chapter{s o m o}{
   \IfBooleanF{#1}{%
     \ClassError{thuthesis}{You have to use the star form: \string\thu at chapter*}{}
@@ -2080,21 +2082,25 @@
     \ifthenelse{\equal{#2}{}}{%
       \thu at pdfbookmark{0}{#3}%
     }{%
-      \addcontentsline{toc}{chapter}{#3}
-    }
+      \thu at phantomsection
+      \addcontentsline{toc}{chapter}{#3}%
+    }%
   }{%
-    \addcontentsline{toc}{chapter}{#3}
+    \thu at phantomsection
+    \addcontentsline{toc}{chapter}{#3}%
   }%
-  \ifthu at degree@bachelor \ctexset{chapter/beforeskip=25bp} \fi
+  \ifthu at degree@bachelor\ctexset{chapter/beforeskip=25bp}\fi
   \chapter*{#3}%
-  \ifthu at degree@bachelor \ctexset{chapter/beforeskip=15bp} \fi
+  \ifthu at degree@bachelor\ctexset{chapter/beforeskip=15bp}\fi
   \IfValueTF{#4}{%
-    \ifthenelse{\equal{#4}{}}
-    {\@mkboth{}{}}
-    {\@mkboth{#4}{#4}}
+    \ifthenelse{\equal{#4}{}}{%
+      \@mkboth{}{}%
+    }{%
+      \@mkboth{#4}{#4}%
+    }%
   }{%
-    \@mkboth{#3}{#3}
-  }
+    \@mkboth{#3}{#3}%
+  }%
 }
 %    \end{macrocode}
 % \end{macro}
@@ -3378,6 +3384,7 @@
 \thu at atendpackage{hyperref}{
   \hypersetup{
     linktoc            = all,
+    bookmarksdepth     = 2,
     bookmarksnumbered  = true,
     bookmarksopen      = true,
     bookmarksopenlevel = 1,
@@ -3393,6 +3400,9 @@
     \stepcounter{thu at bookmark}%
     \pdfbookmark[#1]{#2}{thuchapter.\thethu at bookmark}%
   }
+  \renewcommand\thu at phantomsection{%
+    \phantomsection
+  }
   \pdfstringdefDisableCommands{
     \let\\\@empty
     \let\hspace\@gobble

Modified: trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls
===================================================================
--- trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2020-02-03 22:32:05 UTC (rev 53658)
+++ trunk/Master/texmf-dist/tex/latex/thuthesis/thuthesis.cls	2020-02-03 22:32:24 UTC (rev 53659)
@@ -23,12 +23,12 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesClass{thuthesis}
-[2020/01/06 6.0.0 Tsinghua University Thesis Template]
+[2020/02/03 6.0.1 Tsinghua University Thesis Template]
 \RequirePackage{ifxetex}
 \RequireXeTeX
 \hyphenation{Thu-Thesis}
 \def\thuthesis{ThuThesis}
-\def\version{6.0.0}
+\def\version{6.0.1}
 \RequirePackage{kvdefinekeys}
 \RequirePackage{kvsetkeys}
 \RequirePackage{kvoptions}
@@ -593,6 +593,7 @@
   paragraph/afterindent=true,
   subparagraph/afterindent=true}
 \newcommand\thu at pdfbookmark[2]{}
+\newcommand\thu at phantomsection{}
 \NewDocumentCommand\thu at chapter{s o m o}{
   \IfBooleanF{#1}{%
     \ClassError{thuthesis}{You have to use the star form: \string\thu at chapter*}{}
@@ -602,21 +603,25 @@
     \ifthenelse{\equal{#2}{}}{%
       \thu at pdfbookmark{0}{#3}%
     }{%
-      \addcontentsline{toc}{chapter}{#3}
-    }
+      \thu at phantomsection
+      \addcontentsline{toc}{chapter}{#3}%
+    }%
   }{%
-    \addcontentsline{toc}{chapter}{#3}
+    \thu at phantomsection
+    \addcontentsline{toc}{chapter}{#3}%
   }%
-  \ifthu at degree@bachelor \ctexset{chapter/beforeskip=25bp} \fi
+  \ifthu at degree@bachelor\ctexset{chapter/beforeskip=25bp}\fi
   \chapter*{#3}%
-  \ifthu at degree@bachelor \ctexset{chapter/beforeskip=15bp} \fi
+  \ifthu at degree@bachelor\ctexset{chapter/beforeskip=15bp}\fi
   \IfValueTF{#4}{%
-    \ifthenelse{\equal{#4}{}}
-    {\@mkboth{}{}}
-    {\@mkboth{#4}{#4}}
+    \ifthenelse{\equal{#4}{}}{%
+      \@mkboth{}{}%
+    }{%
+      \@mkboth{#4}{#4}%
+    }%
   }{%
-    \@mkboth{#3}{#3}
-  }
+    \@mkboth{#3}{#3}%
+  }%
 }
 \setcounter{secnumdepth}{3}
 \setcounter{tocdepth}{2}
@@ -1497,6 +1502,7 @@
 \thu at atendpackage{hyperref}{
   \hypersetup{
     linktoc            = all,
+    bookmarksdepth     = 2,
     bookmarksnumbered  = true,
     bookmarksopen      = true,
     bookmarksopenlevel = 1,
@@ -1512,6 +1518,9 @@
     \stepcounter{thu at bookmark}%
     \pdfbookmark[#1]{#2}{thuchapter.\thethu at bookmark}%
   }
+  \renewcommand\thu at phantomsection{%
+    \phantomsection
+  }
   \pdfstringdefDisableCommands{
     \let\\\@empty
     \let\hspace\@gobble



More information about the tex-live-commits mailing list.