* 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
* Re: Bare oc-csl author variants?
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 14:41 ` Timothy
1 sibling, 1 reply; 8+ messages in thread
From: Bruce D'Arcus @ 2021-10-05 11:24 UTC (permalink / raw)
To: Timothy; +Cc: Org Mode List
On Tue, Oct 5, 2021 at 1:35 AM Timothy <tecosaur@gmail.com> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bare oc-csl author variants?
2021-10-05 11:24 ` Bruce D'Arcus
@ 2021-10-05 13:16 ` Timothy
2021-10-05 13:26 ` Bruce D'Arcus
0 siblings, 1 reply; 8+ messages in thread
From: Timothy @ 2021-10-05 13:16 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 558 bytes --]
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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bare oc-csl author variants?
2021-10-05 13:16 ` Timothy
@ 2021-10-05 13:26 ` Bruce D'Arcus
2021-10-05 14:34 ` John Kitchin
0 siblings, 1 reply; 8+ messages in thread
From: Bruce D'Arcus @ 2021-10-05 13:26 UTC (permalink / raw)
To: Timothy; +Cc: Org Mode List
On Tue, Oct 5, 2021 at 9:19 AM Timothy <tecosaur@gmail.com> 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
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bare oc-csl author variants?
2021-10-05 13:26 ` Bruce D'Arcus
@ 2021-10-05 14:34 ` John Kitchin
0 siblings, 0 replies; 8+ messages in thread
From: John Kitchin @ 2021-10-05 14:34 UTC (permalink / raw)
To: Bruce D'Arcus; +Cc: Org Mode List, Timothy
[-- Attachment #1: Type: text/plain, Size: 824 bytes --]
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 <bdarcus@gmail.com> wrote:
> On Tue, Oct 5, 2021 at 9:19 AM Timothy <tecosaur@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1489 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Bare oc-csl author variants?
2021-10-05 5:26 Bare oc-csl author variants? Timothy
2021-10-05 11:24 ` Bruce D'Arcus
@ 2021-10-05 14:41 ` Timothy
2021-10-05 15:09 ` Bruce D'Arcus
2021-10-25 13:47 ` Timothy
1 sibling, 2 replies; 8+ messages in thread
From: Timothy @ 2021-10-05 14:41 UTC (permalink / raw)
To: Org Mode List
[-- Attachment #1: Type: text/plain, Size: 214 bytes --]
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
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-oc-csl-Support-bare-author-citations.patch --]
[-- Type: text/x-patch, Size: 1376 bytes --]
From 88f8bb7bc8726c20f3cdd4e8d47d1b487b1c2cd7 Mon Sep 17 00:00:00 2001
From: TEC <tec@tecosaur.com>
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
^ permalink raw reply related [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).