Hi Stephen, Nick, Yannick, Thanks for your feedback and suggestions. I have to see if this easy to implement. Rene Brun On Fri, 14 Jul 2000, Stephen Bailey wrote: > > Hi. > > I agree that just requiring all TLatex strings to be wrapped > in $..$ is a bit silly and not backwards compatible. I also > understand that backwards compatibility is very important. > So this is what I personally would really like to see: > > In LaTeX, I might plausibly want to label a plot axis with > > $K_S \to \pi^+ \pi^-$ mass > > In this case, the K_S and pi symbols are in math italic and the word > "mass" is in the default font. There is no space between the two > pi symbols but there is a space between them and the word "mass". > I would like to be able to translate this as directly as possible > into TLatex. Since C++ has a different use for the backslash character > it has to be replaced with #, but otherwise I would be quite happy if > > TLatex testLatex; > testLatex.DrawLatex(1, 1, "$K_S #to #pi^+ #pi^-$ mass") > > would produce output as similar to the true LaTeX output as > possible, including italics vs. regular font, etc. If I > decided I wanted to adjust the spacing a little, > #! (small negative space) and #. #, #; (increasing > amounts of positive space) would be useful: > > testLatex.DrawLatex(1, 1, "$K_S #; #to #; #pi^+ #pi^-$ mass") > > I don't know if this is quite what Nick intended with his > suggestion, but it what I would prefer. > > Stephen > > > On Fri, 14 Jul 2000, Rene Brun wrote: > > > Hi Stephen, > > > > Stephen Bailey wrote: > > > > > > Hi Rene et. al. > > > > > > I would prefer TLatex to mimic LaTeX as closely as possible, > > > thus I support Nick's suggestion of $..$ notation. It would > > > also be really nice to have equivalents of LaTeX's \. \, \; > > > and \! to be able to fine tune the spacing of formulas. > > > > > > > Let me understand your (and Nick) proposal with the $$. > > Are you proposing that all TLatex strings systematically should be surrounded > > by $ ? > > if yes, this cannot be backward compatible. I am not sure that the majority > > will agree. > > if no, how to you switch between the two states ? > > > > Since \ is unpractical with C++, would you be happy with #. #, #; #! ? > > I did not look yet at possible side-effects. > > > > > > > As an additional feature to be able to produce TLatex output > > > more similar to real LaTeX, it would also be nice to have an > > > italic Greek font so that the labels in our plots look more > > > similar to the LaTeX text that surrounds them in our papers. > > > I don't know how technically difficult it would be to add a > > > Greek italic font though. > > > > > > > I have to investigate this. I had already similar requests. The difficulty > > is in finding the right fonts that are OK on the screen (Unix, NT) > > and with PostScript. > > > > Rene Brun > > >
This archive was generated by hypermail 2b29 : Tue Jan 02 2001 - 11:50:29 MET