如何在org-mode中用括号中的单词加下划线以导出到LaTeX

时间:2017-09-28 15:25:12

标签: emacs org-mode

我想在括号中用下划线来导出到LaTeX。我在org-mode文件中使用了(_word_),但生成的LaTeX输出是(\ _word \ _),在得到的pdf文件中我得到(_word_)。谁能告诉我如何得到我想要的东西?

2 个答案:

答案 0 :(得分:1)

对我而言,它看起来像是OrgMode中的一个错误。对我来说,

this is (_underline_) text. another _underline_ text

产生以下结果:

screenshot

我建议针对OrgMode提交错误

答案 1 :(得分:0)

这绝对是版本8中引入的org-mode的错误。

没有此bug的组织模式的最新版本(基于版本号)是8.0-alpha。

org-mode的最新版本(基于提交日期)没有这个bug是7.9.4。

以下是最简单的工作示例。

#+TITLE: Test
#+OPTIONS: ^:nil

a_5

( _test_)
(_test_)

在版本7.9.4和8.0-alpha下,输出正确,如belew所示。

Version 7.9.4 with correct underline

Version 8.0-alpha with correct underline

但在版本8.0-beta及更高版本中,输出不正确。

Version 8.0-beta with incorrect result