Questions tagged [breqn]

{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.

Filter by
Sorted by
Tagged with
1 vote
1 answer
52 views

How to use dmath with tex4ht without using mathjax? TL 2022

I am using the solution given in tex4ht-generates-invalid-math-in-mathjax-mode-when-using-dmath which allows one to use breqn package in tex4ht which is very useful. I am now trying to use the above, ...
user avatar
  • 18k
4 votes
1 answer
56 views

Tex4ht generates invalid math in mathjax mode when using dmath

The following MWE generates invalid math in HTML using mathjax mode. This only happens when using dmath*. I am using the solution from Error using \ifdefined\HCode with TeX4ht, but it works in LuaTeX ...
user avatar
  • 18k
3 votes
3 answers
243 views

Formatting a really long equation

I have a rather long set equations that span for about more than a page. I am trying to format it in a way that makes them look like this, Now, I tried using the dmath* command from the breqn library ...
user avatar
  • 135
1 vote
0 answers
24 views

alignments problems using breqn package

I looked at couple of question about alignment issue with breqn but could not find a solution. When one wants to write multiple equations as in y=A and y=B so that the equations are aligned on = (just ...
user avatar
  • 18k
4 votes
2 answers
247 views

Error using \ifdefined\HCode with TeX4ht, but it works in LuaTeX

I now use the breqn package in LuaTeX mode only. Not in TeX4ht mode since it does not work there and is not needed. So I load breqn only when not in TeX4ht mode and use \ifdefined\HCode to make sure ...
user avatar
  • 18k
3 votes
1 answer
124 views

different output from same tex file when using breqn. Linux with latest texlive vs. Windows with MikTeX

I was trying breqn again to see if I can use it. I found something strange. The same latex file produces different looking output when compiled with TL 2021 on linux vs. earlier TL versions. I found ...
user avatar
  • 18k
1 vote
1 answer
41 views

An array inside breqn (dmath) breaks the line unnecessarily

Please check the following minimally working example. I know dmath is not needed in this case, but I need it in my original file. \documentclass[12pt,letterpaper]{letter} \usepackage{array,delarray,...
user avatar
  • 23
3 votes
1 answer
70 views

breqn with Miktex creates strange line breaks. Bug?

The following MWE \documentclass[12pt]{article} \usepackage{breqn} \begin{document} \begin{dmath} V_{t}=\left({a}_{t} V^{norm} \left(C_{t}^{\eta} \left(1-N_{t}\right)^{1-{\eta}}\right)^{\frac{1-{\...
user avatar
  • 309
6 votes
1 answer
190 views

\mathbb{Z} is not working properly for \not?

I am using pdflatex on Ubuntu 20.04.2. I wrote the following latex code. \documentclass{article} \usepackage{amssymb,breqn} \newcommand{\bZ}{{\mathbb Z}} \newcommand{\lhdZl}{\lhd_{\bZ^{l}}} \begin{...
user avatar
  • 163
0 votes
1 answer
102 views

Changing the $$ environment to use automatic line breaking

Is there is a way to modify the behaviour of the $$ .... $$ display math in order to make automatic line breaking? I am aware of the breqn package, but to use it I would need to retype all the ...
user avatar
2 votes
1 answer
118 views

Use of amsmath binom causes missing number if breqn is used

I was hitting the following mysterious error: ./xx.tex:7: Missing number, treated as zero. <to be read again> \relax l.7 \binom{n}{k} and I tracked it down to the breqn and ...
user avatar
  • 2,855
1 vote
1 answer
40 views

breqn: dgroup environment not aligning properly

I'm trying to align a set of equations at the equal signs, with one of them breaking. This is the MWE. \documentclass{article} \usepackage{amsmath,mathtools,breqn} \usepackage{amssymb} \begin{...
user avatar
0 votes
1 answer
53 views

dgroup placing equation number on left side

I am using some equations that are auto-generated from a script and they are typeset using breqn functions. Using dgroup is causing my equation number to be on the left side instead of right. I call ...
user avatar
1 vote
2 answers
74 views

Breqn package fails to break equations on \DeclareMathOperator defined operators

I am writing code to automatically generate TeX files for biology paper supplementary materials. Specifically, long tables which list the genes in cellular genetic regulatory networks. These tables ...
user avatar
4 votes
1 answer
139 views

Affiliations appear in unspaced italics, possible math mode triggered by breqn package

I recently found out about the breqn package and have been using it profusely. However, I notice that my article's title section is thrown off by this package. Specifically, the affiliation part of my ...
user avatar
1 vote
2 answers
132 views

Extremely LONG equation with large fraction

I am trying to type this extremely long equation without success. I got this result out of Mathematica and copied it. For some reason, the parentheses are not changing their shape according to the ...
user avatar
  • 55
2 votes
1 answer
50 views

Automatically break a very large formula through multiple pages, using package `breqn`

I have a document which contains very large sets, consisting of hundreds of large numbers, which have to be represented as products of their prime factors. So I need to use dseries* environment of the ...
user avatar
2 votes
0 answers
103 views

Problem with breqn

The minimal example: \documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{breqn} \begin{document} \begin{equation} \sigma_n(z) = \sum_{ k = 0 }^{ \lfloor ...
user avatar
1 vote
1 answer
202 views

babel and breqn packages generate error "! You can't use `the character ,' after \the." [closed]

i'm using latex on a development version of ubuntu 20.04. in this environment, the babel and breqn packages generate error "! You can't use `the character ,' after \the." this did not happen before ...
user avatar
0 votes
1 answer
37 views

breqn override dgroup number

Is there a way to override the base number in breqn's dgroup environment? Take the following example: \documentclass{article} \usepackage{breqn} \begin{document} \begin{dgroup}[number={2}] \begin{...
user avatar
  • 267
6 votes
1 answer
241 views

"Extra \else" error when combining breqn, thm-restate, and cleveref

I have a document that uses breqn, thm-restate (thmtools), and cleveref. I can't get it to compile. Here is a minimal example: \documentclass{article} \usepackage{thm-restate} \usepackage{breqn} \...
user avatar
3 votes
1 answer
78 views

How to make = work like + in breqn?

I want to write chains of equations like ugly formula = expanded = moving things around = simplified = nice formula and to have linebreaks in space-efficient places regardless of margin size and the ...
user avatar
  • 145
0 votes
1 answer
100 views

Disabling alignment in breqn

I use the breqn package and its dmath environment for multi-line equations so that I can have brackets across multi-line equations - eg a \left[ on one line, and a matching \right] on the next. By ...
user avatar
6 votes
2 answers
185 views

Bug using breqn and babel

I've hit a bug that I cannot fix (no warnings/errors in the logs). Here is a mwe: \documentclass{article} \usepackage[english,french]{babel} \usepackage{breqn} \begin{document} \[\{A, B, C\}\] ...
user avatar
  • 238
3 votes
2 answers
149 views

breqn is not compatible with icomma

Whenever I load the packages breqn and icomma into the same document, the document fails to compile. The order of the packages makes no difference. MWE: \documentclass{article} \usepackage{breqn} \...
user avatar
0 votes
0 answers
181 views

Semicolon in node label in Tikz [duplicate]

I am trying to have a label with the text "I(X;Y)". However, it fails to compile due to the semicolon. Is there any way to escape the semicolon? Edit: The following code works perfectly \...
user avatar
2 votes
2 answers
123 views

How to break apart a huge fraction resulting from a symbolic calculation?

I'm trying to use a Computer Algebra System to learn something about an algebraic expression, and this is what it gives me as a result in LaTex: \documentclass{article} \usepackage{breqn} \begin{...
user avatar
  • 881
9 votes
2 answers
347 views

Tikz-cd problems whilst also using breqn package

Running the following: \documentclass[11pt,a4paper]{article} \usepackage{tikz-cd} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} 0 \arrow{r} & ker{h} \arrow{r} & H(C;G) \arrow{r} &...
user avatar
  • 357
1 vote
2 answers
251 views

breqn not aligning first two lines

I have input of the following form (where I have redefined \[ to be \begin{dmath*} and \] to be \end{dmath*}) \begin{dgroup*} \[ A = \frac{1}{T}\left[\frac{2}{\left(\min_{s\in [0,1]}\gamma(s)\...
user avatar
6 votes
1 answer
271 views

Conflict between breqn and newtxmath packages

I was typesetting a document. I have imported the breqn package and everything is working just fine. I decided that I did not like the default Computer Modern math font, so I wanted to change it to ...
user avatar
  • 331
2 votes
0 answers
44 views

breqn doesn't manage to fully break my equation

I'm trying to use the breqn package to add automatic line breaks to a particular equation. It gives me three line breaks in the example below, then gives up and lets the equation trail off the page. ...
user avatar
1 vote
2 answers
340 views

Adjust when breqn breaks a line in a long equation

I'm using the breqn package for the first time, and while in one equation I get, using \begin{dmath*} \sum_{k=0}^{n} \left(\frac{k}{n} - x\right)^2 \binom{n}{k} x^k (1 - x)^{n - k} = \left(1 - \...
user avatar
3 votes
1 answer
133 views

Error when using breqn and nowidow?

I've been using the nowidow package with the option all loaded like so \usepackage[all]{nowidow} From the package documentation it says "The all option sets the widow and orphan penalties for the ...
user avatar
  • 9,140
1 vote
1 answer
157 views

Loading the breqn package changes appearance of inline maths

Consider this MWE. Why when I load the package breqn does the appearance of the \frac{}{} change? With breqn loaded Without breqn Code \documentclass[12pt,a4paper]{report} \usepackage{amsmath} \...
user avatar
  • 9,140
1 vote
0 answers
92 views

Unexpected Gamma in output (Bug?) [closed]

I've got one of the weirdest results I ever saw. When inputting the following code, the output was not just the normal "implies" sign (⇒), but had a capital greek Gamma (Γ) in front of it. ...
user avatar
3 votes
1 answer
413 views

left align broken equation using breqn package

The output of: \documentclass{book} \usepackage{amsmath} \usepackage{breqn} \setlength{\textwidth}{190pt} \begin{document} \begin{dgroup*} \begin{dmath*} 125(x+2)^{3}= \left [5(x+2)+4(x- 5)\right ]\...
user avatar
2 votes
0 answers
346 views

Conflict between packages breqn and siunitx?

I'd like to use siunitx package to write an equation like this: However, when I try to use \SI in math mode I get a very strange result: After some tries, I think I managed to find what is causing ...
user avatar
1 vote
0 answers
578 views

TexStudio editor Math Highlightng in different environment [duplicate]

I would like to customize the settings for text highlighting on TexStudio. I'm working with lot of big and small equations and using the breqn package. Here is some sample code: \documentclass{...
user avatar
  • 135
0 votes
1 answer
235 views

Why this Latex code hangs lualatex? Foreign command \over;

I am compiling code generated by FriCAS computer algebra system. Would like to know if you think the Latex code generated by FriCAS is invalid, so I can complain to them, or if there is a work around....
user avatar
  • 18k
1 vote
1 answer
40 views

Incorrect Hyperref links with memoir and breqn

Consider the following MWE \documentclass[11pt,oneside]{memoir} \usepackage{breqn} \usepackage{hyperref} \begin{document} \mainmatter \begin{dmath}\label{eq:1} 1 + 1 = 2, \end{dmath} \newpage \...
user avatar
3 votes
2 answers
134 views

Math line breaks in user defined macros

I have been defining a mathematic formula using NewDocumentCommand. This works well, but I do manage to get line breaks. A minimal working example can be found below. Part of the construction is ...
user avatar
  • 33
1 vote
1 answer
268 views

breqn allows an overlapped equation number

I'm trying to typeset some large equations generated by Maxima. "align" requires manually managing \right. and \left. around each line break. I find this time-consuming and error-prone (and I have a ...
user avatar
2 votes
1 answer
145 views

Tikz + breqn: Compiling never finishes with |-Symbol

I just occurred a strange error in tikz. The following MWE never finishes on my machine (MikTeX, breqn Version 0.98e, tikz Version 3.0.1a): \documentclass[11pt,a4paper]{article} \usepackage{tikz} \...
user avatar
  • 999
2 votes
1 answer
637 views

Parentheses in \overset not working when using breqn

\documentclass{article} \usepackage{amsmath} \usepackage{breqn} \begin{document} \begin{math} \overset{.}{()} \end{math} \end{document} In this example parentheses (even a single ...
user avatar
  • 337
3 votes
1 answer
135 views

another breqn problem. Extra letters show up in title with cprotect package

Why are there extra letters printed in the following title only when adding breqn package and how to get rid of them? This shows up with texlive 2016 both pdflatex and lualatex \documentclass[11pt,...
user avatar
  • 18k
3 votes
2 answers
237 views

Fix BioMed Central's redefinition of \end for breqn compatibility

The BioMed Central LaTeX class, bmcart.cls, redefines \end in a manner that causes downstream errors when used in conjunction with breqn.sty. The offending portion of bmcart.cls is provided below: \...
user avatar
  • 1,449
2 votes
1 answer
81 views

Incompatibility with MTPro Lite and breqn packages

There is an incompatibility with the MTPro Lite and breqn packages that breaks the \implies symbol definition. At my sample code: \documentclass{article} \usepackage[lite,subscriptcorrection,...
user avatar
  • 527
1 vote
0 answers
303 views

How to suggest a good place for a line break to breqn?

I have a long equation that I want to automatically break over multiple lines using breqn. The equation is: C_{\bm{r},\bm{V}} = \max \left\lbrace c: \forall S\subseteq \{1,\dots,N\}, c \leq I(...
user avatar
2 votes
1 answer
1k views

breqn package and equation numbering

I have the following problem with breqn package: I want to write a long equation and automatically split it with dmath environment. It is splitting equation perfectly, but placing the equation number ...
user avatar
4 votes
1 answer
30 views

Linebreaks (^^J) in \message arguments stopped working after starting to use breqn

I have several \message commands for inserting information into the log file, and they use ^^J for inserting line breaks in the log file. After adding \usepackage{breqn}, the log file now contains ^^J ...
user avatar