在组织模式下退出管道字符 [英] Escape pipe-character in org-mode
问题描述
我在Emacs中有一张表组织模式,其内容是正则表达式。我似乎不知道如何逃避正则表达式的一部分的文字管道字符( |
),因此它被解释为一个表格单元格分隔符。有人可以指点我一些帮助吗?谢谢。
I've got a table in Emacs org-mode, and the contents are regular expressions. I can't seem to figure out how to escape a literal pipe-character (|
) that's part of a regex though, so it's interpreted as a table-cell separator. Could someone point me to some help? Thanks.
更新:我也在寻找斜线的转义( /
),因此它不会触发斜体/强调序列的开始。我尝试使用 \ /
和 \ //
- 例如,假设我想要文字文本 / foo /
在表单元格中。以下是3种尝试方法:
Update: I'm also looking for escapes for a slash (/
), so that it doesn't trigger the start of an italic/emphasis sequence. I experimented with \/
and \//
- for example, suppose I want the literal text /foo/
in a table cell. Here are 3 ways of attempting it:
| /foo/ | \/foo/ | \//foo/ |
在LaTeX导出中,变为:
In LaTeX export, that becomes:
\emph{foo} & \/foo/ & \//foo/
所以没有一个是普通的 / foo / / code>我希望。
So none of them is the plain /foo/
I'm hoping for.
推荐答案
\vert
为管道。
\vert
for the pipe.
转换斜杠似乎可以正常工作,我将非转义导出为HTML和PDF。
Forward slashes seem to work fine for me unescaped when exporting both to HTML and PDF.
这篇关于在组织模式下退出管道字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!