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.
\...
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 ...
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{...
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 ...
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*}
...
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} &...
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
\...
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 ...
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:...
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 ...
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}
...
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:
...
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 +...
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]
{.............}%<-------------------...
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}
\...
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}}...
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?
...
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{...
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
...
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 $$ .....
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\...
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\...
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\{\...
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{...
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{...
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}{\...
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}
\...
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:
\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
subequations × 307equations × 132
align × 79
numbering × 61
amsmath × 42
cross-referencing × 31
horizontal-alignment × 22
labels × 21
math-mode × 18
hyperref × 13
cleveref × 10
alignat × 10
empheq × 10
cases × 8
counters × 7
tags × 7
spacing × 6
mathtools × 6
split × 6
vertical-alignment × 5
tables × 4
pdftex × 4
brackets × 4
tikz-pgf × 3
beamer × 3