Setting \parindent
inside \textt
is not something I'd do. Remember that an end-of-line is the same as a space:
\noindent\texttt{%
text 1: Follow the white rabbit!\\
text 2: Follow the tiny white rabbit!\\
}%
Some text follows.
But perhaps you want verbatim
:
Some text before the typewriter type text
\begin{verbatim}
text 1: Follow the white rabbit!
text 2: Follow the tiny white rabbit!
\end{verbatim}
Some text follows.
I give it a try:
Standard Behaviour
The standard paragraph shows an indentation in the first line and no space between paragraphs (\parskip
is zero).
\documentclass{article}
\usepackage{blindtext}
\begin{document}
\blindtext
\blindtext
\end{document}
![enter image description here](https://i.stack.imgur.com/2516i.png)
Standard Document Class Solution
You can use the parskip
package (CTAN link) to solve your problem.
From the documentation:
Package to be used with any document class at any size. It produces
the following Paragraph Layout:
Zero Parindent and non-zero Parskip.
The stretchable glue in \parskip
helps LaTeX in finding the best place
for page breaks.
In addition, the package adjusts the skips between
list items.
This package is no more than quick fix; the ‘proper’ way to achieve
effects as far-reaching as this is to create a new class. An example
class is to be found in the ntgclass
set: artikel3.cls
The koma-script
bundle classes and the memoir
class all provide
similar functionality, and their respective documentation files
discuss the pros (such as they are) and cons of this approach.
\documentclass{article}
% new package
\usepackage{parskip}
\usepackage{blindtext}
\begin{document}
\blindtext
\blindtext
\blindlist{itemize}
\end{document}
![enter image description here](https://i.stack.imgur.com/EVWX6.png)
Bad Solution: Manually Change the Lengths
Important for you is that the package parskip
takes care of other things too. Sometimes you see people manually changing the parameters like \setlength{\parindent}{0em}
and \setlength{\parskip}{1em}
but this is considered bad because it also could change the distance between items in lists and so on. But I am not an expert here.
Alternative Solution: KOMA Approach
There are the so called KOMA-Script (CTAN link) document classes (in contrast to the standard document classes like article and book).
They offer a document class option called parskip
which also "takes care of everything".
\documentclass[parskip]{scrartcl}
\usepackage{blindtext}
\begin{document}
\blindtext
\blindtext
\blindlist{itemize}
\end{document}
![enter image description here](https://i.stack.imgur.com/qAY2d.png)
PS: I don't get the
\section*{\hspace{150pt} Motivation}
\hspace{10pt}\begin{normalsize}
part of your code.
Best Answer
Paragraph indention is controled by the parameter
\parindent
. In most document classes it is set to a positive value so you should see indentations. If this is not the case you can set this parameter in the document preamble to whatever value you wish, e.g.Of course, a requirement is that you mark up your paragraphs: a paragraph ends by either a blank line or by the command
\par
. If you instead just used\\
you have directed LaTeX to start a new line but not a new paragraph.