5

Is there a way (package or anything) to compile only the theorems in a tex-document. With theorems I mean the lemmas, propositions and theorems defined in the theorem-environment of the amsthm package. I would like to have a list of the results to see the underlying structure better.

  • You could redefine the theorem/lemma/etc. environments to write their content to a new file. – Henri Menke May 27 '14 at 11:57
  • An option could be the preview package, but you get a page for each environment you declare to be included in the preview. – egreg May 27 '14 at 12:22
  • The answer at tex.stackexchange.com/questions/91188/… implements @HenriMenke 's idea using awk rather than redefinitions. – Ethan Bolker May 27 '14 at 12:27
3

Try xcomment package:

\usepackage{xcomment}
\xcomment{theorem,lemma,defn}% list environments you want to print 
\begin{document}
  • This is a very easy solution. Thanks a lot for your help! – Vincent May 27 '14 at 12:50
0

Have a look to the package optional. There you can define passages that are optional.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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