Math & ScienceReuse certain Parts of Code

Information and discussion about LaTeX's math and science related features (e.g. formulas, graphs).
Post Reply
tjcarter
Posts: 1
Joined: Wed May 16, 2012 6:17 pm

Reuse certain Parts of Code

Post by tjcarter »

Hi everyone,

I'm working on a paper where I defer most of my proofs to the appendix, so I have a lot of unproved lemmata floating around in the main text. When I get to the appendix, I'd like to be able to reproduce each of these lemmata before providing their proofs. If possible I'd prefer not to have to copy + paste the versions of these lemmata that appear in the main text so as to avoid having to do everything twice if I later have to reword certain lemmata. Does anyone know if/how this can be done?

Thanks very much!

Best,
T

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

User avatar
Stefan Kottwitz
Site Admin
Posts: 10359
Joined: Mon Mar 10, 2008 9:44 pm

Reuse certain Parts of Code

Post by Stefan Kottwitz »

Hi,

welcome to the board!

You could use the thm-restate package. It belongs to the thmtools package and is described in 1.4 Repeating theorems in the thmtools documentation.

Stefan
LaTeX.org admin
Post Reply