[Tex/LaTex] Why won’t \hspace work

horizontal alignmentindentationspacing

I'm trying to get a block of text to be aligned 2.55cm from the left of the page. I'm sure there's a better way of doing this, but it would be nice to get an answer anyway.

When I type:

\hspace{2.55cm} text text text text text text ... text

I get an output that has the first line 2.55cm from the left but the following lines are aligned with the left of the page, naturally. So I tried using the \hspace{2.55cm} command at the point in the text where I want there to be an indent (i.e. the start of every line in the output). But when I do this, I get the same output with only the first line indented by 2.55cm and the following lines aligned with the left of the page. Why is this – and how do I fix it?

Best Answer

Using the changepage package, one can locally adjust the margins of text in a page. To achieve this, we use the environment, adjustwidth.

\begin{adjustwidth}{<leftmargin>}{<rightmargin>}
<content>
\end{adjustwidth}

enter image description here

\documentclass{article}
\usepackage{changepage}
\usepackage{lipsum}
\begin{document}
\lipsum[1-2]
    \begin{adjustwidth}{2.5cm}{}
    \lipsum[1-2]
    \end{adjustwidth}
\lipsum[1-2]
\end{document}
Related Question