Commit 1c8ae13b authored by liziwl's avatar liziwl
Browse files

修改英文的目录和页眉

parent 03ae2178
Loading
Loading
Loading
Loading

data/chap05.tex

0 → 100644
+10 −0
Original line number Diff line number Diff line
% !TeX root = ../sustechthesis-example.tex

\chapter{English Example}

If your supervisor is a foreign national, or if your supervisor or defense committee specifically allows writing in English, the thesis may be written in English as the primary language. Please check with your supervisor or department secretary to confirm if you can write in English.

\section{Reference guide}

Writing in English still requires the Chinese reference standard GB/T 7714-2015.
+2 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@
% !TeX program = xelatex
% !TeX spellcheck = en_US

\documentclass[degree=master,language=chinese,cjk-font=external]{sustechthesis}
\documentclass[degree=master,language=english,cjk-font=external]{sustechthesis}
  % 学位 degree:
  %   master (默认) | doctor
  % 语言 language:
@@ -52,6 +52,7 @@
\input{data/chap02}
\input{data/chap03}
\input{data/chap04}
\input{data/chap05}

% 结论
\backmatter
+11 −11
Original line number Diff line number Diff line
@@ -2295,9 +2295,15 @@
    \fancyhead[C]{\wuhao\leftmark}%
    \fancyfoot[C]{\wuhao\thepage}%
    \let\@mkboth\markboth
    \ifthu@main@language@chinese
      \def\chaptermark##1{%
        \markboth{\CTEXifname{\CTEXthechapter\quad}{}##1}{}%
      }%
    \else
      \def\chaptermark##1{%
        \markboth{\MakeUppercase{\CTEXifname{\CTEXthechapter\quad}{}##1}}{}%
      }%
    \fi
  \fi
  \let\sectionmark\@gobble
}
@@ -3078,14 +3084,8 @@
%    \begin{macrocode}
  \else
    \titlecontents{chapter}
      [\z@]{%
        \ifthu@main@language@chinese
          \rmfamily \heiti
        \else
          \rmfamily \heiti \bfseries
        \fi
      }
      {\contentspush{\thecontentslabel\quad}}{}
      [\z@]{\rmfamily \heiti}
      {\bfseries \contentspush{\thecontentslabel\quad}}{\bfseries}
      {\rmfamily\thu@leaders\thecontentspage}%
    \titlecontents{section}
      [1em]{}