精華區beta LaTeX 關於我們 聯絡資訊
我的latex原始檔是這樣寫的: \begin{enumerate} \item First \begin{enumerate} \item first \item\label{2nd} second \item\label{3rd} third \end{enumerate} \item Second \item Third \end{enumerate} Repeat steps \ref{2nd} and \{3rd} several times until stablized. 結果出現的樣子是: 1. First (a) first (b) second (c) third 2. Second 3. Third Repeat steps 1b and 1c several times until stablized. 要怎樣才能讓引用的樣式跟條列的格式一樣啊? 也就是說,出現 1.(b) 和 1.(c) 而不是 1b 和 1c。 先謝謝了。有Latex版真好。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 141.213.243.15 ※ 編輯: jsb 來自: 141.213.243.15 (04/15 08:06) > -------------------------------------------------------------------------- < 作者: jsb (jsb) 看板: LaTeX 標題: Re: [問題] 請教有關\enumerate環境下的引用? 時間: Sun Apr 15 09:01:45 2007 ※ 引述《jsb (jsb)》之銘言: : 也就是說,出現 1.(b) 和 1.(c) 而不是 1b 和 1c。 剛剛自己研究出一個硬搞的方法,不過總覺得應該有更方便的辦法才對: \newcounter{First} \newcounter{2nd} \newcounter{3rd} \begin{enumerate} \item First \setcounter{First}{\value{enumi}} \begin{enumerate} \item first \item second \setcounter{2nd}{\value{enumii}} \item third \setcounter{3rd}{\value{enumii}} \end{enumerate} \item Second \item Third \end{enumerate} Repeat steps \arabic{First}.(\alph{2nd}) and \arabic{First}.(\alph{3rd}) several times until stablized. 請版上的大家多出些主意囉! -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 141.213.243.15 > -------------------------------------------------------------------------- < 發信人: EdwardLee.bbs@bbs.cs.nctu.edu.tw (蒙古大夫 2.0), 看板: LaTeX 標 題: Re: [問題] 巢狀條列(nested enumeration)的引用(referencing)? 發信站: 交大資訊次世代BS2 (Sun Apr 15 14:15:05 2007) 轉信站: ptt!ctu-reader!ctu-peer!news.nctu!news.cis.nctu!BS2 ※ 引述《jsb.bbs@ptt.cc (jsb)》之銘言: > 要怎樣才能讓引用的樣式跟條列的格式一樣啊? > 也就是說,出現 1.(b) 和 1.(c) 而不是 1b 和 1c。 > 先謝謝了。有Latex版真好。 這個要自行修改會比較麻煩,建議使用 fancyref package,請參考: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=labelformat -- ▄▄▄▄▄▄▄ ▄▄▄▄ ▄▄▄▄▄▄ <telnet://bbs.cs.nctu.edu.tw> █▄▄▄▄█ █ ▄▄▄▄▄█ Player: EdwardLee ▄█▄▄▄▄█ ▄▄▄█ █▄▄▄▄▄ From: linux.cc.ntu.edu.tw ☆ 次世代BS2 ☆ 可申請個人板 150MB 相簿 http://pic.bs2.to 交大資訊人 250MB > -------------------------------------------------------------------------- < 作者: jsb (jsb) 看板: LaTeX 標題: Re: [問題] 請教有關\enumerate環境下的引用? 時間: Sun Apr 15 16:20:05 2007 經過李老師的指點,結果採用了fncylab package: \labelformat{enumii}{\theenumi.(#1)} \begin{enumerate} \item First \begin{enumerate} \item first \item\label{2nd} second \item\label{3rd} third \end{enumerate} \item Second \item Third \end{enumerate} 這樣就成功了。 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 141.213.243.15