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: problems with quotes in LaTeX export
Date: Sun, 21 Jan 2024 03:53:27 +0000	[thread overview]
Message-ID: <TarY7-tR4TEmIu8jawOtTyyi03K93WIg7DsS1eXNylelCy2Hv-6OFNKOMQMukf70Tzf3uO_2F1Qe7xwrzb43SpJc4jxJZLN3W0MioKYbgzI=@williamdenton.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 1157 bytes --]

While trying out more about basic citations, with quotes to mark strings so I can see where whitespace matters, I found that when exporting to LaTeX some regular quote marks (") turn into fancy ones (“”) but others don't.

Let's say we have Basic.bib (now in testing/examples/, adjust path as needed) and this Org file:

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

[cite: "prefix one" @friends "suffix one"]

[cite: "global"; "prefix one" @friends "suffix one"; "prefix two" @friends 'suffix two'; "global"].
# ----------

Export that to LaTeX and you'll see this (also attached):

https://www.miskatonic.org/tmp/latex-quotes.png

The suffix quote marks don't turn fancy.  Same if you change the citation processor to csl.

It's rare to have quotes in citations, but for complex ones with some commentary I could certainly imagine them, for example where you want to refer to a certain word or mention how an author translates it.  In any case there's something unexpected going on here.

Bill

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

[-- Attachment #2: latex-quotes.png --]
[-- Type: image/png, Size: 30959 bytes --]

             reply	other threads:[~2024-01-21  3:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-21  3:53 William Denton [this message]
2024-01-21 12:47 ` Basic citations: problems with quotes in LaTeX export 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='TarY7-tR4TEmIu8jawOtTyyi03K93WIg7DsS1eXNylelCy2Hv-6OFNKOMQMukf70Tzf3uO_2F1Qe7xwrzb43SpJc4jxJZLN3W0MioKYbgzI=@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).