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

Home » Public Forums » archive » Italic and upright in the same title/caption
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
Italic and upright in the same title/caption [message #66048] Mon, 13 April 2009 06:54 Go to next message
Michael Williams is currently offline  Michael Williams
Messages: 17
Registered: December 2008
Junior Member
Hi,

is it possible to persuade IDL to use both italic and upright text in
the same caption (e.g. italic for variable names, upright for units)?
I would like to do this with Postscript output using the Times font.
At the moment I'm creating the strings for my captions using TeXToIDL
because they include subscripts and greek symbols, so bonus points for
any suggestions that allow me to continue to use that!

-- Mike
Re: Italic and upright in the same title/caption [message #66159 is a reply to message #66048] Wed, 15 April 2009 09:38 Go to previous message
Michael Galloy is currently offline  Michael Galloy
Messages: 1114
Registered: April 2006
Senior Member
Michael Williams <mjwilliams@gmail.com> wrote:
> Hi,
>
> is it possible to persuade IDL to use both italic and upright text in
> the same caption (e.g. italic for variable names, upright for units)?
> I would like to do this with Postscript output using the Times font.
> At the moment I'm creating the strings for my captions using TeXToIDL
> because they include subscripts and greek symbols, so bonus points for
> any suggestions that allow me to continue to use that!

Check the online help for embedding format codes in text written to
graphics devices. I don't have access to the online help right now, but
your string will look something like:

IDL> xyouts, 0.5, 0.5, 'Area !18A = hw!X', /normal

Mike
--
www.michaelgalloy.com
Associate Research Scientist
Tech-X Corporation
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: no focus on a widget
Next Topic: How to set the default working directory?

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

Current Time: Wed Oct 08 13:44:10 PDT 2025

Total time taken to generate the page: 0.00544 seconds