Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have a tex file:

\documentclass{minimal}
\usepackage{breqn}
\begin{document}
 \begin{dgroup}
  \begin{dmath*}
   0 = x + y
  \end{dmath*}
  \begin{dmath*}
   3 = 2x + 4y
  \end{dmath*}
 \end{dgroup}
\end{document}

I think, that pdflatex should produce two lines of equations with one common number on the right. But I do not get this number. In http://www.tug.org/TUGboat/tb18-3/tb56down.pdf on page 9/10 there is some example about that (the example code is from there). The official doc of breqn does not say it clearly, but I think it should work.

Can you tell me what's going wrong here? How to get the equation number correctly?

Besides: Are there "better packages" than breqn? I am used to use it as it breaks equations automatically which is very useful in case of narrow pages.

share|improve this question
2  
This looks like a breqn bug (@cmhughes you should get a label for the entire group if all of the equations within it are unnumbered). There is something up with the internal logic tests: I am investigating. –  Joseph Wright Apr 17 '12 at 13:56
2  
OK, I have tracked down the issue to a catcode problem. Regrettably, breqn is in something of a mess internally and this means that it's use of expl3 is a bit 'odd'. I will need to track the problem back through the logs to work out why it has been introduced: I have a local fix but do not want to break something else. (The equation number prints in the wrong place, but that is a 'known issue'!) –  Joseph Wright Apr 17 '12 at 14:06

1 Answer 1

I think it should be:

\documentclass{minimal}
\usepackage{breqn}
\begin{document}
 \begin{dgroup*}
  \begin{dmath}
   0 = x + y
  \end{dmath}
  \begin{dmath}
   3 = 2x + 4y
  \end{dmath}
 \end{dgroup*}
\end{document}

\begin{dmath*} creates an equation without number...

\begin{dgroup} will introduce another numbering (subnumbering)

share|improve this answer
    
This creates separate numbers for each dmath, the OP wanted a single number for the entire dgroup, which he should have gotten according to the TUGboat article. –  Torbjørn T. Apr 20 '12 at 8:41
    
ok, so it seems to be unfinished (according to documentation) –  Michal Zochowski Apr 20 '12 at 9:02
    
Yes, that's why I asked for alternatives. –  Christian Wolf Apr 20 '12 at 10:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.