Skip to main content
35 votes
Accepted

Split equations inside the align environment

You can use split inside align: \documentclass[11pt]{book} \usepackage{amsmath,amsfonts,amssymb,amsthm, bm} \begin{document} \begin{align} \begin{split} \dot{v} & = \dfrac{1}{m}[T\cos\...
egreg's user avatar
  • 1.1m
12 votes

Writing Equation in latex

empty lines are forbidden in math environments environment split allow only one ampersand per equation line \documentclass[11pt]{book} \usepackage{amsmath} \begin{document} \begin{equation} \label{...
Zarko's user avatar
  • 300k
11 votes

How can I split this long equation into multiple lines?

Rather than trying to find suitable line breaks in the long and, dare I say it, rather unwieldy formula at hand, I'd restate the formula in terms of its four major components -- named A, B, C, and D ...
Mico's user avatar
  • 514k
10 votes
Accepted

Unable to use \tag in split equation

split assumes (as other math environments defined in amsmath/mathtools package for use inside math environments) that numbering will provide outer math environment (for whole split). In your case is ...
Zarko's user avatar
  • 300k
10 votes
Accepted

Align $:=$ with $=$ in align/split mode

\documentclass[12pt]{amsart} \usepackage{amsfonts,graphics,amsmath,amsthm} \usepackage{amsfonts,amscd, amssymb,amsmath,latexsym} \usepackage{mathtools} \begin{document} \begin{equation} \begin{split}...
David Carlisle's user avatar
9 votes
Accepted

Using 'equation split', how can I ensure that only the last equation is numbered?

You seem to be wanting to load amsmath with the tbtags option: \documentclass[twocolumn]{article} \usepackage[tbtags]{amsmath} \begin{document} \begin{equation} \begin{split} a & = b + c \\ &...
egreg's user avatar
  • 1.1m
9 votes

How to create a Fraction equation with '[]' while numerator and denominator may have more than two lines

Something like this? Observe the use of square brackets and curly braces in lieu of some round parentheses. \documentclass{article} \usepackage{array,amsmath,geometry} \begin{document} \begin{...
Mico's user avatar
  • 514k
8 votes
Accepted

Error message when using split within alignat

To have just one equation number it is reasonable to use equation as the outer environment. A split will provide a single alignment point, if you need more use alignedat, or aligned, instead. For ...
Andrew Swann's user avatar
  • 96.3k
8 votes

Two solutions to one statement

For example: \documentclass{article} \usepackage{amsmath} \begin{document} \[ b=\begin{cases} y_1-ax_1\\ y_2-ax_2 \end{cases} \] If amsmath is forbidden: \[ \left\{ \begin{array}{l} y_1-ax_1\\ ...
Przemysław Scherwentke's user avatar
8 votes
Accepted

How to stop cases from spreading to multiple lines

I don't find the layout in the original manuscript easy to follow. I'd go with something like the following instead. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation*} \...
Mico's user avatar
  • 514k
8 votes

Writing Equation in latex

Seeing as in your original MWE you tried adding two & symbols per line, perhaps that means you were trying to align the equations at two points? i.e. you wanted both sets of equal signs to be ...
Milo's user avatar
  • 9,490
8 votes

ConTeXt: Is there a way to create multi-page code listings?

By default only tables can be broken across pages when you put them in a float block. With ConTeXt version 2018.10.18 00:07 a new environment with the name splittext was added which can be used to ...
Wolfgang Schuster's user avatar
8 votes

An equation with two splits / differing alignments

You can use standard amsmath tools: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} x&=\begin{aligned}[t] 5+3&-4 \\ &-4+3+5 \end{...
egreg's user avatar
  • 1.1m
8 votes

Understanding the alignment issues with split and phantom

Here's a \phantom free implementation, using instead a nested aligned. The biggg fences are courtesy of https://tex.stackexchange.com/a/387592/4427, but you should try harder to avoid them: I find the ...
egreg's user avatar
  • 1.1m
8 votes
Accepted

How to change the alignment in a single split environment?

Nest aligned (top aligned) in align*. No phantom or zero width boxes are needed. Explanation: you have one global alignment point (at the w's), plus alignment for a whole block at =. \documentclass{...
egreg's user avatar
  • 1.1m
8 votes
Accepted

How to give tabs or indent to symbol representation

Something like this is it sufficient and is corresponds to your request? \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{newtxtext} % optional package for text font in ...
Sebastiano's user avatar
  • 56.6k
8 votes
Accepted

Break equation with \left( and \right) doesn't work exactly while using classicthesis

\left/\right automatically size the brackets to fit the inner formula, so if you pass formulas of different height to them you can't expect to get the same size of brackets. Use explicit sizes using e....
Marcel Krüger's user avatar
7 votes

how to split equation using a macro

split doesn't break the equation by itself: the user should choose the alignment points and the breaks. Here's an example, where I suggest a shorthand for a complicated expression that is very long ...
egreg's user avatar
  • 1.1m
7 votes

Multline, split

After remembering that $$ should never be used in LaTeX, see Why is \[ ... \] preferable to $$ ... $$?, here are two variants with split that allows for a more balanced output: \documentclass{article}...
egreg's user avatar
  • 1.1m
7 votes

How to stop cases from spreading to multiple lines

Here is one option: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \setlength{\arraycolsep}{0pt} \begin{array}{ r l l } \raisebox{\dimexpr-.5\...
Werner's user avatar
  • 607k
7 votes

Using 'equation split', how can I ensure that only the last equation is numbered?

The tbtags option for amsmath does just that: \documentclass{article} \usepackage[tbtags]{amsmath} \begin{document} \begin{equation} \begin{split} a & = b + c \\ & = c + d \\ & = d + e \...
Sergei Golovan's user avatar
7 votes

Multi-line long equation vanishes few brackets

Some suggestions: Don't overuse curly braces to group math elements. A proliferation of { and } symbols makes the code nearly unreadable -- while doing absolutely nothing for TeX's ability to ...
Mico's user avatar
  • 514k
7 votes
Accepted

multiline equation inside a matrix that is a part of multiline equation

You can break lines within a matrix by useing of multlined from the mathtools package: \documentclass{article} \usepackage{geometry} \usepackage{mathtools} \begin{document} \begin{equation} \label{...
Zarko's user avatar
  • 300k
7 votes

split inside flalign

You should be aware that flalign stands for full length align and not for flush left align. As such, split doesn't really make sense inside it. You can emulate split using aligned. \documentclass{...
egreg's user avatar
  • 1.1m
7 votes

Equation Left Alignment and centered numbering

I'd preserve the inner structure, with one part per summation (the second one split across lines) \documentclass{IEEEtran} \usepackage{amsmath} \usepackage{lipsum} % for mock text \begin{document} \...
egreg's user avatar
  • 1.1m
7 votes

How to change the alignment in a single split environment?

I suggest you replace the single split environment with two consecutive aligned environments. \documentclass{article} \usepackage{array} \usepackage{mathtools} % for '\mathrlap' macro \begin{document}...
Mico's user avatar
  • 514k
7 votes

How can I split this long equation into multiple lines?

Indeed, it seems hard to find a right place to split this formula and to actually do it. But this formula is so long that it is hardly readable, and in my opinion, splitting it in more lines would not ...
Vincent's user avatar
  • 20.3k
7 votes

Equation: boxed split inside align

You can customize the output, but the idea is simple with hf-tikz. \documentclass{article} \usepackage{amsmath} \usepackage{hf-tikz} \begin{document} \begin{align} A ={}& B + C + D \notag \\ \...
egreg's user avatar
  • 1.1m
7 votes
Accepted

Align equation to split equation or multiple split equations

{split} is "aware" of the outer {align}'s alignment points, but you are ending the last line with \\ which causes this issue. Just remove it and be happy. As a personal preference I would ...
campa's user avatar
  • 31.7k
6 votes
Accepted

Combine split and align environment

This is the aligned environment: \begin{equation} \begin{aligned} a&=1+2+3 & b&=4+5+6\\ c&=2+4+6 & d&=3+5+7 \end{aligned} \end{equation} If you want to have control on the ...
Bernard's user avatar
  • 273k

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