timj / mn2e-bst

Monthly Notices of the Royal Astronomical Society bibtex style file
13 stars 5 forks source link

First mention in caption confuses \mniiiauthor #10

Closed nxg closed 10 years ago

nxg commented 10 years ago

If the first use of \mniiiauthor is in a \caption, then it is expanded to its 'second-use' form (the '...et al' version), and never expanded to its 'first-use' form. See attachment.

nxg commented 10 years ago

For example, https://gist.github.com/nxg/8946195

timj commented 10 years ago

Isn't it a bit difficult to work out where the first occurrence might be? The caption could be first in the tex document but appear on the page after the text in the body that references it. Captions should probably always use one form.

timj commented 10 years ago

PS In some sense Github does not support attachments but they probably would prefer a gist.

nxg commented 10 years ago

True. I think, on reflection, that the 'first occurrence' of a citation in caption is probably, effectively, in the \begin{document}, when the .aux file is read in. This of course is not helpful. The \mniiiauthor macro probably needs to detect that it's in a caption (I think I know how to do that) and (i) always use one form or another (possibly just the short form), and (ii) not do its 'seen once' trick in that context.

nxg commented 10 years ago

Do you have a view on this, @keithtsmith?