modifying citation format

janwillem van dijk wrote:

In the main text of a book, with only one reference table for all
chapters, a reference will look like [Rutherford 1952]. In the table,
the references will be listed in alphabetical order as:


[Rutherford 1952] Rutherford, E. Chadwick, J. Ellis, C.D. & Pool, M.L.
Radiations from Radioactive Substances. American Journal of Physics 20
(7), 459 (1952).

How do I get this [lastName year] in the mystyle.csl script.
Essentially I do not see how I get the last name of the first author
as a separate item.

Ah, the last name of the first author.

Well, you can use a “form” attribute value of “short” for the first part.

For the second, we’ve never explicitly looked at an example like this;
there’s nothing explicit in CSL about a first author.

I’m actually not sure we could do this, and we’ll probably need some
changes in the schema and in the Zotero code.

At first I thought you might just set the et-al rules options for “1”
and “1”, but that applies globally to a particular context (say a
citation), while you want to be able to use it in the bibliographic list
too (as the label).

One option might be something like:

...

… and then call that macro from the respective places.

My only worry about a variable like “first-author” is it might be too
inflexible.

With that in mind, perhaps this would be better?

Anyone have any opinions or better ideas?

Bruce

janwillem van dijk wrote:

Thanks, this helped me halfway. I added the macro:





and in the section

The result is:
1952] Rutherford, E. Chadwick, J. Ellis, C.D. & Pool, M.L. Radiations
from Radioactive Substances. American Journal of Physics 20 (7), 459
(1952).

So I do not get the [name part. The second option for <names …/>
makes no difference.

Right, because (among other things) it’s not valid. I was thinking
through ways to change CSL to accommodate what you want; it’s doesn’t now.

Bruce