[Tex/LaTex] Flushleft deletes the space between paragraphs

formatting

I would like to use \begin{flushleft} and \end{flushleft} to begin and end to align paragraphs to the left in ShareLaTex. However, I notice that when use those commands, they delete the blank space between paragraphs. I usually type \\ twice to create blank space between paragraph, one right at the end of the first paragraph, and the second between the first and second paragraph.

The followings are what I use for environment. Please let me know what went wrong, thanks for your time.


\documentclass[12pt]{article} 
\usepackage[margin=1in]{geometry} 
\usepackage{amsmath} 
\usepackage{amssymb} 
\usepackage{MnSymbol} 
\usepackage{changepage} 
\newenvironment{indent1}{\begin{adjustwidth}{.5cm}{}}{\end{adjustwidth}}
\newenvironment{indent2}{\begin{adjustwidth}{1cm}{}}{\end{adjustwidth}} 

\begin{document} 
\begin{noindent} 

\end{noindent}
\end{document} 

Best Answer

\\ and certainly \\\\ do not create a paragraph break, the first forces a line break and the second should never be used. To make a paragraph break just use a blank line in the source.

You do not say the intention of the noindent environment but it is very weird, relying on the fact that latex environments call the underlying command form.

\begin{noindent}

\end{noindent}

is the same as

{\noindent

}

So it starts a paragraph with no indentation but no visible text?

\begin{noindent}

aaaa

\end{noindent}

would have a blank line with a spurious paragraph made by \noindent with no text, then a paragraph, then a new indented paragraph with aaaa.

Related Question