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




==== [MESSAGE SEPARATOR] ====


  • Prev by Date: fitting a curve by adjusting exponents
  • Next by Date: Re: Subscripts in Text
  • Previous by thread: Subscripts in Text
  • Next by thread: Re: Subscripts in Text