From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarmo Hurri Subject: Re: Latex single dollar math delimiter question Date: Mon, 05 Aug 2019 11:58:54 +0300 Message-ID: <87wofsgf8x.fsf@iki.fi> References: <871ry1ijj8.fsf@iki.fi> <87lfw9kuba.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:55014) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huYpe-0003EM-Qr for emacs-orgmode@gnu.org; Mon, 05 Aug 2019 04:59:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huYpd-0002AJ-Pw for emacs-orgmode@gnu.org; Mon, 05 Aug 2019 04:59:06 -0400 Received: from 195-159-176-226.customer.powertech.no ([195.159.176.226]:36812 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huYpd-00028j-Jf for emacs-orgmode@gnu.org; Mon, 05 Aug 2019 04:59:05 -0400 Received: from list by blaine.gmane.org with local (Exim 4.89) (envelope-from ) id 1huYpa-0014GB-Sz for emacs-orgmode@gnu.org; Mon, 05 Aug 2019 10:59:02 +0200 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: emacs-orgmode@gnu.org "Fraga, Eric" writes: > On Sunday, 4 Aug 2019 at 08:31, Jarmo Hurri wrote: >> Can someone explain why the single '$' characters below are not >> recognized as math delimiters? >> >> a /complex number/ $z = a + ib,$ where > > What are you expecting? What happens if you export the file to PDF? Sorry, I assumed incorrectly that my question was self-explanatory. When I export the file to PDF, the dollar characters are not regonized as math delimiters. Based on the manual I would have expected math delimiters. Referring again to the manual: "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." Since the equation in my example contains no line breaks, is directly attached with no whitespace in between the equation and the dollar signs, and the closing '$' is followed by whitespace, I would expect math delimiter behaviour. Removing all whitespace, that is, $z=a+ib,$ does not help. > By the way, you might be interested in the following configuration > snippet which makes org insert \(\) when you type a single $ (and a $ > if you type 2 of them in a row). That is a nice little tool. I have gotten used to writing '\(' and '\)' instead of '$' for a long time. I was doing it for the millionth time and decided to take a look at what the manual says. Hence this post. Hope this clarifies my question. Jarmo