On 09/08/2011 09:10 PM, Lisa Andrews wrote:
I understand that it is not possible to insert a footnote inside a footnote.
However, I notice that it is possible to insert a footnote inside a
footnote if it is inside a branch.
The pdf output does not show the contents of such nested footnotes,
but it does show the index.
I was wondering if this is a bug or if it has a potential use?
It is important for me because I have a branch to use with footnotes.
I have the following two commands defined in default.def;
\define "footnotebranch" "command-sequence branch-insert
mybranch;unicode-insert 00A7;footnote-insert"
\define "exitfootnotebranch" "command-sequence
escape;inset-toggle;char-forward;unicode-insert 0020"
(0020 is a space, 00A7 is a section-sign which does not seem to be
callable from Lyx with self-insert)
I would like to use command-alternatives to bind these two commands to
my F12 key.
\bind "F12" "command-alternatives footnotebranch; exitfootnotebranch"
When called outside a footnote, it would create the footnote inside
its branch (using the section-sign 00A7 as a marker), but when I've
finished typing I should be able to hit F12 again and because one
cannot have footnotes inside footnotes it should escape the insets and
collapse them.
Everything seems to work well except Lyx allows the creation of the
footnote within a branched footnote, even though I dont see how it can
use this.
Thanks for the detailed report. This is a bug. As you know, LyX will
prevent you from putting a
footnote directly inside a footnote, and it will let you put a footnote
in a branch; but it does not
check "up the tree", so to speak, to see what the branch itself is
inside. It should, since branches
are a special sort of case. Unfortunately, I can't remember off-hand how
hard that is to do, i.e.,
to find the containing inset from one we are inside.
Can you please file a bug on trac about this?
Richard