0

I try to use the reledmac package to enumerate paragraphs in my document, which I generate with pandoc.

Unfortunately, the commands \pstart and \pend needed for the enumeration break the parskip control of the KOMA-Script classes. How can I re-enable consistent spaces between headlines, lists and paragraphs?

Related Question:

Preview of MWE

Preview of MWE

MWE

\documentclass[12pt,DIV=14,a4paper,parskip=true]{scrartcl}

\usepackage{reledmac} 

\title{Title}

\begin{document}
\maketitle

\beginnumbering
\numberpstarttrue
\sidepstartnumtrue
\labelpstarttrue

\section{Intro}

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

\begin{itemize}
  \item foo
  \item bar
\end{itemize}

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

\section{Paragraph Numbering}

\pstart Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.\pend

\pstart Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.\pend

\begin{itemize}
  \item foo
  \item bar
\end{itemize}

\pstart Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.\pend


\endnumbering
\end{document}

  • 1
    sorry, reledmac is not conceived to use enumerating paragraph. It is a pending issue, but, for now, I have not time yet to fix it. You can make fake list, using \\ and $\bullet$ – Maïeul Feb 6 at 10:16
2

Maybe you only have to define an new command which steps a counter and prints the counter:

\documentclass[12pt,DIV=14,a4paper,parskip=true]{scrartcl}
\newcounter{parnum}
\newcommand*\parnum{%
  \par\leavevmode
  \refstepcounter{parnum}%
  \makebox[0pt][r]{\theparnum.\quad}%
}

\title{Title}
\begin{document}
\maketitle

\section{Intro}
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

\begin{itemize}
  \item foo
  \item bar
\end{itemize}

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

\section{Paragraph Numbering}
\parnum Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam.

\parnum Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.

\begin{itemize}
  \item foo
  \item bar
\end{itemize}

\parnum Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia.
\end{document}

enter image description here

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.