# Aligning text to right

In the picture shown below, I want to align the starting of two line to the right where exactly the numbering starts. I used \hspace{} command but it is not working. How can I fix this problem??

This is the code is used:- 1. Automatic:- \ \hspace{5mm} At first a course transformation is applied by the FSI Mapper followed by a fine transformation on the source mesh to move it closer to the target mesh location.\

• You're probably doing it wrong. You should consider using a list like enumerate: \begin{enumerate} \item Automatic:- \par At first a course ... \end{enumerate}. – Werner Oct 5 '18 at 17:58
• Please show us the code you're as a MWE: ie. something we can compile so we can try to duplicate your results. A MWE will start with \documentclass and include \begin{document} and \end{document} – A.Ellett Oct 5 '18 at 17:58
• You can use the {} button to properly format your code. "Right align" usually means to push everything as far as possible to the right, so that "mesh location" ends up at the right margin. It sounds like you instead want to increase the left margin instead. – Teepeemm Oct 5 '18 at 17:58
• Also, \hspace{<dim>} at the beginning of a line will have no effect. To force the effect, use \hspace*{<dim>} instead. – A.Ellett Oct 5 '18 at 17:59
• I don't want to use \begin{enumerate} option. – Pratheek Hb Oct 5 '18 at 18:05

And what about the \noindent command ?

\documentclass[]{article}

\begin{document}
\noindent
1. Automatic:-\\
At first a course transformation is applied by the FSI Mapper followed by a fine transformation on the source mesh to move it closer

\end{document}

• no problem. It worked out with \begin{enumerate} syntax. – Pratheek Hb Oct 5 '18 at 18:13

One more way, useful if you need insert normal paragraphs between main items, or you like a more simple coding for a list:

\documentclass{article}
\usepackage{linguex}
\begin{document}

\ex. Automatic:
\a.[] At first a course transformation is applied by
the FSI Mapper followed by a fine transformation
on the source mesh to move it closer

\ex. Manual:
\a. With one finger.
\b. With two fingers.

\end{document}


As suggested by @Werner, you may consider using enumerate environment:

           \documentclass[]{article}
\begin{document}

\begin{enumerate}
\item Automatic:-\\
At first a course transformation is applied by the FSI Mapper followed by a fine transformation on the source mesh to move it closer
\end{enumerate}
\end{document}

• @PratheekHb Sorry I didn't see your comment when I posted the answer – Hafid Boukhoulda Oct 5 '18 at 18:10