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 
Return to the default flat view Create a new topic Submit Reply
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 previous 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.
[Message index]
 
Read Message
Read Message
Read Message
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: Fri Oct 10 14:48:26 PDT 2025

Total time taken to generate the page: 0.08610 seconds