From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rick Frankel Subject: Re: Superscript and subscript in HTML? Date: Wed, 28 May 2014 09:29:44 -0400 Message-ID: <8d8b01598d277ad77f2d4081ded6e199@mail.rickster.com> References: <5385CCB5.7070604@pfdstudio.com> <20140528132220.GA2600@pfdstudio-air.home> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpdvT-0000O7-5Y for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:29:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WpdvN-00021p-6l for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:29:51 -0400 Received: from mail.rickster.com ([204.62.15.78]:41417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WpdvN-00021W-2Q for emacs-orgmode@gnu.org; Wed, 28 May 2014 09:29:45 -0400 In-Reply-To: <20140528132220.GA2600@pfdstudio-air.home> 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: Peter Davis Cc: emacs-orgmode@gnu.org On 2014-05-28 09:22, Peter Davis wrote: > 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 The begin/end src lines are just that, markers to show where the org source starts and end. What you have formatted is a source code listing, not the source code. 1. Create a new org mode buffer. 2. Copy the contents WITHIN the begin/end src block to the buffer. 3. Remove the leading commas (,). 4. With your cursor on the #+OPTION line type [C-c C-c]. 5. Generate the html output. If it still doesn't work edit the file with: emacs -Q -L mytest.org and try again. rick