\DAY{<title>}{<text for that day>}.
Now I want to create a private and a public version of the diary. In the private version, all text shall be contained.
The public version however, should only feature specific parts.
For that purpose, I’d like to “tag” certain text parts with a command \PUBLIC{<public text>}.
However, I would like to avoid “tagging” every text which is not public with \PRIVATE.{<private text>}. Instead, PRIVATE should be the default for all text not marked with \PUBLIC.
Code: Select all
\documentclass{article}
\newcommand{\DAY}[2]{
{\bf #1}\\
#2
}
\newcommand{\PUBLIC}[1]{#1}
\begin{document}
\DAY{First entry in my diary}{
This text should be present only in the private version.
\PUBLIC{Only this text should appear in the public version.}
This text should be present only in the private version.
}
\end{document}
(1) For the private version:
++++++++++++++
First entry in my diary
This text should be present only in the private version.
Only this text should appear in the public version.
This text should be present only in the private version.
++++++++++++++
(2) For the public version:
++++++++++++++
First entry in my diary
Only this text should appear in the public version.
++++++++++++++
Any help appreciated.