On 04/21/2014 09:12 PM, Bill Page wrote:
> On 21 April 2014 14:39, Ralf Hemmecke <[email protected]> wrote:
>>> What is the appeal of reStructureText?  Why is this an important
>>> goal to you?
>>
>> The documentation especially the ++ stuff should be readable also
>> in plain text form. So it's more for the ++ stuff that I want to go
>> reStructuredText+Sphinx.
> 
> Do you mean changing the source code in .spad files, i.e. no longer
> use a subset of LaTeX?  Do you find their contents difficult to read?
> Can you give an example?
> 
>> I'm not so much in favour of the book format, since I think that
>> only a few people are really printing the book.
> 
> Printing might be unlikely but there is still the possibility of
> publishing an actual FriCAS book at one of the self-publishing sites
> such as Lulu.  For example:
> 
> http://www.lulu.com/shop/timothy-daly/axiom-volume-1-tutorial/paperback/product-243128.html
> 
> There might be some advantage for people using FriCAS in courses etc.
> if a hard copy could be purchased at regular book stores or on
> Amazon.com.
> 
>>
>> Most important to me is that the content of the book always present the
>> latest release and can be referred to via URL.
>>
>>>> I've added a LaTeXFormat domain. Unfortunately, that is not perfect,
>>>> since breqn.sty doesn't seem to like additional braces around a
>>>> math formula. Then it simply doesn't break. So LaTeXFormat needs
>>>> a complete rewrite.
>>>
>>> A complete re-write to remove extra braces?
>>
>> Well, if you have a better idea to remove needless groups...
>> I cannon simply remove the first and the last brace, because I might
>> have somthing like "{...}{...}".
>>
> 
> Can you give an example that produces extra braces?  I would like to
> help analyze the problem but the examples I tried so far do not
> produce extra braces when I look at the output from )set output tex
> on.

(4) -> (x+1)*(x+2)/(x+3) + 1/(y+4)

          2                2
        (x  + 3x + 2)y + 4x  + 13x + 11
   (4)  -------------------------------
               (x + 3)y + 4x + 12
\begin{LaTeXMath}
\frac{{{{
\left(
{{x}^{2}}+{3\: x}+2
\right)
}\: y}+{4\: {{x}^{2}}}+{{13}\: x}+{11}}}{{{{
\left(
x+3
\right)
}\: y}+{4\: x}+{12}}}
\stepNumber{4}
\end{LaTeXMath}

$$
{{{\left( {{x} \sp {2}}+{3 \  x}+2
\right)}
\  y}+{4 \  {{x} \sp {2}}}+{{13} \  x}+{11}} \over {{{\left( x+3
\right)}
\  y}+{4 \  x}+{12}}
\leqno(4)
$$

The content of \frac{}{} is again with {}.
The extra braces around \left( and \right) are unnecessary, because it
is just multiplication following.
Then we have

  {4\: {{x}^{2}}}

followed by a +. So this can actually just be "4\: {x}^{2}". Of course,
it depends on the context and for TeX itself, these extra braces don't
matter. But breqn seems to bother.

> OK.  But a general solution for breaking FriCAS TeX/LaTeX output might
> still be very desirable, for example for use on axiom-wiki.

In a browser, I'd find a scrollbar that allows to scroll left/right
quite sufficient.

The solution, I have in mind, just would use Tree(String) or even
SExpression. Then group/ungroup could be easily handled. I think that
wouldn't be really hard. I just don't know whether I should go for Tree
or SExpression.

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.

Reply via email to