I have many LaTeX files that includes a common .tex file which has the preamble code.
In this include file I added, at the end, this
\usepackage{breqn}
and then run make to build the whole tree. I see now new errors showing in files which compiled ok before.
One example was this question
Another example is below. The LaTeX code is auto-generated by SWP.
\documentclass[]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
%\usepackage{breqn} %uncomment this to see the error
\begin{document}
\[
\left( X\circledast Y\right) \circledast W={\displaystyle\sum\limits_{l=-\infty}^{\infty}}\left( \overset{\left( X\circledast Y\right) \left( l\right)}{\overbrace{{\displaystyle\sum\limits_{k=-\infty}^{\infty}}X\left( k\right) Y\left( l-k\right) }}\right) W\left( n-l\right)
\]
\end{document}
uncommenting \usepackage{breqn}
in the above, gives the error
>pdflatex foo.tex
This is pdfTeX, Version 3.1415926-2.4-1.40.13 (TeX Live 2012/Debian)
restricted \write18 enabled.
(/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)
! Limit controls must follow a math operator.
<argument> {\displaystyle \sum \limits
_{k=-\infty }^{\infty }}X\left ( k\ri...
l.8 ...}X\left( k\right) Y\left( l-k\right) }}
\right) W\left( n-l\right)
?
I'd like to just understand what is going to help in managing this. I see the error message above, but if the LaTeX code was invalid, then how could it have compiled OK before adding breqn? Why is adding breqn
causes some compile errors in some places that did not exist before?
Using TexLive 2012 debian original package. No changes/addition to it made on my Linux box.
breqn
changes many things; mixingamsmath
environments withbreqn
ones is not recommendable. Take or leave. I leave. – egreg Jun 15 '13 at 19:54\[ ... \]
if they include the breqn package? I am trying to understand what you mean by mixing. I am newbie in Latex. thanks. – Nasser Jun 15 '13 at 19:57breqn
, then do what the package wants. No\[...\]
,align
,gather
and so on. No\limits
either. I find the deficiences ofbreqn
much superior to its benefits, but it's just my opinion. – egreg Jun 15 '13 at 20:03