I'd like to produce two slightly different versions of a document. One will include confidential information, the other will be slightly redacted.

Is it possible to use an environment variable and the \if command to achieve this? I will compile the document twice, but with the environment variable set and not-set depending on which version I am trying to produce?

Your Answer

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

Browse other questions tagged or ask your own question.