Re: [PATCH 0/2] Rebase of the --latex-footenotes patch

Guenter Milde via Docutils-develop <[email protected]> Fri, 25 Jul 2025 05:26:18 -0000 (UTC)
Newsgroups gmane.text.docutils.devel
Message-ID <[email protected]>
Hi Matěj,

On 2025-07-21, Matěj Cepl wrote:

...
> I found to my unpleasant surprise
> that rst2xetex doesn’t produce correct LaTeX footnotes, but
> something weird, which certainly cannot be controlled by the
> standard LaTeX tools.

> I have found this patch, and decided to at least rebase it
> against the current master branch. I needed to fix tests, but
> otherwise the test suite now seems to pass.

> What do you think?

Thanks for the patch to a long-standing TODO item.
I'll look into it once the long overdue release 0.22 is out.

The example article shows another problem: 

In HTML it is simple to use footnotes as endnotes. In LaTeX, we would
like a different layout for endnotes vs. footnotes. (The current
implementation only works (almost) OK, if the footnotes are placed
immediately after the block-level element with the footnote reference.)

BTW: 

In your article, footnotes like ::

  .. [#] t. j. M. Aurelia a Lucia Vera.
  
are typeset "strange", because "t.", "j.", and "M." each start an
enumerated list (loweralpha) so you get 3 nested lists with just one item
"Aurelia a Lucia Vera".
You may need to escape the letter or the dot, see the "Caution" admonition in 
https://docutils.sourceforge.io/docs/ref/rst/restructuredtext.html#enumerated-lists

OTOH, ::

  .. [#] t, j. jelikož Loga se dohledali a dovážili násilným
     hledáním a rozvažováním.

does not become a list but I suspected that the comma is a typo.


Günter



_______________________________________________
Docutils-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-develop

Please use "Reply All" to reply to the list.