I am formatting a document in LaTeX.
I have the following code:
\documentclass[10pt,a4paper]{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[margin=0.5in]{geometry}
\begin{document}
Hello\\
This is a Latex Document\\
\begin{flushleft}
How to write without a space in the beginning
\end{flushleft}
Please help
\end{document}
I am giving the PDF generated from the below code:
Two problems:
- Whenever I start the document there is a space with which the document starts
- And when I start with
\begin{flushleft}and end with\end{flushleft}the next line again starts with space.
What I want is: using some package/some commands so that all my text is aligned to the left. Is it possible? I don't want any space to begin with in a line.

\usepackage{parskip}? – Mico Sep 10 '18 at 06:07\setlength{\parindent}{0pt}– LaRiFaRi Sep 10 '18 at 06:07\\will insert a line break and for that purpose is perfectly suited. Of course, you usually should not insert line breaks manually, but prefer paragraph breaks (blank line or\par). But these are two different aims. – TeXnician Sep 10 '18 at 07:04\parindent > 0pt) except in first paragraphs after headings (\section, etc.) instead of a paragraph skip (\parskipof 0pt). Note also that the end of a paragraph is\paror one blank line, whereas \ is only a break of line, so without indentation. – Fran Sep 10 '18 at 07:27\\at the ends of paragraph are always wrong (tex will give warnings about badness 10000 (maximum badness)) and give poor output. I – David Carlisle Sep 10 '18 at 07:48\\within a paragraph starts a new line, what is wrong is to force a newline at the end of a paragraph. A blank line in the source doesn't start a new line, it starts a new paragraph. – David Carlisle Sep 10 '18 at 07:49\\\to start a new paragraph. Thanks for clarifying. – Denis Sep 10 '18 at 09:21