I have a document with several theorems ("\begin{restatable} \label{thmA}...
"). After each theorem I have the statement "see proof in section \ref{sec:thmA:proof}
".
So my appendix is now a long series of sections numbered in the usual way ("7.1, 7.2, ...
"). However, I would like the section numbers to be the same as the theorem numbers, except for a prefixed "A
".
For example, for theorems:
Theorem 1.1
Theorem 2.1
Theorem 2.2
I would like the appendix to look like:
A1.1. Proof of theorem 1.1
A2.1. Proof of theorem 2.1
A2.2. Proof of theorem 2.2
Here is a working example, which uses the thm-restate
package to restate theorems in the appendix, although this is not crucial for the question:
\documentclass[]{article}
\usepackage{amsmath,amsthm}
\usepackage{thmtools,thm-restate}
\newtheorem{thm}{Theorem}[section]
\begin{document}
\section{A section in the body}
\begin{restatable}{thm}{thmA} \label{thmA}
Statement of the theorem.
\end{restatable}
The proof of theorem \ref{thmA} can be found in the appendix (see section \ref{sec:thmA:proof}).
\newpage
\appendix
The appendix starts here.
\section{Proof of theorem \ref{thmA}} \label{sec:thmA:proof}
\thmA*
\begin{proof}
Here goes the proof.
\end{proof}
\end{document}
In the previous example, the theorem is numbered Theorem 1.1.
, and the first section of the appendix is titled A. Proof of theorem 1.1.
. I would like it to be A1.1.
, which includes the information of the theorem number.
\documentclass{...}
and ending with\end{document}
. 2nd . Whichtheorem
environment do you use?\renewcommand{\thesection}{A\thetheorem}
(if there is a\thetheorem
command. 3rd: Do you enter the section commands or should that be done automatically?