2

I use org mode to write notebooks for my research. I often put equation on line of their own, using M-o M-s to center the equation.

However, when I have an equation like

|a+b| ≤ |a| + |b|

the leading | character makes org enter in tabular mode. How can I disable this effect ?

2 Answers 2

5

You could use a literal example. Like this:

Here is my important equation:
#+BEGIN_EXAMPLE
|a+b| ≤ |a| + |b|
#+END_EXAMPLE

A shorthand using a colon following one or more spaces also works:

Here is my important equation:
   : |a+b| ≤ |a| + |b|
Isn't it nice.

Literal examples are usually written in monospace and indented when exported.

0

Have you tried setting org-enable-table-editor to nil (using (setq org-enable-table-editor nil))? This should do what you want.

This code (added to you init.el) should make the change permanent:

(add-hook 'org-mode-hook 'my-org-mode-hook)
(defun my-org-mode-hook ()
  (add-hook 'hack-local-variables-hook
            (lambda () (setq org-enable-table-editor nil)  )))
7
  • Hm, unfortunately it doesn't seem to work. I pasted the code in my init file (.emacs) and tried to change the value of the variable in the session to no avail. The | still triggers a table font.
    – Literal
    Commented Jul 13, 2015 at 20:40
  • The coloring may still appear, but your command should still work.
    – GJStein
    Commented Jul 13, 2015 at 20:41
  • I have confirmed that M-o M-s does indeed work for me, even though the text is still colored.
    – GJStein
    Commented Jul 13, 2015 at 20:49
  • Actually, I'm not sure why I talked about M-o M-s, it's irrelevant, and it was already working before. The problem is more with 1. it's colored, and 2. the font is not the same (it's bigger).
    – Literal
    Commented Jul 13, 2015 at 20:52
  • 1
    @Literal: Please edit/update your question, or post a new question.
    – SabreWolfy
    Commented Jul 13, 2015 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.