breqn and maxima



Hi,

I forgot to attach! Here it goes.

Yasuaki Honda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: breqnissue.tar.gz
Type: application/x-gzip
Size: 696320 bytes
Desc: not available
Url : http://www.math.utexas.edu/pipermail/maxima/attachments/20071218/bc177247/attachment-0001.bin 
-------------- next part --------------

On 2007/12/18, at 1:25, Yasuaki Honda wrote:

> Hi Morten,
>
> I have attached the imaxima generated latex files. You see
> 1.tex and 2.tex, which can be processed using latex command
> as follows:
> % latex \&mylatex 1.tex; xdvi 1.dvi
> % latex \&mylatex 2.tex; xdvi 2.dvi
> Then the results displayed in xdvi are strange.
> The prompt and the result formula must be on the same line.
> Could you please take a look?
>
> Yasuaki Honda
>
> On 2007/12/16, at 3:25, Morten H?gholm wrote:
>
>> On Dec 15, 2007, at 6:53 PM, Yasuaki Honda wrote:
>>
>> Hi Yasuaki,
>>
>>> 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.
>>
>> URG! That's bad! I have seen and fixed the error in the sources  
>> now. The changes are as follows (one line of code changed only,  
>> rest are dates).
>>
>> --- breqn.dtx	(revision 33)
>> +++ breqn.dtx	(working copy)
>> @@ -67,7 +67,7 @@
>> \input docstrip.tex
>> \Msg 
>> {************************************************************************}
>> \Msg{* Installation}
>> -\Msg{* Package: breqn 2007/12/10 v0.96 Breqn (MH)}
>> +\Msg{* Package: breqn 2007/12/15 v0.97 Breqn (MH)}
>> \Msg 
>> {************************************************************************}
>>
>> \keepsilent
>> @@ -128,7 +128,7 @@
>> %<*driver>
>> \NeedsTeXFormat{LaTeX2e}
>> \ProvidesFile{breqn.drv}%
>> -  [2007/12/10 v0.96 breqn (MH)]
>> +  [2007/12/15 v0.97 breqn (MH)]
>> \documentclass{ltxdoc}
>>
>> \usepackage{color,verbatim,xspace,varioref,listings}
>> @@ -228,7 +228,7 @@
>> % \fi
>> %
>> % \title{The \pkg{breqn} package}
>> -% \date{2007/12/10 v0.96}
>> +% \date{2007/12/15 v0.97}
>> % \author{Morten H\o gholm \\\texttt{mh.ctan at gmail.com}}
>> %
>> % \maketitle
>> @@ -1000,7 +1000,7 @@
>> %
>> % Declare package name and date.
>> %    \begin{macrocode}
>> -\ProvidesPackage{breqn}[2007/12/10 v0.96]
>> +\ProvidesPackage{breqn}[2007/12/15 v0.97]
>> %    \end{macrocode}
>> %
>> %
>> @@ -2809,7 +2809,8 @@
>> %
>> %
>> % \begin{macro}{\check at punct}
>> -%
>> +%   \changes{v0.97}{2007/12/15}{Insert \cs{finish at end} if no special
>> +%     case is found.}
>> % For this one we need to recognize and grab for inclusion any of the
>> % following tokens: \verb",;.!?", both catcode 12 (standard \latex
>> % value) and catcode 13 (as might hold when the Babel package is
>> @@ -2847,6 +2848,7 @@
>>  \else\ifx\@let at token ;\@nx\check at qed
>>  \else\ifx\@let at token ?\@nx\check at qed
>>  \else\ifx\@let at token !\@nx\check at qed
>> +  \else\@nx\finish at end
>>  \fi\fi\fi\fi\fi
>> }
>> \xdef\check at punct@b{%
>>
>>
>>
>>> 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.
>>
>> Can you check if that is the case with the fix?
>>
>> Thanks for finding this!
>>
>> Morten
>> Maintainer email for questions regarding the "mh" packages
>> on CTAN: breqn, empheq, mathtools, etc.
>>
>