On 05/21/2012 10:31 PM, Chris Hennick wrote:
Tonight I decided that when I was citing books or reprints that had been given to me, I should probably add an acknowledgement, like so:

    The authors wish to thank donors for the following reference
    materials: [#] from Jane Doe, [#] from John Doe, and [#, #] from
    anonymous sources.


However, I'll have to manually edit this acknowledgement if I drop one of those sources, or if I receive and cite another reprint. It also occurs to me that I'd have the same issue if I were buying source materials with grant money, since then the citations would determine which grant numbers went on which papers. (At least, that's how I understand funding disclosure, although as a grad student I'm new to the subject.)

Is it possible in LyX to automatically manage acknowledgements and grant disclosures, when some of them are tied to particular citations?

The answer is that it should be possible to do this in LaTeX---you can do anything in LaTeX---but it is not trivial.

Most bibliographical citations print a "note" field. One could put into the note field a LaTeX command that would add an acknowledgement to some existing list of acknowledgements. So you'd have something like:
    \def\addtoacks#1{
        \@ifundefined\myacks
            {\def\myacks{#1}}
            {\def\myacks{\myacks; #1}}}
to set it up, and then in each thing you want to acknowledge, in the BibTeX note field:
    \addtoacks{\cite{mykey}, from Jane Doe}
or whatever. The nice thing about this is that the acknowledgements will appear in order, though you won't get the collapse [#, #]. The bad thing is that this version won't work unless the acknowledgement is printed after the bibliography, which may not be what you want. In that case, you could try printing the acknoweldgement to a file and then loading that file on a later run of LaTeX, but that gets more complicated.

Richard

Reply via email to