I have written a book in LaTeX which I am reviewing at the moment. However, in the book, I want to insert more details for e.g. a printed version. Thus, I am searching for a possible option to include text that is compiled and shown in the document based on a variable (such as a debug flag). I want to give an example. The first version should have the following text:
The keywords has to be added to the \textit{fvSolution} file,
otherwise, the solver might indicate an error.
For the second version I would like to extend the text:
The keywords has to be added to the \textit{fvSolution} file,
otherwise, the solver might indicate an error. \secondVersion{However, default
values are used if nothing is specified}
I also might use it for coloring text in the second version such as:
The \secondVersion{\{\red}keywords\secondVersion{\}} has to be
added to the \textit{fvSolution} file, otherwise, the solver might
indicate an error.
During compiling the text inside \secondVersion{} should be compiled if a flag is set or not. I guess something like that might be possible. Any hints are appreaciated.
Thanks in advance.
