Eine flexible Aufzählung für meine Mathematik-Dissertation

Eine flexible Aufzählung für meine Mathematik-Dissertation

Also, ich schreibe gerade meine Mathematik-Abschlussarbeit.

Angenommen, ich befinde mich in „Abschnitt 5“ der Dissertation und sortiere Lemmata, Propositionen, Theoreme und Korollare nach 5.1, 5.2, 5.3 usw. Gibt es eine Möglichkeit, diese Aufzählung so zu codieren, dass, wenn ich eine neue 5.2 hinzufügen möchte, die alte 5.2 in 5.3 geändert wird, 5.3 in 5.4 usw.?

Vielen Dank für jede Hilfe

Antwort1

Hoffentlich haben Sie festgestellt, dass das Problem in LaTeX einfach ist (tatsächlich ist es im Wesentlichen das, was es warentworfenfür), aber hier ist eine explizite Konstruktion, die Sie sich ansehen können.

Versuchen Sie, dieses Dokument mit und ohne das Lemma zu kompilieren. (Je nachdem, wie Sie Ihr Dokument schreiben, müssen Sie LaTeX möglicherweise zweimal hintereinander ausführen, damit der Querverweis jedes Mal aufgelöst wird, wenn Sie das Lemma entfernen. Viele moderne Editoren tun dies automatisch.)

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

verwandte Informationen