[问题] 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