On Nov 16, 2003, at 4:45 PM, William L. Jarrold wrote:

I want to write a little latex macro command that basically works like a comment. Does anyone know how to do this?

\documentclass{article} \newcommand{\comment}[1]{#1}

\begin{document}

This is \comment{not} a comment.

\end{document}


This produces the output "This is not a comment." If you remove the "#1," then the word "not" will not appear.

The syntax of newcommand is:
\newcommand{\<new command name}[<number of arguments>]{ ... }

And #1 substitutes argument 1, #2 substitutes argument 2, etc.

-Paul

_______________________________________________
Siglinux mailing list
[EMAIL PROTECTED]
http://machito.utacm.org/mailman/listinfo/siglinux

Reply via email to