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

learn more… | top users | synonyms

3
votes
2answers
100 views

amsmath's multline and fleqn

As a fleqn fanatic, I run across this problem once every week: when splitting a long formula using amsmath's multline, the middle lines are flushed left: \documentclass[fleqn]{article} ...
6
votes
2answers
61 views

Using \ensuremath inside \text

Using \ensuremath inside \text works fine and gives good results. However, I realized that the spacing in superscripts changes. I tried working with \mathchoice, but that doesn't know that it is in a ...
3
votes
0answers
25 views

mathspec and \RequirePackage{amsmath} error [duplicate]

In my package, I request amsmath with \RequirePackage{amsmath}, resulting in this basic setup: \documentclass{minimal} \usepackage{amsmath} \usepackage{mathspec} \RequirePackage{amsmath} % part of ...
0
votes
1answer
61 views

Hyperbolic functions both produce error and result already existant when inserted in preamble

I'm trying to write hyperbolic functions like sech, csch, etc, Since amsmath doesn't recognize them in the form \sech, \csch, ... I wrote a preamble like \DeclareMathOperator{\sech}{sech} but I get ...
3
votes
0answers
45 views

How can I redefine \int to put a negative space after the integral sign, but keep the limits properly set?

I'd like to modify the \int command such that it adds an automatic negative space, e.g. \! after the integral sign. Preferentially, I'd like to be able to not edit any of my code, so cleverly ...
0
votes
1answer
38 views

Different math rendering in Beamer? [duplicate]

When using beamer for presentations, I notice that the rendering for math becomes quite different, and I really prefer the usual rendering, say, when typing a paper. The symbols look a bit less ...
2
votes
3answers
235 views

Best approach to write an multiline equation

What is best way to let LaTeX formate a long equation such that it matches between the borderrs of a page? As an example I have the following expression: \documentclass{scrartcl} ...
3
votes
1answer
50 views

Using \qedhere automatically in every proof

I'm currently using \qedhere at the end of my proof every time since I'm really satisfied with the positioning of the qed mark. The problem is, I use it so often that I want to make the qed mark ...
1
vote
2answers
44 views

Multiple labels for one line of alignment

I have these four equations thus aligned, and would like to label each of them separately, placing the labels to the left of the two equations on the left and to the right of the other two. So far, ...
0
votes
2answers
50 views

ams math environment, missing $ in equation mode

I'm trying to write some report in Latex, and I need to use amsmath further in the code, but since I added this package, the following piece of code stopped working (initially it was between \\[\\] ...
4
votes
2answers
69 views

Amsmath environments eating \active characters

\documentclass{amsart} {\catcode`\z\active \global\def\activate{\catcode`\z\active\defz{active}z}} \begin{document} {\activate z} %1 \begin{equation}\activate z\end{equation} %2 \begin{align}\activate ...
2
votes
1answer
22 views

Numbering equations in sections and sub-sections

In general, I would like to number equations using the sub-section number, so for example, if I am in sub-section 2.3, then it should number the first equation in this section (2.3.1). To do this, I ...
6
votes
2answers
88 views

reduce vertical space for \xrightarrow

I find the vertical spacing of amsmath's \xrightarrow too large for the underset. Is there an easy way to reduce it (i.e. put "below" close to the arrow, in the example)? \documentclass{minimal} ...
2
votes
0answers
46 views

Increase the thickness of a brace

I'd like to know if it's possible to increase the thickness of a brace. The code \documentclass[oneside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
2
votes
1answer
68 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
199 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
46 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} ...
7
votes
2answers
131 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
37 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
72 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 ...
10
votes
2answers
174 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 ...
3
votes
2answers
164 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
237 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
44 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
78 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
101 views

Derivatives are sized differently with commath [duplicate]

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
34 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 ...
3
votes
2answers
63 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
77 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
26 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
46 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
63 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
102 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 ...
4
votes
1answer
41 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
157 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 ...
5
votes
5answers
510 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
35 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
138 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
117 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
81 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
27 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
228 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
64 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
123 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} ...
3
votes
1answer
270 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
236 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
45 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
97 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
61 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. ...