11 votes
Accepted

How to align equations like this?

You want aligned, rather than matrix. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \left. \begin{aligned} \frac{dx}{dy} &= a(y-x)+u \\ \frac{dy}{dt} &= -...
egreg's user avatar
  • 1.1m
10 votes

Adding explanation next to the successive equations in latex

I think it's better to use an alignat or alignat* environment rather than an array environment to display several rows of equations, for two reasons. First, the rows are spaced slightly farther apart ...
Mico's user avatar
  • 478k
8 votes

How to get two matrices/vectors in the same equation?

No blank lines are allowed inside the code for a math display. The outer braces are redundant. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{bmatrix} 1 &...
egreg's user avatar
  • 1.1m
8 votes
Accepted

Typsetting a variant of division

A simple array could do the trick, but I have no idea about what it means. First time I see something like that. Update: added the array package for better rules connections, as suggested in the ...
Juan Castaño's user avatar
7 votes

Adding a number in front of a vertical line in bracket equations

(I edited this answer after the OP clarified that the number should actually come after, not before, the vertical line.) \documentclass{article} \usepackage{mathtools} \begin{document} \begin{...
Mico's user avatar
  • 478k
6 votes

How to align equations like this?

I want to align this equation such that dx/dt all align in the same line I suggest you load the mathtools package and use a drcases environment. \documentclass{article} \usepackage{mathtools} % for '...
Sebastiano's user avatar
  • 51.3k
6 votes

Multi-line equations in 'aligned' environment with ampersand (&) inside \left-\right parenthesis

You should to try \biggl[ and \biggr] to have symmetrical brackets. \documentclass[a4paper,12pt]{article} \usepackage{mathtools,amssymb} \begin{document} \begin{equation*} \begin{aligned} \ddot{...
Sebastiano's user avatar
  • 51.3k
6 votes

Multi-line equations in 'aligned' environment with ampersand (&) inside \left-\right parenthesis

I want the beginning of the second line to be aligned with a specific point inside the square brackets of the first line. Maybe I'm missing something, but to me the long equation (a) has but one ...
Mico's user avatar
  • 478k
6 votes
Accepted

system with parameter $m$

You're using the systeme tag: that's about the systeme package (documentation in French). \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[french]{babel} \usepackage{amsmath,...
egreg's user avatar
  • 1.1m
6 votes

Typsetting a variant of division

Using holtpolt package. \documentclass[a4paper,12pt]{article} \usepackage{holtpolt} \usepackage{amssymb} \begin{document} \[C_n(x) = \varphi_0[x_0] +\polter{x-x_0}{\varphi_1[x_0,x_1]}+\polter{x-x_1}{\...
Sebastiano's user avatar
  • 51.3k
5 votes
Accepted

Numbering equations with same counter as theorem environment

You want that theorem and proposition share the equation counter. \documentclass{amsart} \numberwithin{equation}{section} \newtheorem{theorem}[equation]{Theorem} \newtheorem{proposition}[equation]{...
egreg's user avatar
  • 1.1m
5 votes

Adding a number in front of a vertical line in bracket equations

You can use nicematrix \documentclass{article} \usepackage{amsmath} \usepackage{nicematrix} \begin{document} \[ \begin{NiceArray}{l@{\;\;}l} A+B=1 & e \\ Ae+Be^2=2e^2 \CodeAfter \SubMatrix\{{1-...
egreg's user avatar
  • 1.1m
5 votes

Adding a number in front of a vertical line in bracket equations

\documentclass{article} \usepackage{amsmath} \usepackage{tabularray} \begin{document} \begin{equation*} \left\{ \begin{tblr}{columns={colsep=2pt}} A + B = 1 \\ Ae + Be^2 = 2e^2 \\ \end{tblr} \...
Clara's user avatar
  • 5,202
4 votes

Adding explanation next to the successive equations in latex

Here's a possibility: \documentclass{article} \usepackage{array} \begin{document} The following equalities establish the associative property for addition. \[\begin{array}{r @{} >{{}}c<{{}} @{} ...
José Carlos Santos's user avatar
4 votes

Adding explanation next to the successive equations in latex

With {WithArrows} of the package witharrows. \documentclass{article} \usepackage{mathtools} % for \MoveEqLeft \usepackage{witharrows} \begin{document} The following equalities establish the ...
F. Pantigny's user avatar
3 votes

Adding a number in front of a vertical line in bracket equations

Another solution with nicematrix. \documentclass{article} \usepackage{nicematrix} \begin{document} \[ \setlength{\arraycolsep}{2pt} \begin{NiceArray}{\{l|l} A+B=1 & 5 \\ Ae+Be^2=2e^2 \end{...
F. Pantigny's user avatar
3 votes

Adding explanation next to the successive equations in latex

As starting point is considered @José Carlos Santos answer (+1): \documentclass{article} \usepackage{array} \begin{document} The following equalities establish the associative property for addition. \...
Zarko's user avatar
  • 283k
3 votes
Accepted

Is there an elegent method to split a long formula like this?

I'd like to suggest that you introduce just one extra line break, and that you do so by encasing the material in the cases environment in an aligned environment. And, I'd use \smashoperator[r] ...
Mico's user avatar
  • 478k
3 votes

How to get two matrices/vectors in the same equation?

This MWE to have the same thickness between the two matrices using the package mtpro2 version lite. \documentclass{article} \usepackage{amsmath} \usepackage[lite]{mtpro2} \begin{document} \[ \begin{...
Sebastiano's user avatar
  • 51.3k
3 votes

can i use resize box in align

Give up with those unreadable long fractions and split the numerators. In the code below I removed all unnecessary braces. \documentclass[a4paper,12pt]{book} \usepackage[T1]{fontenc} % <-- new \...
egreg's user avatar
  • 1.1m
3 votes
Accepted

How use flalign to align the equations on the left?

You can use this construction: \[ \begin{aligned} & x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(0)\big)\Big)}\bot x_{i\Big(\psi_\sigma^{m+1}\big(\varphi_\sigma^{m+1}(1)\big)\Big)}\bot\...
Karlo's user avatar
  • 3,155
3 votes

Is there an elegent method to split a long formula like this?

I don't think that split and cases are the right tools. Here I use a two-column array; in the first row the columns are merged and some additional space is added at the end (some visual formatting is ...
egreg's user avatar
  • 1.1m
2 votes

can i use resize box in align

I wouldn't use resizebox, rather split long numerator in two lines by use of the \splitfrac of mathtools: (red lines indicate page layout) Only first three lines: \documentclass[a4paper,12pt]{book} \...
Zarko's user avatar
  • 283k
2 votes

How to align equations like this?

I had to make some assumptions about document settings, but something like this? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \left. \begin{...
BlueIris's user avatar
  • 161
2 votes

System of equations

A solution with a customized environment in mathematical expression or equation in the preamble \newenvironment{system}% {\left\lbrace\begin{array}{@{}l@{}}}% {\end{array}\right.} And in the text for ...
giorgio's user avatar
  • 21
2 votes

How would I write a probability density function?

I found a solution to this using cases: \documentclass{article} % or some other suitable document class \usepackage{amsmath} % for 'cases' environment \begin{document} \[ \hat{y} = \begin{cases} ...
Adi Tolia's user avatar
2 votes

How can I fix breqn replacing \Psi with an overbar?

breqn documentation mentions the issue: Normally you load the math font before breqn: Unfortunately fourier is not one of the supported math fonts, you need to figure out what's going on then create ...
user202729's user avatar
  • 5,779
2 votes

Multiple short equations in columns

Like this: I would instead of multicols use minipages: \documentclass{article} \usepackage{amsmath} \begin{document} I have a long paragraph here and below this text I want to list some short ...
Zarko's user avatar
  • 283k
2 votes
Accepted

Tilde floats above superscript instead of above letter

Welcome to TeX.SE! Something like this? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \begin{split} \Tilde{B}_{k}^{ij} = f(B^{i})_{k} + (1 - \lambda) f(B^{j})_{k}...
Zarko's user avatar
  • 283k
2 votes
Accepted

Left align a single text line within a block of math equations

Use \shortintertext{and} (from mathtools), with no following \\
David Carlisle's user avatar

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