0

I'd like to insert a specific horizontal white space inside an item in enumerate. I tried with \hspace{0.5 cm}, but nothing changes. Can you tell me how to reach this goal please?


EDIT: the second "hello" should be shifted 0.5 cm to the right

\documentclass{article}
\usepackage[utf8]{inputenc}

\begin{document}
\maketitle
\begin{enumerate}
    \item hello
    \\
    \hspace{0.5 cm} hello
\end{enumerate}
\end{document}
1
  • Could you post a sketch of what you want? At the moment it is not very clear.
    – Bernard
    Commented May 22, 2020 at 18:03

1 Answer 1

1

Answer to updated question

You have several options, including:

\documentclass{article}

\begin{document}

\begin{enumerate}
    \item hello \\
    \hspace*{0.5 cm} it's me
\end{enumerate}

\begin{enumerate}
    \item hello \\
    \mbox{}\hspace{0.5 cm} can you hear me
\end{enumerate}

\begin{enumerate}
    \item hello \\
    \null\hspace{0.5 cm} from the outside
\end{enumerate}

\begin{enumerate}
    \item hello \\
    \hbox{}\hspace{0.5 cm} how are you?
\end{enumerate}

\begin{enumerate}
    \item hello \\
    \vbox{}\hspace{0.5 cm} from the other side
\end{enumerate}

\end{document}

See also e.g. How can I force a \hspace at the beginning of a line?

I don't know about the ins and outs of these, but there's other questions for that on here answered by more knowledgeable people than me. Sorry for my previous somewhat rude answer, and all the best! :-)

screenshot


Previous Answer

\documentclass{article}

\begin{document}

\begin{enumerate}
    \item[please \hspace{0.5cm} include] \hspace{0.5cm} MWE
\end{enumerate}

\end{document}

screenshot

4
  • Thank you so much @steve, i did a mistake in the code. Commented May 22, 2020 at 18:07
  • @GennaroArguzzi Don't worry, just for next time ;-)
    – steve
    Commented May 22, 2020 at 18:09
  • Hi @steve, i edited my question; now the problem should be clearer. Commented May 22, 2020 at 20:41
  • excellent answer, thank you for your help. Commented May 22, 2020 at 22:25

You must log in to answer this question.

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