Hi to all, and thanks to the developers,
On Mon, Aug 02, 2004 at 05:53:29PM -0500, James Amundson wrote:
> On Mon, 2004-08-02 at 13:19, Luis Alejandro Marquez Martinez wrote:
> > Thanks everyone for your help. This simple script from Starvos Macrakis
> > did the job:
> >
> > stripped_tex(expr):=
> > block([str: tex(expr,false)],
> > concat("",?subseq(str,2,?length(str)-2)))$
> >
The above function works fine for me.
This idea seems not complete:
> > marquez@pc-lmarquez:~> clisp
> > (clisp header suppressed)
> > [1]> (string-trim " ($)" "$$x^2$$");
> > "x^2"
> >
In tex math mode the $ sign can be used as symbol: $$x^2\$$$.
After stripping delimiters, this must become x^2\$.
But with clisp it becomes x^2:
[4]> (string-trim " ($)" "$$x^2\$$$")
"x^2"
--
A