Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions config/packages.tex
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@
\usepackage[chapter]{algorithm}
\usepackage{algorithmic}
\usepackage{mathptmx} % Use times font in equation env (#426 #425)
\usepackage{datatool} % Use DTLloaddb DTLsort DTLforeach for auto-sorted abbreviations
9 changes: 9 additions & 0 deletions page/graduate/abbreviations.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
abbrev,english,chinese
ZJU,Zhejiang University,浙江大学
ZJG,Zi Jin Gang,紫金港
YQ,Yu Quan,玉泉
XX,Xi Xi,西溪
HJC,Hua Jia Chi,华家池
ZJ,Zhi Jiang,之江
ZS,Zhou Shan,舟山
HN,Hai Ning,海宁
25 changes: 24 additions & 1 deletion page/graduate/term-translation.tex
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
\cleardoublepage
\chapternonum{缩略词表}

\begin{center}
% uncomment line 5 if you want to set the fontsize of the table.
% \zihao{-4}
Expand All @@ -19,6 +20,11 @@
\endfoot
\bottomrule
\endlastfoot
% =================================================
% Abbreviations table:
%
% Option 1: Manual input (for few abbreviations)
% Example:
ZJU&Zhejiang University&浙江大学\\
ZJU&Zhejiang University&浙江大学\\
ZJU&Zhejiang University&浙江大学\\
Expand All @@ -27,5 +33,22 @@
ZJU&Zhejiang University&浙江大学\\
ZJU&Zhejiang University&浙江大学\\
ZJU&Zhejiang University&浙江大学\\
%
% Option 2: Auto-read from CSV (recommended for many abbreviations)
% - Usage: comment lines 28-35 (Manual input abbreviations) and uncomment lines 45-52, add abbreviations in
% page/graduate/abbreviations.csv
% - File: page/graduate/abbreviations.csv
% - Columns: abbrev, english, chinese
% - LaTeX will automatically sort by 'abbrev' and output the table.
%
% Example usage (auto-sorted CSV):
% \DTLloaddb{abbr}{page/graduate/abbreviations.csv}
% \DTLsort{abbrev}{abbr}
% \DTLforeach*{abbr}{\abbrev=abbrev,\english=english,\chinese=chinese}{%
% \abbrev & \english & \chinese
% \DTLiflastrow{}{
% \\
% }
% }
\end{longtable}
\end{center}
\end{center}
Loading