※ 引述《liveinlow (\( ̄ε ̄ )>)》之銘言:
: 各位好
: 想請問一下在編輯書的時候,頁碼前面會有Chapter 1這個東西。
: 然後我把\chaptername換成 {第~\thechapter~章},就會變成
: "第 1 章 1",這樣好像不對耶。。。
: 不知道要format哪一個東西才能定義他的格式呢?
: 謝謝
以下應該可以:
綠色那行改這樣試看看。
\renewcommand\chaptername{第}
\def\chapternameend{章}
\makeatletter
\def\@makechapterhead#1{%
\vspace*{50\p@}%
{\parindent \z@ \raggedright
\normalfont
\ifnum \c@secnumdepth >\m@ne
\if@mainmatter
\huge\bfseries
\@chapapp\space \thechapter\space \chapternameend
\par\nobreak
\vskip 20\p@
\fi
\fi
\interlinepenalty\@M
\Huge \bfseries
#1\par\nobreak
\vskip 40\p@
}}
\makeatother
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 114.33.236.100
推
07/01 11:19, , 1F
07/01 11:19, 1F
※ 編輯: rogerli 來自: 114.33.236.100 (07/01 11:25)
推
07/01 11:40, , 2F
07/01 11:40, 2F
討論串 (同標題文章)