13

Is a negative indent of a particular paragraph possible or does another command need to be used? I.e., the first line should begin inside the margin.

Can a command similar to \noindent be constructed that flushes the first line (of a paragraph) to an arbitrary value, or does a negative indent already exist, or is there an easy-to-make solution?

2
  • 4
    You can simply use \hspace*{-3cm}blablabalbabal. Or set \parindent to a negative value. Commented Nov 4, 2013 at 16:07
  • This comment is actually what I was looking for, with \hspace*{-Xmm}! Please add this as an answer, so that I can accept it :) Commented Nov 4, 2013 at 16:22

3 Answers 3

14

You can simply use \hspace*{-3cm}blablabalbabal.

1
  • This seems to not work with align environments, as in \hspace*{-3cm}\begin{align}...\end{align}. It just stays exactly where it would be with no hspace. Commented May 18 at 20:20
11

Just set \parindent to a negative value, e.g.

\setlength{\parindent}{-1em}

If you want to keep original \parindent for other paragraphs, make the change local, e.g.

\bgroup
\setlength{\parindent}{-1em} 
PARAGRAPH
\egroup
7

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}

enter image description here

1
  • This is useful to know. Here is what I've done with it and the \hspace solution below: tex.stackexchange.com/questions/142197/… In this case the \hspace solution is shorter, but this is also something useful in general. Can we accept two answers :) Commented Nov 4, 2013 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .