Re: [問題] \newtheorem

看板LaTeX (論文排版)作者時間18年前 (2007/10/31 12:32), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串6/6 (看更多)
※ 引述《subeyes.bbs@ptt.cc (嘿)》之銘言: > 不好意思借用一下標題 > 因為想再請教一個關於newtheorem的問題 > 我現在定義了一個example的thoerem如下: > \newtheorem{example}{\rule{0.9\textwidth}{0.1em}\\Example}[section] > 這樣使用\begin{example}... \end{example}會出現的是像這樣: > ------------------------------ > Example x.x ...... > 現在想在example結束時也加畫一條像上面那樣的橫線 > 該怎麼做呢? > 目前想到的方法是再定義一個environment把這個example包住 > 再在結尾加上一條橫線 不知道有沒有別的方法呢? 謝謝:) 除非去改 newtheorem 的原始定義,不然只能另定義一個 environment。 \newtheorem{example}{Example}[section] \newenvironment{examp}{% \rule{0.9\textwidth}{0.1em} \begin{example}% }{% \end{example}% \rule{0.9\textwidth}{0.1em} } -- 一個神聖的目標是很危險的。當一個目標變得神聖時, 要達到這個目標的手段往往會變得很卑下。(林語堂.快樂的天才) -- ※ Origin: SayYA 資訊站 <bbs.sayya.org> ◆ From: edt1023.sayya.org
文章代碼(AID): #17A0L300 (LaTeX)
文章代碼(AID): #17A0L300 (LaTeX)