From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou 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 Message-ID: <874lwq13xo.fsf@nicolasgoaziou.fr> References: <87inl619bg.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d9Cdm-0008NI-9X for emacs-orgmode@gnu.org; Fri, 12 May 2017 11:38:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d9Cdl-0005R9-8y for emacs-orgmode@gnu.org; Fri, 12 May 2017 11:38:02 -0400 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:44604) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d9Cdl-0005OB-3s for emacs-orgmode@gnu.org; Fri, 12 May 2017 11:38:01 -0400 In-Reply-To: <87inl619bg.fsf@gmail.com> (Joe Corneli's message of "Fri, 12 May 2017 14:41:39 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Joe Corneli Cc: emacs-orgmode@gnu.org Hello, Joe Corneli 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