On Wed, May 25, 2022 at 12:47:47PM -0700, 'Nasser M. Abbasi' via FriCAS - 
computer algebra system wrote:
> 
> Fricas uses very old and not recommended \over when it generates latex.
> This causes modern compilers such as lualatex to hang when using dmath 
> environment.
> 
> Could the latex be corrected to use \frac{} instead?

Just as an explanation: FriCAS uses '\over' because it work both
in LaTeX and plain TeX.
> 
> Now do 
> 
>     lualatex foo.tex
> 
> and it hags. see 
> https://tex.stackexchange.com/questions/412450/why-this-latex-code-hangs-lualatex-foreign-command-over
>   
> for reference.
> 
> dmath is used to automatically try to break long output into separate lines 
> which is very useful. The hangs goes away when using \[...\]   but not when 
> using dmath environment.

Arguably hangs you mention are bugs in corresponding packages.

> Could this be fixed by next version of Fricas?

As Ralf wrote FormatLaTeX is LaTeX only and generates '\frac'.

Since LaTeX packages you mention have trouble with '\over' it make sense
to make choice in TexFormat between '\frac' and '\over' configurable.
It even makes sense to make '\frac' a default (because plain TeX
gets much less use than in the past).

OTOH I did some experiments with using 'breqn' for line breaking
of FriCAS output and my conclusion at that time was that is is
too unreliable: it has hardcoded limits on what it can handle
and fails if output is too complicated (in fact, mainly if output
is too large).  When I asked in LaTeX group answer was that basically
there is nobody to fix 'breqn'.  There is an ad-hoc postprocessor that
can be run on FriCAS output which seemed to work much better than
'breqn', but still, on some output it was neccessarty to switch to
text (2D ASCII) version.  To say the truth, AFAIK each way
(except possibly for 1D ASCII) of formatting FriCAS output may
fail in some cases (for multiline output FriCAS uses indentation
to show structure, but may run out of page width...).

-- 
                              Waldek Hebisch

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/20220526015733.GB14846%40fricas.math.uni.wroc.pl.

Reply via email to