Hot answers tagged

6 votes
Accepted

When to use which alignment environment?

amsmath is derived from AMSTeX (amstex.tex) which does not have * forms but otherwise has mostly similar naming, including the x- variants. The environments that start math displays are documented in ...
user avatar
6 votes
Accepted

Is it possible to align different lines according to a "waterfall" scheme

You can use alignat: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{alignat}{2} F\colon \mathcal{A} \to \mathcal{B} \\ & f\colon C \to D \\ && c \mapsto f(c) = \...
user avatar
  • 983k
6 votes

Aligning equations inside separate \begin[split] functions

There's no need to embed split environments inside the align environment. A single align environment, along with judiciously placed \notag and \quad instructions, is all that's required to get the ...
user avatar
  • 435k
4 votes
Accepted

What's the best way to create this formula with latex?

The coding of this matrix product is quite straightforward, just take the time to write the four matrices that make up the formula with indexed variables. \documentclass{article} \usepackage{amsmath} \...
user avatar
  • 1,591
4 votes

split matrices over two lines using array

Something like this? (Note that I've gotten rid of all \left and \right sizing directives and all \, spacing directives.) \documentclass[a4paper,twoside,12pt,openany]{report} \usepackage{mathtools} \...
user avatar
  • 435k
3 votes

Aligning equations inside separate \begin[split] functions

Never have a trailing \\ in amsmath alignment environments. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} y_{1}' &= -\mu x^{\lambda - 1}\sin(\mu \ln(x))+ x^{\...
user avatar
  • 983k
3 votes

Aligning equations inside separate \begin[split] functions

split always aligns with the outer alignment, but the spurious trailing \\ confused it \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} y_{1}' &= -\mu x^{\...
user avatar
2 votes
Accepted

Aligning equations with {}

I would use a cases environment for that, but I'm not 100% sure that what you're after, since you have a closing brace in your code (though not in the picture of how you want it to look). \...
user avatar
  • 35.4k
2 votes

Line-breaking (splitting) an inequality

A small variation of @mico answer: multlined (defined in mathtools package) is inserted in equation environment for fraction used in variables argument is used \mfrac (defined in the nccmath package):...
user avatar
  • 250k
2 votes

Split a huge matrix across lines to fit on page

Even if you render the (unnumbered) equation in landscape format -- say, with the help of the rotating package and its sidewaysfigure environment -- you'll still need to round the numbers from 4 to 3 ...
user avatar
  • 435k
1 vote
Accepted

Split doesn't work in align with multiple tab stops

I'd like to suggest that you employ an alignat environment if you need all equations numbered individually, and an equation/alignedat nested environment if you need just a single, vertically centered, ...
user avatar
  • 435k
1 vote

Split a huge matrix across lines to fit on page

I'm not sure this is a good idea, but it accomplishes what you want. You can use the trimclip package to literally cut your huge matrix into two pieces. Then use the multline environment to place the ...
user avatar
  • 19.7k
1 vote
Accepted

Alignment ampersand within \underbrace

You can do this with tikzmark: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark,decorations.pathreplacing,calligraphy} \begin{document} \begin{align*} \...
user avatar
  • 19.7k
1 vote

Alignment ampersand within \underbrace

If it's possible to use LuaTeX, then the luamathalign package can be used to solve this problem elegantly. It only requires replacing & with \AlignHere inside the \underbrace. \documentclass{...
user avatar
1 vote

How to include the overbrace in the below matrix in LaTeX?

Welcome to TeX.SE! please always provide, if possible, a small but complete document (with your matrix), which we can compile as it is your problem is possible simple solve by use of the nicematrix ...
user avatar
  • 250k
1 vote
Accepted

Array function with implies arrow at center

With use of align and aligned environments: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \left\{\begin{aligned} \varphi(\sigma) & =1\\ \varphi(\tau) & =0 ...
user avatar
  • 250k
1 vote

How do I align mapsto arrows in latex

Welcome to TeX:SE! By use of the cases environment defined in amsmath package: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} \sigma = \begin{cases} \sqrt[8]{2} ...
user avatar
  • 250k
1 vote
Accepted

Theorems (AMS, Numbered by Type) Grayed Out in Lyx

"Theorems (AMS)" and "Theorems (AMS, Numbered by Type)" are substitutes. They can't be used together. So on the right pane of the dialog, select "Theorems (AMS)" and ...
user avatar
  • 12.4k
1 vote

Aligning equations with {}

Your code fragment doesn't work due to empty lines in split environment. For writing of condition the split is not right chose, better is cases with its syntax. For angles notation I suggest to use ...
user avatar
  • 250k
1 vote

Line-breaking (splitting) an inequality

As you asked if is it right using align, I'm adding this alternative answer using it. Following Mico's answer that highlights both parts of \min, and as align numbers each line, it would be nice to ...
user avatar
  • 2,832
1 vote
Accepted

How to align subequations within table

This can be done with subequations and two minipages, each with its own align environment. Note that to keep the vertical spacing equal in the two minipages I added a \vphantom fraction to each of the ...
user avatar
  • 19.7k
1 vote

Amsmath package and overleaf

Some suggestions (some already provided by @UlrikeFischer): The main problem you report has nothing to do with the amsmath package. Instead, it's caused by a syntax error in the line immediately ...
user avatar
  • 435k
1 vote

Superfluous vertical spacing

I see no reason for split. A few points to note. \big is unnecessary in most places and should be either \bigl or \bigr for opening and closing 2ex is really too large \chi o \kappa is wrong and ...
user avatar
  • 983k

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