13

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?

1 Answer 1

16

use package extract:

\usepackage[
  active,
  generate=file,
  extract-env={equation,align}
]{extract}
3
  • 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. Mar 11, 2011 at 8:45
  • 1
    @Bruno: for example: figure-nrs={-2,4-}, extract-cmd=chapter, chapter-nrs={3-5,7}
    – user2478
    Mar 11, 2011 at 11:59
  • I most definitely have to look into this package. Mar 11, 2011 at 13:19

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .