From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: 8.3 git head new math $ behavior Date: Wed, 25 Feb 2015 07:09:28 +0000 Message-ID: <87385u31sn.fsf@delle7240.chemeng.ucl.ac.uk> References: <87vbir19hs.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:35299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQXE7-0008Vo-Dq for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 03:21:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YQXE4-0008Ge-82 for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 03:21:51 -0500 Received: from mail-am1on0134.outbound.protection.outlook.com ([157.56.112.134]:4224 helo=emea01-am1-obe.outbound.protection.outlook.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YQXE3-0008FX-Va for emacs-orgmode@gnu.org; Wed, 25 Feb 2015 03:21:48 -0500 In-Reply-To: <87vbir19hs.fsf@gmx.us> (rasmus@gmx.us's message of "Tue, 24 Feb 2015 18:53:51 +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: Rasmus Cc: emacs-orgmode@gnu.org On Tuesday, 24 Feb 2015 at 18:53, Rasmus wrote: > \(=C2=B7\) Should work unambiguously. And, for the OP, if you are like me and have $...$ burned into your autonomic system, the following snippet of code is quite useful: #+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 (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-820-gd92ef9