> \begin{fricasmath}{1}
> \sin{\SYMBOL{x}}%
> \end{fricasmath}
> The new FriCAS-specific environment actually looks rather frightening
> compared to what the old version used to produce! What is the purpose
> of \SYMBOL ? Is that also FriCAS-specific or something from LaTeX I
> don't know?
See fricasmath.sty. I introduced \SYMBOL and \STRING to give the user
more control of how the output should look like. You can easily override
the definition from fricasmath.sty.
\def\SYMBOL##1{{\DefSpecialChars ##1}}%
But look at the old generated stuff
4) -> "Hello World"::Symbol
(4) Hello World
$$
\mbox{\rm Hello World}
\leqno(4)
$$
(5) -> "some_identifier"::Symbol
(5) some_identifier
$$
some_identifier
\leqno(5)
$$
and the new one
(2) -> "Hello World"::Symbol
(2) Hello World
\begin{fricasmath}{2}
\SYMBOL{Hello\ World}%
\end{fricasmath}
(3) -> "some_identifier"::Symbol
(3) some_identifier
\begin{fricasmath}{3}
\SYMBOL{some\_identifier}%
\end{fricasmath}
And see also all the other tests using the "message" function.
I'm not of the opinion that FriCAS should decide about the style so you
can define it yourself. \SYMBOL is more or less the hook that let's you
do this.
Right, the generated LaTeX might look ugly, but why do you care? It's
generated for LaTeX to swallow not for humans.
> Anyway, after adding 'fricasmath.sty' to the mathaction latextemplate
> and also adding the 'TEXINPUTS=/usr/local/lib/fricas/emacs//:'
> environment variable so that latex could find it, I now get the
> following error output from latex:
> ...
> (/usr/local/lib/fricas/emacs/fricasmath.sty
> (/usr/share/texmf-texlive/tex/latex/breqn/breqn.sty
> (/usr/share/texmf-texlive/tex/latex/breqn/flexisym.sty
> (/usr/share/texmf-texlive/tex/latex/breqn/cmbase.sym)
> Illegal parameter number in definition of \@begindocumenthook.
> <to be read again>
> 1
> l.255 \relax\relax\relax\relax}
That looks like either LaTeX or breqn.sty or something is too old.
My breqn.sty says:
\NeedsTeXFormat{LaTeX2e}
\RequirePackage{expl3}[2009/08/05]
\ProvidesExplPackage{breqn}{2012/05/10}{0.98b}{Breaking equations}
Since breqn builds on LaTeX3 stuff, I guess one needs a newer TeXlive
distribution. But that's only a guess.
Does that help?
Ralf
--
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/fricas-devel.
For more options, visit https://groups.google.com/d/optout.