Skip to content

Commit

Permalink
Citations in appendices are separately numbered (#837)
Browse files Browse the repository at this point in the history
  • Loading branch information
zepinglee committed May 10, 2023
1 parent 5c420fe commit c208916
Show file tree
Hide file tree
Showing 9 changed files with 149 additions and 47 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
### Changed

- 专业学位的“工程领域”改为“专业领域”,同步《指南》2023 年 3 月版的更改([#862](https://github.com/tuna/thuthesis/issues/862))。
- 附录中的参考文献另行编号([#837](https://github.com/tuna/thuthesis/issues/837),感谢 [@hushidong](https://github.com/hushidong)[@atxy-blip](https://github.com/atxy-blip))。

### Deprecated

Expand Down
24 changes: 17 additions & 7 deletions data/appendix.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@ \chapter{补充内容}

附录是与论文内容密切相关、但编入正文又影响整篇论文编排的条理和逻辑性的资料,例如某些重要的数据表格、计算程序、统计表等,是论文主体的补充内容,可根据需要设置。

附录中的图、表、数学表达式、参考文献等另行编序号,与正文分开,一律用阿拉伯数字编码,
但在数码前冠以附录的序号,例如“图~\ref{fig:appendix-figure}”,
“表~\ref{tab:appendix-table}”,“式\eqref{eq:appendix-equation}”等。

\section{图表示例}

\subsection{}
\section{插图}

附录中的图片示例(图~\ref{fig:appendix-figure})。
% 附录中的插图示例(图~\ref{fig:appendix-figure})。

\begin{figure}
\centering
Expand All @@ -19,9 +21,9 @@ \subsection{图}
\end{figure}


\subsection{表格}
\section{表格}

附录中的表格示例(表~\ref{tab:appendix-table})。
% 附录中的表格示例(表~\ref{tab:appendix-table})。

\begin{table}
\centering
Expand All @@ -41,10 +43,18 @@ \subsection{表格}
\end{table}


\section{数学公式}
\section{数学表达式}

附录中的数学公式示例(公式\eqref{eq:appendix-equation})。
% 附录中的数学表达式示例(式\eqref{eq:appendix-equation})。
\begin{equation}
\frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k)
\label{eq:appendix-equation}
\end{equation}


\section{参考文献}

附录中的参考文献示例(\cite{carlson1981two} 和 \cite{carlson1981two,taylor1983scanning,taylor1981study})。

\bibliographystyle{thuthesis-numeric}
\bibliography{ref/refs}
17 changes: 17 additions & 0 deletions testfiles/09-main-en.tlg
Original file line number Diff line number Diff line change
Expand Up @@ -3615,6 +3615,8 @@ Completed box being shipped out [2]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
\bibcite{bib1}{{1}{}{{}}{{}}}
\bibcite{bib2}{{2}{}{{}}{{}}}
LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be
(Font) scaled to size 10.54048pt on input line ....
LaTeX Font Info: Font shape `TU/XITSMath-Regular(2)/m/n' will be
Expand All @@ -3627,6 +3629,16 @@ LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be
(Font) scaled to size 6.99925pt on input line ....
LaTeX Font Info: Font shape `TU/XITSMath-Regular(3)/m/n' will be
(Font) scaled to size 4.99947pt on input line ....
\bibcite{bib3}{{3}{}{{}}{{}}}
\bibcite{bib4}{{4}{}{{}}{{}}}
\bibcite{bib5}{{5}{}{{}}{{}}}
\bibcite{bib6}{{6}{}{{}}{{}}}
\bibcite{bib7}{{7}{}{{}}{{}}}
\bibcite{bib8}{{8}{}{{}}{{}}}
\bibcite{bib9}{{9}{}{{}}{{}}}
\bibcite{bib10}{{10}{}{{}}{{}}}
\bibcite{bib11}{{11}{}{{}}{{}}}
No file bu.aux.
Completed box being shipped out [3]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -6781,6 +6793,7 @@ Completed box being shipped out [4]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
No file bu.aux.
Completed box being shipped out [5]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -7255,6 +7268,7 @@ Completed box being shipped out [5]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
No file bu.aux.
Completed box being shipped out [6]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -7413,6 +7427,7 @@ Completed box being shipped out [6]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
No file bu.aux.
Completed box being shipped out [7]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -7910,6 +7925,7 @@ Completed box being shipped out [7]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
No file bu.aux.
Completed box being shipped out [8]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down Expand Up @@ -8235,6 +8251,7 @@ Completed box being shipped out [9]
...\glue 0.0 plus 1.0fil minus 1.0fil
.\kern 714.29128
.\kern 0.0
No file bu.aux.
Completed box being shipped out [10]
\vbox(710.18088+4.1104)x439.87962
.\hbox(0.0+0.0)x0.0
Expand Down
1 change: 1 addition & 0 deletions testfiles/11-appendix.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
No file bu.aux.
附录 A
Package fontspec Info: Font "FandolHei-Regular" does not contain requested
(fontspec) Script "CJK".
Expand Down
1 change: 1 addition & 0 deletions testfiles/12-acknowledgements.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
No file bu.aux.
Package fontspec Info: Font "FandolHei-Regular" does not contain requested
(fontspec) Script "CJK".
Package fontspec Info: Font family 'FandolHei(0)' created for font 'FandolHei'
Expand Down
1 change: 1 addition & 0 deletions testfiles/13-statement.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
No file bu.aux.
Package fontspec Info: Font "FandolHei-Regular" does not contain requested
(fontspec) Script "CJK".
Package fontspec Info: Font family 'FandolHei(0)' created for font 'FandolHei'
Expand Down
1 change: 1 addition & 0 deletions testfiles/14-resume.tlg
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
This is a generated file for the l3build validation system.
Don't change this file in any respect.
No file bu.aux.
Package fontspec Info: Font "FandolHei-Regular" does not contain requested
(fontspec) Script "CJK".
Package fontspec Info: Font family 'FandolHei(0)' created for font 'FandolHei'
Expand Down
Loading

0 comments on commit c208916

Please sign in to comment.