Is it possible to write a document where some parts of it are displayed or hidden in the output PDF on the basis of a flag?
What I am tring to do is to write two documents of which one is an extension of the other, one is detailed, the other one is an overview. It is time consuming having to keep what is common among them aligned.
What I would like to do is writing a single document from which I can generates both the overview and the detailed one.
Example:
Source text:
This part is about vitamins, and how healthy they are.
[Detail] This part is about the chemical structure of vitamins.
Output/overview:
This part is about vitamins, and how healthy they are.
Output/detailed:
This part is about vitamins, and how healthy they are.
This part is about the chemical structure of vitamins.