In my thesis, I create numerous drawings using TikZ. In these drawings, I include pictures (e.g. icons of The Noun Project) using Creative Commons licenses. I thus have to acknowledge their authors.
Since my drawings can include up to a dozen of pictures, I cannot credit respective authors in the caption. I thus want to acknowledge them in a specific section in the appendix.
Question: How to conveniently store contributors name at the time I'm drawing the TikZ picture, to use them later in the appendix?
I'm expecting following behaviors:
- Contributors name storage: use a macro that stores both Author and Picture Name - e.g.
\mymacro{John Doe}{Sunrise}. If possible, I could use this macro several time in a picture (e.g. each time I load the icon) without multiple crediting author. - Acknowledgment generating: I would use a macro like
\printacknowledgementand this would generate following list:Figure 1: 'Sunrise' by John Doe, 'Curry wurst' by Erika Mustermann.
Figure 3: 'Sunrise' and 'Sunset' by John Doe.
Note that: Figure 2 is not displayed because no contributor has to be credited; in Figure 3, it should print «'Sunrise' and 'Sunset' by John Doe» and not «'Sunrise' by John Doe, 'Sunset' by John Doe»
N.B.: I do acknowledge this looks like a do-it-for-me question. I expressed requirements specification because I don't know how to achieve this, even what package I should look for. But I'm of course willing to contribute to solution development/to develop it by myself if one tells me which package/macro I should study.
Requirements are of course ideal. I'd be also happy with bulkier solutions as \mymacro{Figure number}{John Doe}{Sunrise} and «'Sunrise' by John Doe, 'Sunset' by John Doe» being printed.
Edit: the collect package mentioned in How to collect text for later usage in appendix? does not seems to enable to append a name at the end of the list.


\mymacro{John Doe}{Sunrise}\mymacro{John Doe}{Sunset}? It may be slightly easier if you're willing to type\mymacro{Sunrise and Sunset by John Doe}(i.e., manually type out the acknowledgement, but leave it to TeX to put it in the right location). – Teepeemm Feb 03 '17 at 17:19\mymacro{John Doe}{Sunrise}\mymacro{John Doe}{Sunset}(and might even have several\mymacro{John Doe}{Sunrise}): the point would be to credit authors at the time of loading the picture, so I'm sure I forget no one... but also that credits are updated if I eventually remove one picture. – ebosi Feb 03 '17 at 17:22\mymacro{John Doe}{Sunrise}several times within the same picture - i.e. each time I load the Sunrise icon) – ebosi Feb 03 '17 at 17:29\addtocontents/\addcontentslineand a patched variant of the\@starttoc-macro . I would use the datatool package for sorting out and formatting and printing the single database entries entries. – Ulrich Diez Feb 03 '17 at 18:37