在 Emacs Org-Mode 导出中禁用下划线到下标 [英] Disabling underscore-to-subscript in Emacs Org-Mode export

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

问题描述

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

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:

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

但是,我要么无法找出正确的elisp,要么就是根本不起作用.请注意,我不想更改任何全局字体选项.我只希望此修复适用于 tex/latex/org-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:

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

推荐答案

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

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

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

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

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