emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* PATCH allow explicit style= in #+cite_export: biblatex
@ 2024-04-13  7:14 Pedro Andres Aranda Gutierrez
  2024-04-13 14:33 ` Ihor Radchenko
  0 siblings, 1 reply; 14+ messages in thread
From: Pedro Andres Aranda Gutierrez @ 2024-04-13  7:14 UTC (permalink / raw)
  To: Org Mode List

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

 

^ permalink raw reply related	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-04-26 12:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-13  7:14 PATCH allow explicit style= in #+cite_export: biblatex Pedro Andres Aranda Gutierrez
2024-04-13 14:33 ` 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

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