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

learn more… | top users | synonyms

4
votes
1answer
38 views

Missing { and } inserted

pdflatex keeps complaining about braces but they are balanced. I read that some environments start math mode automatically, but I don't think I'm using them. Here is the code: ...
6
votes
1answer
104 views

Undesired spacing before \sqrt[n]{x}, proper way to fix?

This code \documentclass{article} \usepackage{amsmath} \begin{document} \[ J(\sqrt[n]{x}) \] \end{document} compiles into this: The spacing after the opening parentheses is ugly. What's the ...
0
votes
0answers
30 views

amsmath: When to use `equation` environment instead of `align`? [duplicate]

If one has only one equation in the align environment, that has basically the same effect as if one had used the equation environment. So, why should we ever use equation, given the greater ...
2
votes
3answers
39 views

Vspace after amsmath aligned equation gets ignored

In the following MWE: \documentclass{article} \usepackage{amsmath} \begin{document} $\begin{aligned} A &B C \\ D &E F \end{aligned}$ \\ \vspace{2in} Vspace gets ...
0
votes
0answers
25 views

Diagram of a variation of the middle third Cantor set [duplicate]

I would like to construct a diagram which is a variation of the middle third Cantor set as described by: Suppose we start off with the unit interval $[0,1]$; let us call it $A_0$. Next, remove the ...
3
votes
2answers
199 views

Multiple results for equation

How do I define a equation e.g. x +y that shall be true for e.g. <5 and >0 in one equation? I was thinking of using a large brace, but I can't find any example of how to achieve this.
1
vote
0answers
56 views

What does “\!\!” mean? [duplicate]

For example, in the mathematical notation of a quotient space given an equivalence relation \sim, the rendering of X/\sim is different from X/\!\!\sim. In the former, there is a gap between the slash ...
2
votes
1answer
48 views

Multiple \label's error in align environment

Here is the minimal not working example: \documentclass[12pt,letterpaper]{article} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
2
votes
1answer
171 views

Is there any way to use \ceil and \floor functions, without installing the mathtools package?

I can not install the mathtools package. Is there any way to create the \ceil and \floor functions without this package?
2
votes
2answers
84 views

Wrong Math Symbols - epsilon, varrho

I'm using the AMSMATH package but I'm getting the wrong representations for the (standard) epsilon and the varrho symbols. I'm not doing anything special. \documentclass[letterpaper, 11pt, ...
2
votes
1answer
36 views

Create a copy of the subsections counter

I'm writing a mathematics paper with \documentclass{amsart}, and I would like my theorems, definitions, propositions, etc., to be numbered "like subsections", i.e., if a given theorem is the fourth in ...
4
votes
2answers
50 views

makeindex doesn't work

I have a file statuts.tex, and I would like to add indexes. Somebody says indexes belong to ams packages, so I did the following: \documentclass[12pt]{article} \usepackage{amsmath} ...
2
votes
0answers
46 views

Stop custom counter from incrementing twice in align* environment

This took me hours to track down, partially because I am fairly new to TeX. I want to understand why the custom counter eqpart in the following code fails to increment properly when using mathclap. ...
3
votes
2answers
68 views

Subsequential numeration of theorems and equations

I'm writing an essay in Latex and I want to do the following thing, which I'll explain with an example. Suppose that I have a theorem 1.1 and inside it I have to specify an equation. Is there a way in ...
3
votes
1answer
45 views

Best way to make text appear in equations

I know there are a few questions on this, but I've found conflicting ideas and just wanted to know what people thought was best. By inputting the following: \documentclass{report} ...
7
votes
1answer
74 views

Switching from equation to align changes horizontal width

I am puzzled by why changing from an equation environment to an align environment should change the horizontal width of my equation. Below I provide an example. Sorry, it is not a minimal working ...
1
vote
0answers
56 views

how do I make latex allow breaking a line whenever reaching line boundary

I started writing my HW in latex, I use an online latex editor+compiler. Sometimes, when I write long math expressions, the expressions exceed the right boundaries of the page. I've seen that it has ...
3
votes
2answers
181 views

How to get a vertical bar which is the exact size of the object?

I wish to use two vertical bars to sandwich a whole object: What I found is that (Failure 1) if I use usual \mid or \rvert or |, it is too small. (Failure 2) if I use usual \left| or ...
1
vote
1answer
79 views

Elegant way to typeset labels for matrix coefficients [duplicate]

In The Econometrics of Financial Markets by Campbell, Lo and MacKinlay -- a beautifully typeset book -- I have found gorgeous cross correlation matrices of the style below. What is an elegant way ...
5
votes
2answers
167 views

Number of Equation: 1, 1a, 1b

Following Problem: I have a PDE and two boundary conditions what i actually want is: PDE (1) BC1 (1a) BC2 (1b) and what i have is: PDE (1) BC1 (2a) BC2 (2b) is there something which provides a ...
1
vote
3answers
47 views

How to get non italic greek symbols with ams packages?

I need to use the following packages: \documentclass[aip, apl, twocolumn, reprint]{revtex4-1} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{graphicx} ...
5
votes
2answers
100 views

To get one line of equation disregarded during the alignment process in align environment

Couldn't find any answer to this question on anywhere. I have this one particular solution in my hands, which helps only if the equation to be disregarded for alignment is the first or the last of the ...
3
votes
1answer
47 views

Multiple subsequent connected equations exceeding line length

How to break a number of equations like in the following example? \begin{align} \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda \cdot \lambda\\ \beta \cdot \beta \cdot \beta ...
5
votes
1answer
79 views

Nested parenthesis automatic indentation in equation

Here is some code that produces a display equation with nested parentheses indented to different depths. \documentclass{amsart} \begin{document} \begin{align*} (\exists d) &\biggl( ...
5
votes
4answers
102 views

Increase row height in align* cases environment

I'm trying to use cases to present some equations with fractions, and finding that the lines are too compressed to be easily read. Is there a way to increase both the spacing between lines and the ...
1
vote
1answer
53 views

Does the align environment provided by amsmath not enter math mode?

I asked a question earlier today, where I learned that the subequations environment provided by amsmath does not enter math mode: Missing $ inserted error when using \frac inside subequations ...
5
votes
1answer
81 views

Missing $ inserted error when using \frac inside subequations environment?

Here's a MNWE (minimum not working example): \documentclass[12pt,letterpaper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{amsfonts} \usepackage{amssymb} \begin{document} ...
2
votes
1answer
83 views

Standard AMS-Sum Operator using MnSymbols?

Because a professor who reads one of the lectures I attend this term writes so slowly, I typeset a lecture script for that lecture in TeX. For the use of some symbols and for better underbrace ...
3
votes
5answers
87 views

Multi-line equation with split

I have the following problem: Obviously I want the = to be aligned and I need two lines for the equation following the third =. Also I'm not so sure whether I used the \big{[} and \big{]} commands ...
2
votes
3answers
169 views

How to define vectors when used in equation

So in short I want to have something that looks like this: So far I managed to get to the following output: with the code as follows: \documentclass[12pt, a4paper] {article} ...
2
votes
0answers
31 views

Correct typesetting of aligned (or multiline etc) equations after a pagebreak [duplicate]

I was writing a block of mathematical formulas using the align environment. While I was writing these aligned equations I reached a pagebreak and the whole block moved to the next page so it made me ...
2
votes
1answer
80 views

amsmath align* tampering with a counter of mine

\documentclass[a4paper]{report} \usepackage{amsmath,mathtools} \makeatletter \newcount\mw@shortcnt \mw@shortcnt=0 \newcommand{\short}[1]{% \global\advance\mw@shortcnt by +1% ...
0
votes
1answer
31 views

textit - undefined control sequence

I got a problem using \textit{}`. The error which occurs is "Undefined control sequence". It occurs in a formula. \texitit{P}_{int} = \int_{V^r} \textbf{\textit{P}}^{i+1} : ...
2
votes
3answers
187 views

Multi-Line Brackets

I can't seem to get the parenthesis to wrap around the RHS of the equality. I get the following error: Errors: ./review.tex:239: Extra }, or forgotten \right. [\end{split}] ./review.tex:239: Missing ...
4
votes
1answer
36 views

Amsmath double line equation alignment centered

I need an equation that consists of three parts (or one equation including 3 equations in total), it should look like this: My code for now gives me the following: So I would like to have the two ...
0
votes
1answer
41 views

Describing and referencing exercises in latex

I would be like reference the exercises have done such that it says Exercise 1 (Author [number], Chapter i, Exercise i.j ) \documentclass[a4paper, 11pt, notitlepage]{report} \usepackage{amsfonts} % ...
3
votes
1answer
37 views

Aligning Vertically Spaced Equations

This question is most likely a duplicate and trivial, but I ask nonetheless as it is causing frustration. I have written the following \begin{equation} \begin{split} \alpha_{a}\alpha_{b}+\alpha_{b} ...
2
votes
2answers
41 views

Is it possible to use \underbrace across align* environment?

I have two sets of equations in an align* environment and they are all just how I want them, but I want to draw an underbrace from the left bottom equation to the right bottom equation, but it throws ...
2
votes
1answer
31 views

arrows with same length between spaces

I have a problem regarding code in latex. The problem is that the length of the arrows are different depending on the length of the labeling of the maps. e.g. the map {f_{x_0}} has an arrow which is ...
1
vote
1answer
459 views

What is the Latex convention for sign function?

What is the correct type for sign(x)(signum function)? I'm using: \documentclass[journal,transmag]{IEEEtran} \usepackage{amsmath} \usepackage{amssymb} \newcommand{\sign}{\text{sign}} Is that ...
3
votes
1answer
101 views

What LaTeX math is not covered in the MathML specification?

Does anybody have an exhaustive list of what parts of the standard LaTeX math macros that are not covered by the MathML specification? By standard, ideally I mean the maths packages distributed with ...
4
votes
2answers
75 views

How to change the colour of a tag in align?

I'm having the following article: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} d(x, y) &= d(y, x) \tag{symmetry} \\ &\leq d(y, z) + d(z,x) ...
1
vote
2answers
128 views

How can I write a cursive letter k in math?

Using amsmath, writing $\ell$ produces a cursive lowercase letter l. I would like to have a reasonably matching cursive lowercase letter k, available through \kay e.g., so that I can write things ...
4
votes
2answers
202 views

How can I remove the qed symbols from all lemma proofs?

the following code will only make the qed not appear in the second proof. However, it it possible to make the qed symbol never appear at the end of the proofs without having to specify it locally ...
19
votes
2answers
148 views

amsmath matrix vs loading the array package

Here is an interesting interaction. Consider the example below. Whenever the array package is loaded, extra space appears on the right in the output. Any ideas as to why? ...
1
vote
1answer
84 views

Tag placing with amsmath

I'm using amsmath and its \tag command to tag equations. I remember having a situation where I liked having the tag on the left better than on the right. So I gave my class (which is report btw) the ...
3
votes
3answers
171 views

Looking for stylized H-symbol

I'm wondering if LaTeX knows the following symbol (sorry for the hand-drawing, I didn't even find it online once): It's kind of a stylized H letter that is sometimes used to denote the Hilbert ...
3
votes
3answers
57 views

Center the second line of an equation

How do I get the following output? f a b c = <centered definition of f> g a b c d = <centered definition of g> These are definition of functions, but the bodies are big; I would ...
0
votes
1answer
49 views

Getting items above and below a compound math symbol

I'm trying to get information to appear above and below a math symbol such as \sum or \leftrightarrows. I've found information detailing \mathop and the syntax behind it but when I try to use it, it ...
1
vote
2answers
91 views

Different horizontal (!) spacing of delimiters with `\left`, `\bigl`, `\Bigl`,

I use \arrowvert as a middle delimiter. For example in the definition of sets, i.e. \lbrace x \arrowvert x < a \rbrace. Moreover, I try to avoid \left, \right and \middle but use the AMSmath macros ...