1

Building on a similar question I asked, and its answer: Given that in reledmac a series (B below) of two-column critical footnotes can be made single-spaced in a double-spaced document according to the method below, how can a series (A below) of paragraph footnotes also be made single-spaced? Using the same method for A (which works for B) returns an error.

\documentclass[12pt]{article}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}

\Xarrangement[A]{paragraph}
%\makeatletter    % make A single-spaced: doesn't work
% \Xbhooknote[A]{\setstretch {\setspace@singlespace}}
% \Xbhookgroup[A]{\setstretch {\setspace@singlespace}}
%\makeatother    % "unidentified control sequence" error here, if lines are uncommented
%\let\footnote\footnoteA

\Xarrangement[B]{twocol}
\Xcolalign{\justifying}
\makeatletter  % make B single-spaced (no errors)
 \Xbhooknote[B]{\setstretch {\setspace@singlespace}}
 \Xbhookgroup[B]{\setstretch {\setspace@singlespace}}
\makeatother
\let\footnote\footnoteB

\usepackage[doublespacing]{setspace}
\usepackage{lipsum}

\begin{document}
\beginnumbering
\pstart
\lipsum*[1]\edtext{Lipsum}{
    \Afootnote{\lipsum*[3]}  % paragraph footnote: needs to be single-spaced
    \Bfootnote{\lipsum*[4]}}  % two-col footnote: is single-spaced
\lipsum*[6-7]
\pend
\endnumbering
\end{document}
fpsvogel
  • 461

1 Answers1

2
  1. For some technical reasons, the setting of Xbhookgroup on paragraphed notes is executing immediatly when calling \Xbhookgroup. You have loaded setspace after imakeidx, so \setspace@singlespace is not yet know when \Xbhookgroup is called. Just call setspace after you reledmac setting. It is also need to prevent false line.
  2. the doublespacing option of setspaceis problematic, as it make difficult the calculation of some internal parameters of reledmac for paragraphed notes. Use \AtBeginDocument{\doublespacing} instead (that just tell to LaTeX to execute \doublespacing on \begin{document}, so after the internal calculation of reledmac.

As you applies the sames hook to multiple series, you can ignore the optional argument.

So the final MWE is

\documentclass[12pt]{article}




\usepackage[]{setspace}
\AtBeginDocument{\doublespacing}
\usepackage{lipsum}
\usepackage[series={A,B},noend,noeledsec,nofamiliar,noledgroup]{reledmac}
\Xarrangement[A]{paragraph}
\Xarrangement[B]{twocol}
\Xcolalign{\justifying}
\makeatletter 
 \Xbhooknote{\setstretch {\setspace@singlespace}}
 \Xbhookgroup{\setstretch {\setspace@singlespace}}
\makeatother   

\begin{document}

\beginnumbering
\pstart
\lipsum*[1]\edtext{Lipsum}{
    \Afootnote{\lipsum*[3]}  % paragraph footnote: needs to be single-spaced
    \Bfootnote{\lipsum*[4]}}  % two-col footnote: is single-spaced
\lipsum*[6-7]
\pend
\endnumbering
\end{document}
Maïeul
  • 10,984