emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: Peter Davis <pfd@pfdstudio.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Superscript and subscript in HTML?
Date: Wed, 28 May 2014 08:50:20 -0400	[thread overview]
Message-ID: <d18c49648666bcc5cbb102c15cb94366@mail.rickster.com> (raw)
In-Reply-To: <5385CCB5.7070604@pfdstudio.com>

On 2014-05-28 07:47, Peter Davis wrote:
> Is there any markup which will let me get superscripts and subscripts
> in HTML export?
> 
> It would be great if the HTML exporter recognized ^{...} and _{...} so
> the same markup would work for both LaTeX/PDF and for HTML.

It does for me. I believe it always has. Are you sure your options are
set correctly? Also, are you sure that the html source doesn't contain
<sup/> and <sub/> tags that aren't being styled?

Here's a example and the output

#+BEGIN_SRC org
,#+OPTIONS: toc:nil
,* Super and subscript
this is a super^{1} script. and a sub_{2} script.

another super^3 and another sub_4
#+END_SRC

and the results (C-c C-e C-b h H)

#+BEGIN_EXAMPLE
<div id="outline-container-sec-1" class="outline-2">
<h2 id="sec-1">Super and subscript</h2>
<div class="outline-text-2" id="text-1">
<p>
this is a super<sup>1</sup> script. and a sub<sub>2</sub> script.
</p>

<p>
another super<sup>3</sup> and another sub<sub>4</sub></p>
</div>
</div>

#+END_EXAMPLE

  reply	other threads:[~2014-05-28 12:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-28 11:47 Superscript and subscript in HTML? Peter Davis
2014-05-28 12:50 ` Rick Frankel [this message]
2014-05-28 13:22   ` Peter Davis
2014-05-28 13:29     ` Rick Frankel
2014-05-28 13:36       ` Peter Davis
2014-05-28 13:42         ` Rick Frankel
2014-05-28 13:37 ` Nick Dokos

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d18c49648666bcc5cbb102c15cb94366@mail.rickster.com \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=pfd@pfdstudio.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).