13 votes
Accepted

Equations aligned center

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. \...
Mico's user avatar
  • 479k
12 votes

How can I write the next step exactly below the previous step in the equation without repeating the L.H.S. of the equation?

The following solution also employs an align* environment (cf @RaffaeleSantoro's solution), but also takes care of several typographical niceties such as using upright lettering for a "math ...
Mico's user avatar
  • 479k
11 votes
Accepted

subequations: How to continue numbering within subequation?

I could not find the duplicate, so here is my attempt: \documentclass{article} \usepackage{amsmath} \newcommand\StepSubequations{ \stepcounter{parentequation} \gdef\theparentequation{\arabic{...
daleif's user avatar
  • 51.6k
10 votes
Accepted

subequations and array in braces

(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 ...
oracleyue's user avatar
  • 286
10 votes
Accepted

How can I write the next step exactly below the previous step in the equation without repeating the L.H.S. of the equation?

Try this: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \begin{document} \begin{align*} ...
Raffaele Santoro's user avatar
9 votes
Accepted

Typesetting an optimisation problem

Just change align into alignat: \documentclass{report} \usepackage{amsmath} \newcommand{\norm}[1]{\lVert#1\rVert_2} \begin{document} \begin{subequations} \begin{alignat}{2} &\!\min_{x} &...
egreg's user avatar
  • 1.1m
8 votes
Accepted

How to center subequations and maintain sub-numbering

\begin{subequations}\label{eq:propArea} \begin{gather} A = first~special~subequation \\ B = equation~much~bigger~then~others~above~and~below \\ C = smaller~equation \...
Zarko's user avatar
  • 284k
7 votes
Accepted

Why is there a larger vertical space after the first subequation?

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 ...
barbara beeton's user avatar
7 votes
Accepted

Label terms of LaTeX equation

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:...
Bernard's user avatar
  • 269k
7 votes
Accepted

How to place braces in multiple equations

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 ...
Andrew Swann's user avatar
  • 94.2k
7 votes
Accepted

Numbering equation in the form (4a-d)

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} ...
Willie Wong's user avatar
  • 21.5k
7 votes
Accepted

Left and centre alignment when using subequation and align environments

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: ...
Zarko's user avatar
  • 284k
7 votes
Accepted

How to make two (possibly far away) equations be numbered as subequations?

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 +...
Bordaigorl's user avatar
  • 14.9k
7 votes
Accepted

Background color for different terms in equation

The operative part is given below -- please see if it meets the rquirement \tikz[baseline]{\node[fill=green!25, rectangle, anchor=base] {.............}%<-------------------...
js bibra's user avatar
  • 19.6k
7 votes

Using Gig Equations in Proof

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} \...
egreg's user avatar
  • 1.1m
6 votes

Label terms of LaTeX equation

Using the amsmath package, you can do this as follows: \documentclass{article} \usepackage{amsmath} \begin{document} \[x = \underbrace{f(y)}_{\text{resistance}} + \underbrace{g(y)}_{\text{gravity}}...
cryingshadow's user avatar
  • 2,310
6 votes

Annoying long equations in LaTeX

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? ...
Mico's user avatar
  • 479k
6 votes
Accepted

Alternative subequations numbering and references

It's possible to do it, but the name I gave to the environment should clear up my opinion about it. ;-) \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
egreg's user avatar
  • 1.1m
6 votes
Accepted

Is subequations known to introduce vertical white space?

Place \begin{subequations} before starting the paragraph, which is the position it should go to begin with. \documentclass{IEEEtran} \usepackage{amsmath,hyperref} \begin{document} mmmmmmmmmmmmmmmi ...
egreg's user avatar
  • 1.1m
6 votes
Accepted

How can I enumerate an expression within $$ ... $$?

Like this? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} y& =f\biggl( \sum_{i=1}^{N} w_ix_i+w_0\biggr), \\ U&=i \end{align} \end{document} P.S.: avoid $$ .....
JPi's user avatar
  • 13.4k
6 votes

Equation numbering inside aligned placed next to an alignedat

Something like this? \documentclass{scrartcl} \usepackage{amsmath} \numberwithin{equation}{section} \begin{document} \setcounter{section}{1} % just for this example \noindent \begin{minipage}{0.25\...
Mico's user avatar
  • 479k
6 votes

equation and sub equation not properly formatted

it is not clear what is your problem. see if any of following example is what you like to obtain: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \bar\Omega_t = \bar\...
Zarko's user avatar
  • 284k
6 votes
Accepted

How can I type the following equations in Latex?

Very dirty and inelegant. Not to be used ;-) \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat}{2} a &\to{} &b \\ &&c \\ &\to{}&\smash{\left\{\...
campa's user avatar
  • 27.4k
6 votes

2 x 2 lines equation on a single line separated by a text in the middle

\documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \[ \begin{aligned} a_n &= c_n + c_{-n}\\ b_n &= i(c_n - c_{-n}) \end{...
Second Person Shooter's user avatar
6 votes
Accepted

align multiple equations without amsmath package

You can use \usepackage{IEEEtrantools} to align multiple equations without to use amsmath package. \documentclass[a4paper,12pt]{article} \usepackage{IEEEtrantools} \begin{document} \begin{...
Sebastiano's user avatar
  • 51.5k
6 votes
Accepted

Modify numbering style of subequations

You can patch the subequations environment with etoolbox's \patchcmd to use \Alph instead of \alph: \documentclass{report} \usepackage{amsmath} \usepackage{etoolbox} \patchcmd\subequations{\alph}{\...
Skillmon's user avatar
  • 54k
6 votes

Long equation running into margin (no linebreak)

Nobody likes to read a wall of text where the really important details are hidden among so many symbols, so I propose a different solution. %\documentclass[12pt, a4paper, oneside]{CUIThesisV} \...
egreg's user avatar
  • 1.1m
6 votes

change subequations labelling to '1.1'

(edited answer to address OP's follow-up request) You could use the command \patchcmd, which is provided by the etoolbox package, to "patch" the \subequations macro of the amsmath package: \...
Mico's user avatar
  • 479k

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