MathGroup Archive 1996

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Subscripts in Text


> Hello,
> 
> is there any way to get subscripts in Text? I need that for labeling a
> Graph with "H_2O_2". "_" denotes a subscript.
> 
> Thanks in advance,
> Tobias
Hi Tobias,

here is one solution


In[1]:=
Format[SuperOxide]:=
  SequenceForm[H,Subscript[2],
               O,Subscript[2]]


In[2]:=SuperOxide

Out[2]=
H O
 2 2

(* it will work with the graphics Text-primitive also *)

In[3]:=
Show[
  Graphics[
    Text[
      SuperOxide,{0,0}]
     ]
  ];


Hope that helps 
Jens





  • Prev by Date: Re: Subscripts in Text
  • Next by Date: MathLink Q: Not working anymore!!
  • Previous by thread: Re: Subscripts in Text
  • Next by thread: Fitting data with Splines