Discussion:
[Docutils-users] weird footnotes in the generated LaTeX
Matěj Cepl
2017-01-28 18:01:20 UTC
Permalink
Hi,

I have written a bit longer document using rST (all discussed
files are in https://mcepl.fedorapeople.org/tmp/harry_potter/),
and then convered it to LaTeX just with plain rst2xetex (using
0.13.1). The resulting file is
https://mcepl.fedorapeople.org/tmp/harry_potter/harry-potter-odpoved-brachovi.pdf
and the problem I have it is that footnotes are quite often not
on the page they referred to (see page 8 for an example). When
I just hand-edited the LaTeX file and replaced all
\DUfootnotetext & \DUfootnotemark constructs with plain
\footnote and suddenly all footnotes are placed correctly (as
expected from LaTeX; the file
harry-potter-odpoved-brachovi-hand_edited.pdf).

Is there some configuration or something which would persuade
docutils not to mess with footenotes and use plain \footnote{}
in LaTeX?

Thank you,

Matěj
--
https://matej.ceplovi.cz/blog/, Jabber: ***@ceplovi.cz
GPG Finger: 3C76 A027 CA45 AD70 98B5 BC1D 7920 5802 880B C9D8

"Anything essential is invisible to the eyes", the little prince
repeated, in order to remember.
"It's the time you spent on your rose that makes your rose so
important."
"It's the time I spent on my rose ...," the little prince
repeated, in order to remember.
"People have forgotten this truth." the fox said. "But you
mustn't forget it. You become responsible forever for what
you've tamed. You're responsible for your rose..."
"I'm responsible for my rose...," the little prince repeated, in
order to remember.
-- Antoine de Saint-Exupéry: The Little Prince


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Re
Guenter Milde
2017-06-03 14:56:17 UTC
Permalink
Post by Matěj Cepl
I have written a bit longer document using rST (all discussed
files are in https://mcepl.fedorapeople.org/tmp/harry_potter/),
and then convered it to LaTeX just with plain rst2xetex (using
0.13.1).
Mind, that despite the name, rst2xetex does not generate plain TeX for XeTeX
but LaTeX for XeTeX/LuaTeX (compile with `xelatex` or `xeluatex` commands).
Post by Matěj Cepl
The resulting file is
https://mcepl.fedorapeople.org/tmp/harry_potter/harry-potter-odpoved-brachovi.pdf
and the problem I have it is that footnotes are quite often not
on the page they referred to (see page 8 for an example).
This is a know problem of the LaTeX writer.
Post by Matěj Cepl
Is there some configuration or something which would persuade
docutils not to mess with footenotes and use plain \footnote{}
in LaTeX?
There is just a TODO entry in docs/dev/todo.txt:

* footnotes

+ True footnotes with LaTeX auto-numbering (as option ``--latex-footnotes``)
(also for target-footnotes):

- attach footnote text to footnote-symbol node
- write \footnote{<footnote text>}
- consider cases where LaTeX does not support footnotes
(inside tables, headings, ...)?
- consider multiple footnote refs to common footnote text.

The problem is that in the source, the footnote text is not known when the
footnote mark is parsed. We would need a transform to connect these so that
the footnote-mark is written as \footnote{<footnote text>}

Günter


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Docutils-users mailing list
Docutils-***@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to

Loading...