Currently texinfo only supports subscripts and superscripts in @math,
which are only effective in tex mode.  This is unfortunate since both
HTML and DocBook support them.  Are real subcripts/superscripts planned?

I can see two ways to do it:

(1) Parse @math to extract the ^ and _ characters and turn them into the
correct HTML/DocBook elements. This requiring parsing tex math, which is 
non-trivial.
Also, the result is probably wrong if the raised/lowered text contains actual
text (as supposed to numbers or math symbols).

(2) Introduce new @sub and @sup commands (or @subscript/@superscript if you want
to be more verbose - and follow DocBook).  The effect of (say) @sup{TEXT} would 
be:

In info or plaintext: ^TEXT
In HTML: <sup>TEXT</sup>
In DocBook: <superscript>TEXT</superscript>
In XML: I suggest <sup>TEXT</sup>
In TeX inside @math: ^{TEXT}
In TeX otherwise: use a macro that raises the text and reduces the font-size
--
        --Per Bothner
p...@bothner.com   http://per.bothner.com/

Reply via email to