Una enumeración flexible para mi tesis de matemáticas.

Una enumeración flexible para mi tesis de matemáticas.

Actualmente estoy escribiendo mi tesis de matemáticas.

Digamos que estoy en la "sección 5" de la disertación y estoy ordenando lemas, proposiciones, teoremas y corolarios por 5.1, 5.2, 5.3,... etc. ¿Hay alguna manera de codificar esta enumeración de modo que si quisiera agregar una nueva 5.2, el antiguo 5.2 cambiaría al 5.3, el 5.3 cambiaría al 5.4,...etc?

Gracias por cualquier ayuda

Respuesta1

Esperemos que hayas descubierto que el problema es fácil en LaTeX (de hecho, es sustancialmente lo que era).diseñadopara), pero aquí hay una construcción explícita para que la veas.

Intente compilar este documento, con y sin el Lema. (Dependiendo de cómo esté escribiendo su documento, es posible que deba ejecutar LaTeX dos veces seguidas para que la referencia cruzada se resuelva cada vez que elimine el Lema. Muchos editores modernos hacen esto automáticamente).

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

información relacionada