Probably because C++ compilers would do their own pre-parsing
on it. e.g. if you do
blat.DrawLatex("\nu");
the C++ compiler will pass a newline followed by a 'u' to the
function, rather than passing '\', 'n', 'u' as you intend.
It is an unfortunate clash between C/C++ and LaTeX over the
use of '\'.
Stephen
On Thu, 16 Sep 1999, Inkyu Park wrote:
> Hi,
>
> One of the interesting new features in ROOT compared to PAW is an easy
> way to write the mathematical formula on histogram using TLatex class.
>
> But one question came up:
>
> Why use "#" instead of "\" as it is in Latex?
>
> When I copy my formula from my document to my histogram, I have to
> convert all "\" to "#". I am guessing this is because Postscript uses "\"
> for special character trigger.....
>
> Cheers,
> Inkyu
>
This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:43:39 MET