fede.unive” post=84987Nemmeno a me piacciono gli zeri in mezzo. Ma onestamente non saprei come fare a toglierli.
Nel preambolo ho la seguente lista di comandi`\newtheorem{TEO}{Theorem}[section]
\newtheorem{PROP}[TEO]{Proposition}
\newtheorem{COR}[TEO]{Corollary}
\newtheorem{LEMMA}[TEO]{Lemma}
\newtheorem{SET}[TEO]{Setting}
\newtheorem{EX}[TEO]{Example}
\newtheorem{DEF}[TEO]{Definition}`Poi quando devo enunciare un teorema scrivo
`\begin{TEO} Testo del teorema \end{TEO}`Idem per le definizioni, corollari, ecc…
La numerazione la mette da sola… (premetto che, per quanto poco elegante sia quello che sto per dire, questi sono i comandi che mi ha dato il mio relatore).
Molto bene. Direi che ti dovrebbe bastare questo: aggiungi
`\usepackage{chngcntr}`
fra i pacchetti che chiami. Al momento di cominciare l’appendice scriverai
`\appendix
\counterwithout{TEO}{section}
\counterwithin{TEO}{chapter}`
Esempio
`\documentclass{book}
\usepackage{chngcntr}
\newtheorem{TEO}{Theorem}[section]
\newtheorem{PROP}[TEO]{Proposition}
\begin{document}
\mainmatter
\chapter{1}
\section{1.1}
\begin{TEO}
$1=1$
\end{TEO}
\appendix
\counterwithout{TEO}{section}
\counterwithin{TEO}{chapter}
\chapter{A}
\begin{TEO}
$0\ne1$
\end{TEO}
\chapter{B}
\begin{PROP}
$a=a$
\end{PROP}
\end{document}`
Ciao
Enrico