Italic and upright in the same title/caption [message #66048] |
Mon, 13 April 2009 06:54  |
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  |
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
|
|
|