Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: sameword-numbering broken in endnotes with memorybreaks #831

Open
floriandk opened this issue Dec 2, 2019 · 1 comment
Open

bug: sameword-numbering broken in endnotes with memorybreaks #831

floriandk opened this issue Dec 2, 2019 · 1 comment

Comments

@floriandk
Copy link

@floriandk floriandk commented Dec 2, 2019

Version

occurs on up-to-date reledmac 2019/11/28 v2.32.2, but the problem has obviously been there for years unnoticed (tested on TL17 reledmac 2018/02/28 v2.26.6)

Regression

Description

Working with very long consecutive texts without chapterbreaks the suggestion of the reledmac-manual §5.2.7 to introduce memorybreaks is still valid, as it drastically reduces compilation time (8.5min vs 45min for one of my projects; XeLaTeX will even stall because of memory-limitations).

But the sameword-mechanism is broken when using endnotes: Identical edtexts will only be annotated correctly in the p-sections directly before and after the last \memorybreak.

There is logged one error irregardless of how many p-sections there are:

./memorybreakbug.Aend:27: Missing number, treated as zero.
<to be read again> 
}
l.27 [1]{cc}}{A}{A}{}{L}{edtxt@3}

Minimal Working Example

\documentclass{scrartcl}

\usepackage[series={A},nofamiliar,noeledsec,noledgroup,draft]{reledmac}

\newcommand{\memorybreak}{\pausenumbering\resumenumbering}
%%the sameword-numbering is correct when using footnotes instead:
%\let\Aendnote=\Afootnote


\begin{document}

\beginnumbering
\pstart
aa bb %
\edtext{\sameword[1]{cc}}{%
	\Aendnote{A}} dd aa bb \sameword{cc} dd
\pend\memorybreak
\pstart
aa bb %
\edtext{\sameword[1]{cc}}{%
	\Aendnote{A}} dd aa bb \sameword{cc} dd
\pend\memorybreak
\pstart
aa bb %
\edtext{\sameword[1]{cc}}{%
	\Aendnote{A}} dd aa bb \sameword{cc} dd
\pend\memorybreak
\pstart
aa bb %
\edtext{\sameword[1]{cc}}{%
	\Aendnote{A}} dd aa bb \sameword{cc} dd
\pend
\endnumbering

\doendnotes{A}

\end{document}
@maieul

This comment has been minimized.

Copy link
Owner

@maieul maieul commented Dec 2, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.