comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » subscript and superscript in postscript file
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
subscript and superscript in postscript file [message #94022] Sat, 24 December 2016 07:10 Go to next message
Krishnakumar M.A is currently offline  Krishnakumar M.A
Messages: 19
Registered: March 2013
Junior Member
Hi,

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

xyouts,350,45.0,'!4a = '+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 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 will helpful if there is a way out.

Thanks,
Krishnakumar
Re: subscript and superscript in postscript file [message #94023 is a reply to message #94022] Sat, 24 December 2016 07:42 Go to previous messageGo to next message
Jim  Pendleton is currently offline  Jim Pendleton
Messages: 165
Registered: November 2011
Senior Member
On Saturday, December 24, 2016 at 8:10:15 AM UTC-7, Krishnakumar M.A wrote:
> Hi,
>
> I was trying to print some values came from the code into a plot in postscript format through XYOUTS as below as superscript and subscript.
>
> xyouts,350,45.0,'!4a = '+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 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 will helpful if there is a way out.
>
> 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 = '+alp+'!6!S!E' +alphigh+ '!R!I'+alplow

For more examples, see: http://www.harrisgeospatial.com/docs/Formatting_Command_Exam p.html

Jim P.
Re: subscript and superscript in postscript file [message #94024 is a reply to message #94023] Sat, 24 December 2016 12:04 Go to previous message
Krishnakumar M.A is currently offline  Krishnakumar M.A
Messages: 19
Registered: March 2013
Junior Member
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 wrote:
>> Hi,
>>
>> I was trying to print some values came from the code into a plot in postscript format through XYOUTS as below as superscript and subscript.
>>
>> xyouts,350,45.0,'!4a = '+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 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 will helpful if there is a way out.
>>
>> 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 = '+alp+'!6!S!E' +alphigh+ '!R!I'+alplow
>
> For more examples, see: http://www.harrisgeospatial.com/docs/Formatting_Command_Exam p.html
>
> Jim P.

Thanks, it worked!!
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Remove the repeated lines in my array...
Next Topic: Attempt to call undefined procedure/function -- error

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 07:14:11 PDT 2025

Total time taken to generate the page: 0.00423 seconds