General ⇒ newcommand vs newcommand*
-
- Posts: 707
- Joined: Tue Mar 25, 2008 5:02 pm
newcommand vs newcommand*
Perhaps the biggest issue is that I need to learn what \long does....
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
newcommand vs newcommand*
The \long prefix indicates that the arguments of the macro being defined may contain \par tokens.
\newcommand* behaves like \newcommand, but it defines a command that is not long; i.e., it does not accept empty lines or \par in its argument.
In TeX terms, \def is equivalent to \newcommand* and \long\def is equivalent to \newcommand.
-
- Site Moderator
- Posts: 814
- Joined: Tue Jul 01, 2008 2:19 pm