emacs-orgmode
[Top][All Lists]
Advanced

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

How to enforce sub-scripts with {} only for HTML export?


From: edgar
Subject: How to enforce sub-scripts with {} only for HTML export?
Date: Sun, 20 Feb 2022 21:31:14 +0000
User-agent: Roundcube Webmail/1.2.3

Hi. I hope that this is not a known issue and that you can help me.

* Short description

If I export this as html

#+begin_src org
   test_my_subs
#+end_src

the corresponding line is exported as

#+begin_src html
   <p>
   test<sub>my</sub><sub>subs</sub>
   </p>
#+end_src

* Expected output

I was expecting the output to be
#+begin_src html
   <p>
   test_my_subs
   </p>
#+end_src

In the [[help:org-export-with-sub-superscripts][documentation]], it reads:
#+begin_quote
    Still, ambiguity is possible.  So when in doubt, use {} to enclose
    the sub/superscript.  If you set this variable to the symbol ‘{}’,
    the braces are *required* in order to trigger interpretations as
    sub/superscript.  This can be helpful in documents that need "_"
    frequently in plain text.
#+end_src

What am I doing wrong? Thanks!

* Emacs and Org configuration

I am using this with ~emacs -q~:

#+begin_src emacs-lisp
    (setq
       ;; Use {} for super and subscripts
       org-export-with-sub-superscripts "{}")
#+end_src

#+begin_src emacs-lisp
  (emacs-version)
#+end_src

#+RESULTS:
: GNU Emacs 27.2 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.24.27, cairo version 1.17.4)
:  of 2021-03-26

#+begin_src emacs-lisp
  (org-version)
#+end_src

#+RESULTS:
: 9.4.6

-------------------------------------------------
This free account was provided by VFEmail.net - report spam to abuse@vfemail.net

ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the 
NSA's hands!
$24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!


reply via email to

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