[問題] 中文章節目錄

看板LaTeX (論文排版)作者 (只是個暱稱罷了)時間17年前 (2008/04/15 00:33), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/3 (看更多)
剛剛搭配了 CJKnumb 設定 可以順利完成一般中文論文當中章節的表現 http://inspic.com/6CAF7F6E http://inspic.com/F4FF7F7D 不過在目錄上面 \usepackage{titletoc} 似乎沒有辦法順利成功 只有「章」可以很順利的成功 「節」之後的部份,並沒有辦法顯示 http://inspic.com/6B36935D 我覺得問題是出在「章」的部份很容易定義取代掉 但是「節」會出現 1.1 這樣的數字 沒辦法順利用 \CJKnumber 取代掉 不知道關於這部份,有沒有人有好的建議呢? ------------------------------------------------------------------- 底下附上測試的程式碼: \documentclass[12pt,a4paper]{report} \usepackage{CJK,CJKnumb} \usepackage{indentfirst} \usepackage{titletoc} \usepackage[bf,small,center,indentafter,pagestyles]{titlesec} \begin{document} \begin{CJK}{UTF8}{nkai} \CJKindent %% 定義常要用到的指令 \renewcommand{\figurename}{圖~} \renewcommand{\tablename}{表~} \renewcommand{\contentsname}{目~錄~} \renewcommand{\listfigurename}{圖~目~錄~} \renewcommand{\listtablename}{表~目~錄~} \renewcommand{\appendixname}{附~錄~} %\renewcommand{\refname}{參~考~文~獻} %\renewcommand{\bibname}{參~考~文~獻~名~稱} \renewcommand{\indexname}{索~引} \renewcommand{\abstractname}{\Large 摘 \quad 要} %\renewcommand{\today}{\number\year~年~\number\month~月~\number\day~日} \newcommand{\zhtoday}{\CJKdigits{\the\year}年\CJKnumber{\the\month}月\CJKnumber{\the\day}日} %% 使用 book 的時候各級標題設置 %\titleformat{\chapter}[hang]{\bf\large}{\CJKnumber{\arabic{chapter}}、}{1em}{} \titleformat{\chapter}[hang]{\bf\Huge}{第\CJKnumber{\arabic{chapter}}章}{1em}{} \titleformat{\section}{\bf\Large}{第\CJKnumber{\arabic{section}}節}{1em}{} \titleformat{\subsection}{\bf}{\CJKnumber{\arabic{subsection}}、}{1em}{} \titleformat{\subsubsection}{\bf\normalsize}{\arabic{(subsubsection})}{1em}{} % 換索引的 title \titlecontents{chapter} [0em] {} {第\CJKnumber{\thecontentslabel}章~~} {}{\titlerule*{.}\contentspage} \titlecontents{section} [4em] {} {\contentslabel{2em}} {}{\titlerule*{.} \contentspage} \titlecontents{subsection} [8em] {} {\contentslabel{3em}} {}{\titlerule*{.} \contentspage} \title{題目} \author{作者} \date{\zhtoday} \maketitle \begin{abstract} ...... \end{abstract} \tableofcontents \chapter{章標題} ...... \section{節標題} ...... \subsection{子標題} ...... \chapter{章標題} ...... \section{節標題} ...... \end{CJK} \end{document} -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 122.116.111.182
文章代碼(AID): #180uT0tP (LaTeX)
文章代碼(AID): #180uT0tP (LaTeX)