login  home  contents  what's new  discussion  bug reports     help  links  subscribe  changes  refresh  edit

Edit detail for SandBoxVeryLongLaTeX revision 2 of 5

1 2 3 4 5
Editor: test1
Time: 2015/01/08 16:36:33 GMT+0
Note:

changed:
-TeXmacs - Axiom interface program called tm_axiom.
OldTeXmacs - Axiom interface program called tm_axiom.

changed:
-when displayed in TeXmacs when using the Sutor line-break algorithm.
-But typeset and folded correctly by TeXmacs without the line-break
when displayed in OldTeXmacs when using the Sutor line-break algorithm.
But typeset and folded correctly by OldTeXmacs without the line-break

changed:
-correct in the most recent versions of TeXmacs (1.0.4.5 on cygwin
correct in the most recent versions of OldTeXmacs (1.0.4.5 on cygwin

changed:
-TeXmacs but it displayed correctly both here and in TeXmacs when
OldTeXmacs but it displayed correctly both here and in OldTeXmacs when

changed:
-It is formatted properly below but in TeXmacs the output is
It is formatted properly below but in OldTeXmacs the output is

changed:
-algorithm TeXmacs displays it correctly but as one long non-
algorithm OldTeXmacs displays it correctly but as one long non-

changed:
-of (1/3), is formatted properly both here and in TeXmacs
of (1/3), is formatted properly both here and in OldTeXmacs

Examples of Axiom output that causes problems for the LineBreaker? program:

The Robert Sutor LineBreaker? program is embedded in the LaTeX? handling programs for this web site. It has also been used experimentally in the OldTeXmacs? - Axiom interface program called tm_axiom.

There have been problems reported concerning incorrect formatting that may be due to problems with the LineBreaker? programs. Examples of such problems are collected below.

Experiment 0

The first example below was reported by Andrey G. Grozin as failing when displayed in OldTeXmacs? when using the Sutor line-break algorithm. But typeset and folded correctly by OldTeXmacs? without the line-break algorithm. However it does appear correctly below and it is also correct in the most recent versions of OldTeXmacs? (1.0.4.5 on cygwin and 1.0.4.4 on native windows) when using the newest version of tm_axiom and the version of Axiom at AxiomBinaries?.

fricas
(x+y+z)^10

\label{eq1}\begin{array}{@{}l}
\displaystyle
{{z}^{10}}+{{\left({{10}\  y}+{{10}\  x}\right)}\ {{z}^{9}}}+{{\left({{45}\ {{y}^{2}}}+{{90}\  x \  y}+{{45}\ {{x}^{2}}}\right)}\ {{z}^{8}}}+ 
\
\
\displaystyle
{{\left({{120}\ {{y}^{3}}}+{{360}\  x \ {{y}^{2}}}+{{360}\ {{x}^{2}}\  y}+{{120}\ {{x}^{3}}}\right)}\ {{z}^{7}}}+ 
\
\
\displaystyle
{{\left({{210}\ {{y}^{4}}}+{{840}\  x \ {{y}^{3}}}+{{1260}\ {{x}^{2}}\ {{y}^{2}}}+{{840}\ {{x}^{3}}\  y}+{{210}\ {{x}^{4}}}\right)}\ {{z}^{6}}}+ 
\
\
\displaystyle
{{\left({
\begin{array}{@{}l}
\displaystyle
{{252}\ {{y}^{5}}}+{{1260}\  x \ {{y}^{4}}}+{{2520}\ {{x}^{2}}\ {{y}^{3}}}+{{2520}\ {{x}^{3}}\ {{y}^{2}}}+ 
\
\
\displaystyle
{{1260}\ {{x}^{4}}\  y}+{{252}\ {{x}^{5}}}
(1)
Type: Polynomial(Integer)

Experiment 1

This expression is not folded at all by the current version of OldTeXmacs? but it displayed correctly both here and in OldTeXmacs? when using the line-break algorithm.

fricas
(1/x+y+z)^10

\label{eq2}{\left(
\begin{array}{@{}l}
\displaystyle
{{{x}^{10}}\ {{z}^{10}}}+{{\left({{10}\ {{x}^{10}}\  y}+{{10}\ {{x}^{9}}}\right)}\ {{z}^{9}}}+ 
\
\
\displaystyle
{{\left({{45}\ {{x}^{10}}\ {{y}^{2}}}+{{90}\ {{x}^{9}}\  y}+{{4
5}\ {{x}^{8}}}\right)}\ {{z}^{8}}}+ 
\
\
\displaystyle
{{\left({{120}\ {{x}^{10}}\ {{y}^{3}}}+{{360}\ {{x}^{9}}\ {{y}^{2}}}+{{360}\ {{x}^{8}}\  y}+{{120}\ {{x}^{7}}}\right)}\ {{z}^{7}}}+ 
\
\
\displaystyle
{{\left({
\begin{array}{@{}l}
\displaystyle
{{210}\ {{x}^{10}}\ {{y}^{4}}}+{{840}\ {{x}^{9}}\ {{y}^{3}}}+{{1260}\ {{x}^{8}}\ {{y}^{2}}}+ 
\
\
\displaystyle
{{840}\ {{x}^{7}}\  y}+{{210}\ {{x}^{6}}}
(2)
Type: Fraction(Polynomial(Integer))

Experiment 2

This is the first example in the Jenks and Sutor AXIOM book. It is formatted properly below but in OldTeXmacs? the output is wrong - small instead of large brackets and one of the terms of the numerator not display at all. Without the line-break algorithm OldTeXmacs? displays it correctly but as one long non- folded line.

fricas
integrate (1/(x**3 * (a+b*x)**(1/3)),x)
There are no library operations named ** Use HyperDoc Browse or issue )what op ** to learn if there is any operation containing " ** " in its name.
Cannot find a definition or applicable library operation named ** with argument type(s) Variable(x) PositiveInteger
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Experiment 3

This simple variant of the above expression, (-1/3) instead of (1/3), is formatted properly both here and in OldTeXmacs?

fricas
integrate (1/(x**3 * (a+b*x)**(-1/3)),x)
There are no library operations named ** Use HyperDoc Browse or issue )what op ** to learn if there is any operation containing " ** " in its name.
Cannot find a definition or applicable library operation named ** with argument type(s) Variable(x) PositiveInteger
Perhaps you should use "@" to indicate the required return type, or "$" to specify which version of the function you need.

Notice that the first term in the paranthesis appears a little odd at first site because the first term itself is "locally folded" at the {\mathbf \cdot} with a vertically centered leading minus sign.