# eledmac package: \pausenumbering and \resumenumbering

I'm using the eledmac package to typeset a rather large work of theology. For simplicity and the sake of a MWE, I'm just using the two stanza poem below.

Intended outcome: Between sections that are line numbered, I would like to interpose text that is not line numbered. Typically, one would do this using the \beginnumbering and \endnumbering commands. However, these commands reset the line numbers back to 0 (or 1?). I would like the line number to resume after the interposed, non-line-numbered text.

According to the eledmac manual, page 11, I should be able to use the commands \pausenumbering and \resumenumbering to accomplish this.

Problem statements:

1. The manual seems to contradict itself (again, see page 11). It says, "Use \pausenumbering only between numbered paragraphs." It also says, "We have defined these commands ... in case you find it necessary to insert text between numbered sections without disturbing the line numbering."

2. In either use case, i.e., whether using \pausenumbering and \resumenumbering between numbered paragraphs or with interposed text, I get error messages.

3. The variations on errors follow:

• If compiled as submitted in the MWE below (using PDFLaTeX in all cases), line numbering stops at line 10, does not resume with "Little Lamb, I'll tell thee ...", and I receive the error line 45: Extra \endgroup \endgroup.

• If I comment out the "offending" \endgroup on line 45, the error message goes away, but line number still does not resume.

• Trying to use process of elimination, if I comment out the interposing text and the \endgroup command, I get no errors, but line number still does not resume.

A few final points:

• I have changed the memoir document class to both article and book, but no joy.

• Yes, I know that eledmac is a 3-pass system.

• I've tried replacing the use of \autopar with the \pstart and \pend pair, still no joy. Beside, the actual work will be several hundred pages and I definitely don't want to have to mark every paragraph!

• I have tried to search this site for something relevant and haven't been able to do so.

\documentclass{memoir}

\usepackage{eledmac} % Version 1.10.3, dated 2014-04-07

\begin{document}

\textbf{The Lamb}

\emph{William Blake}

\begingroup
\beginnumbering
\autopar
\firstlinenum{1}
\linenumincrement{1}

Dost thou know who made thee,\\
Gave thee life, and bid thee feed\\
By the stream and o'er the mead;\\
Gave thee clothing of delight,\\
Softest clothing, woolly, bright;\\
Gave thee such a tender voice,\\
Making all the vales rejoice?\\
Dost thou know who made thee?

\pausenumbering

This is a line between the two stanzas that should \emph{not} be number, because it is prefaced with the \verb|\pausenumbering| command.

Little Lamb, I'll tell thee;\\
Little Lamb, I'll tell thee:\\
He is called by thy name,\\
For He calls Himself a Lamb\\
He is meek, and He is mild,\\
He became a little child.\\
I a child, and thou a lamb,\\
We are call\'ed by His name.\\
Little Lamb, God bless thee!\\
Little Lamb, God bless thee!

\endnumbering
\endgroup

\end{document}

• By the way, karkoeller, thank you for fixing the code in my question! – bishopcranmer Apr 12 '14 at 13:38
• that is a bug in eledmac. I am working on. see github.com/maieul/ledmac/issues/163. I will ask you for test when I will think to have a solution – Maïeul Apr 12 '14 at 15:37

Effectively, it seems to be a bug in eledmac.

Anyway, to pause and resume numbering you can encase your stanzas inside \pstart...\pend (without \autopar) in this way:

\documentclass{memoir}

\usepackage{eledmac} % Version 1.10.3, dated 2014-04-07

\begin{document}

\textbf{The Lamb}

\emph{William Blake}

\begingroup
\beginnumbering
\firstlinenum{1}
\linenumincrement{1}

\pstart
Dost thou know who made thee,\\
Gave thee life, and bid thee feed\\
By the stream and o'er the mead;\\
Gave thee clothing of delight,\\
Softest clothing, woolly, bright;\\
Gave thee such a tender voice,\\
Making all the vales rejoice?\\
Dost thou know who made thee?
\pend

This is a line between the two stanzas that should \emph{not} be number, because it is prefaced with the \verb|\pausenumbering| command.

\pstart
Little Lamb, I'll tell thee;\\
Little Lamb, I'll tell thee:\\
He is called by thy name,\\
For He calls Himself a Lamb\\
He is meek, and He is mild,\\
He became a little child.\\
I a child, and thou a lamb,\\
We are call\'ed by His name.\\
Little Lamb, God bless thee!\\
Little Lamb, God bless thee!
\pend

\endnumbering
\endgroup

\end{document}


• Thank you for your response. I copied and pasted your code directly and it does work, so I was doing something wrong when I initially tried this. So, +1 for you! :-) HOWEVER, as noted above, the actual document is going to be several hundred pages and marking every paragraph accordingly would be (shall we say) less than an optimal solution. – bishopcranmer Apr 12 '14 at 13:32

That is a bug in eledmac. Could you please try the fix?

• Let me be sure I have properly followed your orders. 1) Run latex on eledmac.ins (done). 2) Put eledmac.sty in the same directory as my test file (done). 3) Run latex on my test file 3 times (done). Still no joy. And I'm still getting the Extra \endgroup. l.45 \endgroup error. Oh yes, one other thing I tried. After a couple of tries, I also put the new .sty file where the old one is, just in case it was some sort of path issue. – bishopcranmer Apr 12 '14 at 16:27
• Well, you fixed the Extra \endgroup issue! :-) It may be helpful for you to know that the foo.2 file remains a zero byte file; whereas the foo.1 file has 10 lines of \@l[1][1], as I guess it should (there being 10 lines in the 1st stanza). – bishopcranmer Apr 12 '14 at 21:11