breqn and maxima



Hi, Morten san,

I made a mistake in writing. Let me correct...

The error seemed like \end{dmath} required a new line AFTER it.
So I changed imaxima.el to generate a new line char after
\end{dmath}. Then the error went away!

An example:

\documentclass{article}
\usepackage{breqn}
\begin{document}
\begin{dmath}
f(x) = \sum_{k=0}^{\infty} \frac{f^{(k)}(c)}{k!}(x-c)^{k}
= f(c)+f'(c)(x-c) +\frac{f''(c)}{2!}(x-c)^{2}
+ \frac{f^{(3)}(c)}{3!}(x-c)^{3}+\cdots\end{dmath}\end{document}

reproduced the error. The same error is observed when breqn096
is used instead.

Something strange is that breqn096 causes a trouble that unnecessary
vertical spaces are inserted between the result formula and its formula
number when used in imaxima. This is a critical issue for imaxima.

I will send a bug report to you with a test case which reproduces
the issue.

Yasuaki Honda, Chiba, Japan

On 2007/12/15, at 23:52, Morten H?gholm wrote:

> On Dec 15, 2007, at 3:42 PM, Yasuaki Honda wrote:
>
> Dear Yasuaki,
>
>> Imaxima generates a latex file when Maxima executes a
>> command and the result is returned. Such a file could be processed
>> without any trouble with breqn 094. However, when I replaced
>> breqn 094 with 095 (which is your breqn package) and tried to
>> latex the file, latex reported an error.
>
> Did you also try with v0.96?
>
>> The error seemed like \end{dmath} required a new line before
>> it. So I changed imaxima.el to generate a new line char before
>> \end{dmath}. Then the error went away!
>
> Can you show me an example? If it is a bug somewhere in breqn I want
> it to be fixed there even if it only shows up in a few places.
>
> I cannot reproduce it here with
>
> \documentclass{article}
> \usepackage{breqn}
> \begin{document}
> \begin{dmath}
> f(x) = \sum_{k=0}^{\infty} \frac{f^{(k)}(c)}{k!}(x-c)^{k}
> = f(c)+f'(c)(x-c) +\frac{f''(c)}{2!}(x-c)^{2}
> + \frac{f^{(3)}(c)}{3!}(x-c)^{3}+\cdots\end{dmath}
> \end{document}
>
>> As far as imaxima is concerned, you don't have to do anything!
>> I will distribute a new version of imaxima, including this small
>> change.
>>
>> Anyway, I would like to express my great thanks to you for your
>> taking the maintainer of breqn package!! Imaxima can't live without
>> it!
>
> Glad to help. And now that breqn is actively maintained I wish to keep
> in contact with people using it for projects such as this so that we
> can fix bugs and get new features in there when needed.
>
> Best,
>
> Morten
> Maintainer email for questions regarding the "mh" packages
> on CTAN: breqn, empheq, mathtools, etc.
> _______________________________________________
> Maxima mailing list
> Maxima at math.utexas.edu
> http://www.math.utexas.edu/mailman/listinfo/maxima