>>>> "Andreas" == Andreas Roehler
<andreas.roehler(a)online.de> writes:
Uwe Brauer wrote:
> Hello
>
> First I should say the footnote-init works great on most files,
> however it runs into problems when the files in which I want to
> add footnotes contain structures like
>
> [t,y]=ode45(f,[0:(T/600):T],[0.994;0;0;-2.00158510637908252240537862224])
> or similar,
>
> Below you find 3 files, with the following structure
Seems basically caused by the fact, chars used as
delimiters for footnotes also occur in the text.
Ways to solve this
- set footnote-start-tag and footnote-end-tag manually
to appropriate values
- have a function changing that values, like that
(defun fi-Footnote-set-my-preferred-tags ()
"Example function to set footnote-start- and end-tag. "
(interactive)
(setq footnote-start-tag "\<[[")
(setq footnote-end-tag "]]\>")
(when (interactive-p) (message "footnote start end tags: %s %s" (concat
"\"" footnote-start-tag "\"") (concat "\""
footnote-end-tag "\""))))
- introduce some detecting of existing chars in buffer,
get the style changed by Emacs.
That looks most promising, but given that the
structure [1] is
[t,y]=ode45(f,[0:(T/600):T],[0.994;0;0;-2.00158510637908252240537862224])
Which looks different to a footnote, since it contains , . ; and other
structures. I presume the minimal matlab structure would be
[0 10]
Which is different from a footnote like [10].
Couldn't the regexp search just exclude structures like
[0 10] etc.
I'm on it.
Thanks
Uwe
Footnotes:
[1] which is matlab BTW
_______________________________________________
XEmacs-Beta mailing list
XEmacs-Beta(a)xemacs.org
http://calypso.tux.org/cgi-bin/mailman/listinfo/xemacs-beta