From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Fraga, Eric" Subject: Re: Latex single dollar math delimiter question Date: Sun, 4 Aug 2019 12:07:38 +0000 Message-ID: <87lfw9kuba.fsf@ucl.ac.uk> References: <871ry1ijj8.fsf@iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41611) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1huFId-0007ni-UL for emacs-orgmode@gnu.org; Sun, 04 Aug 2019 08:07:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1huFId-0004xg-1A for emacs-orgmode@gnu.org; Sun, 04 Aug 2019 08:07:43 -0400 Received: from mail-eopbgr130095.outbound.protection.outlook.com ([40.107.13.95]:53703 helo=EUR01-HE1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1huFIc-0004sA-L8 for emacs-orgmode@gnu.org; Sun, 04 Aug 2019 08:07:42 -0400 In-Reply-To: <871ry1ijj8.fsf@iki.fi> (Jarmo Hurri's message of "Sun, 04 Aug 2019 08:31:07 +0300") Content-Language: en-US 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: Jarmo Hurri Cc: "emacs-orgmode@gnu.org" 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 =3D a + ib,$ where What are you expecting? What happens if you export the file to PDF? 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). #+begin_src emacs-lisp :tangle "esf-org.el" ;; from Nicolas Richard ;; Date: Fri, 8 Mar 2013 16:23:02 +0100 ;; Message-ID: <87vc913oh5.fsf@yahoo.fr> (defun yf/org-electric-dollar nil "When called once, insert \\(\\) and leave point in between. When called twice, replace the previously inserted \\(\\) by one $." (interactive) (if (and (looking-at "\\\\)") (looking-back "\\\\(")) (progn (delete-char 2) (delete-char -2) (insert "$")) (insert "\\(\\)") (backward-char 2))) (define-key org-mode-map (kbd "$") 'yf/org-electric-dollar) #+end_src --=20 Eric S Fraga via Emacs 27.0.50, Org release_9.2.4-399-g4e6222