
1. 去掉正文中章的頁碼
2. 節的縮進和章一樣(從編號算起)
3. 正文中頁碼加括號,摘要不加
4. 摘要,致謝等加上引導符……
我知道titlesec,titletoc和tocloft宏包可以做這方面的作業,但是嘗試了始終達不到效果。
tocloft修改都是指定chapter或section等進行修改的,由于摘要和正文章標題都使用chapter,所以始終有出入。
希望得到解答,謝謝!
下面是我得到最接近的效果和代碼:


\RequirePackage{titlesec}
\RequirePackage{titletoc}
\RequirePackage[titles]{tocloft}
\let\origcftsecpagefont\cftsecpagefont
\let\origcftsecafterpnum\cftsecafterpnum
\let\origcftchappagefont\cftchappagefont
\let\origcftchapafterpnum\cftchapafterpnum
\renewcommand{\cftsecpagefont}{(\origcftsecpagefont}
\renewcommand{\cftsecafterpnum}{\origcftsecafterpnum)}
\renewcommand{\cftchappagefont}{(\origcftchappagefont}
\renewcommand{\cftchapafterpnum}{\origcftchapafterpnum)}
%\addtocontents{toc}{\cftpagenumbersoff{chapter}}
\renewcommand\cftchapdotsep{\cftdotsep}
\renewcommand{\cftchapleader}{\cftdotfill{\cftchapdotsep}}
但是:
1. section標題有縮進
2. 摘要頁碼也被加上了括號
3. 正文中章存在引導符和頁碼
uj5u.com熱心網友回復:
你好,我的目錄生成后是“第一章”,我想改為“第1章”,可以麻煩教一下嗎轉載請註明出處,本文鏈接:https://www.uj5u.com/caozuo/34422.html
標籤:專題技術討論區
下一篇:請教一下關于燒寫程式出現的問題
