Hi Rafael,

Rafael <rvf0...@gmail.com> writes:

> I remembered that Org knows already if point is inside a math
> expression, so by looking at the source I came up with the following,
> that seems to work. Sorry for the noise.

That's not noise...

> #+BEGIN_SRC emacs-lisp
>    (defun org-cdlatex-real-numbers ()
>      (interactive)
>      (if (org-inside-LaTeX-fragment-p)
>          (insert "\\mathbb{R}")
>        (insert "R")
>        ))
>    
>    (add-hook 'org-mode-hook
>              (lambda ()
>                (local-set-key (kbd "R")
>                               'org-cdlatex-real-numbers
>                               )))
> #+END_SRC

... that's a contribution -- thanks for it!

-- 
 Bastien

Reply via email to