# Tag Info

25

another variation, with the equation number for each pair positioned vertically between the two lines: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} \begin{split} E_{11}&=Q_{11}^2\ln\sqrt{B'_{11}} +Q_{12}^2\ln\sqrt{B'_{22}}+Q_{13}^2\ln\sqrt{B'_{33}}\\ &=Q_{11}^2\ln\sqrt{B'_{11}}+Q_{21}^2\ln\sqrt{B'_{...

17

A regular align (from amsmath) will do here: \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \begin{document} \begin{subequations} \begin{align} \omega_c &= \sqrt{\omega_{0}^{2} - \mu^{2}}, & \mu &< \omega_{0}, &\text{Underdamped} \\ \omega_c &= \sqrt{\mu^{2} - \omega_{0}^{2}}, & \mu &> \omega_{...

16

Use \tag for getting the main number: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations}\label{first:main} First some separate equations \begin{equation} 1=1 \tag{\ref{first:main}} \end{equation} and another \begin{equation} 1>0 \label{first:a} \end{equation} and another \begin{equation} 1<2 \label{first:b} \end{...

15

Use \nonumber in the lines where you don't want a label. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{alignat}{4} E_{11}&=Q_{11}^2\ln\sqrt{B'_{11}} +Q_{12}^2\ln\sqrt{B'_{22}}+Q_{13}^2\ln\sqrt{B'_{33}}\\ &=Q_{11}^2\ln\sqrt{B'_{11}}+Q_{21}^2\ln\sqrt{B'_{33}}\nonumber\\ E_{12}&=Q_{11}Q_{...

13

Hmm! not really supported LaTeX syntax but \documentclass{article} \usepackage{amsmath} \newsavebox\labelbox \begin{document} \savebox\labelbox{$\begin{matrix} \refstepcounter{equation}(\theequation)\label{aa}\\ \refstepcounter{equation}(\theequation)\label{bb}\\ \refstepcounter{equation}(\theequation)\label{cc} \end{matrix}$} \[ \begin{bmatrix} ...

12

Use \tag and the fact that \label at the start of a subequations environment refers to the current main equation number. \documentclass{article} \usepackage{amsmath} \newcommand{\subs}{\textup{s}} \begin{document} \begin{subequations}\label{eq:litdiff} \begin{equation} \frac{\partial}{\partial t}(\widetilde{c}_{\subs}(r,z,t)+c_{\subs,0})= \frac{D_{\subs}...

11

If you want to have each equation centered rather than aligned on some specific point (such as the first = symbol), you should use a gathered environment instead of an aligned environment. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \label{eq:test} \begin{gathered} A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\ B=...

11

I could not find the duplicate, so here is my attempt: \documentclass{article} \usepackage{amsmath} \newcommand\StepSubequations{ \stepcounter{parentequation} \gdef\theparentequation{\arabic{parentequation}} \setcounter{equation}{0} } \begin{document} \begin{subequations} \begin{align} 1 &= 1\\ 2 &= 2\\...

10

(Update according to egreg's commend. Thanks!) The first example of empheq given by Bernard is invalid if omitting the overload option when loading empheq package. For the latex file provided by Bernard, it has no problems at all. However, when I used \usepackage[overload]{empheq} in IEEEtrans with a lot other packages loaded, it will freeze the pdflatex on ...

8

Two solutions: one with the empheq package and an align environment, another with the subnumcases environment from the cases package. I had to adjust spacing for the brace in both, as I found the default was not so good (too small in the first case, too large in the second): \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[...

8

My solution provides a second environment subequations* that picks up the values from the last subequations or subequations* environment. The \end{subequations} part is redefined to save the values of the counters (in this case 1 and 2 = b) in auxiliary counters. These are used in the subequations* environment. Note: It is the possible to label the ...

8

I'd define a new environment, to which you give the desired label as argument. \documentclass{article} \usepackage{amsmath} \makeatletter \newenvironment{varsubequations} {% \addtocounter{equation}{-1}% \begin{subequations} \renewcommand{\theparentequation}{#1}% \def\@currentlabel{#1}% } {% \end{subequations}\ignorespacesafterend } \...

8

The amsmath package doesn't provide an interface for changing the appearance of the equation numbers in subequations, but we can add one with etoolbox: \documentclass{article} \usepackage{amsmath,etoolbox} \patchcmd\subequations {\theparentequation\alph{equation}} {\subequationsformat} {}{} \newcommand{\subequationsformat}{\theparentequation.\arabic{...

7

It's a feature, not a bug and it will happen with all the numbered environments for equations, not only subequations, if amsmath is loaded and \eqref is used. The responsible for this behaviour is a \normalfont in the definition of \maketag@@@ in amsmath.sty: \def\maketag@@@#1{\hbox{\m@th\normalfont#1}} if you want to suppress this feature, you can ...

7

You can't use equation within align, so just remove all those, add & before the equals signs, and add a line break (\\) at the end of the first line (after the matrix) and this works just fine. \documentclass[]{report} % list options between brackets \usepackage{amsmath} %contains the advanced math extensions for LaTeX \begin{document} \begin{...

7

A \addtocounter{equation}{-1} will do. However, I don't get the nonumber directive in a equation you refer to later, so I deleted it: \documentclass{article} \usepackage[utf8x]{inputenc} \usepackage{amsmath} \begin{document} \begin{equation} \frac{\partial}{\partial t}\left(\widetilde{c}_{\text{s}}\left(r,z,t\right)+c_{\text{s,0}}\right)=\frac{D_{\text{...

7

empheq provides the bracing, while subequations (from amsmath) provides the proper numbering: \documentclass{article} \usepackage{amsmath,empheq} \begin{document} \begin{subequations} \begin{empheq}[left=A\Rightarrow\empheqlbrace]{align} & B_1, \text{ or} \\ & B_2 \end{empheq} \end{subequations} \end{document}

7

A variant, with a single align and 4 aligned environments. I added some vertical spacing between the groups of equations: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align}%{4} E_{11} & \!\begin{aligned}[t] & = Q_{11}^2\ln\sqrt{B'_{11}} +Q_{12}^2\ln\sqrt{B'_{22}}+Q_{13}^2\ln\sqrt{B'_{33}} \\ &...

7

The basic building block you can use is \left\{ \begin{aligned} .... \end{\aligned} \right. If you want the q+1 in front then just write it before the \left\{. You want three such groups on separate lines apparently with one single equation number, so you can place these groups in to \begin{equation} \begin{gathered} ...\\ ---\\ \...

7

The following will display what you want, but only allow you to refer to all four together, but not individually like (4a) or (4c). \documentclass{article} \usepackage{amsmath} \begin{document} First put in a normal equation \begin{equation} E = mc^2 \end{equation} Then the weird one: \begin{equation} u(0)=u_1; \qquad \phi(0)=-\phi_1; \qquad u(L)=u_2;...

7

With environment align you need to add ampersands, which determine, where equations are aligned (usually at equal sign). Below are two cases of taging of your equation. See, if one is what you after: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} u_0(x) & = \frac{x} {y (x-b)^2 + z} , \...

7

You can just place your paragraph in between: \documentclass[10pt]{article} \usepackage{amsmath} \begin{document} \begin{subequations} \label{eq:e} \begin{equation} \label{eq:e1} z = \min_x\{c^Tx + W(x), x\geq 0\} \end{equation} some text as long as a paragraph some text as long as a paragraph some text as long as a paragraph some text as long as a ...

7

I'd explain the substitutions and announce the use of the Taylor expansion before the long display; the readers will be able to see where they are actually employed. \documentclass{article} \usepackage{amsmath,amssymb} \newcommand{\numberset}{\mathbb{#1}}% or whatever you prefer \newcommand{\R}{\numberset{R}} \newcommand{\diff}{\mathop{}\!d} \begin{...

6

You are right, in version 0.18.9 the parenthesis were there. In the latest version, additional support for subequations has been added. So says the documentation: Added separate subequation cross-reference type First of all, you have to use subequation instead of subequations and, for them, \labelcrefformat instead of \creflabelformat and \...

6

You don't need equation environment inside align. Align already contains the capabilities. \documentclass[]{report} % list options between brackets \usepackage{mathtools} %Fixes/improves amsmath \begin{document} \begin{subequations}\label{eq:all} \begin{align} \label{eq:model_m} [X] &= \begin{bmatrix} a & 0 \\ 0 & b \\ \...

6

\label{eq}% you need a percent here

6

i really hate to say this, but i think it'a a bug in amsmath. (consider it reported.) the "official dogma" about grouped formulas is that it's better to use one of the multi-line environments provided by amsmath than to separately enter \begin{equation} ... \end{equation}, and in fact, by adopting such an environment, the uneven spacing goes away, at least ...

6

Be sure to tell LaTeX where the line breaks should occur and where on each line alignment should take place. In the example at hand, alignment should probably happen on the four = symbols, right? Some suggestions to make the material a bit more compact so that even the longest line fits inside the available space: Omit the \cdot directives -- they take up ...

6

You have \underbrace from amsmath and \underbracket from mathtools (which loads amsmath). I added some horizontal adjustment with the \clap command (from mathtools), since the labelled terms are short: \documentclass{article} \usepackage{mathtools} \begin{document} \[ x = \underbracket[0.8pt]{f(y)}_\text{\clap{resistance~}} + \underbracket[0.8pt]{g(y)...

Only top voted, non community-wiki answers of a minimum length are eligible