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

learn more… | top users | synonyms

2
votes
1answer
31 views

“undefined control sequence” error with curly brackets

I'm writing a math equation inside which I have to express curly brackets. What I intend to write should look like {h_n}^infinity_0 My code is: \par The problem asks for estimates of the sizes ...
0
votes
1answer
22 views

Latex showing “undefined control sequence” error when using cases inside align*

I am trying to use LaTeX to run the following code: \begin{align*} A\left(x\right)&= \begin{cases} 1, &\text{if } x \eq 1\\ 0, &\text{otherwise} ...
1
vote
1answer
28 views

amsmath: combine \nonumber and \label

I'd like to write something as \begin{align} f(x) & = x + 1 \nonumber \\ & =: \eqref{eq:foo} \label{eq:foo} \nonumber \\ g(x) & = x + 2 \nonumber \\ & =: \eqref{eq:bar} \label{eq:bar} ...
6
votes
2answers
81 views

Is the blkarray package compatible with Xetex and amsmath?

Running xelatex on the file \documentclass{article} \usepackage{amsmath} \usepackage{blkarray} \begin{document} \begin{blockarray}{c} 1 \end{blockarray} \end{document} gives the error ...
0
votes
0answers
21 views

Package asmath Error: Erroneous nesting of equation structures [closed]

I have the following code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
0
votes
0answers
36 views

Problem with \begin{align} [duplicate]

I am using \begin{align} in my paper. Hence unwanted gaps are being created to accomodate the whole \begin{align} content in one page. how to prevent it ?
3
votes
2answers
57 views

Is it possible to get the package listofsymbols to recognize the \cdots command?

I am trying use the package listofsymbols to define a symbol to be included in a list of symbols in a book. I have problems using the command \newsym to define a symbol which involves the command ...
9
votes
2answers
133 views

How to globally put subscripts in math-mode in upright font using amsmath?

I'm often apply the subscript environment in math-mode to assign e.g. materials to material properties, $\eta_{oil}$, $\lambda_{air}$, etc. Not very mathematical but hey, I'm an engineer ;-) I'm ...
2
votes
2answers
115 views

Removing the brackets around equation numbering

I am using the equation environment with the amsmath package. I would like to remove the brackets on each side of the equation numbering. I would like to have my equation labelled as 1, 2, 3 ... ...
6
votes
2answers
228 views

How to create a bracket-ing √-Operator?

In formulas involving square roots, I consider the overline rather irritating and would like to create an operator that turns \sqrt{x} into √[x], i.e. the argument is bracket-delimited instead of the ...
1
vote
1answer
29 views

\text{} error in mathmode

When I compile the following code: \subsection{Force} A force accelerates that standard body by exactly $ 1 \text{ m/s^2 } $ is defined to have a magnitude of $ 1 \text(N) $ The direction of a ...
3
votes
2answers
61 views

second row of matrix is center aligned instead of left aligned

First time inserting equations directly into LaTeX so no doubt I'm missing the obvious. I have a simple 2 row, 2 column matrix. However; the top row of the matrix is aligned how i want it to be (left ...
1
vote
1answer
52 views

Derivatives are sized differently with commath

I'm writing a derivation in an upper level physics class and I use derivatives extensively. I'm using the commath package \od{}{} command and they are being sized differently in different places. ...
2
votes
1answer
31 views

The dual to the positioning of `\tag`?

In an amsmath environment, the \tag* command is quite smart: If its argument fits on the same line, to the right of the formula, it goes there, otherwise it is moved to the next line; in both cases it ...
0
votes
0answers
13 views

How to fix uneven sizing of glyphs that are underset below some other text using \underset?

Here's a M(not)WE: \documentclass{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{amsthm} \usepackage{mathtools} \usepackage{accents} \theoremstyle{definition} ...
2
votes
2answers
69 views

The expression isn't shown entirely

I am writing a text in LATEX and I wrote this: \begin{align*} \epsilon_p(a+b)&=((a+b)\pmod p, (a+b)\pmod{p^2}, (a+b)\pmod{p^3}, \dots )\\ &=(a\pmod p+b\pmod p, a\pmod{p^2}+b\pmod{p^2}, ...
4
votes
1answer
21 views

Apparent conflict between eledmac/eledpar and the environment equation*

I want to make a bilingual book with parallel pages containing equations. I use XeTeX with eledpar, eledmac, and amsmath. My problem is about a strange behavior of the alignment of equations inside ...
3
votes
2answers
36 views

Flush Text to the Left in an Unaligned Centered Equation

I am looking for a way to write several centered equations with a left-aligned text on each line. In other words, I would like to mix the functionality of flalign with gather (so the first column ...
0
votes
0answers
39 views

How to typeset a math proof in beamer that displays line by line

I'd like to display a step-by-step proof of a mathematics result. I want to have steps following other steps inside amsmath's align environment, except I want to \pause the slide after each line in ...
5
votes
3answers
85 views

Size of a vertical bar symbol

I am using stix fonts to type a formula containing bra-ket notations from quantum mechanics. I observe that the size of a vertical bar is either too small: \big\}\lvert\psi\rangle , or too ...
3
votes
1answer
32 views

Left justifying in \genfrac

Is there an easy way to left-justify the "numerator" and "denominator" in \genfrac? By default it centers the "numerator" and "denominator." I am using it for a custom \atop command, per suggestion ...
0
votes
2answers
124 views

How many LaTeX characters have Unicode equivalents, and which characters and mathematical character combinations cannot be represented by Unicode?

I would like to know how many LaTeX characters, including all the special math symbols, can be represented by Unicode. Would I be right to say, that nowadyas, LaTeX's strangths over Unicode are mainly ...
0
votes
0answers
26 views

enviroment proof, theorem undefined kind of error in spite of using amsthm, amsmath

I am using the elsevier journal article format. The problem is I am using the amsthm, amsmath packages but still getting environment proof, theorem undefined kind of error. what to do ? For the usual ...
5
votes
5answers
492 views

How to format the case equation to look nicer?

I want to typeset the equation in my beamer frame: This is my solution and of course, it doesn't look well. And my code is : \[ \parbox[c][2cm]{2cm}{Attainable \\ GFlops/sec} = ...
1
vote
1answer
32 views

Is it possible to make a command within align* environment?

I'm making some math-mode macros, but some of them try to define new commands (to use as variables) within the align* math mode. I've isolated the problem to this MWE: \documentclass{article} ...
4
votes
1answer
134 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
111 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
56 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
26 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
207 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
60 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
55 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
187 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
105 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
39 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
64 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
52 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
72 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
48 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
76 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
60 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
190 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
82 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
220 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
68 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
104 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
54 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
87 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
117 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 ...