emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: William Denton <william@williamdenton.org>
To: Emacs Org mode mailing list <emacs-orgmode@gnu.org>
Subject: Basic citations: bugs with citation objects with multiple keys, prefixes, suffixes
Date: Tue, 16 Jan 2024 01:19:43 +0000	[thread overview]
Message-ID: <FMaPNvYf_8jqVxcU2L5kgiMuejm0NqK3e9D7CzhSzG-fmESTZKgtAJy1LG_zNDLS6o_oQ-gF_G-6DXlXA2iQ_yAjNjLgeB86JTU46Sv8Wec=@williamdenton.org> (raw)

I'm figuring out complex citation objects with prefixes and suffixes and multiple keys, and found that not all styles export properly (from what I understand).  Here's an Org file that runs through all the citation styles (the Basic.bib is below).  Each citation object has a global prefix ("Citing") and global suffix ("is duplication") and the second citation has a local prefix ("and") and local suffix ("also").

# ----------

#+bibliography: Basic.bib
#+cite_export: basic 

Default: [cite:Citing ; @friends; and @friends also; is duplication.]

Author: [cite/a:Citing ; @friends; and @friends also; is duplication.]

Note: [cite/ft:Citing ; @friends; and @friends also; is duplication.]

Nocite (should be blank): [cite/n:Citing ; @friends; and @friends also; is duplication.]

Noauthor: [cite/na:Citing ; @friends; and @friends also; is duplication.]

Numeric (should "use global affixes and ignore local ones"): [cite/nb:Citing ; @friends; and @friends also; is duplication.]

Text: [cite/t: Citing ; @friends; and @friends also; is duplication.]

# ----------

Export that and you will see some bugs.  Default, nocite and numeric look correct, but author and noauthor are missing all the surrounding text (I don't see anything in oc-basic.el about why it shouldn't be there), and in note and text "also" should be outside the brackets.

# ----------

Default: (Citing van Dongen, M.R.C., 2012, and van Dongen, M.R.C., 2012
also is duplication.)

Author: van Dongen, M.R.C., van Dongen, M.R.C.

Note:[1]

Nocite (should be blank):

Noauthor: (2012, 2012)

Numeric (should "use global affixes and ignore local ones"): (Citing 1,
1 is duplication.)

Text: Citing van Dongen, M.R.C. (2012), and van Dongen, M.R.C. (2012
also) is duplication.

Footnotes
_________

[1] Citing van Dongen, M.R.C. (2012), and van Dongen, M.R.C. (2012 also)
is duplication.

# ----------


Thanks for looking,

Bill


Basic.bib is still:

@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}
}

--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada


             reply	other threads:[~2024-01-16  1:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-16  1:19 William Denton [this message]
2024-01-16 12:39 ` Basic citations: bugs with citation objects with multiple keys, prefixes, suffixes Ihor Radchenko

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='FMaPNvYf_8jqVxcU2L5kgiMuejm0NqK3e9D7CzhSzG-fmESTZKgtAJy1LG_zNDLS6o_oQ-gF_G-6DXlXA2iQ_yAjNjLgeB86JTU46Sv8Wec=@williamdenton.org' \
    --to=william@williamdenton.org \
    --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).