Is there a way to turn certain parts of the text on and off in LyX/Latex ?
I'm thinking of having something like an environment (lets call it "TL" for "traffic light") and a parameter
t such that if I set for example
t=0 (meaning the light shows "red") at the beginning, all pieces of my text that lie within the TL-environment aren't displayed in the compiled document – whereas if I set
t=1 ("green") they are displayed ?
(I asked about something like such an environment following the idea that LyX maybe has special mechanism to do this – so any solution, not necessarily "hard-coded" ones via environments are welcome as long as they are easy to implement.)