[Tex/LaTex] Indent paragraphs

indentationparagraphs

I wrote all my text using the command \paragraph{} and now I'm difficulties to indent and set the spacing between paragraphs. I would like to indent the first line of paragraphs with spacing of 1.25 cm. But when I use \setlength{\parindent}{1.25cm} the first line don't set. Is there any way to set the first line of the paragraph using the command ? And how can I set the distance between the paragraphs to 0cm, created with \paragraph ?

ex:

\documentclass[10pt,a4paper]{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\setlength{\parindent}{1.25cm}
\begin{document}
\paragraph{} \lipsum[1] %tow spaces between paragraph

\paragraph{} \lipsum[2]
\lipsum[3] %anyone spaces between paragraph
\lipsum[4]
\end{document}

enter image description here

Best Answer

You actually chose a poor example, since \lipsum starts a new paragraph unless you call the lipsum package with the nopar option. As such, leaving an empty space between paragraphs is fine to separate paragraphs.

Issuing a \paragraph{} to start a new paragraph is, however, not the best idea. You can "rectify" this by redefining what \paragraph means. In this case, it suffices to make it equivalent to \ignorespaces:

enter image description here

\documentclass{article}
\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\setlength{\parindent}{1.25cm}
\let\paragraph\ignorespaces
\begin{document}
\paragraph{} \lipsum[1]

\paragraph{} \lipsum[2]
\lipsum[3]
\lipsum[4]
\end{document}