emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: prevent underscores to be translates in subscript when exporting to


From: Mark Barton
Subject: Re: prevent underscores to be translates in subscript when exporting to latex
Date: Sat, 8 Oct 2022 07:43:12 -0700



On Oct 8, 2022, at 6:58 AM, Luca Ferrari <fluca1978@gmail.com> wrote:

Hi all,
I've a link like
[[https://foo.com/bar_baz.html][https://foo.com/bar_baz.html]] that,
once rendered in LaTeX, is converted to a subscript like
bar\textsubscript{baz}.
Is there a way to prevent this?

I settled on adding an OPTION line to my org file to disable this behavior, since the documents I'm working on rarely need subscripts and I can use the LaTeX form when I do need to specify them.

#+OPTIONS: toc:nil H:3 num:nil ^:nil

The last part forces the export to recognize just the LaTeX form of specifying subscripts.

[[info:org#Export Settings][org#Export Settings]]
‘^’
     Toggle TeX-like syntax for sub- and superscripts.  If you write
     ‘^:{}’, ‘a_{b}’ is interpreted, but the simple ‘a_b’ is left as it
     is (‘org-export-with-sub-superscripts’).

Mark

reply via email to

[Prev in Thread] Current Thread [Next in Thread]