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

Home » Public Forums » archive » Re: Embedded Formatting Commands (looking for an expert)
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: Embedded Formatting Commands (looking for an expert) [message #74026] Thu, 16 December 2010 11:58
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Dec 16, 5:18 pm, Gray <grayliketheco...@gmail.com> wrote:
>> When I get a chance I will try the idea I mentioned earlier, of making
>> a more general LaTeX parser, probably through JLaTeXMath. But that
>> surely is not happening before January.
>
> What about textoidl?

It only supports a very small subset of LaTeX, and does not really
work with any of the systems that use object graphics (OO, iTools and
Graphics). The builtin support for LaTeX in IDL 8 is much better than
textoidl, but is still limited to few things.
Re: Embedded Formatting Commands (looking for an expert) [message #74028 is a reply to message #74026] Thu, 16 December 2010 11:18 Go to previous message
Gray is currently offline  Gray
Messages: 253
Registered: February 2010
Senior Member
On Dec 16, 1:07 pm, Paulo Penteado <pp.pente...@gmail.com> wrote:
> On Dec 16, 3:58 pm, nata <bernat.puigdomen...@gmail.com> wrote:
>
>> Ok, this is a temporary solution.
>> I would like to have the right way to do it, in case I want to write
>> more formulas in the future.
>
> When I get a chance I will try the idea I mentioned earlier, of making
> a more general LaTeX parser, probably through JLaTeXMath. But that
> surely is not happening before January.

What about textoidl?
Re: Embedded Formatting Commands (looking for an expert) [message #74029 is a reply to message #74028] Thu, 16 December 2010 10:07 Go to previous message
penteado is currently offline  penteado
Messages: 866
Registered: February 2018
Senior Member
Administrator
On Dec 16, 3:58 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Ok, this is a temporary solution.
> I would like to have the right way to do it, in case I want to write
> more formulas in the future.

When I get a chance I will try the idea I mentioned earlier, of making
a more general LaTeX parser, probably through JLaTeXMath. But that
surely is not happening before January.
Re: Embedded Formatting Commands (looking for an expert) [message #74031 is a reply to message #74029] Thu, 16 December 2010 09:58 Go to previous message
natha is currently offline  natha
Messages: 482
Registered: October 2007
Senior Member
Ok, this is a temporary solution.
I would like to have the right way to do it, in case I want to write
more formulas in the future.

I tried to do the same as the example of the documentation but I
didn't succeed.
rhs = '!8!S!Af(x!S!Ii!R ) - f(x!S!Ij!R )!R!B x!S!Ii!R - x!S!Ij!R !X'

It seems that I cannot use 2 !S successively (one "inside" the other !
S ... !S ... !R ... !R)
Thank you David,

nata
Re: Embedded Formatting Commands (looking for an expert) [message #74034 is a reply to message #74031] Thu, 16 December 2010 09:44 Go to previous message
David Fanning is currently offline  David Fanning
Messages: 11724
Registered: August 2001
Senior Member
nata writes:

> I have a problem trying to write the upper part and the lower part of
> the formula together. How can I do it ?
> I know this is embarrassing but any help is appreciated.

I don't have any idea how to something like this. I'd have
to fudge it like this. :-)

SET_PLOT, 'PS'
!P.FONT=0
DEVICE, FILENAME='dummy.ps', XSIZE=10, YSIZE=10
Plots, [0.25, 0.75], [0.5, 0.5], /Normal
str='!9'+STRING("345B)+'!S!A!E!7N-L-1!R!B!IK=0!N ' + $
'(x!Dk!N -!9'+STRING("140B)+$
'!7x)(y!Dk+L!N -!9'+STRING("140B)+'!7y)';+$
XYOUTS, 0.5, 0.5 + (!D.Y_CH_SIZE/0.8)/!D.Y_Size, str, $
/NORMAL, ALIGNMENT=0.5, CHARSIZE=1

str='!9( '+STRING("133B)+STRING("345B)+'!S!A!E' + $
'!7N-1!R!B!IK=0!N(x!Dk!N - !9'+$
STRING("140B)+'!7x)!E2!N!9'+STRING("135B)+STRING("133B)+$
STRING("345B)+$
'!S!A!E!7N-1!R!B!IK=0!N(y!Dk!N - !9'+STRING("140B)+$
'!7y)!E2!N!9'+STRING("135B)+$
' )!E1/2!N'
XYOUTS, 0.5, 0.5 -(!D.Y_CH_SIZE*2.)/!D.Y_Size , str, $
/NORMAL, ALIGNMENT=0.5, CHARSIZE=1
END

Cheers,

David


--
David Fanning, Ph.D.
Fanning Software Consulting, Inc.
Coyote's Guide to IDL Programming: http://www.dfanning.com/
Sepore ma de ni thui. ("Perhaps thou speakest truth.")
Re: Embedded Formatting Commands (looking for an expert) [message #74035 is a reply to message #74034] Thu, 16 December 2010 09:13 Go to previous message
pgrigis is currently offline  pgrigis
Messages: 436
Registered: September 2007
Senior Member
I would use psfrag instead - that allows you to write the formula in
LaTeX.

It will look so much better.

Ciao,
Paolo

On Dec 16, 12:08 pm, nata <bernat.puigdomen...@gmail.com> wrote:
> Hi gurus,
>
> I need an expert of Embedded Formatting Commands to help me.
> I'm trying to write the C_CORRELATE formula in a PostScript. My code
> is as follows:
>
> ;;
> ------------------------------------------------------------ ----------------------------------------------
>     SET_PLOT, 'PS'
>     !P.FONT=0
>     DEVICE, FILENAME='dummy.ps', XSIZE=10, YSIZE=10
>
>     str='!9'+STRING("345B)+'!S!A!E!7N-L-1!R!B!IK=0!N (x!Dk!N -!
> 9'+STRING("140B)+$
>       '!7x)(y!Dk+L!N -!9'+STRING("140B)+'!7y)';+$
>     XYOUTS, 0.5, 0.6, str, /NORMAL, ALIGNMENT=0.5, CHARSIZE=1
>
>     str='!9( '+STRING("133B)+STRING("345B)+'!S!A!E!7N-1!R!B!IK=0!N(x!
> Dk!N - !9'+$
>       STRING("140B)+'!7x)!E2!N!9'+STRING("135B)+STRING("133B)
> +STRING("345B)+$
>       '!S!A!E!7N-1!R!B!IK=0!N(y!Dk!N - !9'+STRING("140B)+'!7y)!E2!N!
> 9'+STRING("135B)+$
>       ' )!E1/2!N'
>     XYOUTS, 0.5, 0.4, str, /NORMAL, ALIGNMENT=0.5, CHARSIZE=1
>
>     DEVICE, /CLOSE
> ;;
> ------------------------------------------------------------ ----------------------------------------------
>
> I have a problem trying to write the upper part and the lower part of
> the formula together. How can I do it ?
> I know this is embarrassing but any help is appreciated.
>
> Thanks in advance.
> nata
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Embedded Formatting Commands (looking for an expert)
Next Topic: LIST performance

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

Current Time: Wed Oct 08 14:00:20 PDT 2025

Total time taken to generate the page: 0.00693 seconds