On Thu, Aug 28, 2008 at 7:35 AM, Waldek Hebisch wrote:
>
> Bill Page wrote:
>> I have added the following patch to the source code in
>> 'src/algebra/tex.spad.pamphlet' in the source distribution but
>> it isn't necessary to re-compile everything from source.
>> ...
>
> Ralf Hemmecke wrote:
>
>> Cool! Bill, I think that patch should go into fricas trunk. Actually,
>> there should be more of these changes. Remember there were
>> some complaints before that panAxiom's output is using plain TeX
>> commands instead of LaTeX equivalents. Your patch is in the right
>> direction.
>
> I am for improving TeX output. However I think that the patch has
> two problems:
>
The patch was intended only as a demonstration for a new users, not an
actual change to the library.
> - AFAIK \frac is LaTeX only, so this will brake plain TeX output.
> \over works both for LaTeX and plain TeX. Breaking plain TeX
> is bad idea, so if we really want \frac in LaTeX we probably
> should have special flag to trigger such transformations.
>
I am against the use of a "flag", but if separate TeX and LaTeX output
are really desirable then a separate output command like:
)set output latex on
would make sense.
> - the patch above changes already generated operator, it is
> probably better to generate '\sp' and '\frac' few lines earlier.
> Also, change breaks test for '\over' in the following line.
>
> Ralf also wrote:
>
>> I only think that you should insert an 'ungroup' here....
>>
>> s := concat [" \frac{",ungroup s,"}{",ungroup formatTex(first rest
>> args, opPrec),"}"]
> ^^^^^^^ ^^^^^^^
>
> Yes.
>
I agree.
Regards,
Bill Page.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"FriCAS - computer algebra system" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/fricas-devel?hl=en
-~----------~----~----~----~------~----~------~--~---