From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Rasmus <rasmus@gmx.us>
Cc: emacs-orgmode@gnu.org
Subject: Re: oc-biblatex and biblatex substyles
Date: Fri, 10 Dec 2021 10:54:45 +0100 [thread overview]
Message-ID: <8735n0ss2i.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87mtlourwg.fsf@gmx.us> (rasmus@gmx.us's message of "Sun, 28 Nov 2021 18:11:27 +0100")
Hello,
Rasmus <rasmus@gmx.us> writes:
> I wonder if oc-biblatex should support loading biblatex-derived libraries,
> e.g. biblatex-chicago?
>
> There’s a quite a few of these libraries:
>
> $ tlmgr search --global "biblatex-" | wc -l
> 66
>
> (This is somewhat overestimating the true number of “biblatex-*”
> packages).
>
> These libraries are typically nie because they are (i) easier to configure
> than biblatex for a specific style and (ii) actually support some
> \usepackage keywords that can’t be used by biblatex (e.g. ibidtracker for
> biblatex-chicago).
>
> Thus, it might be able to at least support
>
> #+cite_export: biblatex-$SUBSTYLE
>
> E.g. #+cite_export: biblatex-chicago. But oc-biblatex would likely also
> have to be able to pickup biblatex-* packages in
> org-latex-(default-)packages-alist...
>
> So maybe it’s a can of worms?
I don't know enough about BibLaTeX to answer that question. What does it
entail to "support loading biblatex-derived libraries" in practical
terms? I assume \usepackage{biblatex-chicago} instead of
\usepackage{biblatex}, with a different set of options and commands,
too.
It may be possible to define a new variable, e.g.,
‘org-cite-biblatex-package‘, defaulting to ("bilatex" . nil). It would
contain entries like (SUBSTYLE . OPTIONS) and would be used to build the
proper \usepackage invocation.
I also plan to allow custom commands in "oc-biblatex.el", so it could
also handle commands introduced by the substyles.
How we would select substyle from the document is not clear, tho.
Another possibility it to write, e.g., "oc-biblatex-chicago.el" and
define a new ‘biblatex-chicago’ export processor, re-using most
functions from "oc-biblatex.el". It would probably only be necessary to
re-define ‘org-cite-biblatex-export-citation’ and
‘org-cite-biblatex-prepare-preamble’.
WDYT?
Regards,
--
Nicolas Goaziou
next prev parent reply other threads:[~2021-12-10 9:56 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-28 17:11 oc-biblatex and biblatex substyles Rasmus
2021-12-10 9:54 ` Nicolas Goaziou [this message]
2021-12-10 16:14 ` Thomas S. Dye
2021-12-12 15:25 ` Nicolas Goaziou
2021-12-12 18:37 ` Thomas S. Dye
2021-12-12 18:46 ` Nicolas Goaziou
2021-12-12 19:15 ` Thomas S. Dye
2021-12-12 20:31 ` Nicolas Goaziou
2021-12-12 21:40 ` Thomas S. Dye
2022-01-06 21:26 ` Rasmus
2022-01-06 21:45 ` Rasmus
2022-01-06 21:46 ` Rasmus
2022-01-06 22:17 ` Thomas S. Dye
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8735n0ss2i.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=emacs-orgmode@gnu.org \
--cc=rasmus@gmx.us \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.