We can set the \parindent
parameter locally and force the beginning of a paragraph in the same group. The end of the group will restore the former value of \parindent
, but the different value has already been used. Note that \negpar
should not be followed by a blank line.
\documentclass{article}
\newcommand{\negpar}[1][-1em]{%
\ifvmode\else\par\fi
{\parindent=#1\leavevmode}\ignorespaces
}
\begin{document}
Some text with normal indentation. And other text to fill the
paragraph over a couple of lines or maybe three, just add
nonsense text forever and ever and beyond for years.
\negpar
Some text with negative indentation. And other text to fill the
paragraph over a couple of lines or maybe three, just add
nonsense text forever and ever and beyond for years.
Some text with normal indentation. And other text to fill the
paragraph over a couple of lines or maybe three, just add
nonsense text forever and ever and beyond for years.
\negpar[-2em]
Some text with negative indentation. And other text to fill the
paragraph over a couple of lines or maybe three, just add
nonsense text forever and ever and beyond for years.
Some text with normal indentation. And other text to fill the
paragraph over a couple of lines or maybe three, just add
nonsense text forever and ever and beyond for years.
\end{document}
\hspace*{-3cm}blablabalbabal
. Or set\parindent
to a negative value.