From: Timothy <tecosaur@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Bare oc-csl author variants?
Date: Tue, 05 Oct 2021 13:26:51 +0800 [thread overview]
Message-ID: <87ilycghkh.fsf@gmail.com> (raw)
[-- 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
next reply other threads:[~2021-10-05 5:36 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-10-05 5:26 Timothy [this message]
2021-10-05 11:24 ` Bare oc-csl author variants? 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ilycghkh.fsf@gmail.com \
--to=tecosaur@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).