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

learn more… | top users | synonyms

6
votes
2answers
67 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 ...
14
votes
1answer
596 views

What causes this strange interaction between glossaries and amsmath?

MWE: greatly trimmed from a large document; XeLaTeX; full TeXLive2012 completely up-to-date: \documentclass{memoir} \usepackage{fixltx2e} \usepackage{amsmath} \usepackage{mathspec} ...
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
55 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
47 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
248 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} ...
1
vote
2answers
50 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
54 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
76 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
25 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 ...
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} ...
6
votes
2answers
111 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} ...
1
vote
1answer
225 views

amsmath package clash

Just this afternoon I seem to have a package clash that resulted in all my equation numbers disappearing. I seem to have resolved the issue by putting \usepackage{amsmath} at the top of the preamble ...
1
vote
1answer
116 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. ...
9
votes
1answer
661 views

ignoring vertical space due to underbraces in cases environment

In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried \smash and negative ...
2
votes
0answers
51 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
84 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
294 views

Type of file to select for writing Math Thesis if I use latex from Kile [closed]

if I write a math. thesis using latex from Kile, then, while opening a new file in Kile, what is the option should I choose: article/book/report? Thank you!
0
votes
1answer
338 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
55 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
148 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 ...
5
votes
3answers
766 views

Creating a \precneq symbol

Going through the comprehensive symbols list, and also Detexify, we see that through various packages (mostly amssymb) we can get the symbols \prec Precedes. Unicode U+227A: ≺ \preceq Precedes or ...
4
votes
2answers
6k views

Package or command for inverse hyperbolic trig functions?

What are the commands for all the: inverse trig functions (arcsec(x), arcCsc(x), arcCot(x)); hyperbolic trig functions (sech(x) and csch(x)), and inverse hyperbolic trig functions?
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
87 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 ...
42
votes
2answers
23k views

Vertical Spacing within align environment accounting for fractions

The default vertical spacing within an align environment seems very tight when there are fractions in the lines. I am aware of three manual tweaks that can be applied: Adjust the value \jot. ...
6
votes
2answers
247 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 ...
3
votes
2answers
199 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 ... ...
3
votes
2answers
88 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
49 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 ...
2
votes
1answer
36 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 ...
2
votes
2answers
80 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
49 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
79 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
110 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
49 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
172 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
523 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
38 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
139 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: ...
7
votes
1answer
132 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
31 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
93 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
28 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
235 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
66 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
194 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
336 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?