Skip to content

Commit

Permalink
Support multiple translation appendices (#956)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed May 22, 2024
1 parent 1ce3b32 commit fd35bde
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

## [Unreleased]

### Fixed

- 解决本科生的多篇“书面翻译对应的原文索引”([#956](https://github.com/tuna/thuthesis/issues/956))。

## [v7.5.1] - 2024-05-20

### Changed
Expand Down
6 changes: 4 additions & 2 deletions thuthesis.dtx
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@
% $ bibtex thuthesis-example.aux # 生成 bbl 文件
% $ bibtex thuthesis-example-appendix-a.aux # 附录 A 的的参考文献
% $ bibtex thuthesis-example-appendix-b.aux # 附录 B 的的参考文献……
% $ bibtex thuthesis-example-index.aux # 本科生的书面翻译对应的原文索引
% $ bibtex thuthesis-example-index-1.aux # 本科生的书面翻译对应的原文索引
% $ xelatex thuthesis-example.tex # 解决引用
% $ xelatex thuthesis-example.tex # 生成论文 PDF
%
Expand Down Expand Up @@ -6347,9 +6347,11 @@
% \begin{macrocode}
\newenvironment{translation-index}{}{}
\AtEndOfPackageFile*{bibunits}{
\newcounter{thu@translation@index}%
\renewenvironment{translation-index}{%
\global\advance\c@thu@translation@index\@ne
\begin{bibunit}%
\renewcommand\@bibunitname{\jobname-index}%
\renewcommand\@bibunitname{\jobname-index-\arabic{thu@translation@index}}%
\renewcommand\bibname{书面翻译对应的原文索引}%
\thu@set@survey@bibheading
}{%
Expand Down

0 comments on commit fd35bde

Please sign in to comment.