Re: [ROOT] Simple TLatex line \Delta{E}

From: Nick van Eijndhoven (Nick@phys.uu.nl)
Date: Fri Jul 14 2000 - 16:08:02 MEST


Hi Rene,
The problem probably is that in Latex one types $\Delta E$ which
gives a Delta followed by an E without spaces in between.
In ROOT it seems to me that #Delta E is interpreted as $\Delta$ E
where there is a space in between the Delta and the E.
A solution could be to adopt also the $..$ notation in ROOT to
switch to 'formula mode'. This would mean in the above case
entering the text as $#Delta E$ would give a Delta followed by
an E without a space in between.
As far as I can see this would mean no change to the ROOT functionality
but only an extension to the TLatex class.

                                               Cheers,
                                                Nick. 

Rene Brun wrote:
> 
> HI Yannick,
> In the current implementation of TLatex, the greek symbols are directly
> replaced by their graphical representation. You can perfectly give #DeltaE
> and not #Delta{E}. Greek letters are not considered to be operators with
> an argument. Since this would be an important change in the class, I would
> appreciate getting more feedback on this subject. May be somebody should
> cross-check the latex compatibility for all functions of TLatex.
> 
> Rene Brun
> 
> Patois Yannick wrote:
> >
> > Hi,
> >
> > I used TLatex to label an axis and I'm surprised by the result.
> > I wanted to display {\Delta}E.
> >
> > I tried :
> > "#Delta E"  -> Gives \Delta~E (there is a space)
> > "{#Delta}E" -> Gives \{\Delta\}E (brackets are draw)
> > "#Delta{E}" -> Gives \Delta\{E} (brackets are draw)
> > "#DeltaE"   -> Gives the good result, but in latex, \DeltaE wouldnt
> > compile
> >
> > If the goal is (as it seems) to mimic as much as possible LaTeX syntax,
> > this could be enhanced on this point.
> >
> >         Yannick
> >
> > --
> >  _/ Yannick Patois _________________ Address (home) __________________
> > | irc(undernet): Garp on #france25+  | La Villa des Sciences           |
> > | email : patois@ganil.fr            | 12, avenue de Cambridge         |
> > | http://garp.feelingsurfer.net/     | 14200 Herouville-Saint-Clair    |
> > | Tel/Fax-home:+33 (0)2 31 94 50 32  | FRANCE                          |



This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET