{breqn} is package to facilitate automatic line-breaking of displayed math expressions. The package also makes \left, \right constructs to work as one would expect whether or not there is an intervening line break.

learn more… | top users | synonyms

57
votes
4answers
94k views

How can I split an equation over two lines

I am having the following equation: \begin{equation} Q(\lambda,\hat{\lambda}) = -\frac{1}{2} P(O \mid \lambda ) \sum_s \sum_m \sum_t \gamma_m^{(s)} (t) \left( n \log(2 \pi ) + \log \left| C_m^{(s)} ...
41
votes
1answer
5k views

Breaking equations with breqn

I am new to using the breqn package. It looks good, but I get an odd behaviour when an equation can almost fit in the page but not quite: the alignment gets completely wrong. Is there a way to fix ...
16
votes
1answer
1k views

Automatic line break in alignat

Consider the following example from http://tex.stackexchange.com/a/12782/4011 \documentclass{article} \usepackage{amsmath} \newcounter{eqn} \renewcommand*{\theeqn}{\alph{eqn})} ...
12
votes
2answers
300 views

Is there a way to limit the scope of \usepackage?

When I tried to use the breqn package suggested by an answer to the question How do I break a long equation over lines It managed to break a whole bunch of unrelated equations (equations that did ...
11
votes
4answers
948 views

Multiple tensor indices with breqn package

When I try to use the tensor style file to create multiple tensor indices with the breqn style file, I run into the following problem shown in this (minimal) code: \documentclass{article} ...
9
votes
1answer
2k views

Does amsmath provide any medium to auto-break equations?

I'm writing large equations in texlive with amsmath, and I want them to be automatically broken at the end of the line. Is there any way to do that with amsmath? What would you recommend me to do ...
9
votes
3answers
280 views

Cleveref and breqn packages don't play nice together

I have been using the breqn and cleveref packages independently, and I think they are both excellent packages; but recently I have tried using them together, but it appears that cleveref cannot ...
8
votes
2answers
486 views

Why does adding \usepackage{breqn}, even if not used, cause LaTeX compile errors in some places?

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 ...
8
votes
2answers
285 views

breqn with superscript in a newcommand

I am getting unfortunate behavior with the the most recent version of breqn.sty with regards to how it handles a newcommand that begins with a superscript. Considering the following code ...
8
votes
1answer
732 views

Is there an incompatibility between the packages breqn and subcaption

When I try to typeset with both the packages subcaption and breqn, I get the following error: ! Package caption Error: The `subcaption' package does not work correctly(caption) in compatibility ...
8
votes
1answer
215 views

breqn and hyperref breaking subnumcases environment when used together

I have an issue when using cases, breqn and hyperref together. This is my MWE \documentclass[preview]{standalone} \usepackage{cases} \usepackage{breqn} % For line breaks in some really long equations ...
8
votes
1answer
665 views

How can I tell AUCTeX that breqn is a math environment?

I have recently been trying to use the breqn package to automatically break up my equations. However, I use emacs (and/or Aquamacs, depending on the machine I'm on) with Auctex, and it does not ...
8
votes
1answer
252 views

breqn in journals

I read the breqn manual, and I love the ideas in it (semantic markup for equations, automagic line breaks in math displays). I would like to use it in my work (I am a research mathematician, so I ...
7
votes
1answer
425 views

Flush equations left with breqn

I am using the breqn package to automatically break equations, like this: \begin{dmath} a = b + c + d + e + f + g + h +i + j + k + l + m + n + p + q \end{dmath} I would like to have all my ...
7
votes
3answers
2k views

How to split optimisation problem over two lines?

I have this expression involving minimisation. How do I split it over two lines? The problem is \min seems to be separated from the objective function. breqn does not seem to work, as this is not an ...
7
votes
2answers
592 views

breqn does not automatically break lines

I am writing a two column journal in which I am listing the components of a vector. The vector is too long to fit in one column, and I am using the \left and \right around the brackets that enclose ...
7
votes
1answer
388 views

colored equation numbers with breqn package?

I was experimenting with the use of breqn for a few unwieldy formulas, but wonder how to maintain the equation number coloring I'd been using, based on the following questions: Changing the apperance ...
7
votes
1answer
411 views

Odd interaction between hyperref, breqn, and underscores

My problem may have a similar root cause as this question, and although I've got a working solution I'm happy with, I'm puzzled as to why this happens at all. MWE: \documentclass{article} ...
6
votes
1answer
134 views

Issue with bm and breqn packages - is there a way to use a package in only part of a document?

I am a long time stack exchange reader. I always found useful information here. This is however my first post. I have a little issue that I am working on that maybe someone can provide a quicker ...
6
votes
2answers
201 views

How to center dmath equation under an item?

I have this code: \documentclass{article} \usepackage{breqn} \usepackage{blindtext} \eqinterlinepenalty=0 \intereqpenalty=0 \begin{document} \blindtext[3] \begin{itemize} \item ...
6
votes
2answers
1k views

Writing equations within dgroup environment

I am having a problem with writing equations using dmath and dgroup in my article. the packages I am using are \documentclass[a4paper 12pt] {article} \usepackage{breqn} The codes I am writing are ...
6
votes
1answer
2k views

Breaking an array of equations

I wanted to break long equations in an array environment. To do this, I used dmath environment from breqn package but it did not work. How can I write long equations in an array environment with line ...
5
votes
1answer
143 views

commath and \ifinner

The commath package use the TeX command \ifinner to select between inline math mode and display math mode. Because of this, it fail to work properly with some display math environments. In the breqn ...
5
votes
2answers
331 views

breqn: specifying the characters at which equations can be broken

Is there a way to force breqn to break at a certain character in favor of another. For instance, in the following example, one might prefer that the line be broken at a + sign rather than at a \cdot. ...
5
votes
2answers
1k views

Minus signs vanish with listings and breqn - any solutions?

When using listings and breqn, the minus signs (or dashes, according to the unix.SX site then there's some controversy about which it is) disappear from code listing. Here's an example: ...
5
votes
1answer
126 views

\includeonly not including parts correctly because of _ in the file name and breqn

I am trying to use \include{...} and \includeonly{...} to structure my thesis and faster compile the document. As long as I only use \include{...} everything works fine. But once I try to ...
5
votes
2answers
148 views

Automatic linebreaking inside displaymath

Yes, I know of the existence of breqn, and I am very excited about this package. I am trying to write a mathematics paper, that will be typeset in two different styles (different page sizes, and ...
5
votes
1answer
498 views

breqn and \brace

I was looking forward to using breqn, but it mysteriously fails with the following piece of code: \begin{dmath*} {2 \brace 3} \end{dmath*} However, this construct outputs a "Missing delimiter" ...
5
votes
2answers
356 views

Is it possible to tweak the alignment of an equation when it is broken using breqn?

I have a looooooooong displaymath that I'm using breqn to break into smaller chunks. As there are no actual relation symbols, I've manually added \allowbreak everywhere I'd be happy for one to occur ...
5
votes
2answers
227 views

Applying breqn in bulk to typeset a math book for my kindle?

I'm trying to typeset this book for my Kindle: http://linear.ups.edu/ Unfortunately some of the equations result in overfull hboxes, and I can't read them. Though I've managed to manually convert ...
4
votes
2answers
907 views

breqn package incompatibility

Edit: For clarity about what this post is asking, I have placed the specific questions at the beginning of the post. I would like to understand the technical details of the incompatibilities of ...
4
votes
2answers
525 views

breqn package is not working

I am using the breqn package, but it is not working. \begin{dmath} \sqrt {-{\frac {-4\,c-k_{{2}}{x}^{2}+{x}^{2}\sqrt {4\,c+{k_{{2}}}^{2}}}{c}}}\sqrt {{\frac {4\,c+k_{{2}}{x}^{2}+{x}^{2}\sqrt ...
4
votes
1answer
107 views

dmath puts too many line breaks in

I've got the following code for an equation: \begin{dmath} x \in A - B \leftrightarrow x \in A \textrm{ and } x \not\in B \end{dmath} It produces the output: The equation really doesn't need ...
4
votes
1answer
141 views

Clash between mhchem and breqn. Any way to dodge or fix?

The use of breqn causes the subscript numbers in chemical expressions, formatted by mhchem, to be exlargened and perhaps moved slightly making it look ugly. Is there a way to avoid this or should I ...
4
votes
1answer
326 views

Naming equations with breqn

I know that the tag command from amsmath should be used to name equations (see below a mwe). \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} c^2 &= a^2 + b^2 ...
4
votes
1answer
135 views

Breqn and amsmath intlimits option clash

When the intlimits option of the amsmath package is set along with breqn package, the subscripts and superscripts of integral symbols are not placed above and below in displayed equations as they ...
4
votes
1answer
132 views

symbol “-” not shown in any of “listings” after compiling together with “breqn” package

After compiling my "-" symbol in every single listing environment dissapears. I found out that "listings" package must somehow conflict with "breqn" package. Below is a minimal working example. Try to ...
4
votes
1answer
50 views

Altering vertical space between lines of one breqn (dmath) equation

The breqn documentation says that It also makes it possible to specify different vertical space values for the space between lines of a long, broken equation and the space between separate ...
4
votes
1answer
43 views

Disabling enumeration for a document

I'd like to disable enumeration for my document. I'm using amsmath and breqn. I tried using \mathtoolsset{showonlyrefs=true}, but it doesn't work. \documentclass[a4paper,landscape]{article} ...
4
votes
1answer
273 views

Why does dgroup not create equation numbers?

I have a tex file: \documentclass{minimal} \usepackage{breqn} \begin{document} \begin{dgroup} \begin{dmath*} 0 = x + y \end{dmath*} \begin{dmath*} 3 = 2x + 4y \end{dmath*} ...
4
votes
0answers
226 views

Braket and breqn formatting issues [closed]

I ran into a problem formatting things with breqn and the braket style file. A minimal example that illustrates the problem is: \documentclass{article} \usepackage{braket} \usepackage{breqn} ...
3
votes
2answers
216 views

breqn and lineno incompatibility

Journals often require line numbering for the review process. This is achieved using lineno package. Next, it seems like a good idea to use breqn package (dmath environment) to auto-break long ...
3
votes
1answer
63 views

\notimplies command error with breqn package

I'm trying to use this answer's "not imply" symbol. However I get the error: Argument of \mathpalette has an extra } Here is a MWE: \documentclass{article} \usepackage{amsmath} \usepackage{breqn} ...
3
votes
1answer
95 views

Why the \mleft and \mright commands inhibits the breaking between delimiters inside dmath?

Consider the following code: \documentclass[twocolumn]{article} \usepackage[margin=1in]{geometry} \usepackage{lipsum} \usepackage{amssymb} \usepackage{mathtools} \usepackage{breqn} ...
3
votes
2answers
60 views

Breqn color and background options ignored?

I have this simple latex code: \documentclass{article} \usepackage{color} \usepackage{breqn} \begin{document} \begin{dmath}[background={red}] 1+1=2 \end{dmath} \end{document} However using ...
3
votes
1answer
68 views

error occurs when comma separated affiliation in revtex4-1 if breqn is loaded

I encountered an error trying to use the breqn package. First, the below snippet compiles fine without any problem. \documentclass[aps,prl,twocolumn,floatfix]{revtex4-1} \usepackage{breqn} ...
3
votes
1answer
92 views

Aligned equation which can break through pages [duplicate]

I'm writing long sequences of aligned math equations, and LaTeX interprete them as single, unbreakable objects... which is Ok if the equation is nowhere near the end of the page. Q: Is there a way to ...
3
votes
1answer
159 views

Nested bracket in breqn doesn't work

I tried to use the latest version of breqn package to break this equation; The result shows that it can't break the equation at Level/depth greater than 2 even by using ...
3
votes
1answer
144 views

Bold math using bm within breqn results in compilation error

Combining bm with breqn produces following error ! TeX capacity exceeded, sorry [input stack size=5000]. \bm@command -> \mathchar 30049 \bin@break \mathchar 9259 \mathchar 30050 \let... l.8 \bm{a ...
3
votes
1answer
109 views

error using breqn : Double subscript \mathsub

I changed to using 2 columns, and many equations do not fit any more. I heard about breqn package, so I am trying to see if it will help. Using breqn package on auto-generated code, which compiles OK ...