From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: Citation bug with print_bibliography :filter "keyword phrase" with spaces
Date: Thu, 23 Nov 2023 11:53:50 -0500 (EST) [thread overview]
Message-ID: <alpine.DEB.2.22.394.2311231134090.27418@shell3.miskatonic.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 2019 bytes --]
I think I've found another bug with citations, this time about filtering on
keywords when printing bibliographies with the CSL processor. Either that
or I'm wrong about how it works.
Here's a test .bib file; note the "keyword phrase" keywords. Filtering doesn't
work on them.
Test.bib:
@article{article1,
title = {Title Here},
author = {Denton, William},
date = {2020-01-01},
journaltitle = {Journal Title},
issue = {1},
keywords = {keyword phrase}
}
@article{article2,
title = {Title Here Too},
author = {Denton, William},
date = {2023-11-01},
journaltitle = {Journal Title Too},
issue = {2},
keywords = {keyword phrase}
}
@book{book1,
title = {Mastering Emacs},
author = {Petersen, Mickey},
date = {2022},
keywords = {emacs}
}
And here's an Org file. For exporting I'm using CSL, referring to a style in my
Zotero directory. Any Zotero user will have this, but I don't know how to make
it easily reproducible for others.
### --------- Org file starts
#+bibliography: Test.bib
#+cite_export: csl ~/Zotero/styles/chicago-author-date.csl
* Text
One article: [cite:@article1]. Another article: [cite:@article2]. And a real book: [cite:@book1].
* Everything
#+print_bibliography:
* Emacs
#+print_bibliography: :keyword emacs
* Keyword phrase
#+print_bibliography: :keyword "keyword phrase"
### ---------- Org file ends
When exported to LaTeX, the complete bibliography and the Emacs bibliography are
there, but the "keyword phrase" one isn't. The manual says, "Values including
spaces must be surrounded with double quotes." I did that, but based on this it
doesn't seem to be working.
(I'm running Org from the development branch.)
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
CO₂: 421.56 ppm (Mauna Loa Observatory, 2023-11-22)
next reply other threads:[~2023-11-23 16:54 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-11-23 16:53 William Denton [this message]
2023-11-26 9:03 ` Citation bug with print_bibliography :filter "keyword phrase" with spaces András Simonyi
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.2311231134090.27418@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).