Skip to content

Commit

Permalink
Update template.tex
Browse files Browse the repository at this point in the history
  • Loading branch information
Willie169 authored Dec 27, 2024
1 parent aa0616f commit a4de1d4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions template.tex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
% Set SectionLanguage counter to choose the language of the numbering for chapters (if documentclass is not article), sections, subsections, and subsubsections: 0 for Arabic, 1 for Traditional Chinese, 2 for Simplified Chinese. If xeCJK package is not loaded, this counter will be omitted and Arabic will be used.
\newcounter{ZhRenew}
\setcounter{ZhRenew}{0}
% Set ZhRenew counter to 1 to renew TOC's title to 目錄 and renew bibliography's title to 參考文獻; 2 to renew TOC's title to 目录 and renew bibliography's title to 参考文献; 0 to not renew them. If xeCJK package is not loaded, this counter will be omitted.
% Set ZhRenew counter to 1 to renew TOC's title to 目錄; 2 to renew TOC's title to 目录; 0 to not renew them. If xeCJK package is not loaded, this counter will be omitted.
% --- Below is the implementation of this template --- %
\usepackage[defaultlines=8]{nowidow}
\usepackage[utf8]{inputenc}
Expand Down Expand Up @@ -461,10 +461,8 @@
\makeatother
\ifnum\value{ZhRenew}=1
\renewcommand{\contentsname}{\hfill 目錄\hfill}
\renewcommand{\bibname}{參考文獻}
\else\ifnum\value{ZhRenew}=2
\renewcommand{\contentsname}{\hfill 目录\hfill}
\renewcommand{\bibname}{参考文献}
\fi\fi
\begin{document}
% --- Above is the implementation of this template --- %
Expand Down

0 comments on commit a4de1d4

Please sign in to comment.