wspr / breqn

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

\coloneq and \coloneqq apparently not working with dmath #46

Open ecterrab opened 3 years ago

ecterrab commented 3 years ago

Hi I am not sure I am making something wrong but I couldn't make those two work. On page 11 of the breqn manual, I read that for := I need to use \coloneq. I am using the latest TexShop complete, but this is not working for me:

\documentclass{article} \usepackage{amssymb} \usepackage{mathtools} \usepackage{amsmath} \usepackage{breqn} \begin{document} \begin{dmath}\label{(1)} x \coloneq y \end{dmath} \end{document}

The above doesn't compile. I tried different orderings for the loading of the packages, or commenting some of them, but didn't succeed.

If however instead of \coloneq in the above I use \texttt{$\; \coloneqq \;$}, or use \texttt{$\; := \;$}, then in both cases I get the display I am looking for. So: not \coloneq but \coloneqq, and enclosing it within \texttt{$ $}. I tried first enclosing with $$ because I noticed that, replacing dmath by equation, the lines above, with \coloneqq instead of \coloneq, compile fine and display as := . But still, using dmath, $$ was not enough to have the compilation run without interruption, it required \texttt around - or that is what I found after experimentation, there are probably simpler things to do.

My questions then: is it \coloneq or \coloneqq? And how do you make it work directly, without having to enclose it within \texttt{$ $} or things like that? Thanks.

PS after post: I now see that using \hiderel{:=} instead of \coloneqq also works.