Re: Bare oc-csl author variants?
Pushed as 7111ee7c.
Re: Bare oc-csl author variants?
On Tue, Oct 5, 2021 at 11:04 AM Timothy wrote: > Sounds like the general attitude is “why not?”. So I’ve turned my snippet > into a > patch and unless any concerns are raised in the next few days I’ll push it to > main. For parity, it would probably make sense to add the equivalent to oc-natbib and oc-biblatex if someone gets a chance. Bruce
Re: Bare oc-csl author variants?
Hi All, Sounds like the general attitude is “why not?”. So I’ve turned my snippet into a patch and unless any concerns are raised in the next few days I’ll push it to main. All the best, Timothy >From 88f8bb7bc8726c20f3cdd4e8d47d1b487b1c2cd7 Mon Sep 17 00:00:00 2001 From: TEC Date: Tue, 5 Oct 2021 22:36:13 +0800 Subject: [PATCH] oc-csl: Support bare author citations * lisp/oc-csl.el (org-cite-csl--create-structure-params): Add support for bare (b), bare-caps (bc), bare-full (bf), and bare-caps-full (bcf) author citation styles. --- lisp/oc-csl.el | 4 1 file changed, 4 insertions(+) diff --git a/lisp/oc-csl.el b/lisp/oc-csl.el index 3d1388075..3d8f8ed03 100644 --- a/lisp/oc-csl.el +++ b/lisp/oc-csl.el @@ -300,9 +300,13 @@ (defun org-cite-csl--create-structure-params (citation info) ;; "author" style. (`(,(or "author" "a") . ,variant) (pcase variant + ((or "bare" "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 ;; "noauthor" style. (`(,(or "noauthor" "na") . ,variant) -- 2.33.0
Re: Bare oc-csl author variants?
These would be equivalent to things like \citeauthor{key} in natbib I think. John --- Professor John Kitchin (he/him/his) Doherty Hall A207F Department of Chemical Engineering Carnegie Mellon University Pittsburgh, PA 15213 412-268-7803 @johnkitchin http://kitchingroup.cheme.cmu.edu On Tue, Oct 5, 2021 at 9:29 AM Bruce D'Arcus wrote: > On Tue, Oct 5, 2021 at 9:19 AM Timothy wrote: > > > > It’s just odd to have a name without any other citation marker. How > > > would a reader know it’s a citation? > > > > For context, I’m basically just using this as a way to insert the > author’s name > > without any chance of typos. > > Right. > > I don't see any downside in adding them myself. > > Bruce > >
Re: Bare oc-csl author variants?
On Tue, Oct 5, 2021 at 9:19 AM Timothy wrote: > > It’s just odd to have a name without any other citation marker. How > > would a reader know it’s a citation? > > For context, I’m basically just using this as a way to insert the author’s > name > without any chance of typos. Right. I don't see any downside in adding them myself. Bruce
Re: Bare oc-csl author variants?
Hi Bruce, >> Is there any reason why we haven’t added `a/b’, `a/bc’, `a/bf’, `a/bcf’ ? > > There is a reason, though it may not be the strongest. > > It’s just odd to have a name without any other citation marker. How > would a reader know it’s a citation? For context, I’m basically just using this as a way to insert the author’s name without any chance of typos. Some thing was introduced in Doe (2019), and some comments about it. To demonstrate X, Doe considers … which allows Doe to …. All the best, Timothy
Re: Bare oc-csl author variants?
On Tue, Oct 5, 2021 at 1:35 AM Timothy wrote: > Is there any reason why we haven’t added `a/b', `a/bc', `a/bf', `a/bcf' ? There is a reason, though it may not be the strongest. It's just odd to have a name without any other citation marker. How would a reader know it's a citation? Is it for cases similar to what Rudy asked about the other day, where you basically have a split citation? Doe says "something" (2019, p2). In his case, he was wanting to do: Doe (2019) says "something" (p2). If so, may as well add them. Bruce
Bare oc-csl author variants?
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