Re: [問題] 請教定理編號問題
※ 引述《jovi72 (專注)》之銘言:
: 不好意思,再請教
: ※ 引述《andrew43 (Myrmarachne)》之銘言:
: : 在定義 Theorem environment 的時候,
: : 第三個非必須參數要放你的編號章節層級。
: : 以你所需,即:
: : \newtheorem{theorem}{Theorem}[section]
: : 這是最直接的方法。
: 這個方法我知道,但是這樣還是達不到我要編號,
: 我需要的編是有章、節及計數。
: 如果用這個方法,只有 Theorem 3.1 這樣就沒有章的編號了!
嗯... 你用什麼 document class 呢?
我用 latex 內建的 report,
\newtheorem{theorem}{Theorem}[section]
是可以從 chapter 一路跟到 subsection,加上自己計數,共 4 項。
該不會,你的 \thesubsection 沒有跟到 \thechapter 嗎?
: : 此外,你也可以更動 Theorem environment 的 counter,
: : 承上例,
: : \renewcommand{\thetheorem}{KERORO-\thechapter.\thesection.\thesubsection}
: : 所以是隨便你改的。
: 我試一下這個方法,但是好像會把 theorem 的格式用亂掉
: 例如本來是粗體結果沒有了,用新的定理會自動內縮…
: 不知道還沒有其他的方法?
: 謝謝
嗯... 你用什麼 document class 呢?XD
我以
\newtheorem{theorem}{Theorem}[subsection]
\renewcommand{\thetheorem}{\thesubsection.\arabic{theorem}}
並沒有造成什麼格式之變化啊...
照理講,這只改了 counter 的數字,與格式無關的。
--
http://apansharing.blogspot.com/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.126.46.88
※ 編輯: andrew43 來自: 59.126.46.88 (06/26 13:20)
推
06/26 23:52, , 1F
06/26 23:52, 1F
→
06/26 23:54, , 2F
06/26 23:54, 2F
※ 編輯: andrew43 來自: 59.126.46.88 (06/29 15:28)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 4 之 4 篇):
LaTeX 近期熱門文章
PTT數位生活區 即時熱門文章