I would like to set \parindent
to 2em
(or \quad
which is the same if I know correctly). How can I do it?
\setlength{\parindent}{...}
only accepts values with length units, for example, 15pt
, 1cm
, etc. It doesn't accept \quad
; it gives the error "Illegal unit of measure".
Example:
\documentclass{article}
\setlength{\parindent}{\quad}
\begin{document}
A
\end{document}
\parindent=2em\relax
Note that\quad
is not a length, but a macro for skipping a length, so one cannot set\parindent
to it.\quad
is a skip of1em
, so\setlength{\parindent}{1em}
should do the trick.