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

Home » Public Forums » archive » Re: Complicated Latex typesetting for IDL ledgend
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
Re: Complicated Latex typesetting for IDL ledgend [message #73661] Tue, 23 November 2010 07:48 Go to next message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Nov 23, 1:27 pm, Paolo <pgri...@gmail.com> wrote:
> If you want anything more then basic stuff, do use psfrag.
>
> That will allow you to put any LaTeX formula into your plot.
>
> IDL own symbols are very limited.

I have for some time intended to make something similar to what
mathurl (http://mathurl.com/) does. But so far never had the time to
do it. The hard part would be handle the external dependency on LaTeX
in a reasonably tolerable and platform-independent way. Maybe with
JLaTeXMath through an IDL_Java bridge.

Ideally the LaTeX output should be vectorial, not bitmap. But drawing
the vectors might also be tricky, depending on how they are provided.
Re: Complicated Latex typesetting for IDL ledgend [message #73663 is a reply to message #73661] Tue, 23 November 2010 07:27 Go to previous messageGo to next message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
If you want anything more then basic stuff, do use psfrag.

That will allow you to put any LaTeX formula into your plot.

IDL own symbols are very limited.

Ciao,
Paolo




On Nov 23, 10:19 am, Timm Weitkamp <weitk...@esrf.fr> wrote:
> On Nov 23, 2:44 pm, jimbo <james.a.gord...@googlemail.com> wrote:
>
>
>
>> I would like to include the following LaTex command in the legend of a
>> plot in IDL...
>
>> $ \widetilde{ B^{ijk}_{0} } $
>
>> however TeXtoIDL("...") and IDL 8's internal '$...$' system does not
>> support the \widetilde{} command. Is there a way of including this
>> symbol into eg the TeXtoIDL lookup table, or of including the whole
>> character in another way (maybe I crop it as an image and manually
>> place it into the legend using TV - last resort)?
>
>> I assume this sort of issue has come up before, but have not found an
>> obvious fix in this case.
>
>> I have tried code such as...
>
>> B_tilde == '!3 !s $B^{ijk}_{0}$ !r !u ~ !n'
>
>> which gives a B with a tilde above, however the tilde is not streched
>> to cover the superscript as well, and is not positioned high enough to
>> even sit well above the B let alone the whole symbol. I should add
>> that this is postscript output to a .esp plot
>
>> Any ideas would be great
>
>> Thanks
>
> I doubt that this is possible using only IDL. Have you considered
> using psfrag?
>
> Timm
Re: Complicated Latex typesetting for IDL ledgend [message #73664 is a reply to message #73663] Tue, 23 November 2010 07:19 Go to previous messageGo to next message
Timm Weitkamp is currently offline  Timm Weitkamp
Messages: 66
Registered: August 2002
Member
On Nov 23, 2:44 pm, jimbo <james.a.gord...@googlemail.com> wrote:
> I would like to include the following LaTex command in the legend of a
> plot in IDL...
>
> $ \widetilde{ B^{ijk}_{0} } $
>
> however TeXtoIDL("...") and IDL 8's internal '$...$' system does not
> support the \widetilde{} command. Is there a way of including this
> symbol into eg the TeXtoIDL lookup table, or of including the whole
> character in another way (maybe I crop it as an image and manually
> place it into the legend using TV - last resort)?
>
> I assume this sort of issue has come up before, but have not found an
> obvious fix in this case.
>
> I have tried code such as...
>
> B_tilde == '!3 !s $B^{ijk}_{0}$ !r !u ~ !n'
>
> which gives a B with a tilde above, however the tilde is not streched
> to cover the superscript as well, and is not positioned high enough to
> even sit well above the B let alone the whole symbol. I should add
> that this is postscript output to a .esp plot
>
> Any ideas would be great
>
> Thanks

I doubt that this is possible using only IDL. Have you considered
using psfrag?

Timm
Re: Complicated Latex typesetting for IDL ledgend [message #73759 is a reply to message #73661] Tue, 23 November 2010 08:21 Go to previous message
jimbo is currently offline  jimbo
Messages: 2
Registered: November 2010
Junior Member
On Nov 23, 3:48 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Nov 23, 1:27 pm, Paolo <pgri...@gmail.com> wrote:
>
>> If you want anything more then basic stuff, do use psfrag.
>
>> That will allow you to put any LaTeX formula into your plot.
>
>> IDL own symbols are very limited.
>
> I have for some time intended to make something similar to what
> mathurl (http://mathurl.com/) does. But so far never had the time to
> do it. The hard part would be handle the external dependency on LaTeX
> in a reasonably tolerable and platform-independent way. Maybe with
> JLaTeXMath through an IDL_Java bridge.
>
> Ideally the LaTeX output should be vectorial, not bitmap. But drawing
> the vectors might also be tricky, depending on how they are provided.

Thank you,

PSFrag looks interesting - not a package I have come across, but seems
to do the job. I think you are on to something with a mathurl type
system - I would certainly rather write the whole string in Latex
format and just include the output image as the title say, so the
spacing etc. is correct. As you say however, scaling bitmaps is
obviously less than ideal unless you can tie the latex fontsize to the
charsize tag in IDL?

Again, thanks for the prompt replies

J
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Re: Common block compilation error
Next Topic: Complicated Latex typesetting for IDL ledgend

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

Current Time: Wed Oct 08 11:37:01 PDT 2025

Total time taken to generate the page: 0.00641 seconds