Re: Complicated Latex typesetting for IDL ledgend [message #73661] |
Tue, 23 November 2010 07:48  |
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   |
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 #73759 is a reply to message #73661] |
Tue, 23 November 2010 08:21  |
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
|
|
|