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 ?


You could use a literal example. Like this:

Here is my important equation:
|a+b| ≤ |a| + |b|

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.

| improve this answer | |

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)  )))
| improve this answer | |
  • 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 Jul 13 '15 at 20:40
  • The coloring may still appear, but your command should still work. – GJStein Jul 13 '15 at 20:41
  • I have confirmed that M-o M-s does indeed work for me, even though the text is still colored. – GJStein Jul 13 '15 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 Jul 13 '15 at 20:52
  • 1
    @Literal: Please edit/update your question, or post a new question. – SabreWolfy Jul 13 '15 at 21:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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