Complicated Latex typesetting for IDL ledgend [message #73666] |
Tue, 23 November 2010 05:44  |
jimbo
Messages: 2 Registered: November 2010
|
Junior Member |
|
|
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
|
|
|
Re: Complicated Latex typesetting for IDL ledgend [message #73758 is a reply to message #73666] |
Tue, 23 November 2010 08:40  |
pgrigis
Messages: 436 Registered: September 2007
|
Senior Member |
|
|
To get an idea of the result,
this is a plot I produced when I was testing
psfrag to decide if it was worth it.
http://hea-www.cfa.harvard.edu/~pgrigis/fig.ps
Ciao,
Paolo
On Nov 23, 11:21 am, jimbo <james.a.gord...@googlemail.com> wrote:
> 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
|
|
|