看板 LaTeX 關於我們 聯絡資訊
我把下面這段抄上去 \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
sppmg: 呃...樣板內一堆變數,當然不能直接複製來用。你如果要沿用 07/23 01:48
sppmg: 現有內容的話,複製 \apptocmd 和 \titleformat 兩行就好。 07/23 01:49
sppmg: 括號自己匹配一下,也別忘了 etoolbox 07/23 01:52
hau: 謝謝!還有編好後,在目錄上面多一頁只印了「contants 目錄」 07/23 07:18
hau: 請問這是?我有用「\renewcommand{\contentsname}{目錄}」 07/23 07:21
sppmg: 這應該和你檔案內其他設定有關喔! 07/23 08:35