组织模式下的转义管道字符 [英] Escape pipe-character in org-mode

查看:23
本文介绍了组织模式下的转义管道字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Emacs中有一个表org-mode,内容是正则表达式.我似乎无法弄清楚如何转义作为正则表达式一部分的文字管道字符 (|),因此它被解释为表格单元格分隔符.有人可以指点我一些帮助吗?谢谢.

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/.

So none of them is the plain /foo/ I'm hoping for.

推荐答案

vert 用于管道.

在导出为 HTML 和 PDF 时,正斜杠对我来说似乎很好用.

Forward slashes seem to work fine for me unescaped when exporting both to HTML and PDF.

这篇关于组织模式下的转义管道字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆