[問題] titletoc 之標題對齊

作者: birdhackor (夜殘狼)   2014-01-07 17:52:33
各位好
由於我希望可以將目錄的 lable

1 chapter name ........ page
1.1 section name .. page
變成
第一章 chapter name ........ page
1.1 section name .. page
這樣的格式
所以我用 titletoc 進行處理
語法如下
\titlecontents{chapter}
[0em]
{}
{第\CJKnumber{\thecontentslabel}章~~}
{}{\titlerule*{.}\contentspage}
%
\titlecontents{section}
[28pt]
{}
{\thecontentslabel\quad}
{}{\titlerule*{.} \contentspage}
%
\titlecontents{subsection}
[56pt]
{}
{\thecontentslabel\quad}
{}{\titlerule*{.} \contentspage}
但我發現
這樣會產生一個問題
原本如果標題過長
再換行之後應該會對齊標題
像這樣
1.1 xxxxxxxxxxxxx
xxxxx ....... 3
1.2 sssss ....... 4
用了上面的方式之後變成
1.1 xxxxxxxxxxxxx
xxxxx ............ 3
1.2 sssss ....... 4
請問如何讓它恢復對齊呢?
作者: andrew43 (討厭有好心推文後刪文者)   2014-01-07 20:53:00
你需要使用 titletoc package 中的 \contentspush

Links booklink

Contact Us: admin [ a t ] ucptt.com