Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a LaTeX document that includes many equations. I would like to create a separate "quick reference" sheet that includes many of these equations. Instead of copy-and-pasting the equations from the first document to the second document, I would like to be able to reference the equations by name and have them be automatically included (so that if I later change an equation in the first document, that change will be automatically reflected in the second document after I recompile it). What's a good way to do this?

share|improve this question
add comment

1 Answer

up vote 14 down vote accepted

use package extract:

\usepackage[
  active,
  generate=file,
  extract-env={equation,align}
]{extract}
share|improve this answer
2  
can you selectively extract some equations from the file using that method? Otherwise, one can always define a dummy \newenvironment{extracteqn}{\equation}{\endequation} and put extracteqn instead of equation in the options. –  Bruno Le Floch Mar 11 '11 at 8:45
1  
@Bruno: for example: figure-nrs={-2,4-}, extract-cmd=chapter, chapter-nrs={3-5,7} –  Herbert Mar 11 '11 at 11:59
    
I most definitely have to look into this package. –  Bruno Le Floch Mar 11 '11 at 13:19
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.