
それで、私は現在数学の論文を書いています。
たとえば、論文の「セクション 5」で、補題、命題、定理、系を 5.1、5.2、5.3、... のように順序付けているとします。新しい 5.2 を追加したい場合に、古い 5.2 が 5.3 に、5.3 が 5.4、... に変更されるように、この列挙をコーディングする方法はありますか?
ご協力ありがとうございます
答え1
おそらく、この問題はLaTeXでは簡単に解決できることがお分かりいただけたと思います(実際、それは設計()ですが、ここでは明示的な構造を見てみましょう。
この文書を、Lemma を含めた状態と含めない状態の両方でコンパイルしてみてください。(文書の書き方によっては、Lemma を削除するたびに相互参照を解決するために LaTeX を 2 回続けて実行する必要がある場合があります。最近の多くのエディターはこれを自動的に行います。)
\documentclass{article}
\usepackage{amsthm,amssymb}
\newtheorem{theorem}{Theorem}[section]
% Theorem numbering is Sec#.Thm#
\newtheorem{lemma}[theorem]{Lemma}
% Lemmata are numbered as theorems
\begin{document}
\section{A section with some politically motivated math in it}
The following Lemma is folklore among Business Administration circles of
the \emph{Paradigmatic Shift} school:
\begin{lemma}[Synergy Lemma]
\label{lemma:synergy}
Under the right circumstances, $1 + 1 = 3$.
\end{lemma}
\begin{proof} By adoption of a positive workplace culture. \end{proof}
\noindent
The Synergy Lemma proves quite useful to show the following celbrated result:
\begin{theorem}
\label{thm:2+2=5}
When it suits us, $2 + 2 = 5$.
\end{theorem}
\begin{proof} Exercise for the reader; use good stomping boots. \end{proof}
\noindent
Theorem~\ref{thm:2+2=5} is commonly known as \emph{Orwell's Theorem},
though it is often (and more accurately) called \emph{Vissarionovich's Theorem}
in many eastern European countries.
\end{document}