texi2html-bug
[Top][All Lists]
Advanced

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

Re: [Texi2html-bug] Footnote formatting


From: Reinhold Kainhofer
Subject: Re: [Texi2html-bug] Footnote formatting
Date: Sat, 30 Aug 2008 00:04:25 +0200
User-agent: KMail/1.9.9

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

Am Mittwoch, 27. August 2008 schrieb Patrice Dumas:
> On Sun, Aug 24, 2008 at 04:29:14PM +0200, Reinhold Kainhofer wrote:
> > 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...
>
> I try to keep the same style than makeinfo --html in
> examples/makeinfo.init. I updated it to format footnotes like makeinfo
> does. 

Ah, thanks. I copied that code to our .init script.
I see you needed to override the paragraph function to insert the 
[<a...>nr</a>] directly into the text before formatting. I suppose this does 
not have any side-effects on other paragraphs (since you check for "footnote" 
anyway).
It's unfortunate that the usual footnote style, which is typically found in 
all publications, is not easily supported by texi2html.

So, for now all issues I had with texi2html seem to be fixed (or easily worked 
around in our .init script). Thanks againfor all the great work and all the 
help!


Cheers,
Reinhold

PS: I see that the fourth issue (where the <p> is inserted in the wrong 
position when the footnote starts with a macro) is still present, right? (No, 
don't worry, I don't want to pressure you, I simply don't want that issue to 
be lost at all in case you missed that mail.)
- -- 
- ------------------------------------------------------------------
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)

iD8DBQFIuHJqTqjEwhXvPN0RAlf7AKCgz/3yY6WHO1TM0juI7ebUnltYaQCfSE1/
Ct0ARvTDKsAKWMLg7BnBAd0=
=eWbi
-----END PGP SIGNATURE-----




reply via email to

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