[Tex/LaTex] Print/Output only Equations/Math Formulas of a Given LaTeX or LyX Document

lyxmath-modeoutput

I have a LyX document filled with text and equations like in a scientific paper. To focus only on the math sometimes it can be really useful to only print/output the formulas and not the text around it. Is there any way to do this automatically in LyX? So far I manually copy all the equations but that is not convenient in the long run. All equations are numbered and centered in the math mode.

Best Answer

try with the following in the preamble:

\usepackage[
  active,
  generate=file,
  extract-env={equation,align}
]{extract}

then it generates a new file with the chosen contents.

Related Question