emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Joe Corneli <holtzermann17@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: parsing latex ``$\mathit{math}$'' in export [9.0.5 (release_9.0.5-474-g942b62 @ /home/joe/org-mode/lisp/)]
Date: Fri, 12 May 2017 17:37:55 +0200	[thread overview]
Message-ID: <874lwq13xo.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87inl619bg.fsf@gmail.com> (Joe Corneli's message of "Fri, 12 May 2017 14:41:39 +0100")

Hello,

Joe Corneli <holtzermann17@gmail.com> writes:

> With the test file as follows:
> ======================================================================
>
> #+TITLE:     example
> #+AUTHOR:    Joe Corneli
>
> #+DATE:      May 12, 2017
> #+DESCRIPTION: example
>
> #+LANGUAGE: en
> #+OPTIONS: H:3 num:t toc:t \n:nil @:t ::t |:t ^:nil -:t f:t *:t <:t
>
> #+OPTIONS: TeX:t LaTeX:nil skip:nil d:nil todo:t pri:nil tags:not-in-toc
> #+INFOJS_OPT: view:nil toc:nil ltoc:t mouse:underline buttons:0 path:http://orgmode.org/org-info.js
>
> ``Every $P$ is a $P$'' 
> ======================================================================
>
> ... I see this behaviour:
>
> I run org-html-export-as-html, and the output file contains:
>
> ``Every P is a $P$''
>
> ... I would have expected:
>
> ``Every P is a P''

True. This is because in Org mode (and in Text mode), "'" is considered
as a word-constituent instead of being a punctuation element.

I'm not convinced it is worth changing the syntax class of "'" or even
making a special case for "'". You can get rid of this problem using
\(P\) instead.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2017-05-12 15:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-12 13:41 Bug: parsing latex ``$\mathit{math}$'' in export [9.0.5 (release_9.0.5-474-g942b62 @ /home/joe/org-mode/lisp/)] Joe Corneli
2017-05-12 15:37 ` Nicolas Goaziou [this message]
2017-05-12 18:06   ` Joe Corneli
2017-05-13  7:24     ` Nicolas Goaziou
     [not found]   ` <108e9a8cdc924e71afc3324c4bd4d1eb@HE1PR01MB1898.eurprd01.prod.exchangelabs.com>
2017-05-12 18:57     ` Eric S Fraga

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=874lwq13xo.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=holtzermann17@gmail.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 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).