[Top][All Lists]

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

Re: put footnote in a variable

From: Aaron Hill
Subject: Re: put footnote in a variable
Date: Thu, 01 Nov 2018 03:12:29 -0700
User-agent: Roundcube Webmail/1.3.6

On 2018-11-01 2:59 am, Gianmaria Lari wrote:
Ahem.... I found another issue Aaron.

Suppose you have a variable containing the music and the reference to your
footnote code. Something like this:

var = {a b c d \myfootnote e f g a}

If you 'use' the variable multiple time in your score you probably don't
want to display the footnote multiple times. So if you write

{ \var \var \var }

you probably want just one footnote.

So I tried to write

var = {a b c d \tag #'footnotetag {} e f g a}

and then...

{\pushToTag #'footnotetag \myfootnote \var \var \var}

but this does not compile.
Does exists a simple workaround to make it working? (I made different
experiments without success). If there is no simple solution, no problem,
don't waste your time. Consider this just a curiosity. Thanks a lot,

To clarify, when you use { \var \var \var }, is it your intention that you want the footnote to be shared amongst the multiple instantiations?

If that is the case, then there is an edge case that would need to be addressed too. Imagine if \var occurs on multiple pages. Each one would ideally need a footnote on its own page, but if two (or more) instances of \var occur on the same page, then you would ideally want them to be able to share.

Unfortunately, I haven't dug into the footnote code enough to know whether such a scheme is possible. I think each \footnote is uniquely identified behind the scenes. Obviously, you can always cheat and simulate the footnote markup wherever you see fit, but it would be handy to have a more automated system.

-- Aaron Hill

reply via email to

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