* 8.3 git head new math $ behavior
@ 2015-02-24 17:38 Ken Mankoff
2015-02-24 17:53 ` Rasmus
0 siblings, 1 reply; 3+ messages in thread
From: Ken Mankoff @ 2015-02-24 17:38 UTC (permalink / raw)
To: Org-mode
I've started running the git head version of Org mode, since 8.3
has some features I'm interested in that were not in the version I
was previously using (the latest on elpa).
Is this list an appropriate place to as questions or mention bugs
I find in 8.3, or is there a better place for that?
I write because in the new version $x$ exports to latex as before,
but ($x$) does not. It exports as seen, including the dollar sign.
($$x$$) does export as math.
Is this an intentional changed behavior? Or some regex exporter
bug that I've come across?
-k.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 8.3 git head new math $ behavior
2015-02-24 17:38 8.3 git head new math $ behavior Ken Mankoff
@ 2015-02-24 17:53 ` Rasmus
2015-02-25 7:09 ` Eric S Fraga
0 siblings, 1 reply; 3+ messages in thread
From: Rasmus @ 2015-02-24 17:53 UTC (permalink / raw)
To: emacs-orgmode
Ken Mankoff <mankoff@gmail.com> writes:
> I write because in the new version $x$ exports to latex as before, but
> ($x$) does not. It exports as seen, including the dollar sign. ($$x$$)
> does export as math.
As far as I recall it's a feature. I think there's a discussion with this
exact example a way back, but it's hard to search for... $·$ happens to
work sometimes. \(·\) Should work unambiguously.
—Rasmus
--
Slowly unravels in a ball of yarn and the devil collects it
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: 8.3 git head new math $ behavior
2015-02-24 17:53 ` Rasmus
@ 2015-02-25 7:09 ` Eric S Fraga
0 siblings, 0 replies; 3+ messages in thread
From: Eric S Fraga @ 2015-02-25 7:09 UTC (permalink / raw)
To: Rasmus; +Cc: emacs-orgmode
On Tuesday, 24 Feb 2015 at 18:53, Rasmus wrote:
> \(·\) 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 <theonewiththeevillook@yahoo.fr>
;; 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
--
: Eric S Fraga (0xFFFCF67D), Emacs 24.4.1, Org release_8.3beta-820-gd92ef9
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-02-25 8:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-24 17:38 8.3 git head new math $ behavior Ken Mankoff
2015-02-24 17:53 ` Rasmus
2015-02-25 7:09 ` Eric S Fraga
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).