Text Formatting ⇒ Enumerated Paragraphs
Enumerated Paragraphs
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
Re: Enumerated Paragraphs
Welcome to the LaTeX community!
I am not sure I understand what you mean. Can you elaborate a bit and maybe post an example of what the code and the pdf should look like in the end?
Regards
Re: Enumerated Paragraphs
Enumerated Paragraphs
Maybe you should actually use a list then. The enumitem package could help here:aram wrote:[...] these paragraphs are actually enumerated lists, the only difference is, the numbers are prefixed by the concerned section/subsection numbers.
Code: Select all
\documentclass{article}
\usepackage[inline]{enumitem}
\newlist{paragraphs}{itemize*}{1}
\setlist[paragraphs]{
label=(\textbf{\thesection}),
itemjoin=\newline\hspace*{\parindent}
}
\usepackage{lipsum}% dummy text
\begin{document}
\section{Foo}
\begin{paragraphs}
\item \lipsum[2]
\item \lipsum[2]
\end{paragraphs}
\section{Bar}
\begin{paragraphs}
\item \lipsum[2]
\item \lipsum[2]
\end{paragraphs}
\end{document}