[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bare oc-csl author variants?
From: |
Timothy |
Subject: |
Bare oc-csl author variants? |
Date: |
Tue, 05 Oct 2021 13:26:51 +0800 |
User-agent: |
mu4e 1.6.5; emacs 28.0.50 |
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