[Tex/LaTex] End a paragraph and continue normal section

paragraphssectioningsections-paragraphs

Inside a section, I have plain text and a paragraph. The section starts with normal text, then there is a short paragraph, and finally the normal section text continues. The last part of the text should look different from the paragraph and continue in the same style as the first part of the section.
How can the paragraph be ended? This is what my code looks like:

\section{My_section}
%...text here...  
\paragraph{My_paragraph}
%...text paragraph...  
%?How to end the paragraph?
%...the text of the section continues

Best Answer

\paragraph only marks the beginning of a paragraph; there is no way for it to be closed.
I would recommend using an custom environment instead, because it allows you to control what is happening inside of it.

For instance, to mimic the \paragraph{} command, you could define

\newenvironment{para}[1]
    {%here comes what is processed before
    \noindent\textbf{#1}\hspace{1em}\ignorespaces}
    {%and here what is processed after
    \par}

Now, you can use

\begin{para}{My_paragraph}
    here goes the paragraph text
\end{para}
...and you can continue your section.

You can add whatever you like to the definition of the environment, like \small for the text to be in smaller font, or ending it with a special symbol, like Nils suggested.

Related Question