subscript and superscript in postscript file [message #94022] |
Sat, 24 December 2016 07:10  |
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   |
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  |
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!!
|
|
|