내 수학 논문을 위한 유연한 열거

내 수학 논문을 위한 유연한 열거

그래서 저는 지금 수학 논문을 쓰고 있어요.

제가 논문의 "섹션 5"에 있고 기본정리, 명제, 정리 및 추론을 5.1, 5.2, 5.3 등으로 정렬하고 있다고 가정해 보겠습니다. 이 열거형을 코딩하여 새 항목을 추가할 수 있는 방법이 있습니까? 5.2, 기존 5.2가 5.3으로 바뀌고, 5.3이 5.4로 바뀌고... 등등?

어떤 도움을 주셔서 감사합니다

답변1

LaTeX에서는 문제가 쉽다는 사실을 발견하셨기를 바랍니다.디자인된for), 하지만 여기에 여러분이 살펴보아야 할 명시적인 구성이 있습니다.

Lemma가 포함되거나 포함되지 않은 상태에서 이 문서를 컴파일해 보세요. (문서 작성 방법에 따라 Lemma를 제거할 때마다 상호 참조를 해결하기 위해 LaTeX를 연속으로 두 번 실행해야 할 수도 있습니다. 많은 최신 편집자는 이 작업을 자동으로 수행합니다.)

\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}

관련 정보