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

learn more… | top users | synonyms

10
votes
5answers
9k views

problem using option fleqn in amsmath package

I'm using the following code. What should I do if I don't want the fixed indent from the left margin of my page? ‎ \documentclass[‎fleqn,oneside‎]{article}‎ ‎\usepackage{amsmath}‎ .... \begin{align} ...
10
votes
5answers
944 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 ...
10
votes
4answers
5k views

How to show two groups of equations side by side: one implies the other?

I would like to show a bunch of equations can imply another bunch of equations, with double right arrow in between. Here are two trials of mine: one is to use another level of math mode to enclose the ...
10
votes
2answers
862 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 ...
10
votes
4answers
503 views

What is the difference between aligned in displayed mode and starred align?

I am confused in choosing one of the following approaches. \documentclass{article} \usepackage{siunitx} %\sisetup{detect-all} \usepackage{amsmath} \parindent=0pt\relax \begin{document} The following ...
10
votes
2answers
1k views

Too small space when using \DeclareMathOperator

Currenlty I'm writing a math script (ring theory, PDF). When I need a new math operator I use \DeclareMathOperator from the amsopn-package. However I noticed some strange behaviour when using an ...
10
votes
2answers
184 views

Different symbols in $…$ and align environments

Is there a way to force LaTeX to produce different symbols either in $...$ or \begin{align}...\end{align} environments? For example $ \mymacro $ should lead to A while \begin{align} \mymacro ...
10
votes
1answer
3k views

How can I write multi line equations with alignment in inline math mode?

Is there any way to override the fact that certain environments in LaTeX are automatically "displayed"? One such example is the align* environment. I want to keep my aligned equations inline. So ...
10
votes
2answers
997 views

Exchange meaning of : and \colon

I usually use the colon symbol : to denote maps. For set syntax there is the braket package. So as the spacing of : is not appropriate, I want it to behave like \colon. I tried ...
10
votes
2answers
2k views

Force line break inside a \lim argument in align environment

Inside an align environment I have a \lim with two variables which should be displayed in two lines: \begin{align} ... f & = \lim _ {a \rightarrow -\infty \linebreak b \rightarrow \infty} ... \\ ...
10
votes
3answers
3k views

Defining a command for amsmath's align environment

I'd like to define a shorthand command for \begin{align*} and \end{align*}. When I write \newcommand{\ba}{\begin{align*}} it works fine. But when I write \newcommand{\ea}{\end{align*}} ...
10
votes
1answer
5k views

Span formula over multiple pages.

I've looked through the search but I couldn't find what I specifically want. I have the following \begin{equation} \begin{split} Very long equation \end{split} \end{equation} Now, I have half a ...
10
votes
2answers
173 views

Math equation typeset problem

I would like typeset equation on the figure below. I have problem with subsript text 1, 2, 3 and 4 under integrals. I try something like this: \begin{align}\label{fyz:eq_fey_null2} ...
10
votes
1answer
599 views

How can I make an overset symbol at the same size and height as \bar except with a different symbol?

Apologies for the cryptic title, but I was not sure how best to phrase the question in one sentence. I am essentially trying the create a vector symbol with \rightharpoonup as the top instead of the ...
10
votes
2answers
2k 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
310 views

Using \vtop affects indentation of \intertext

I am using the \iteminput macro from the solution at How to adjust macro to respect current \linewidth? to import content from other TeX files. However, this appears to be effecting the indentation ...
10
votes
2answers
666 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
192 views

Why must \DeclareMathOperator be in the preamble?

What is the rationale for requiring \DeclareMathOperator to be in the preamble? Why are users not allowed to restrict the scope of an operator definition to a particular chapter or environment, like ...
10
votes
1answer
722 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
393 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
657 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 ...
10
votes
2answers
116 views

How to Align systems

I am having a hard time of getting my texts and equations aligned. Idk what pack to use. Sorry the way I listed the codes are not the very best. This is my first time going on to this forum. Here's a ...
10
votes
4answers
2k 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
336 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
355 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
1k 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 ...
9
votes
3answers
421 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 ...
9
votes
6answers
12k views

\qed for theorems without proofs

It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement. How can I do this in LaTeX? If I place a qed-box at the end of ...
9
votes
3answers
2k 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 ...
9
votes
3answers
5k 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
3k 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
354 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
255 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
2k 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
8k 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
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 ...
9
votes
4answers
317 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
230 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
3answers
2k views

\left and \right in equation across multiple lines [duplicate]

Possible Duplicate: Left/Right across multiline equation Could someone explain why I can't get the left and right commands to work correctly code: \documentclass{article} ...
9
votes
2answers
148 views

Kerning and long subscripts or superscripts

For really long sub(super)scripts, does it look bad to decrease the kerning? i.e. \lim_{n\to\infty}{\dfrac{1}{s_n^2}\sum_{i=1}^n \int_{|x-\mu_i|>\varepsilon s_n} (x-\mu_i)^2f_i(x)dx}=0 ...
9
votes
3answers
826 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
1answer
2k views

Blank lines in align environment

Is there a way to insert a blank line between two equations in align environment? From what I understand a blank line is interpreted as \par and \par is not allowed in align. Can I disable this ...
9
votes
2answers
3k 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
861 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
12k 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
6k 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
1answer
385 views

Diagnosing the “too many math alphabets” error

I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start ...