From lyx-users Tue May 29 14:31:49 2012 From: Richard Heck Date: Tue, 29 May 2012 14:31:49 +0000 To: lyx-users Subject: Re: Managing acknowledgements and disclosures? Message-Id: <4FC4DDD5.7070809 () comcast ! net> X-MARC-Message: https://marc.info/?l=lyx-users&m=133830214603266 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------020109000305090001040108" This is a multi-part message in MIME format. --------------020109000305090001040108 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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 --------------020109000305090001040108 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit 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

--------------020109000305090001040108--