I am working on a script and I would like to put some proofs in an extra section. But, for editing, I would like to place the proof right after the proposition. So, I would like some kind of command that sends the input in a predefined section (For example: appends the input to the end of the section)
I have in mind something like this:
This code
\section{section}
Hello
\sendtoOtherSection{World}
\section{other section}
Nothing here
produces:
1 section
Hello
2 other section
Nothing here
World
Like the title of this question says, I don't care if \sendtoOtherSection is a command or environment. It is not very important in which order the shifted text appears.
