Supporting \citet{}

I’ve been looking at the “\citet{}” issue raised by a number of
LaTeXers, and I think it can be supported without too much trouble.
The CSL ticket is here:

http://sourceforge.net/tracker/?func=detail&aid=2772639&group_id=117435&atid=678021

No changes would be required to CSL. All that is needed is an API
option, passed in the same way as the cite locator, for “author-only”,
as a companion to the (non-CSL) “suppress-author” option. The plugins
would require an additional radio-button tick-box in the cite preview
menu: “Citation number/author in text”. This would cause the plugin
to invoke the processor twice, once with the author-only option, and
again with the suppress-author option, and place the returned strings
in the appropriate locations in the document. This processing
sequence would deliver strings as follows (in the descriptions below,
“decorations” refers to formatting, but does not include CSL-supplied
affixes):

  • With author-only + suppress-author

** Author-date styles and note styles

author-only
– returns the result of any names environment in the cite, stripped
of decorations.
suppress-author
– returns the cite less the author name, with decorations (same as current)

** Citation number styles

author-only
– returns the citation number with the locale string for “Reference”,
capitalized, plus the reference number stripped of decorations.
suppress-author
– returns nothing

  • With suppress-author alone

** Author-date styles and note styles

suppress-author
– returns the cite less the author name, with decorations (same as current)

** Citation number styles

suppress-author
– returns the citation number, with decorations (same as current)

This isn’t a CSL feature, I think, but I’m raising it here before
posting on zotero-dev. It would permit Zotero to support citation
styles common in Chinese publishing, both in English and in Chinese.
Into the bargain, it would provide support for the \citet{} option for
the benefit of LaTeX users who would like to have this behavior.

Frank

Am not entirely following this (but I like the "no changes to CSL"
point!), but would just say that we need to consider Andrea’s
pandoc/markdown use case here. Does this approach also work in a
markdown extension?

Am not entirely following this (but I like the "no changes to CSL"
point!), but would just say that we need to consider Andrea’s
pandoc/markdown use case here. Does this approach also work in a
markdown extension?

I suppose that testing for this use case would be optional, since
neither suppress-author (currently offered by Zotero) nor author-only
are represented in the schema.

Frank