From mboxrd@z Thu Jan 1 00:00:00 1970 From: Titus von der Malsburg Subject: Re: Inline LaTeX formulae Date: Tue, 05 May 2015 14:32:50 -0700 Message-ID: <874mnqzp4t.fsf@posteo.de> References: <876186zsrc.fsf@posteo.de> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpkSc-0004Jf-81 for emacs-orgmode@gnu.org; Tue, 05 May 2015 17:33:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpkSX-0007jF-8n for emacs-orgmode@gnu.org; Tue, 05 May 2015 17:33:00 -0400 Received: from mx02.posteo.de ([89.146.194.165]:39224) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpkSX-0007iG-22 for emacs-orgmode@gnu.org; Tue, 05 May 2015 17:32:57 -0400 In-reply-to: <876186zsrc.fsf@posteo.de> 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 Cc: Rasmus --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Rasums wrote: > Titus von der Malsburg posteo.de> writes: >=20 > > Hi all, > > > > I just updated to the development version of org and encountered a > > problem with inline LaTeX formulae. I have the following test document: > > > > #+OPTIONS: toc:nil tex:t > > Test: ($p\ll.001$) >=20 > Try: > Test: (\(p\ll.001\)) >=20 > ($x$) doesn't work. You could use $(x)$. Strangely > org-highlight-latex-and-related still highlights it. >=20 > =E2=80=93Rasmus Thanks, Rasmus (and Marcin), replacing the $ by \( and \) works. I didn=E2=80=99t know about the parentheses notation. To my experience most people use the $ notation for inline math, and therefore it would make sense to properly support that notation, too. Especially since it used to work in earlier versions of org (if I=E2=80=99m not mistaken) and there = is nothing in the manual suggesting that it shouldn=E2=80=99t work. The contr= ary is the case. Quote from the manual: To avoid conflicts with currency specifications, single =E2=80=98$=E2=80= =99 characters are only recognized as math delimiters if the enclosed text contains at most two line breaks, is directly attached to the =E2=80=98$=E2=80=99 = characters with no whitespace in between, and if the closing =E2=80=98$=E2=80=99 is = followed by whitespace, punctuation or a dash. Parentheses are punctuation, so the $ in my example should be interpreted as math delimiters. I think whoever wrote the code, simply overlooked parentheses when implementing the punctuation part. This should be fixed. Titus --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVSTcDAAoJEK40WfPGE2iddPsH/05zHsIM3KY+XXOXWPQ29Pff zNTxvv+okwEFh/4JgLeJ/CLb6vKxVqVueJSy2lAdlFtFrPyZIv8EGAQfQiVI8KWd YzpVxLHKmyLqyD5SFHB4VVZHAwtf8YG5TDd3rjy5vgSZUdbDbEA/d/Fcw1DRS/QG hAGK0Z15gxJIpy1Bxwv5RI6R1X8o5WBVw5H7rgq0VFkVLfJD5KkF24gZm/u9nBRp jbr0gBWY3zUbCEXdgEHEq6QQW1deFJOy4xRL2dFI0Qf/h7GhdkImnilFIwRT3CZi bMqLDo6SDhYIm3tIpnErSr7f+pWCI+7kf4Co/mgAoJSBha9NdC+jEaIBM9/npUM= =1giy -----END PGP SIGNATURE----- --=-=-=--