Is there a way for the tabbing environment \begin{tabbing} to number equations and sync up with the align or alignat environments?

If I use align or alignat, each successive use is numbered appropriate even when \notag is used.

Can the tabbing environment recognize aligns numbering system and then use it?

If so, how?

  • 4
    Can you please provide an illustration of what you're after? Even if it means drawing it on paper and including a scanned image. Perhaps it's just me, but I'm not entirely sure what you're after...
    – Werner
    Apr 25 '13 at 21:34
  • Apologies. Upvoted the question by accident (meant to upvote @werner's comment) but cannot undo upvoting the question.
    – user10274
    Apr 25 '13 at 21:37
  • If you want no numbering, use the * variants: like align*, alignat* and so on...
    – kan
    Apr 25 '13 at 21:38
  • @kan I understand the no numbering situation but sometimes you have an equation evolving through simplification so you use \notag so only the final result is numbered.
    – dustin
    Apr 25 '13 at 21:43
  • @Werner how am I supposed to illustrate a concept? Have you used the tabbing environment before? The advantage of it for me is that if you have a set of equations that is going to go to the next page, the whole system won't move down as with align. Tabbing only drops the equations down that won't fit on the page. Therefore, I use tabbing instead of align. But tabbing doesn't number equations like align. How can tabbing number equations and follow along with the current numbering system.
    – dustin
    Apr 25 '13 at 21:46

You're basically asking how you'd number a line in a tabbing environment. It is straightforward to define a counter and trigger it when needed.

Here is an implementation:

\usepackage{amsmath, amssymb}
1+ 1 &= 2 & 2 &= 3- 1 
 $1+1 = 0$ \= $\Rightarrow$ \= $1 = -1$ \= since $F$ is of characteristic $2$ \tagthisline \\
 second row \>  \> more 



Some caveats:

  • You'll consistently have to number on the right.
  • This code works on a (reasonable) assumption that, you're going to demand that the line be numbered, at the end of the line: that is, the \tagthisline is the last tabstop.
  • does \tagthisline continue numbering from where align left off?
    – dustin
    Apr 25 '13 at 22:35
  • Yes, it does. But, note that, you'd have to consistently number on the right. I'll update my answer to reflect and also think of possible workarounds.
    – kan
    Apr 25 '13 at 22:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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