Re: [問題] 獨立的節編號?
※ 引述《swyang (來聊天吧)》之銘言:
: 我想知道要怎麼做到像這樣的編號
: Chapter 1
: Section 1
: Section 2
: Section 3
: Chapter 2
: Section 4
: Section 5
: ......
: 謝謝
把以下加入preamble
\makeatletter
\renewcommand{\thesection}{\@arabic\c@section}
\makeatother
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.61.41.36
→
12/24 13:29, , 1F
12/24 13:29, 1F
推
12/24 13:33, , 2F
12/24 13:33, 2F
這個稍微麻煩了些,以下加入preamble:
\makeatletter
\def\@removefromreset#1#2{%
\let\@tempb\@elt
\expandafter\let\expandafter\@tempa
\csname c@#1\endcsname
\def\@elt##1{\expandafter\ifx
\csname c@##1\endcsname\@tempa\else
\noexpand\@elt{##1}\fi}%
\expandafter\protected@edef
\csname cl@#2\endcsname
{\csname cl@#2\endcsname}%
\let\@elt\@tempb}
\@removefromreset{section}{chapter}
\renewcommand{\thesection}{\@arabic\c@section}
\makeatother
※ 編輯: LSC112233 來自: 111.255.176.119 (12/24 18:06)
討論串 (同標題文章)
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章