emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Timothy <tecosaur@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: Re: Bare oc-csl author variants?
Date: Tue, 05 Oct 2021 22:41:30 +0800	[thread overview]
Message-ID: <87ee8zh6sq.fsf@gmail.com> (raw)
In-Reply-To: <87ilycghkh.fsf@gmail.com>

[-- 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

All the best,

[-- 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)

  parent reply	other threads:[~2021-10-05 15:04 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
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:

  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=87ee8zh6sq.fsf@gmail.com \
    --to=tecosaur@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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


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).