Hey, I think this is kinda cool.

I sem to recall a statment in a manual about,  I want this
comment to go to my typesetter so they know how the page should
be layed out.  However, I do not want to have this in the text.
Where that is I have no idea.

<comment visible=false^H^H^H^H^Htrue>

But, I think this topic brings up an important point.  Why the heck
would you want to do this!!!!

Seriously, I want to make a document in which there are multiple
versions, such that you have to have special previages to see the
true comments.  I htink ethically, there should be only one kind of
a comment in a document.  Those that are seen for the people
creating the document to aid in it's creation.

For instance two things can happen if macros like these exist.  
Opps!! I left the comments enabled and my boss/friend/significant other
will see how a truely feel.  I never even bother to turn the comment
visible tag on, so they act like real documents.

Personally, I feel that comments like yeah right belong in the 
always unprintable set, IF THEY SHOULD EXIST AT ALL.

I looked at some C code that had flags like, 

  printf("Might want to get some coffee this is gonna take a while.\n");

  if ("BOSS" == "DUMN ASS") printf("YOUR BOSS IS LIKE MINE\n");

  printf("This logic path only happens if the user is an idiot\n");

Some of these actually got out to customers and we not caught in 
testing.  Well, cause the testers thought they were funny.

Once again, things like that are better said straight to a person's
face, or not said at all.  It's just how I feel.

Hope I remember to turn the visible to false.  They might see my
typos and other stuff.

</comment>

I seem to recall some thing at

http://www.ctan.org/tex-archive/macros/latex/contrib/comment/?action=/tex-archive/macros/latex/contrib/

then again I'm not sure....yeah right.

Big Mike

On Sun, Nov 16, 2003 at 05:01:35PM -0600, Daniel Brown wrote:
> On Sun, Nov 16, 2003 at 04:45:02PM -0600, William L. Jarrold wrote:
> > Hi,
> > 
> > I want to write a little latex macro command that basically
> > works like a comment.  Does anyone know how to do this?
> > 
> > E.g. In my foo.tex file I might have this...
> > 
> > Now is the time \comment{Yeah, right buddy!} for all good men to
> > come to the aid of their country.
> > 
> > ...but the final document has merely this...
> > 
> > Now is the time for all good men to come to the aid of their country.
> > 
> > ...The way I know how to make my own little macros is with something
> > called \newcommand...Yes, of course I know there is the latex comment
> > chraracter, %.  I do not want to use that.  Rather, I want to embed
> > comments directly in the text...If I have a little function like \comment,
> > then I gain a simple toggle-like functionality.  In particular, by making
> > a teency edit to the definition of \comment at the top of foo.tex I can
> > easily toggle the hiding/revealing of all the scads of buried comments
> > that might lurk in foo.tex.
> > 
> > So, does anyone know how to achieve this w/o much fuss?
> > 
> > Bill
> 
> You should be able to simply use \newcommand to make a command that
> takes your comment as an argument and doesn't give anything back.
> Something like:
> 
>     \newcommand\comment[1]{}
> 
> The [1] declares it to take 1 argument, and the {} is just \comment not
> doing anything. To toggle hiding/revealing, you should be able to just
> change it to:
> 
>     \newcommand\comment[1]{#1}
> 
> #1 is the argument passed in, so
> 
>     \comment{Yeah, right buddy!}
> 
> should be replaced with
> 
>     Yeah, right buddy!
> 
> hth
> 
>  danb
> 
> -- 
> Daniel Brown
> www.cs.utexas.edu   www.utacm.org
> _______________________________________________
> Siglinux mailing list
> [EMAIL PROTECTED]
> http://machito.utacm.org/mailman/listinfo/siglinux

-- 
Auto generated sentence : 
Perry Mason replaces the boat.
_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to