Uwe Brauer wrote:
>>>>> "Andreas" == Andreas Roehler
<andreas.roehler(a)online.de> writes:
> Footnote mode still is far from perfection. Used
> `footnote-init' to work around some bugs, which should
> be cured in footnote.el rather.
> Added
> (defun fi-Footnote-set-latin ()
> "Set latin style with empty footnote-start- and end-tag. "
> (interactive)
> (Footnote-set-style 'latin)
> (setq footnote-start-tag "")
> (setq footnote-end-tag "")
> (when (interactive-p) (message "style: %s %s %s" footnote-style
(concat "\"" footnote-start-tag "\"") (concat
"\"" footnote-end-tag "\""))))
> Setting footnote-start-tag, footnote-end-tag to the
> empty string required a patch, as footnote.el assumed
> it never nil.
> Otherwise latin style too is always provide with
> brackets or the like.
I just did a quick testing [1]:
In the problematic files footnote only works with the sort of clumsy
tags and that only works 100 % with
(add-hook 'LaTeX-mode-hook 'fi-Footnote-set-my-preferred-tags)
etc.
Is that to be expected you did you get it to work with the normal tags
even for that problematic files?
Can't see an easy to use all-at-one solution while storing all footnote-format
info into plain text files.
You may use any style in just one session, as the footnotes are remembered
by property then, not by regexp AFAIU.
Starting from the scratch you must not call footnote-init first,
rather plain Footnote-add-footnote. Afterwards footnote-init should not interfere.
If it interferes, try uncomment
;; (unless footnote-initialised
and its closing counterpart.
I've reflected a mode, where footnote-init is just called once.
But then you will run into renumbering-bugs from footnote.el probably.
If you start with a file, which has footnotes inside already, you can't use
the footnote expression elsewhere, it must be unique.
Maybe a solution would be hiding parts of that clumsy tag then?
This will slow down XEmacs probably, as it struggles already with fontification,
outline-mode etc.
Sorry so far.
Andreas
Uwe
Footnotes:
[1] and may be I will not have time till monday for more detailed
testing.
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta