在Emacs组织模式导出中禁用下划线到下标

时间:2009-03-30 18:53:31

标签: emacs latex tex org-mode

当我通过org-mode(C-c C-e d)导出为PDF时,任何带下划线的单词最终都会被部分转换为下标。我怎样才能防止这种情况发生?

我在这个主题上发现了这篇文章:

Disabling Underscore subscript in Emacs Tex Mode

然而,我要么无法找出正确的elisp,要么就是根本不起作用。注意,我不想更改任何全局字体选项。我只想将此修复应用于tex / latex / org-mode。

我也找到了这篇文章,但它也没有用:

disable subscript superscript raise/lower?

7 个答案:

答案 0 :(得分:91)

您可以通过添加以下行来禁用组织文件中的超级/下标:

#+OPTIONS: ^:nil

检查组织手册以获取更多选项 以下命令插入包含所有选项的模板:     C-c C-e #

答案 1 :(得分:26)

我能够通过设置以下变量来解决问题:

(setq org-export-with-sub-superscripts nil)

答案 2 :(得分:8)

我认为这会更容易:http://orgmode.org/manual/Subscripts-and-superscripts.html 用反斜杠逃避下划线:

enter image description here

enter image description here

现在,逃避_:

enter image description here

enter image description here

您可以在此处查看此操作:http://www.railsonmaui.com/blog/2013/04/27/octopress-setup-with-github-and-org-mode/

答案 3 :(得分:5)

是否要阻止源文件的屏幕显示或输出PDF文本中的下标?如果是后者,那么你想要

\usepackage{underscore}

它也不会破坏数学模式中下划线的使用。

答案 4 :(得分:4)

对于个别情况,请以这种方式插入文字下划线:

text text one\textunderscore{}two text

答案 5 :(得分:1)

在我的情况下,任何包含下划线的单词都可能是变量名或类似名称。我只是使用=~将其包围,以便将其视为此类。然后它将相应地导出。

答案 6 :(得分:1)

使用\underThe Org Manual: Special symbols上的文档)

例如:

text\under{}text