f

#### subscript and superscript in postscript file

```Hi,

I was trying to print some values came from the code into a plot in postscr=
ipt format through XYOUTS as below as superscript and subscript.=20

xyouts,350,45.0,'!4a =3D '+alp+'!6!E' +alphigh+ '!I'+alplow

The problem is the placement of the superscript/subscript at the end of the=
"alp" string. I want it to start from the same position above and below th=
e end of "alp" string, but, in the above way, position of subscript is afte=
r the superscript (obvious). I know this is a naive question, but it will h=
elpful if there is a way out.

Thanks,
Krishnakumar
```
 0
Krishnakumar
12/24/2016 3:10:12 PM
comp.lang.idl-pvwave 12260 articles. 4 followers.

2 Replies
999 Views

Similar Articles

[PageSpeed] 20

```On Saturday, December 24, 2016 at 8:10:15 AM UTC-7, Krishnakumar M.A wrote:
> Hi,
>=20
> I was trying to print some values came from the code into a plot in posts=
cript format through XYOUTS as below as superscript and subscript.=20
>=20
> 	xyouts,350,45.0,'!4a =3D '+alp+'!6!E' +alphigh+ '!I'+alplow
>=20
> The problem is the placement of the superscript/subscript at the end of t=
he "alp" string. I want it to start from the same position above and below =
the end of "alp" string, but, in the above way, position of subscript is af=
ter the superscript (obvious). I know this is a naive question, but it will=
helpful if there is a way out.
>=20
> Thanks,
> Krishnakumar

Hi Krishnakumar,

One approach is to use the formatting commands !S and !R (save and restore =
a position).

xyouts,350,45.0,'!4a =3D '+alp+'!6!S!E' +alphigh+ '!R!I'+alplow

For more examples, see: http://www.harrisgeospatial.com/docs/Formatting_Com=
mand_Examp.html

Jim P.

```
 0
Jim
12/24/2016 3:42:42 PM
```On Saturday, December 24, 2016 at 9:12:45 PM UTC+5:30, Jim P wrote:
> On Saturday, December 24, 2016 at 8:10:15 AM UTC-7, Krishnakumar M.A wrot=
e:
> > Hi,
> >=20
> > I was trying to print some values came from the code into a plot in pos=
tscript format through XYOUTS as below as superscript and subscript.=20
> >=20
> > 	xyouts,350,45.0,'!4a =3D '+alp+'!6!E' +alphigh+ '!I'+alplow
> >=20
> > The problem is the placement of the superscript/subscript at the end of=
the "alp" string. I want it to start from the same position above and belo=
w the end of "alp" string, but, in the above way, position of subscript is =
after the superscript (obvious). I know this is a naive question, but it wi=
ll helpful if there is a way out.
> >=20
> > Thanks,
> > Krishnakumar
>=20
> Hi Krishnakumar,
>=20
> One approach is to use the formatting commands !S and !R (save and restor=
e a position).
>=20
>    xyouts,350,45.0,'!4a =3D '+alp+'!6!S!E' +alphigh+ '!R!I'+alplow
>=20
> For more examples, see: http://www.harrisgeospatial.com/docs/Formatting_C=
ommand_Examp.html
>=20
> Jim P.

Thanks, it worked!!
```
 0
Krishnakumar
12/24/2016 8:04:35 PM