On 04/28/2012 05:34 PM, Qiqi Yan wrote:
Hi all,
So I have a (complicated) theorem statement in the main text of a
paper, which I want to repeat in the appendix right before the proof.
Is there a macro-way of doing this instead of copy-pasting?
(\newcommand is probably not good as the theorem is complicated to
write in latex)
Thanks a lot!
You know, you can do things like this:
[ERT]\newcommand\mytheorem{[/ERT]This is the statement of a very
complicated theorem, using lots and lots of LaTeX, and maybe even some
other stuff like tikz.[ERT]}[\ERT]
On export, this will define \mytheorem just as you want it. Now you can
use it in ERT twice: Once in the statement of the main theorem, and
again in the appendix.
Richard