From: Eduardo O. <edu...@gm...> - 2025-05-01 06:19:13
|
Mi Matthias, I've never used TeXmacs-Maxima, so this is just a guess... I _guess_ that TeXmacs-Maxima displays its output cells by generating the TeX code for them and then rendering that in some way, and to change the TeX code that is generated for antideriv objects we just need this (in Maxima - not in Lisp): format([args]) := apply(?format, append([false], args)); texput(antideriv, antideriv_tex); antideriv_tex(o) := block([fx,x,a,b], [fx,x,a,b]:args(o), format("\\left.~a\\right|_{~a=~a}^{~a=~a}", tex1(fx), tex1(x),tex1(a), tex1(x),tex1(b))); After that the result of: tex1(antideriv(f(x),x,a,b)); becomes: \left.f\left(x\right)\right|_{x=a}^{x=b} Try this too: antideriv(f(x),x,a,b); Cheers, Eduardo On Thu, 1 May 2025 at 02:02, Matthias A. Steiner <mat...@we...> wrote: > Dear Eduardo, > > Sorry about the noise. Your patch is workin fine on the command-line > prompt: > (...) > > Unfortunately it doesn’t work from within TeXmacs maxima-plugin. Why is > that? > |