emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bare oc-csl author variants?
@ 2021-10-05  5:26 Timothy
  2021-10-05 11:24 ` Bruce D'Arcus
  2021-10-05 14:41 ` Timothy
  0 siblings, 2 replies; 8+ messages in thread
From: Timothy @ 2021-10-05  5:26 UTC (permalink / raw)
  To: Org Mode List

[-- Attachment #1: Type: text/plain, Size: 1129 bytes --]

Hi All,

I was recently citing something and wanted to mention the author and so tried
[cite/a/b:@] and was surprised to see it didn’t work. Looking at oc-csl.el I see
that we only define the following author variants:
• `a/c'
• `a/f'
• `a/cf'

Is there any reason why we haven’t added `a/b', `a/bc', `a/bf', `a/bcf' ?
From a quick test, this seems to work as expected:
┌────
│ (`(,(or "author" "a") . ,variant)
│  (pcase variant
│    ((or "caps" "b") '(:mode author-only :suppress-affixes t))
│    ((or "caps" "c") '(:mode author-only :capitalize-first t))
│    ((or "full" "f") '(:mode author-only :ignore-et-al t))
│    ((or "bare-caps" "bc") '(:mode author-only :suppress-affixes t :capitalize-first t))
│    ((or "bare-full" "bf") '(:mode author-only :suppress-affixes t :ignore-et-al t))
│    ((or "caps-full" "cf") '(:mode author-only :capitalize-first t :ignore-et-al t))
│    ((or "bare-caps-full" "bcf") '(:mode author-only :suppress-affixes t :capitalize-first t :ignore-et-al t))
│    (_ '(:mode author-only))))
└────

All the best,
Timothy

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-25 13:48 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-05  5:26 Bare oc-csl author variants? Timothy
2021-10-05 11:24 ` Bruce D'Arcus
2021-10-05 13:16   ` Timothy
2021-10-05 13:26     ` Bruce D'Arcus
2021-10-05 14:34       ` John Kitchin
2021-10-05 14:41 ` Timothy
2021-10-05 15:09   ` Bruce D'Arcus
2021-10-25 13:47   ` Timothy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).