how to insert “|” in org-mode table

左心房为你撑大大i 提交于 2019-11-30 12:39:15

To insert a vertical bar into a table field, use \vert or, inside a word abc\vert{}def.

Source: Org-mode manual: The built-in table editor.

If \vert is not automatically converted to |, call org-toggle-pretty-entities, per:

C-c C-x \

Toggle display of entities as UTF-8 characters. This does not change the buffer content which remains plain ASCII, but it overlays the UTF-8 character for display purposes only.

Source: Org-mode manual: Special symbols

The function org-toggle-pretty-entities was introduced in version 7.01. Call org-version and upgrade Org-mode if necessary.

Using some unicode seems to work relatively well. I got these 2 characters to work: ¦ ǀ There is also this one: which just gave a unicode box. Your milage will vary.

sindikat's answer above is more correct, but if you want a vertical bar that looks pretty in your org source file, and you use UTF-8 (or similar) then this is an option.

If you just want to insert a new column, just type 'M-S right'.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!