{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.

learn more… | top users | synonyms

10
votes
2answers
621 views

Custom alignment of columns in align environment

I need to typeset two columns of equations, each row typeset with an equation number to the right as with an ordinary equation. The first column must be centered, and the second column must be ...
10
votes
2answers
2k views

Increase spacing in split environment

I'm writing long equations with the split environment: \begin{equation} \begin{split} ... \\ ... \\ ... \end{split} \end{equation} The problem is that the single lines are a bit high, and there is ...
10
votes
2answers
1k views

Nesting subequations within align

subequations seems to only work outside environments such as align and equation. What if I want to preserve the alignment of the equal signs using align while also would like subequations numbering ...
10
votes
1answer
645 views

Move QED symbol to the left, i.e. at the end of the sentence

I want to make the qed symbol at the end of a proof appear at the end of the last sentence, not at the far right of the same line. Would like to do this the simplest way possible. All I can find ...
10
votes
1answer
371 views

What would be the appropriate technique for typesetting a “where” list of variable specifications after an equation?

I'm often finding I need to lay out an equation in a manner resembling the following source: \begin{align*} x = y + z \end{align*} where $y = $ the value of $y$; $z = $ the value of $z$. ...
10
votes
1answer
3k views

AMS align / Align multiple “=”, too much space

I asked this question at stackoverflow and have been kindly redirected here. I'd like to align some equations in Latex using the AMS packages. Each equation has two equal signs that need to be ...
10
votes
4answers
1k views

\qed or \qedhere at the end of split environment

While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
10
votes
1answer
317 views

Conflict between amsmath and pdfcomment

I use both amsmath and pdfcomment in one document. This leads to the references produced by (\ref{}) to appear like (zref@1) instead of numbers like (1). Without amsmath or pdfcomment this problem ...
10
votes
2answers
323 views

Modify eqnarray to match that of amsmath's align

This is a follow-up question to \eqnarray vs \align. Sadly, some journals (and their accompanying document classes) still require the use of eqnarray to arrange a number of equations in a single ...
10
votes
2answers
779 views

Footnote in align enviroment

It appears that one is not supposed to use \footnote in math mode as per this appropriately named question: Footnote in math mode. However, it appears that I can get it to work without having to ...
10
votes
1answer
410 views

showonlyrefs and cleveref

This question led to a new package: autonum I know that cleveref is not compatible with showonlyrefs as it says in the cleveref manual. But I have a book-length document that depends on ...
9
votes
5answers
749 views

parenthesis around underbrace too big

I have the problem that I want to have an equation with underbrace but the surrounding parenthesis shall not include the underbrace, i.e. should have the size as if the underbrace wasn't there. Here ...
9
votes
2answers
5k views

Normal subgroups

To typeset that H is a normal subgroup of G, I would use H\unlhd G. However, the result doesn't satisfy myself, since the G seems too close to the triangle: Adding a space \ makes "too much ...
9
votes
2answers
608 views

How to format Maxwell equations?

Is there a variant of split environment from amsmath package which would allow for two aligned equations in a row? I want to format two pairs of Maxwell equations in two rows and put single equation ...
9
votes
3answers
4k views

A version of colorbox that works inside math environments

I'd like to highlight particular parts of an amsmath environment. Here's a minimal working example: \documentclass{article} \usepackage{amsmath,color} \newcommand{\abs}[1]{\lvert#1\rvert} ...
9
votes
2answers
2k views

Change equation font to Times New Roman?

How would I change equation font in the \begin{equation} environment to Times? For instance, I use this code in LaTeX: \begin{equation} \begin{split} {L_{CML}}\left( \theta \right) ...
9
votes
2answers
1k views

Compact collapsing of equations and paragraphs

I want to duplicate the compact look of G. K. Batchelor's fluid dynamics book. Where a paragraph terminates such that the mathematical expression can collapse up into the vertical space of the ...
9
votes
3answers
279 views

Numbering a set of horizontally distributed equations

Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations. How can the left equations be numbered using subequations? ...
9
votes
2answers
233 views

Compute remaining horizontal space in align environment

I use align* often and sometimes it is preferable to add text to the right hand side of an equation instead of using \intertext, or \shortintertext, which tends to interrupt the math flow. This is ...
9
votes
2answers
3k views

Putting equations in \intertext to annotate a proof

I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
9
votes
4answers
1k views

Text above matrices

I am new to latex and I am trying to create So far I have been able to create the matrices, like so: \[ N\textrm{ spectra} \begin{bmatrix} a_{11} & a_{12} & \cdots & a_{1M} \\ ...
9
votes
4answers
251 views

Highlighting equation with arrow

I want to create an equation with highlighting as shown bellow. But using following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
9
votes
2answers
155 views

Center one equation of many in align?

I have the following align enviroment: \documentclass[12pt]{memoir} \usepackage{amsmath} \begin{document} Here we see \begin{align} \text{cat} &= \text{dog}\\ \text{dog} &= cute ...
9
votes
4answers
7k views

side-by-side equations, with equation numbers for each

The align command from amsmath allows me to put two equations side-by-side: \begin{align} x = y && a = b \end{align} Unfortunately for my purposes, this shows both equations under one ...
9
votes
3answers
392 views

Underbrace in a matrix

I want to display the structure of a matrix as shown in the image below: Can this be done using pmatrix and \underbrace? My attempt at combining pmatrix and \underbrace results in a compile error. ...
9
votes
2answers
2k views

A medium dot in math mode

Is there a nice way to produce a medium-sized dot to use in a formula like this: $x_{i\cdot} = \sum_{j} x_{ij}$ The \cdot is not very visible.
9
votes
1answer
807 views

Aligning sub-equations within align

Update: How do I align both the \sum signs and the = signs in the last two equations? I have updated the picture. Original Question: When I use the following code: \begin{equation} \begin{split} ...
9
votes
3answers
10k views

Using \gather and \align together

I'm very picky regarding alignment inside my proofs. What's frustrating me right now is that I have some lines that I want to be center-aligned (using \begin{gather}) and others that I wish to align ...
9
votes
1answer
5k views

\hbar new letter

I would want to know in which package the symbol \hbar is defined. In fact I ask this because I need to create a letter like \hbar but with 'k' instead of 'h'.
9
votes
2answers
1k views

Broken matrix - gaps in brackets

This is my minimal working example. \documentclass[12pt,a4paper]{mwrep} %\usepackage{amsfonts} \usepackage{amsmath} %\renewcommand\baselinestretch{1.5} \begin{document} \chapter{Example} ...
9
votes
1answer
1k views

Does amsmath provide any medium to auto-break equations?

I'm writing large equations in texlive with amsmath, and I want them to be automatically broken at the end of the line. Is there any way to do that with amsmath? What would you recommend me to do ...
9
votes
1answer
80 views

\@ifnextchar inside pmatrix?

I created a function which handles a superscript followed after the function. I do that by using \@ifnextchar^. Everything works well, except in any pmatrix environment. Why? As a quick-and-dirty ...
9
votes
4answers
330 views

Curved arrow describing a step in a mathematical derivation

Is it possible to achieve something like this in LaTeX? I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
9
votes
1answer
189 views

Ensuring that vertical space is consistent in list of polynomials

\documentclass{article} \usepackage[fleqn]{amsmath} \usepackage{mathrsfs} \usepackage{amsfonts} \pagestyle{empty} \setlength\mathindent{0pt} \begin{document} \[3x^3\] \[3x^2\] \[3x\] \[3\] ...
9
votes
1answer
1k views

Referencing subequations with cleveref

I try to refer to the parent number of subequations with \cref from the cleveref package. However, I would like to change the output "eq. (...)" into "eqs. (...)" when I refer to parent numbers ...
9
votes
1answer
1k views

Putting limits *underneath* new operators

I'd like to declare a new math operator called the "strong limit" as follows: \DeclareMathOperator{\slim}{s-lim} So it's just "lim" (i.e., \lim), but with an "s-" in front. I want to be able to ...
9
votes
1answer
448 views

Alternative ways to format the cases environment in display math-mode

The cases environment of amsmath package is useful for defining a function that takes different values in different regions. For example: \documentclass{article} \usepackage{amsmath} \begin{document} ...
9
votes
1answer
561 views

The font of operator names

What is the correct way of having all operator names be set in, say, sans serif? Saying \documentclass{article} \usepackage{amsmath} \makeatletter \def\operator@font{\sf} \makeatother ...
9
votes
2answers
732 views

Lower overbrace in math enviroment

I would like to achieve the following inside an math environment But i can't get the text below the equation \operatorname{min} \left| \overbrace{\text{Hadamard product}}^{\begin{pmatrix} X \circ X ...
9
votes
2answers
71 views

Cleveref: Parentheses around references to subequations using \labelcref

Using the Cleveref package (v0.19) i have a problem with missing parentheses when referencing to subequations, using the \labelcref command. Here is a MWE: \documentclass{article} ...
9
votes
1answer
2k views

Vertical spacing before and after equation environment: empty line or not?

The vertical spacing in front of and behind the amsmath equation environment is different whether I insert a blank line or not (im using KOMA-Script with parskip=half if this is important). I'd like ...
9
votes
2answers
514 views

amsmath align within list

In the code below, the equation within the itemize environment is too wide for the page, but I don't get an overfull hbox warning (which I find annoying because it's sometimes useful to know exactly ...
8
votes
2answers
276 views

Writing specific versions of an operator for display and inline modes

I'm busy answering a question by constructing a new math operator that uses the sum symbol and some TikZ placed on top. My answer as it stands can be found here. It looks (I think) pretty good in ...
8
votes
3answers
293 views

To write this norm equation better?

I have this norm \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \lVert f \rVert_{L_{2}(\Omega)} = \text{sup}_{ \begin{cases} v \in L_{2}(\Omega) \\ v \not= 0 ...
8
votes
3answers
163 views

Control the alignment of each “cell” in amsmath's aligned environment

In amsmath's aligned environment, the alignment of each "cell", or each "column" is predetermined, and seems to work in the following way: the first "column" is aligned to the right, the second to the ...
8
votes
4answers
362 views

How to add partial horizontal lines in horizontally aligned math environments

I'm having trouble writing a proof of a theorem in LaTeX, where I need to sum a set of inequalities and continue the proof with this sum. The problem I have is that I'd like to introduce this step ...
8
votes
3answers
317 views

How to force alignment of “cases” brackets in an enumerate environment?

I am using the enumitem and amsmath packages to give the recursive definition of the valuation function $\nu$ for classical first order logic. The way I have it set up, the brackets of the cases are ...
8
votes
2answers
1k views

In exponents, parenthesis too small, \big too big

When something big (a fraction, a sum, an integral...) appears within a pair of parenthesis, one can typically use \left(...\right) to get delimiters large enough to surround the contents. The ...
8
votes
3answers
1k views

Why doesn't lineno number a paragraph when it is followed by an “align” equation environment without a space?

lineno skips the line numbering in this case: \documentclass[12pt]{article} \usepackage{amsmath} \usepackage{lineno} \linenumbers \begin{document} Lorem ipsum dolor sit amet, consectetur adipiscing ...
8
votes
3answers
2k views

Cases with square brackets

How can I subdivide in cases with square brackets? I mean I want to write: ⌈ 2_i if ... rank (q, l) = | 2_i + 1 if ... ⌊ .... with square brackets, not ...