Re: 番号にprimeはつけられますか?

名前: トノ
日時: 2002-03-22 23:53:09
IPアドレス: 150.35.254.*

>>7528 私は何を寝ぼけていたのでしょう・・・ もっと素直な方法があったのに・・・ こちらの方法なら、相互参照も正しく出力されるようです。 # thmp 環境を続けて使用したときには、プライムの数が増えるようにして # みました。ただし、10個が限度で、それ以上になるとエラーになります。 \documentclass{jarticle} \newtheorem{thm}{定理}[section] \newtheorem{thmp}{定理}[thm] \makeatletter \newcommand*{\thmp@}{% \ifcase\c@thmp \or \prime \or \prime\prime \or \prime\prime\prime \or \prime\prime\prime\prime \or \prime\prime\prime\prime\prime \or \prime\prime\prime\prime\prime\prime \or \prime\prime\prime\prime\prime\prime\prime \or \prime\prime\prime\prime\prime\prime\prime\prime \or \prime\prime\prime\prime\prime\prime\prime\prime\prime \or \prime\prime\prime\prime\prime\prime\prime\prime\prime\prime \else \@ctrerr \fi } \renewcommand*{\thethmp}{\thethm$^{\thmp@}\m@th$} \makeatother \begin{document} \section{The First Section} \begin{thm} The first theorem. \end{thm} \begin{thmp} \label{1-1}% The first variation of the first theorem. \end{thmp} \begin{thmp}[Optional Argument] The second variation of the first theorem. \end{thmp} \begin{thm} The second theorem. \end{thm} \begin{thmp} The first variation of the second theorem. \end{thmp} \begin{thmp} The second variation of the second theorem. \end{thmp} \begin{thmp}\label{2-3} The third variation of the second theorem. \end{thmp} Reference to the first variation of the first theorem is ``\ref{1-1}''. Reference to the third variation of the second theorem is ``\ref{2-3}''. \end{document}

この書き込みへの返事:

お名前
題名 
メッセージ(タグは <a href="...">...</a> だけ使えます)