I've got #+OPTIONS: tex:t
and #+STARTUP: entitiespretty
at the top of my org file, however, this seems to allow only a subset of Latex. For example, typing \rightarrow
embeds upon the last keystroke a → just fine. But if I try a \vdash
(⊢) I get nothing. \vdash
just sits there.
So I looked around and found this, which seems to be an Emacs-wide solution (per buffer). (set-input-method 'TeX)
in fact does recognize \vdash
and converts it instantly to ⊢. Another curiosity is how I put \vdash
inside an emacs-lisp code block -- while set-input-method
is still active -- and it worked, and it saved it, and it exported to HTML just fine. Typically, being in a code block means Latex markup either won't display, or if it does, it won't export.
I then tried to use ⊢ as a symbol
(set-input-method 'TeX)
(setf ⊢ t)
(defun foo ()
(if ⊢ 1 2))
(foo)
=> 1
I'm guessing this is utf-8 lore, and Emacs will work with a utf-8 "character" just as if it were old-school ascii. set-input-method
seems to have permanently replaced the Latex markup code. Is this correct? Also, why is org mode incomplete at in-buffer Latex substitutions while set-input-method
with TeX is more complete? Which is the better choice?