From: Pedro Andres Aranda Gutierrez <paaguti@gmail.com>
To: Org Mode List <emacs-orgmode@gnu.org>
Subject: PATCH allow explicit style= in #+cite_export: biblatex
Date: Sat, 13 Apr 2024 09:14:36 +0200 [thread overview]
Message-ID: <2E7CA21A-ADA7-49EA-89BF-784045D1F777@gmail.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 169 bytes --]
HI,
Attached is a small patch to allow explicitly adding style= in the biblatex export options, to increase consistency with
Customisation variables.
Best, /PA
[-- Attachment #2: 0001-Allow-style-in-cite_export.patch --]
[-- Type: application/octet-stream, Size: 1618 bytes --]
From b74faec1602637914248df29f8c319f29d5a2544 Mon Sep 17 00:00:00 2001
From: "Pedro A. Aranda" <paranda@it.uc3m.es>
Date: Sat, 13 Apr 2024 08:17:04 +0200
Subject: [PATCH] Allow style= in cite_export
---
lisp/oc-biblatex.el: Allow style= in #+cite_export.
This is a more natural transition for people coming from TeX
doc/org-manual.org: Reflect the change in the documentation.
doc/org-manual.org | 4 ++++
lisp/oc-biblatex.el | 2 ++
2 files changed, 6 insertions(+)
diff --git a/doc/org-manual.org b/doc/org-manual.org
index 6c699ae1e..32604cd54 100644
--- a/doc/org-manual.org
+++ b/doc/org-manual.org
@@ -17607,6 +17607,10 @@ your LaTeX installation, it won't export to anything but PDF.
: #+cite_export: biblatex numeric,backend=bibtex
+or, specifying ~style=~ explicitly:
+
+: #+cite_export: biblatex backend=bibtex,style=numeric
+
#+vindex: org-cite-biblatex-options
#+texinfo: @noindent
specifies the =biblatex= export processor with the default =numeric=
diff --git a/lisp/oc-biblatex.el b/lisp/oc-biblatex.el
index 36c0ee7e5..f28d13316 100644
--- a/lisp/oc-biblatex.el
+++ b/lisp/oc-biblatex.el
@@ -200,6 +200,8 @@ Return a string."
(style-options
(cond
((null style) nil)
+ ;; allow the user to include "style=" anywhere in the style options
+ ((string-match "\\(^s\\|,s\\)tyle=" style) (list style))
((not (string-match "/" style)) (list (concat "style=" style)))
(t
(list (concat "bibstyle=" (substring style nil (match-beginning 0)))
--
2.37.1 (Apple Git-137.1)
[-- Attachment #3: Type: text/plain, Size: 1 bytes --]
next reply other threads:[~2024-04-13 7:15 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-04-13 7:14 Pedro Andres Aranda Gutierrez [this message]
2024-04-13 14:33 ` PATCH allow explicit style= in #+cite_export: biblatex Ihor Radchenko
2024-04-14 5:22 ` Pedro Andres Aranda Gutierrez
2024-04-14 5:30 ` Pedro Andres Aranda Gutierrez
2024-04-14 7:16 ` Pedro Andres Aranda Gutierrez
2024-04-17 6:22 ` Pedro Andres Aranda Gutierrez
2024-04-17 7:00 ` Pedro Andres Aranda Gutierrez
2024-04-17 15:45 ` Pedro Andres Aranda Gutierrez
2024-04-21 13:21 ` Ihor Radchenko
2024-04-21 15:38 ` Pedro Andres Aranda Gutierrez
2024-04-22 19:46 ` Ihor Radchenko
[not found] ` <CAO48Bk_2xjGrN9Qgfe7hpnDnw=do5geKe3XnEA8wJr_dn8SZYg@mail.gmail.com>
[not found] ` <87ttjspaor.fsf@localhost>
[not found] ` <CAO48Bk91MjUAi-AUbhKfKEZGQcJbb1yZWCNoM8U+cObUCH0bVw@mail.gmail.com>
2024-04-24 17:06 ` Ihor Radchenko
2024-04-25 5:34 ` Pedro Andres Aranda Gutierrez
2024-04-26 12:24 ` Ihor Radchenko
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=2E7CA21A-ADA7-49EA-89BF-784045D1F777@gmail.com \
--to=paaguti@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).