From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter Davis Subject: Re: Superscript and subscript in HTML? Date: Wed, 28 May 2014 09:22:25 -0400 Message-ID: <20140528132220.GA2600@pfdstudio-air.home> References: <5385CCB5.7070604@pfdstudio.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpdoP-0006bN-V4 for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:22:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpdoK-0007Y4-Bt for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:22:33 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:40010) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpdoK-0007Y0-9A for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:22:28 -0400 Content-Disposition: inline In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Rick Frankel Cc: emacs-orgmode@gnu.org On Wed, May 28, 2014 at 08:50:20AM -0400, Rick Frankel wrote: > 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 > and 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 >
>

Super and subscript

>
>

> this is a super1 script. and a sub2 script. >

> >

> another super3 and another sub4

>
>
> > #+END_EXAMPLE > Here's what I get for the body, using your example: +==========
#+OPTIONS: toc:nil
* Super and subscript
this is a super^{1} script. and a sub_{2} script.

another super^3 and another sub_4
+========== Leaving out the #+BEGIN_SRC/#+END_SRC doesn't work either. This is with emacs 24.3.3, org-mode 8.2.5g Thanks, -pd -- ---- Peter Davis The Tech Curmudgeon www.techcurmudgeon.com