Re: [心得] 中文化目錄編號後,附錄部份顯示為零問題

看板LaTeX (論文排版)作者 (小豪)時間5年前 (2018/07/22 22:29), 5年前編輯推噓0(006)
留言6則, 2人參與, 5年前最新討論串2/3 (看更多)
我把下面這段抄上去 \apptocmd{\appendix}{ \ifzh{ \titleformat{\chapter}{\centering\chapterTitleStyle}{\appendixname\thechapter}{1em}{} % 改章首 }{} \titlecontents{chapter} % 改目錄 [\tocNumSpaceC@Before] {\tocStyleChapterAboveApp} {\tocStyleChapterFont\makebox[\tocNumSpaceC@Total][l]{\thecontentslabel@chapter@app}} {\tocStyleChapterFont} {\tocStyleChapterFiller} \@mainmattertrue % \appendix 置於 \backmatter 之後 }{}{} 結果 目錄那最後出現「@Before@TotalA@chapter@app」,這裡還與「附錄」重疊顯示. 「第一章」變成「Chapter 1」 Appendix A 上面有一頁空白頁,上面印了「mainmattertrue」 請問怎麼改 -- ※ 發信站: 批踢踢實業坊(ptt.cc), 來自: 123.204.173.3 ※ 文章網址: https://www.ptt.cc/bbs/LaTeX/M.1532269770.A.6AD.html ※ 編輯: hau (123.204.173.3), 07/22/2018 22:32:55

07/23 01:48, 5年前 , 1F
呃...樣板內一堆變數,當然不能直接複製來用。你如果要沿用
07/23 01:48, 1F

07/23 01:49, 5年前 , 2F
現有內容的話,複製 \apptocmd 和 \titleformat 兩行就好。
07/23 01:49, 2F

07/23 01:52, 5年前 , 3F
括號自己匹配一下,也別忘了 etoolbox
07/23 01:52, 3F

07/23 07:18, 5年前 , 4F
謝謝!還有編好後,在目錄上面多一頁只印了「contants 目錄」
07/23 07:18, 4F

07/23 07:21, 5年前 , 5F
請問這是?我有用「\renewcommand{\contentsname}{目錄}」
07/23 07:21, 5F

07/23 08:35, 5年前 , 6F
這應該和你檔案內其他設定有關喔!
07/23 08:35, 6F
文章代碼(AID): #1RL9JAQj (LaTeX)
文章代碼(AID): #1RL9JAQj (LaTeX)