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

\Xonlyside footnotes appear in the margin after the first `pages` #792

Closed
fps-vogel opened this Issue Jan 17, 2019 · 7 comments

Comments

Projects
None yet
2 participants
@fps-vogel
Copy link

fps-vogel commented Jan 17, 2019

Version of reledmac / reledpar

reledmac 2.29.0, reledpar 2.22.0a

Description of the problem

I'm creating a document with more than one series of parallel pages since between these parallel-page parts, I will have other single-page material. (Is multiple pages the way to do this? If not, how?)

The left and right sides each have their own footnotes through \Xonlyside. The problem is that in the second and later series of pages the footnotes appear in bottom margin and, if long enough, past the end of the page.

This problem does not occur if I remove \Xonlyside for all series of footnotes, but I would like to keep this feature because in my document, footnotes from one side running over onto the other side might confuse the reader.

The problem also does not occur if the footnotes are exactly the same length on either side.

Minimal Working Example

\documentclass[12pt]{article}
\usepackage[series={A,B}]{reledmac}
\usepackage{reledpar, lipsum}
\Xonlyside[A]{L}
\Xonlyside[B]{R}

\begin{document}
\begin{pages}
  \begin{Leftside}
    \beginnumbering
    \pstart
      \edtext{The}{\Afootnote{\lipsum[1]}} left side. \lipsum[1-3]
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Leftside}
  \begin{Rightside}
    \beginnumbering
    \pstart
      \edtext{The}{\Bfootnote{\lipsum[1-2]}} right side.\lipsum[1-3]
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Rightside}
\end{pages}
\Pages

\begin{pages}
  \begin{Leftside}
    \beginnumbering
    \pstart
      More on \edtext{the}{\Afootnote{\lipsum[1]}} left side. \lipsum[1-3] % if instead we put \lipsum[1-2] in the footnote, to match the right side footnote, then the footnotes do not appear in the margin
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Leftside}
  \begin{Rightside}
    \beginnumbering
    \pstart
      More on \edtext{the}{\Bfootnote{\lipsum[1-2]}} right side. \lipsum[1-3]
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Rightside}
\end{pages}
\Pages
\end{document}

@fps-vogel fps-vogel changed the title \Xonlyside footnotes in the margin after the first `pages` \Xonlyside footnotes appear in the margin after the first `pages` Jan 17, 2019

maieul added a commit that referenced this issue Jan 17, 2019

@maieul

This comment has been minimized.

Copy link
Owner

maieul commented Jan 17, 2019

  • Yes, to add normal page betwenn parallels pages, you must use multiple \Pages
  • I didn't see any problem with your MWE.
  • However, modifiyng it to understand where the problem could happen, I saw, indeed, a problem, because reledpar didnt' restore the place for the footnotes at the end of \Pages
  • So, I corrected it
  • Please try branch issue792
@fps-vogel

This comment has been minimized.

Copy link
Author

fps-vogel commented Jan 18, 2019

Thank you. The MWE now works, but in my document the problem has not disappeared. So I will do more testing as soon as I can, to find out what is causing the problem.

@fps-vogel

This comment has been minimized.

Copy link
Author

fps-vogel commented Jan 18, 2019

It appears that after the first pair of pages in the second pages environment, the footnotes appear in the margin as before. So the problem didn't appear in the corrected MWE because each pages had only one pair of pages with footnotes. The one below is longer to show the problem.

MWE:

\documentclass[12pt]{article}
\usepackage[series={A,B}]{reledmac}
\usepackage{reledpar, lipsum}
\Xonlyside[A]{L}
\Xonlyside[B]{R}

\begin{document}
\begin{pages}
  \begin{Leftside}
    \beginnumbering
    \pstart
      \edtext{Ahe}{\Afootnote{1A\lipsum[1]}} left side. \lipsum[1-3]
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Leftside}
  \begin{Rightside}
    \beginnumbering
    \pstart
      \edtext{Bhe}{\Bfootnote{1B\lipsum[1-2]}} right side.\lipsum[1-3]
    \pend
    \pstart
      \lipsum[4]
    \pend
    \endnumbering
  \end{Rightside}
\end{pages}
\Pages

Intermediate text
\begin{pages}
  \begin{Leftside}
    \beginnumbering
    \pstart
      More on \edtext{Ahe}{\Afootnote{2A\lipsum[1]}} left side. \lipsum[1-3] % first page: OK
    \pend
    \pstart
      \edtext{Ahe}{\Afootnote{3A\lipsum[1].}} left side again.\lipsum[4-7] % second page: problem
    \pend
    \endnumbering
  \end{Leftside}
  \begin{Rightside}
    \beginnumbering
    \pstart
      More on \edtext{Bhe}{\Bfootnote{2B\lipsum[1-2]}} right side. \lipsum[1-3] % first page: OK
    \pend
    \pstart
      \edtext{Bhe}{\Bfootnote{3B\lipsum[1-2]}} right side again.\lipsum[4-7] % second page: problem
    \pend
    \endnumbering
  \end{Rightside}
\end{pages}
\Pages
\end{document}

maieul added a commit that referenced this issue Jan 20, 2019

@maieul

This comment has been minimized.

Copy link
Owner

maieul commented Jan 20, 2019

The problem is not directly linked to the multiple \Pages, as without the first pages, it also happens

@maieul

This comment has been minimized.

Copy link
Owner

maieul commented Jan 20, 2019

Please try again branch issue792

@fps-vogel

This comment has been minimized.

Copy link
Author

fps-vogel commented Jan 21, 2019

Yes, that works perfectly. Thank you!

@maieul

This comment has been minimized.

Copy link
Owner

maieul commented Jan 21, 2019

@maieul maieul closed this in 70f0f18 Jan 22, 2019

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