From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: Citations: strip braces {} in titles in bibliographies in basic style?
Date: Tue, 12 Dec 2023 20:42:46 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2312121941340.54828@shell3.miskatonic.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2147 bytes --]
Let's say we have a file Basic.bib, like so, with one or two pairs of braces
around words that need special case preservation:
@book{friends,
title = {{LaTeX} and Friends},
author = {van Dongen, M.R.C.},
date = {2012},
location = {Berlin},
publisher = {Springer},
doi = {10.1007/978-3-642-23816-1},
isbn = {9783642238161}
}
@book{lispandc,
title = {Lisp and {C}},
author = {Example, Example},
publisher = {Example},
date = {2023}
}
Either one or two braces works and could well be used. The Zotero extension
Better Bibtex has a FAQ explaining why it uses two by default: "because the
Bib(La)TeX case protection rules are incredibly convoluted."¹
We also have an Org file (where "/n" means no citation but the work
stills goes in the bibliography; note that the basic citation style is set):
# ---------
#+bibliography: Basic.bib
#+cite_export: basic
[cite/n:@friends] [cite/n:@lispandc]
#+print_bibliography:
# ----------
Exporting to text (C-c C-e t A) gives this:
# ----------
Example, Example (2023). /Lisp and {C}/, Example.
van Dongen, M.R.C. (2012). /{{LaTeX}} and Friends/, Springer.
# ----------
The braces are there. The're also visible in the HTML and ODT exports. In
LaTeX, in this example, they're exported but ultimately invisible because of how
LaTeX handles "\textit{Lisp and {C}}".
Should they be stripped? I suggest they should.
The basic style is very basic and doesn't do anything fancy in
bibliographies---just some italics on titles, which it's showing in the text
export with slashes, and does nicely in the others---but I wonder if it should
remove the braces. They are used to preserve case in titles, but the basic
exporter doesn't change case. Passing the braces through means people will have
to edit them out in every basic export.
Bill
¹ https://retorque.re/zotero-better-bibtex/support/faq/#why-the-double-braces
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 421.66 ppm (Mauna Loa Observatory, 2023-12-11)
next reply other threads:[~2023-12-13 1:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-12-13 1:42 William Denton [this message]
2023-12-13 10:49 ` Citations: strip braces {} in titles in bibliographies in basic style? Ihor Radchenko
2023-12-13 17:12 ` William Denton
2024-05-04 19:19 ` Ihor Radchenko
2024-05-06 17:02 ` William Denton
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=alpine.DEB.2.22.394.2312121941340.54828@shell3.miskatonic.org \
--to=wtd@pobox.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).