Karim BELABAS on Sat, 23 Sep 2000 19:18:55 +0200 (MET DST) |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: PATCH: prettyprinter and colors |
[Ilya:] > b) Makes colors work with the prettyprinter. Ilya, I committed all your patches and introduced a new value for the 'output' default as you suggested (\o3 = use external prettyprinter, for which "tex2mail ..." is the default, any result can be ``externally prettyprinted'' using the shortcut \B, analogous to \a,\b,\m). There is a slight problem with color support in tex2mail: a 1-space offset is propagating: (18:56) gp > default(colors,l) colors = "1, 6, 3, 4, 5, 2, 3" (18:56) gp > \o3 output = 3 (external prettyprint) (18:56) gp > sin(x) 1 3 1 5 1 7 1 9 1 11 1 13 %1 = x - -x + ---x - ----x + ------x - --------x + ----------x - 6 120 5040 362880 39916800 6227020800 I also have the following very weird problem, with the new shortcut \B, which is probably due to my misunderstanding some important buffering issue: (19:01) gp > 1/2 %1 = 1/2 (19:01) gp > \B Got finishing event `' in the outermost block, rest= at tex2mail line 399, <> chunk 3. (19:01) gp > \B Got `}' while waiting for `junk', rest={2}} at tex2mail line 397, <> chunk 5. Got finishing event `}' in the outermost block, rest={2}} at tex2mail line 399, <> chunk 5. 1 -12 2 (19:02) gp > \B Too few chunks (0) in inner level, expecting 2 at tex2mail line 479, <> chunk 7. Too few chunks (0) in inner level, expecting 2 at tex2mail line 467, <> chunk 7. Got `' while waiting for `junk', rest={2}} at tex2mail line 397, <> chunk 7. Got finishing event `' in the outermost block, rest={2}} at tex2mail line 399, <> chunk 7. 2 (19:02) gp > \B 1 - 2 And after these initial three failed attempts, everything is fine !!!! If I try anything else than a simple fraction (e.g sin(x)), it works fine from the start, then fails as above as soon as I try to output a simple fraction. It doesn't matter whether the external filter has been previously started or not (with \o3 + some output). Also, \B can bug the external filter for a few inputs: (19:11) gp > \o3 output = 3 (external prettyprint) (19:11) gp > "{1\\over2}" 1 %1 = - 2 (19:11) gp > \B Got finishing event `}' in the outermost block, rest= at tex2mail line 399, <> chunk 5. (19:11) gp > 1/2 Got finishing event `1' in the outermost block, rest=\%2 = \LITERALnoLENGTH{}{{1}\over{2}} at tex2mail line 399, <> chunk 7. Got finishing event `1' in the outermost block, rest={{1}\over{2}} at tex2mail line 399, <> chunk 7. Got `}' while waiting for `junk', rest={2}} at tex2mail line 397, <> chunk 7. Got finishing event `}' in the outermost block, rest={2}} at tex2mail line 399, <> chunk 7. 1 -%2 = 12 2 (19:11) gp > \B Too few chunks (-4) in inner level, expecting 1 at tex2mail line 479, <> chunk 9. Too few chunks (-4) in inner level, expecting 1 at tex2mail line 467, <> chunk 9. Got `' while waiting for `junk', rest={2}} at tex2mail line 397, <> chunk 9. Got finishing event `' in the outermost block, rest={2}} at tex2mail line 399, <> chunk 9. 12 If I insist, the number of missing chunks decreases (-3, -2,...), reaches 0 and then everything is fine again. I'm puzzled... Karim. __ 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/