wspr / breqn

Automatic line breaking in LaTeX equations
18 stars 2 forks source link

breqn seems to break \underset and bolding #43

Open gpykhanna1 opened 4 years ago

gpykhanna1 commented 4 years ago

Hello

I am trying to use \underset and bolding the expression that sits above the underset as shown in the code below. The code works when the \usepackage{breqn} is NOT included. When it is included, I get a "fatal error" command the code stops compiling.

\documentclass[11pt]{article} \usepackage{amsmath} \usepackage{bm} % \usepackage{breqn}

\begin{document}

\begin{equation} \underset{\strut n \times 1}{\bm{Y}} = b_4 \end{equation}

\end{document}

However, the following code does work with including the \breqn package (i.e., when you bold the entire expression on the left-hand side).

\begin{equation} \bm{ \underset{\strut n \times 1}{Y} } = b \end{equation}

nixir commented 4 years ago

Hello. I found the same problem with \mathrm in TeX Live 2020.

\documentclass[]{article} \usepackage{amsmath}

\usepackage{breqn}

\begin{document} \begin{equation} K =\underset{\theta\in[0,2\pi)}{\mathrm{min}}a_\theta \label{eq:l2normsup}. \end{equation} \end{document}