Hello,
let's say I'd like to share a document with some people and it contains some data I'd like to give out only to a selected few of all the recipients.
So I'd like to make two versions of the document.
The "public" version should not contain only the "private" data. Is there a way to do this? If yes, how?
I prepared a MWE with some silly looking example code. I would continue to work on it if I knew how to define this "switch" and the if-code, but I haven't found a proper guide or knowledgebase yet.
General ⇒ Destroy or nullify argument
Destroy or nullify argument
- Attachments
-
- destroy-nullify-argument.tex
- (944 Bytes) Downloaded 172 times
Last edited by Montag on Sat Jan 22, 2011 10:32 am, edited 1 time in total.
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
NEW: TikZ book now 40% off at Amazon.com for a short time.

- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Destroy or nullify argument
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: Destroy or nullify argument
Heyho Thorsten, yes, thanks the comment package seems to be the solution for nullifying an argument-problem.
Could you also give me a hint about the switch-thing?
Could you also give me a hint about the switch-thing?
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
Destroy or nullify argument
Doesn't the package itself offer such a switch?Montag wrote:[…] Could you also give me a hint about the switch-thing?
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Destroy or nullify argument
Here's a sample document.
As is, it will print the comment. If you remove the line "\includecomment{comment}" or change it to "\excludecomment{comment}", it won't. Is that what you meant by a switch?
Code: Select all
\documentclass{article}
\usepackage{comment}
\includecomment{comment}
\begin{document}
\begin{comment}
Only with the above command.
\end{comment}
In every version.
\end{document}
Re: Destroy or nullify argument
Thank you both, that's it. 

OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1