Is is possible to have a section appear later in the document than where it is defined?
\documentclass{article}
\begin{document}
\section{Intro}
This section appears first.
\section{Arcane details}
This section should not appear here, but later.
\section{Interesting bits}
That people want to see.
\appendix
% The Arcane details section should appear here.
\end{document}
In this simple example, I don't want the second section I defined (Arcane details) to appear as the second section, but rather to be an appendix at the end of the document.
I know I could just move that section to the location I want it, but the case I want to do this for is for an automatically generated document (specifically Sweave from R) and the section I want to appear later involves calculations that need to be done before the rest of the document can be generated.