5

My problem is that I would like to write something like in LaTeX: enter image description here

But I can't seem to do it wihtout reading like: enter image description here

Which is pretty anoying to do all the time, in the middle of writting. Is there a code to do it for a whole paragraph without written \hspace*{1,5 cm} in middle of a sentence

Helene
  • 51
  • 1
  • 2

3 Answers3

9

There is a pair \hangindent and \hangafter. In your case (I am not sure, if the indentation should start immediately or after the first line of a paragraph)

\hangindent=1.5cm
\hangafter=1 %after which line the indentations starts

gives the expected result.

3

There is also the hanging package which works well.

\hangpara is called as width and then a positive value indents the left a negative intends at the right of the text. The second parameter is the number of lines to indent (it can also be negative - read manual).

\documentclass{article}
\usepackage{lipsum} % just for mock text
\usepackage{hanging}

\begin{document}
\lipsum[2]
\lipsum[2]
\hangpara{1.5cm}{1}This one is hanging \lipsum*[3]
\lipsum[4]
\hangpara{1.0cm}{2}This one has two lines hanging but less so \lipsum*[3]
\end{document}

enter image description here

1

This is a basic implementation:

\documentclass{article}
\usepackage{enumitem}
\usepackage{lipsum} % just for mock text

\newenvironment{helene}% <--- choose a more informative name
 {\begin{itemize}[label={},leftmargin=1.5cm,itemindent=-1.5cm]\item}
 {\end{itemize}}

\begin{document}

\lipsum[2]

\begin{helene}
\lipsum*[3]
\end{helene}

\lipsum[4]

\end{document}

enter image description here

egreg
  • 1,121,712