Karim BELABAS on Mon, 6 Mar 2000 15:20:42 +0100 (MET) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: [PATCH 2.0.18] \x upgraded |
[Ilya:] > Here is the minimal specificaiton for the translation program: > > a) Plain TeX input (probably changable in the future?) with no > dollars; It would be quite nice to be able to retain the distinction bewteen prompt and output (esp. wrt colouring). Actually, I can do that from PARI's side without tampering with tex2mail: (15:09) gp > "\e[0;31m\\%1 = \e[0;32m 2" %6 = %1 = 2 [ it does work... ]. Can I rely on tex2mail leaving terminal escape sequences alone ? (of course, TeX/LaTeX would print them out verbatim, except for the initial escape...) While checking my "improved" patch (btw, forgot to mention that one needs to also take "secure" default into account), I found the following problem with rational functions: (14:44) gp > (x^2+1)/(x+2) 2 + 1 %1 = x ----- x + 2 (14:44) gp > printtex(%1) {{x^{2} + 1}\over{x + {2}}} I expected something like 2 + 1 x %1 = ------ x + 2 instead [it gets worse as the degree increases]. Cheers, Karim. Ps: one funny (nice) side effect: (15:03) gp > "\\frac{1}{2}" 1 %1 = - 2 [ after correcting a bug in PARI TeX printing of strings, which could not possibly occur before your patch since a shortcut was used, bypassing the incorrect code... ] __ Karim Belabas email: Karim.Belabas@math.u-psud.fr Dep. de Mathematiques, Bat. 425 Universite Paris-Sud Tel: (00 33) 1 69 15 57 48 F-91405 Orsay (France) Fax: (00 33) 1 69 15 60 19 -- PARI/GP Home Page: http://www.parigp-home.de/