GeneralDestroy or nullify argument

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Destroy or nullify argument

Post by Montag »

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.
Attachments
destroy-nullify-argument.tex
(944 Bytes) Downloaded 173 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

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

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

Post by localghost »

Probably the comment package is what you're looking for.


Thorsten
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Destroy or nullify argument

Post by Montag »

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?
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Destroy or nullify argument

Post by localghost »

Montag wrote:[…] Could you also give me a hint about the switch-thing?
Doesn't the package itself offer such a switch?
User avatar
frabjous
Posts: 2064
Joined: Fri Mar 06, 2009 12:20 am

Destroy or nullify argument

Post by frabjous »

Here's a sample document.

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}
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?
Montag
Posts: 340
Joined: Wed Jul 15, 2009 9:25 am

Re: Destroy or nullify argument

Post by Montag »

Thank you both, that's it. :)
OS: Win 7 64-bit LaTeX: MikTeX 2.9 64-bit Editor: TXC 1 RC1
Post Reply