[Tex/LaTex] Subdividing structured abstracts

abstractsectioningsections-paragraphs

I am trying to produce a structured abstract, i.e. with subdivisions. For that purpose, the \paragraph command would produce the perfect output since I would like no line break after the subtitle of the abstract, but it seems not to work directly in the abstract environment (without being under \section). An empty \section could solve the problem, but produces a lot of white space. Does any of you have s solution to this problem?

\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\begin{document}

\begin{abstract} 
\section*{}
\paragraph*{Lorem}
\blindtext[1]
\paragraph*{Ipsum}
\blindtext[1]

\end{abstract} 

\end{document}

This produces too much space between the abstract title and the text body. Without `\section, however, the document will not compile. Are there any ghost sections?

Best Answer

I suggest not using \paragraph, but a custom made command:

\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}

\newcommand{\absdiv}[1]{%
  \par\addvspace{.5\baselineskip}% adjust to suit
  \noindent\textbf{#1}\quad\ignorespaces
}

\begin{document}

\begin{abstract}
\absdiv{Lorem}
\blindtext[1]
\absdiv{Ipsum}
\blindtext[1]

\end{abstract}

\end{document}

enter image description here

Related Question