So, I wanna have two versions of a document in LaTeX where one versions has additional information - for example by declaring:
\section(important){Formula}
importantFormulaXYZ
\subsection(notimportant){additional Info}
some information about why this formula is important
Then I would like to be able to set a variable in the beginning of the document to true or false where true prints all sections and subsections and false prints only the sections I marked as important.
I don't really know how something like this would be possible so that I can easily switch between getting the document
Formula
importantFormulaXYZ
and the document
Formula
importantFormulaXYZ
additional Info
some information about why this formula is important
Would be great if someone could help me out :) I found some examsheet package that seems to do something similar but it extends way beyond what I need so I hope there is a simpler way to do it :)
Addendum
I would prefer to be able to set the information about when to print it directly at the subsection (as in the example as 'important' and 'not important' for example) and not have something at the beginning of the document that says "print section 1,2,3,7,8 etc." because the more sections I get the more confusing that would get I think and also harder to manage changing the status of sections etc...
commentpackage allows you to do this. See http://tex.stackexchange.com/a/51580/2693 – Alan Munn Dec 03 '15 at 12:58solutionenvironment. Then a single\printanswersin the preamble will print these parts, otherwise not. – Masroor Dec 03 '15 at 13:19