Ralf Hemmecke wrote:
> 
> On 05/17/2014 03:17 PM, Bill Page wrote:
> 
> > If we are talking about a replacement/upgrade of TexFormat then
> > perhaps the best long term solution is to handle line folding inside
> > TeXFormat. It would be natural to control this (e.g. line width) by
> > setting option flags as Waldek suggests. I realize that this might
> > involve a very substantial re-write of the package but most of the
> > required logic is already present in the texbreak C program.
> 
> I will not be the one doing that. The reason is that texbreak is
> computing the width of the boxes not with TeX-widths, but by some
> assumptions.

Yes, to even estimate widths with reasonable accuracy we
would need to replicate part of TeX.  So, it is much
better do to splitting of equations on TeX side.  And
that should not be too hard: we get potential break
points (operators) and accumulate horizontal material
as long as it fits.  TeX exposens enough primitives
to do this in a macro.  One can try to optimize
breakpoints, for examples associating penalty with
each breakpoint (say, more nested operator has bigger
penalty), but this may be much more crude than for
text (because no one expects formulas to line up
with margin).  I do not know why breqn has such
problems.

> The good thing probably is that TeXFormat has the source
> form of the expression while breqn.sty only gets the tex format and has
> less information about the semantics of the expression.

This probably does not make much difference.

> If someone want's to put texbreak into TeXFormat, fine for me, but I
> will not be that one, because I think that output for .tex should anyway
> be small and not cover (waste) several printed pages. It's a task for
> the author of such a tutorial to give the reader understanding of what
> is happening instead of bombarding him/her with pages of output that
> nobody is going to read or check by hand.

It is not FriCAS task to tell users if they need output or
not -- they know better.

-- 
                              Waldek Hebisch
[email protected] 

-- 
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.

Reply via email to