all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "András Simonyi" <andras.simonyi@gmail.com>
To: William Denton <wtd@pobox.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Citation bug with print_bibliography :filter "keyword phrase" with spaces
Date: Sun, 26 Nov 2023 10:03:28 +0100	[thread overview]
Message-ID: <CAOWRwxCLDzDbi6eb7Babk_PNBsMhBfOe_BjvFKpYRY8ps0zVLQ@mail.gmail.com> (raw)
In-Reply-To: <alpine.DEB.2.22.394.2311231134090.27418@shell3.miskatonic.org>

Dear All,

On Thu, 23 Nov 2023 at 17:54, William Denton <wtd@pobox.com> wrote:

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

Thanks for reporting, I've managed to reproduce the problem and it
turned out to be a citeproc-el bug,
which is now fixed in the master branch. The updated version should be
available in MELPA soonish.

best wishes,
András

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


      reply	other threads:[~2023-11-26  9:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-23 16:53 Citation bug with print_bibliography :filter "keyword phrase" with spaces William Denton
2023-11-26  9:03 ` András Simonyi [this message]

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=CAOWRwxCLDzDbi6eb7Babk_PNBsMhBfOe_BjvFKpYRY8ps0zVLQ@mail.gmail.com \
    --to=andras.simonyi@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wtd@pobox.com \
    /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.