禁用Emacs组织模式导出中的下划线到下标 [英] Disabling underscore-to-subscript in Emacs Org-Mode export

查看:145
本文介绍了禁用Emacs组织模式导出中的下划线到下标的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当通过组织模式(C-c C-e d)导出为PDF时,任何带有下划线的单词都将部分转换为下标。我如何防止这种情况发生?



我发现这篇文章主题:



在Emacs Tex模式中禁用下划线下标


$ b $但是,我还是无法弄清楚正确的elisp,或者根本没有工作。注意,我不想更改任何全局字体选项。我只想要这个修复程序应用于tex / latex / org-mode。



我也发现这篇文章,虽然它也没有工作:



禁用下标上标提高/较低?

解决方案

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

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


When I export to PDF via org-mode (C-c C-e d), any words with underscores end up being partially converted to subscript. How can I prevent this from happening?

I found this article on the subject:

Disabling Underscore subscript in Emacs Tex Mode

However, I either wasn't able to figure out the correct elisp or it simply didn't work. Note, I don't want to change any global font options. I only want this fix to apply to tex/latex/org-mode.

I also found this post, though it didn't work either:

disable subscript superscript raise/lower?

解决方案

I was able to solve the issue by setting the following variable:

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

这篇关于禁用Emacs组织模式导出中的下划线到下标的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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