gregorio-project / gregorio

The Gregorio Project
http://gregorio-project.github.io
Other
164 stars 43 forks source link

Footnotes do not display or increment correctly #1500

Closed adunning closed 3 years ago

adunning commented 3 years ago

The \footnote command produces a footnote reference in the correct position, but numbers are not generated in sequence, and the footnote itself does not display.

The footnote text displays with a combination of \footnotemark and \footnotetext, but this still does not increment the sequence correctly.

Screenshot 2020-12-11 at 15 18 46 Screenshot 2020-12-11 at 15 20 19
\documentclass{article}

\usepackage{gregoriotex}

\begin{document}

\gabcsnippet{(c4) Mi(g)se<v>\footnote{test footnote 1}</v>(g)re(hv)re.<v>\footnote{test footnote 2}</v>(gf) (::)}

\gabcsnippet{(c4) Mi(g)se<v>\footnotemark</v>(g)re(hv)re.(gf) (::)}

\footnotetext{test footnote 3}

\end{document}
adunning commented 3 years ago

I also tried using the footnotehyper package and savenotes environment, which doesn't work but might help diagnose the problem. I suspect it is related to #1494:

Screenshot 2020-12-11 at 15 36 47
\documentclass{article}

\usepackage{gregoriotex}
\usepackage{footnotehyper}

\begin{document}

\begin{savenotes}

\gabcsnippet{(c4) Mi(g)se<v>\footnote{test footnote 1}</v>(g)re(hv)re.<v>\footnote{test footnote 2}</v>(gf) (::)}

\end{savenotes}

\end{document}
adunning commented 3 years ago

For anyone in the future who might similarly be trying to add commentary to a Gregorio score, endnotes at least are possible with the enotez package:

\documentclass{article}
\usepackage{gregoriotex}
\usepackage{enotez}

\begin{document}
\gabcsnippet{(c4) Test.<v>\endnote{test1}</v>(f) Test.<v>\endnote{test2}</v>(f)}

\printendnotes
\end{document}
rpspringuel commented 3 years ago

This is probably due to the fact that text in the lyrics is put in boxes and processed multiple times in order to get the spacing correct. My advice would be to fake the footnote marks in the score and manually add the footnote text after it. I do not know of anyway to fix this.

adunning commented 3 years ago

Thank you at least for offering an assessment. Should this be closed as unfixable?

rpspringuel commented 3 years ago

Good point.