From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: math in parentheses Date: Tue, 28 Oct 2014 23:32:46 +0100 Message-ID: <87lhnzq0z5.fsf@gmx.us> References: <87ppdcdwic.fsf@berkeley.edu> <877fzkgnpu.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjFK6-00067r-Aa for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 18:33:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XjFK0-0000R7-J3 for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 18:33:06 -0400 Received: from plane.gmane.org ([80.91.229.3]:44025) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XjFK0-0000Qy-Bt for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 18:33:00 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1XjFJx-0000LP-Hk for emacs-orgmode@gnu.org; Tue, 28 Oct 2014 23:32:57 +0100 Received: from 217.130.110.20 ([217.130.110.20]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 23:32:57 +0100 Received: from rasmus by 217.130.110.20 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 28 Oct 2014 23:32:57 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Andreas Leha writes: > Hi Rasmus, > > Rasmus writes: >> Hi, >> >> Andreas Leha writes: >> >>> Hi Richard, >>> Just for me to understand: Is the problem the missing whitespace >>> around the $...$ expression? >> >> From (info "(org) LaTeX Fragments") >> >> [a] 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 >> > > Thanks for the pointer. > > Given that there are 'exceptions' already I'd like to see that last > sentence extended to 'followed by whitespace, punctuation, a closing > parenthesis or a dash'. Patches welcome :) but this does work $(x)$ BTW. I guess the main function for export is `org-element-latex-fragment-interpreter' but there's also `org-inside-LaTeX-fragment-p'. . . —Rasmus -- When the facts change, I change my mind. What do you do, sir?