[Tugindia] Difference between these commands

Radhakrishnan CV cvr at river-valley.org
Mon May 4 13:36:41 CEST 2009

On Sun, May 3, 2009 at 8:58 PM, Kalidoss Murugesan
<kalidoss.murugesan at gmail.com> wrote:
> Dear TUGindia,
> What is the difference between the following commands?
> 1.           \newcommand         and           \newcommand*
> 2.           \hspace*                    and            \hskip

The first question has been explained before.

Regarding the second, \hskip is a primitive and \hspace is a LaTeX
macro. The starred version, \hspace* helps to insert horizontal skip
at the beginning of a line which is not possible with \hskip<dimen>.
TeX will gobble up the horizontal skip in the beginning of the line.

Hope this helps.


More information about the tugindia mailing list