wdkrnls
wdkrnls

Reputation: 4702

How to input words_with_underscores into an org-table?

I want to place text like site_volume into a column of an org-table. Outside of tables I would wrap the text with =equals_signs= to guarantee the underscores within were displayed literally, but doing that inside tables causes the text to be treated as a formula and it gets replaced by ERROR!. Is there alternate literal syntax within tables?

Upvotes: 1

Views: 393

Answers (2)

Stuart Hickinbottom
Stuart Hickinbottom

Reputation: 1360

Or use the shell backslash to 'quote' the underscore to avoid Org-mode interpreting it as markup, eg:

| Variable              | File    |
| some\_variable        | test.c  |
| some\_other\_variable | test2.c |

In combination with the following this can make things pretty readable in Emacs Org-mode buffers, even without exporting to HTML/PDF:

(setq org-pretty-entities t)
(setq org-hide-emphasis-markers t)

Upvotes: 1

Peter Westlake
Peter Westlake

Reputation: 5036

Try using the tilde (~) to quote the values instead of equals. It's for quoting things that don't need to be displayed in a fixed-width font.

Upvotes: 4

Related Questions