As of May 31, 2023, we have updated our Code of Conduct.

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
0 votes
1 answer
47 views

How can I fix breqn replacing \Psi with an overbar?

I am using the classicthesis template. I am trying to type the capital Greek letter Psi Ψ. However, it compiles as the symbol ̄ . This stops when I disable breqn. This occurs in the regular equation ...
zaphod's user avatar
  • 1
1 vote
1 answer
39 views

breqn makes sub \theta_{1} partially erased

The following code with breqn package makes \theta_1 partially erased as in the figure. Is there anyway to keep breqn package and avoid this error? I am using breqn package and these symbols in my ...
veo's user avatar
  • 175
7 votes
1 answer
93 views

How to correct spacing between `=` under the SUM sign when using breqn package?

In this MWE \documentclass[12pt]{book} \usepackage{amsmath} \usepackage{breqn} \newcommand{\myEquation}{\sum_{n=0}^{\infty} x^{n +5} a_{n} = \sum_{n=5}^{\infty}a_{n -5} x^{n} } \begin{document} \...
Nasser's user avatar
  • 19.6k
0 votes
0 answers
19 views

Render Very large equation [duplicate]

I have a very large equation that was autogenerated by a code and I want to render it. I have tried using the \usepackage[]{breqn} but it is too large. I will propably go more than one page. Is there ...
TheFibonacciEffect's user avatar
2 votes
2 answers
142 views

Automatic page break for very long equations

I have ultra-long equation. I tried to use the dmath but got the error "Overfull \hbox" and it is not running in my main code. I even tried to change \left( and \right) to \biggl( and \biggr)...
S.B.MD.Khaja Moinuddin's user avatar
2 votes
0 answers
88 views

Document hangs when compiling when loading breqn (even without using it)

The following document hangs when compiling, seems like I can't load breqn, bracket and cryptocode (or is it tikz?) together… It compiles fine when I unload \usepackage{breqn} but I would like to use ...
tobiasBora's user avatar
  • 6,605
0 votes
1 answer
46 views

Why adding geometry package with specific values affects how breqn package typesets math?

Should using geometry package with some specific values affect how breqn math is typeset? In the following I see two major differences in math when add geometry. Comparing the following two examples, ...
Nasser's user avatar
  • 19.6k
1 vote
1 answer
39 views

strange interaction between breqn and code that changes the sqrt sign. Alignments in fraction becomes bad

I thought to point out this strange problem. I was using code from answer in improving spacing between math expressions automatically? which changes the sqrt sign, so instead of It now looks like ...
Nasser's user avatar
  • 19.6k
2 votes
1 answer
100 views

breqn causes TeX capacity exceeded when using \neq in section title

Is there a workaround this problem? \documentclass[12pt]{book} \usepackage{amsmath} \usepackage{breqn} \usepackage{hyperref} \begin{document} \section{$\frac{\partial\phi}{\partial x}\neq p$ or ...
Nasser's user avatar
  • 19.6k
1 vote
1 answer
75 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, ...
Nasser's user avatar
  • 19.6k
4 votes
1 answer
94 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 ...
Nasser's user avatar
  • 19.6k
3 votes
3 answers
558 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 ...
mnuizhre's user avatar
  • 135
1 vote
0 answers
62 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 ...
Nasser's user avatar
  • 19.6k
4 votes
2 answers
264 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 ...
Nasser's user avatar
  • 19.6k
3 votes
1 answer
138 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 ...
Nasser's user avatar
  • 19.6k
1 vote
1 answer
47 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,...
Aladdin's user avatar
  • 23
3 votes
1 answer
77 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-{\...
jpfeifer's user avatar
  • 309
6 votes
1 answer
577 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{...
veo's user avatar
  • 175
0 votes
1 answer
122 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 ...
Esteban Crespi's user avatar
2 votes
1 answer
162 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 ...
Peeter Joot's user avatar
  • 2,915
1 vote
1 answer
68 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{...
Hernan Ibarra Mejia's user avatar
0 votes
1 answer
71 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 ...
Morten Nissov's user avatar
1 vote
2 answers
89 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 ...
GreenQuestor's user avatar
4 votes
1 answer
231 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 ...
Aritra Das's user avatar
1 vote
2 answers
250 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 ...
ASPVL's user avatar
  • 55
2 votes
1 answer
61 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 ...
Hedayat Mahdipour's user avatar
2 votes
0 answers
198 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 ...
Sophia Antipolis's user avatar
1 vote
1 answer
338 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 ...
Paul Schweinzer's user avatar
0 votes
1 answer
43 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{...
MattHusz's user avatar
  • 267
6 votes
1 answer
291 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} \...
real-or-random's user avatar
3 votes
1 answer
85 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 ...
acupoftea's user avatar
  • 145
0 votes
1 answer
133 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 ...
user502382's user avatar
6 votes
2 answers
200 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\}\] ...
t-bltg's user avatar
  • 237
3 votes
2 answers
254 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} \...
MrArsGravis's user avatar
0 votes
0 answers
183 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 \...
HariKumar K's user avatar
2 votes
2 answers
147 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{...
tmaric's user avatar
  • 911
9 votes
2 answers
387 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} &...
Matt's user avatar
  • 367
1 vote
2 answers
287 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)\...
Michael Jarret's user avatar
6 votes
1 answer
330 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 ...
Teyyf's user avatar
  • 471
2 votes
0 answers
61 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. ...
Annie Carter's user avatar
1 vote
2 answers
479 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 - \...
園田海未's user avatar
3 votes
1 answer
164 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 ...
Milo's user avatar
  • 9,350
1 vote
1 answer
183 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} \...
Milo's user avatar
  • 9,350
1 vote
0 answers
130 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. ...
Sasha Ivlev's user avatar
3 votes
1 answer
492 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 ]\...
user9433640's user avatar
2 votes
0 answers
388 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 ...
Alessandro's user avatar
1 vote
0 answers
580 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{...
Mefitico's user avatar
  • 135
0 votes
1 answer
272 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....
Nasser's user avatar
  • 19.6k
1 vote
1 answer
41 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 \...
Freddie Witherden's user avatar
3 votes
2 answers
154 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 ...
isanco's user avatar
  • 33