如果要改成中文"第一章" 這樣的話需要 titlesec, titletoc,CJKnumb這三個package
如果是使用XeLatex最後一個要改成xCJKnumb 這個package要另外自行下載,估狗可以估狗的到。
使用 CJKnumb package的話 使用下面的指令
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{CJKnumb}
\titleformat{\chapter}{\centering\Huge\bfseries}{第\,\CJKnumber{\thechapter}\,章}{1em} {}
使用xCJKnumb package的話 使用下面的指令
\usepackage{titlesec}
\usepackage{titletoc}
\usepackage{xCJKnumb}
\titleformat{\chapter}{\centering\Huge\bfseries}{第\,\xCJKnumber{\thechapter}\,章}{1em} {}
改變章節名稱後章節上方可能會有一大片空白,此時可使用
改變章節名稱後章節上方可能會有一大片空白,此時可使用
\titlespacing{\chapter}{0cm}{-1.3cm}{1em} 指令來修改上方空白的大小
以上只會改變內文裡的Chapter 目錄裡的不會改。
目錄裡的也要改的話要在目錄指六後面加上以下指令(此處使用xCJKnumb)
\titlecontents{chapter}[0em]
{}{\makebox[4.1em][l]
{第\xCJKnumber{\thecontentslabel}章}}{}
{\titlerule*[0.7pc]{.}\contentspage}
將目錄標題中文化使用下列指令
\renewcommand\contentsname{目錄}
\renewcommand\listfigurename{圖目錄}
\renewcommand\listtablename{表目錄}
要寫成表1.1 圖1.1的話需加入下列指令
\newcommand{\loflabel}{圖}
\newcommand{\lotlabel}{表}
\newcommand{\lotlabel}{表}
然後再圖目錄處加入
\renewcommand{\numberline}[1]{\loflabel~#1\hspace*{1em}}
\listoffigures
\listoffigures
表目錄處加入
\renewcommand{\numberline}[1]{\lotlabel~#1\hspace*{1em}}
\listoftables
手動將章節加入目錄可以參考這篇http://www.ptt.cc/bbs/LaTeX/M.1242265895.A.D0A.html
大致內容如下
使用 addcontentsline指令
\addcontentsline{toc}{章節名}{標題}
章節名 要加入目錄的那段的層級 ex: chapter section
標題 要加入目錄那段的名字 ex: Chapter ABC的ABC
\listoftables
手動將章節加入目錄可以參考這篇http://www.ptt.cc/bbs/LaTeX/M.1242265895.A.D0A.html
大致內容如下
使用 addcontentsline指令
\addcontentsline{toc}{章節名}{標題}
章節名 要加入目錄的那段的層級 ex: chapter section
標題 要加入目錄那段的名字 ex: Chapter ABC的ABC
沒有留言:
張貼留言