Skip to content

Commit 45fd2b1

Browse files
committed
Revert "Deprecate survey and translation environments" (#1069)
This reverts commit eae237a.
1 parent 8b4d944 commit 45fd2b1

5 files changed

Lines changed: 354 additions & 13 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66

77
## [Unreleased]
88

9+
### Changed
10+
11+
- 恢复本科生的外文资料的调研阅读报告(`survey`)和书面翻译(`translation`),以满足部分院系的要求([#1069](https://github.com/tuna/thuthesis/issues/1069))。
12+
913
## [v7.7.1] - 2026-05-26
1014

1115
### Added

data/appendix-survey.tex

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
% !TEX root = ../thuthesis-example.tex
2+
3+
\begin{survey}
4+
\label{cha:survey}
5+
6+
\title{Title of the Survey}
7+
\maketitle
8+
9+
10+
\tableofcontents
11+
12+
13+
本科生的外文资料调研阅读报告。
14+
15+
16+
\section{Figures and Tables}
17+
18+
\subsection{Figures}
19+
20+
An example figure in appendix (Figure~\ref{fig:appendix-survey-figure}).
21+
22+
\begin{figure}
23+
\centering
24+
\includegraphics[width=0.6\linewidth]{example-image-a.pdf}
25+
\caption{Example figure in appendix}
26+
\label{fig:appendix-survey-figure}
27+
\end{figure}
28+
29+
30+
\subsection{Tables}
31+
32+
An example table in appendix (Table~\ref{tab:appendix-survey-table}).
33+
34+
\begin{table}
35+
\centering
36+
\caption{Example table in appendix}
37+
\begin{tabular}{ll}
38+
\toprule
39+
File name & Description \\
40+
\midrule
41+
thuthesis.dtx & The source file including documentation and comments \\
42+
thuthesis.cls & The template file \\
43+
thuthesis-*.bst & BibTeX styles \\
44+
thuthesis-*.bbx & BibLaTeX styles for bibliographies \\
45+
thuthesis-*.cbx & BibLaTeX styles for citations \\
46+
\bottomrule
47+
\end{tabular}
48+
\label{tab:appendix-survey-table}
49+
\end{table}
50+
51+
52+
\section{Equations}
53+
54+
An example equation in appendix (Equation~\eqref{eq:appendix-survey-equation}).
55+
\begin{equation}
56+
\frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k)
57+
\label{eq:appendix-survey-equation}
58+
\end{equation}
59+
60+
61+
\section{Citations}
62+
63+
Example\cite{dupont1974bone} citations\cite{merkt1995rotational} in appendix
64+
\cite{dupont1974bone,merkt1995rotational}.
65+
66+
67+
% 默认使用正文的参考文献样式;
68+
% 如果使用 BibTeX,可以切换为其他兼容 natbib 的 BibTeX 样式。
69+
\bibliographystyle{unsrtnat}
70+
% \bibliographystyle{IEEEtranN}
71+
72+
% 默认使用正文的参考文献 .bib 数据库;
73+
% 如果使用 BibTeX,可以改为指定数据库,如 \bibliography{ref/refs}。
74+
\printbibliography
75+
76+
\end{survey}

data/appendix-translation.tex

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
% !TEX root = ../thuthesis-example.tex
2+
3+
\begin{translation}
4+
\label{cha:translation}
5+
6+
\title{书面翻译题目}
7+
\maketitle
8+
9+
\tableofcontents
10+
11+
12+
本科生的外文资料书面翻译。
13+
14+
15+
\section{图表示例}
16+
17+
\subsection{}
18+
19+
附录中的图片示例(图~\ref{fig:appendix-translation-figure})。
20+
21+
\begin{figure}
22+
\centering
23+
\includegraphics[width=0.6\linewidth]{example-image-a.pdf}
24+
\caption{附录中的图片示例}
25+
\label{fig:appendix-translation-figure}
26+
\end{figure}
27+
28+
29+
\subsection{表格}
30+
31+
附录中的表格示例(表~\ref{tab:appendix-translation-table})。
32+
33+
\begin{table}
34+
\centering
35+
\caption{附录中的表格示例}
36+
\begin{tabular}{ll}
37+
\toprule
38+
文件名 & 描述 \\
39+
\midrule
40+
thuthesis.dtx & 模板的源文件,包括文档和注释 \\
41+
thuthesis.cls & 模板文件 \\
42+
thuthesis-*.bst & BibTeX 参考文献表样式文件 \\
43+
thuthesis-*.bbx & BibLaTeX 参考文献表样式文件 \\
44+
thuthesis-*.cbx & BibLaTeX 引用样式文件 \\
45+
\bottomrule
46+
\end{tabular}
47+
\label{tab:appendix-translation-table}
48+
\end{table}
49+
50+
51+
\section{数学公式}
52+
53+
附录中的数学公式示例(公式\eqref{eq:appendix-translation-equation})。
54+
\begin{equation}
55+
\frac{1}{2 \uppi \symup{i}} \int_\gamma f = \sum_{k=1}^m n(\gamma; a_k) \mathscr{R}(f; a_k)
56+
\label{eq:appendix-translation-equation}
57+
\end{equation}
58+
59+
60+
\section{文献引用}
61+
62+
附录\cite{dupont1974bone}中的参考文献引用\cite{merkt1995rotational}示例
63+
\cite{dupont1974bone,merkt1995rotational}。
64+
65+
66+
\appendix
67+
68+
\section{附录}
69+
70+
附录的内容。
71+
72+
73+
% 书面翻译的参考文献
74+
% 默认使用正文的参考文献样式;
75+
% 如果使用 BibTeX,可以切换为其他兼容 natbib 的 BibTeX 样式。
76+
\bibliographystyle{unsrtnat}
77+
% \bibliographystyle{IEEEtranN}
78+
79+
% 默认使用正文的参考文献 .bib 数据库;
80+
% 如果使用 BibTeX,可以改为指定数据库,如 \bibliography{ref/refs}。
81+
\printbibliography
82+
83+
% 书面翻译对应的原文索引
84+
\begin{translation-index}
85+
\nocite{mellinger1996laser}
86+
\nocite{bixon1996dynamics}
87+
\nocite{carlson1981two}
88+
\bibliographystyle{unsrtnat}
89+
\printbibliography
90+
\end{translation-index}
91+
92+
\end{translation}

thuthesis-example.tex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@
6464
% 附录
6565
\appendix
6666
\input{data/appendix}
67+
% \input{data/appendix-survey} % 本科生:外文资料的调研阅读报告
68+
% \input{data/appendix-translation} % 本科生:外文资料的书面翻译
6769

6870
% 其他部分
6971
\backmatter

0 commit comments

Comments
 (0)