Tag Info

22

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_{...

15

Use \tag for getting the main number: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{subequations}\label{first:main} First some separate equations $$1=1 \tag{\ref{first:main}}$$ and another $$1>0 \label{first:a}$$ and another 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

The subequations environment & the parentequation counter The original subequations environment redefines \theparentequation in a way that it is independent from the counter parentequation: \protected@edef\theparentequation{\theequation}% But we can redefine the subequations environment so that only the value of equation is saved and \...

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} ...

11

So I found the following solution by playing around with when packages and lines are called and it turns out that if the \numberwithin{}{} line is called before \cleveref, there are no warnings and hyperlinks work as expected, i.e. \documentclass{book} \usepackage{amsmath} \usepackage{hyperref} \numberwithin{equation}{section} \usepackage{cleveref} \begin{...

11

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} \frac{\partial}{\partial t}(\widetilde{c}_{\subs}(r,z,t)+c_{\subs,0})= \frac{D_{\subs}...

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

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} \label{eq:test} \begin{gathered} A=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA\\ B=...

9

The subnumcases environment from cases helps for this layout: \documentclass{article} \usepackage{cases}% http://ctan.org/pkg/cases \begin{document} \begin{subnumcases}{x=} a + b \\ c + d \\ e + f \end{subnumcases} \end{document} Subequation numbering can be modified using (say) \renewcommand{\thesubequation}{\themainequation.\alph{equation}}

9

The empheq package was made for this: \documentclass[a4paper]{memoir} \usepackage{empheq} % autoload amsmath \begin{document} \begin{subequations} \label{eq:tot} \begin{empheq}[left={x=}\empheqlbrace]{align} & a + b \\ & c + d \label{eq:b}\\ & e + f \end{empheq} \end{subequations} Total group: \eqref{eq:tot}, just one: \eqref{eq:b} \end{...

9

(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

As you mentioned, use subequations outside the align environment and use some box manipulation to align the equations horizontally: \documentclass{article} \usepackage{amsmath}% http://ctan.org/pkg/amsmath \begin{document} \begin{subequations} \begin{align} A &= B+1 \\ B+1 &= C \end{align} \end{subequations} \vspace*{-\...

8

I don't think it's a very good idea. However, this is how you can do it: \documentclass{article} \usepackage{amsmath} \makeatletter \newcommand{\globallabel}[1]{% \protected@edef\@currentlabel{\theparentequation a--\alph{equation}}\label{#1}% } \makeatother \begin{document} \begin{subequations} \begin{align} a+b = c \label{eq.1}\\ d+e = f \label{eq.2} \...

8

I'd define a new environment, to which you give the desired label as argument. \documentclass{article} \usepackage{amsmath} \makeatletter \newenvironment{varsubequations}[1] {% \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

If you want the middle column to be centered than you need to either resort to using a \makebox to reserve enough width for that column, which requires knowing what the widest element is beforehand, or to use an array: Notes The alignat provides pairs of rl aligned equations. Since we want the third column to be left aligned, we need to use a && to ...

7

A workaround might be to label the two inner equations and use \noeqref to silently reference them. At the moment showonlytags does not take subequations into account, and might be difficult to implement. Here is how showonlyrefs works. \eqref sets a special marker label to mark a given label referred to. mathtools changes the manner in which the equation ...

7

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[...

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} \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{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 $$E = mc^2$$ Then the weird one: 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} $$\label{eq:e1} z = \min_x\{c^Tx + W(x), x\geq 0\}$$ 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 ...

6

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 ...

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