all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Fraga, Eric" <e.fraga@ucl.ac.uk>
To: Jarmo Hurri <jarmo.hurri@iki.fi>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Latex single dollar math delimiter question
Date: Sun, 4 Aug 2019 12:07:38 +0000	[thread overview]
Message-ID: <87lfw9kuba.fsf@ucl.ac.uk> (raw)
In-Reply-To: <871ry1ijj8.fsf@iki.fi> (Jarmo Hurri's message of "Sun, 04 Aug 2019 08:31:07 +0300")

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?

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 <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 via Emacs 27.0.50, Org release_9.2.4-399-g4e6222

  reply	other threads:[~2019-08-04 12:07 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-04  5:31 Latex single dollar math delimiter question Jarmo Hurri
2019-08-04 12:07 ` Fraga, Eric [this message]
2019-08-05  8:58   ` Jarmo Hurri
2019-08-05 10:35     ` Nicolas Goaziou
2019-08-05 11:04     ` Fraga, Eric
  -- strict thread matches above, loose matches on Subject: below --
2019-08-08 17:00 emanuel.charpentier
2019-08-09  8:56 ` Fraga, Eric

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87lfw9kuba.fsf@ucl.ac.uk \
    --to=e.fraga@ucl.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    --cc=jarmo.hurri@iki.fi \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.