[Tex/LaTex] How to remove the indentation from the first line of a paragraph

indentationparagraphstemplates

I am using a template provided by our university. I have read and tried many way to remove the indent from the first line in a paragraph.

I have the paragraph below:

\paragraph{1. Number of Sides (n)\\}
For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

it prints:

  1. Number of Sides (n)

     For each iteration, every segment of the figure from the previous iteration will be converted to four segments in the following iteration. Since we begin with three sides, the formula for the number of sides in the Koch curve is

where it leave a space at the beginning of the first line.

I don't want this indent, I tried \noindent and \setlength\parindent{0pt} but they didn't work.

I tried \textit, it did not indent the first line but it indents the "1. Number of Sides (n)" itself.

I can not use \subsubsection because it sub of \subsubsection.

If you have a command that will perform this, I would appreciate it.

Best Answer

You can attempt to use

enter image description here

\paragraph{1. Number of Sides (n)\\}
For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

\paragraph{1. Number of Sides (n)} \mbox{}\par\nobreak
\noindent For each iteration, every segment of the figure from the previous iteration 
will be converted to four segments in the following iteration. Since we begin 
with three sides, the formula for the number of sides in the Koch curve is

The above technically finished the paragraph initiated by \paragraph, inserts a blank box and starts a new \paragraph. \nobreak ensures that the paragraph title and subsequent paragraph stays together near a page break, while \noindent ensures that the paragraph doesn't have an indent.

There are better ways of doing this, but I'm not sure to what extent you would use this, and what other limitations you might have in terms of packages. Moreover, manually numbering sectional titles (\paragraph is a sectional unit) is error-prone.

Related Question