From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: Org-Mode mailing list <emacs-orgmode@gnu.org>
Subject: Embedded LaTeX does not work with Unicode quotes
Date: Tue, 11 Nov 2014 22:45:47 +0100 [thread overview]
Message-ID: <877fz1e7s5.fsf@wmi.amu.edu.pl> (raw)
Hi list,
I have this: „$n\eps\le b$”, and it seems not to be recognized as a
LaTeX fragment. The manual says:
================
To avoid conflicts with currency specifications, single `$' characters
are only recognized as math delimiters if the enclosed text contains at
most two line breaks, is directly attached to the `$' characters with no
whitespace in between, and if the closing `$' is followed by whitespace,
punctuation or a dash.
================
When I C-u C-x = on the closing quote, I get
================
position: 54465 of 108125 (50%), restriction: <52496-56766>, column: 152
character: ” (displayed as ”) (codepoint 8221, #o20035, #x201d)
preferred charset: unicode (Unicode (ISO10646))
code point in charset: 0x201D
syntax: . which means: punctuation
category: .:Base, c:Chinese, h:Korean, j:Japanese
to input: type "C-x 8 RET HEX-CODEPOINT" or "C-x 8 RET NAME"
buffer code: #xE2 #x80 #x9D
file code: #xE2 #x80 #x9D (encoded by coding system utf-8-unix)
display: by this font (glyph code)
xft:-unknown-Ubuntu Mono-normal-normal-normal-*-17-*-*-*-m-0-iso10646-1 (#x71)
Character code properties: customize what to show
name: RIGHT DOUBLE QUOTATION MARK
old-name: DOUBLE COMMA QUOTATION MARK
general-category: Pf (Punctuation, Final quote)
decomposition: (8221) ('”')
There are text properties here:
fontified t
================
so I don't know why it is not recognized as punctuation. Consequently,
it is exported verbatim (with `\$') into LaTeX, and also (obviously) C-c
C-x C-l does not fontify it. When I change ” into " (the ASCII #x22
quote), everything is ok.
My questions:
1. Isn't it a bug?
2. If not, what can I do to in my config so that it is recognized
properly?
PS. I just recalled that using \(...\) should help, and indeed it does.
Still, I'm curious about the answer to my questions (now that I
remembered a workaround, especially #1).
TIA,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University
next reply other threads:[~2014-11-11 21:46 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-11 21:45 Marcin Borkowski [this message]
2014-11-12 6:05 ` Embedded LaTeX does not work with Unicode quotes Nick Dokos
2014-11-12 18:37 ` Marcin Borkowski
2014-11-12 19:53 ` Florian Beck
2014-11-13 18:24 ` Nicolas Goaziou
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=877fz1e7s5.fsf@wmi.amu.edu.pl \
--to=mbork@wmi.amu.edu.pl \
--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).