I use a lot of overline (in statistical formulae) and so I have the following in my
(custom-set-variables '(org-emphasis-alist (quote (("*" bold) ("/" italic) ("_" underline) ("=" org-verbatim verbatim) ("+" (:strike-through t)) ("~" (:overline t) verbatim)))) '(org-hide-emphasis-markers t) '(org-pretty-entities t))
In other words, I want
~ to define overline and I want it to render in-line in Emacs.
This works great, however I cannot follow that emphasis (or any emphasis for that matter) with more characters such as superscript or subscript numbers. For example,
~X~_1 renders as literally
~X~ followed by a subscript
X is overlined until I type the underscore, then the emphasis tildes reappear.
I assume the solution has something to do with modifying
org-emphasis-regexp-components and maybe use of a zero-width space between the emphasis and the subscript, but there I get lost.
Also I would love my PDF exports to render the same (at the moment, since I am using the
~ for overline, my overlined segments get rendered as code) so for a part 2, if we can update the PDF export to render overlines properly too, that would be amazing.