texi2html-bug
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Texi2html-bug] Footnote formatting


From: Reinhold Kainhofer
Subject: [Texi2html-bug] Footnote formatting
Date: Sun, 24 Aug 2008 16:29:14 +0200
User-agent: KMail/1.9.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Patrice,
Don't worry, this time I have no real problem, that I can't solve myself. 
Rather, I would like to give you feedback on the footnote handling of 
texi2html:

1) I don't like the default way of formatting footnotes, i.e. using 
     <h3><a href=..>(nr)</a></hr><p>footnote text</p>
which is completely different from the format that is normally used for 
footnotes in books etc: 
    <p><a href=...><sup>nr</sup></a> footnote text</p>
or
    <p><a href=...>[nr]</a> footnote text</p>

2) I tried to override this behavior in foot_line_and_ref, but unfortunately, 
the $lines already contain the <p> ..</p> tags around the text, so it's not 
so easy to get the normal footnote format in a general way. Only by assuming 
that the first line starts with <p>, one can modify it to contain the [nr] or 
<sup>nr</sup>:
    my $tmptxt =  &$anchor($footnote_id, $document_file . "#$place_id",
    $lines->[0] =~ s/^<p>/<p>$tmptxt /;
It works, but I consider this a nasty hack, relying on some internal behavior 
that might change any time...

3) I get the impression that $number_in_page does not correctly count the 
footnotes on the current page. In particular, the values of the parameters to 
foot_line_and_ref are:

FOOTNOTE: #indoc=1, #inpage=1, fn-id=FOOT1, place-id=DOCF1, 
doc-file=Point-and-click.html, fn-file=Point-and-click.html
FOOTNOTE: #indoc=2, #inpage=2, fn-id=FOOT2, place-id=DOCF2, 
doc-file=Invoking-lilypond.html, fn-file=Invoking-lilypond.html
FOOTNOTE: #indoc=3, #inpage=2, fn-id=FOOT3, place-id=DOCF3, 
doc-file=An-example-of-a-musicological-document.html, 
fn-file=An-example-of-a-musicological-document.html
FOOTNOTE: #indoc=4, #inpage=2, fn-id=FOOT4, place-id=DOCF4, 
doc-file=Invoking-lilypond_002dbook.html, 
fn-file=Invoking-lilypond_002dbook.html

As you can see, all footnotes are on different pages, so number_in_page should 
always be 1. However, after the first page with a footnote, it is always 2.

Cheers,
Reinhold
- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIsXBFTqjEwhXvPN0RAmY6AJ0X1QvXUXQsyp6bcGJH2rWjxYzWIACdGqmV
i7aLKul2tOK7zuRmrQ2ypCk=
=G8Db
-----END PGP SIGNATURE-----




reply via email to

[Prev in Thread] Current Thread [Next in Thread]