Skip to main content

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
55 views

breqn doesn't break line automatically

I have an issue with the breqn environment. The following code doesn't break lines automatically, although there are plenty of feasible breakpoints, e.g., +. \documentclass{article} \usepackage{...
Paweł Korzeb's user avatar
0 votes
0 answers
40 views

How to automatically break fractions generated by Mathematica

I am looking for an automated way of presenting my Mathematica results in latex. My workflow at the moment is the following I use TeXForm[] Mathematica function to generate a latex code from my ...
Paweł Korzeb's user avatar
4 votes
1 answer
149 views

why adding breqn packages gives ! Undefined control sequence. \begin{document}?

I am learning how to load fonts manually using TeXLive 2023 on Linux. After much struggle I finally got this MWE working. This loads some random fonts I found under /usr/local/texlive/2023/texmf-dist/...
Nasser's user avatar
  • 20.3k
2 votes
2 answers
62 views

Fix an underfill with an equation in display mode

I have a paragraph with an equation in display mode. I would like to continue the paragraph under the equation, but I get an underfill issue. If I add \hfill, the additional text is part of a new ...
Shelley's user avatar
  • 103
0 votes
1 answer
68 views

breqn package in beamer turns \Omega into a dot

I'm compiling a beamer presentation with the fourier font set, and the result shows a dot instead of the greek character \Omega. I have found that other people had the same problem here and here, but ...
aaragon's user avatar
  • 3,051
1 vote
0 answers
45 views

breqn does not automatically break lines as expected

I was trying the solution proposed in breqn does not automatically break lines, but it does not work in my case: \documentclass{article} % \textwidth=.7\textwidth % just to show the result \usepackage{...
Ommo's user avatar
  • 849
6 votes
1 answer
246 views

What is the status of long equation automatic breaking in context?

I was reading another breqn problem. Extra letters show up in title with cprotect package And the answer says: In an upcoming version ConTeXt MKIV will introduce automatic linebreaking for formulas ...
Nasser's user avatar
  • 20.3k
0 votes
1 answer
65 views

How convert equation environment to dmath environment automatically?

Sometimes I use software to generate Latex which does not support breqn package. It can create equation environment. Is it possible to add some code, in the preamble only, which converts any \begin{...
Nasser's user avatar
  • 20.3k
0 votes
1 answer
35 views

underset and mathbf don't work when package breqn is imported

Here is a Minimal Reproducible Example: \documentclass{article} % Packages \usepackage{amsmath} \usepackage{bm} \usepackage{breqn} \begin{document} \begin{equation} \pmb{\beta_i} ...
FluidMechanics Potential Flows's user avatar
1 vote
3 answers
52 views

How to force a multilayered math environment to column width

I have a multilayered math environment in a two column article. The equations go past the column width. How do I avoid that? Below is my MWE. P.S. I've loaded the breqn package, but I don't know how ...
Shelley's user avatar
  • 103
3 votes
3 answers
103 views

Line-breaking equations in a tabular environment

The following code produces error ! Missing \endgroup <inserted text>. What is causing the error? It seems that the breqn is not working inside tabular environment. \documentclass{article} \...
user61681's user avatar
  • 1,749
3 votes
1 answer
181 views

Breaking equation with LuaLaTeX

The following code works as expected. It breaks mathematics expression in multi-lines. \documentclass{article} \usepackage{breqn} \begin{document} \begin{dmath*} f(1.02) + f (1.06) + f (1.1) + f (1....
user61681's user avatar
  • 1,749
3 votes
1 answer
133 views

lualatex and pdflatex go into infinite loop on empty dmath environment

This MWE makes lualatex (and also pdflatex) go into infinite loop at 100% CPU \documentclass[12pt]{book} \usepackage{amsmath} \usepackage{breqn} \begin{document} test \begin{dmath*} \end{dmath*} \end{...
Nasser's user avatar
  • 20.3k
0 votes
1 answer
59 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
47 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
99 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
  • 20.3k
0 votes
0 answers
20 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
157 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
105 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
  • 8,844
0 votes
1 answer
48 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
  • 20.3k
1 vote
1 answer
44 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
  • 20.3k
2 votes
1 answer
122 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
  • 20.3k
1 vote
1 answer
96 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
  • 20.3k
4 votes
1 answer
153 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
  • 20.3k
3 votes
3 answers
955 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
4 votes
2 answers
286 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
  • 20.3k
3 votes
1 answer
146 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
  • 20.3k
1 vote
1 answer
55 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
  • 33
3 votes
1 answer
79 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
799 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
139 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
3 votes
1 answer
198 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
  • 3,025
1 vote
1 answer
85 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
85 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
93 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
340 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
340 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
68 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
3 votes
0 answers
290 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
461 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
48 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
331 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
90 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
159 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
210 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
314 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
184 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
161 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
11 votes
2 answers
447 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
  • 387
1 vote
2 answers
311 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