Questions tagged [amsmath]

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

is a package originally provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways. It is now maintained by the LaTeX Project team.

The package is available on CTAN and included in TeX Live. See the user's guide for details; the guide is also available in Italian. Additional documentation in the file testmath.pdf includes copious examples of the material provided by the package.

For other packages provided by AMS, please use the appropriate tags , or .

3422 questions
91
votes
1 answer

Difference between align and alignat environments

What is the difference between align and alignat environments?
anilomjf
  • 1,013
25
votes
1 answer

Big O notation - visual difference related to document configurations

Please refer to the information present at the image attached. The last image is the one I get when I type the code suggested in the same image, for which the author gets exactly the visual symbol I would like to get. Important: I don´t want to mess…
fskilnik
  • 355
24
votes
3 answers

On \atop again: how to obtain the same result without warning

I know this question has been already discussed but the answer does not seem to work in my case. I am using the \atop command with the amsmath package to stack two symbols (more specifically $a=x$ and $b=y$) but, as well known, this is foreign to…
user32228
  • 341
23
votes
2 answers

What is the difference between ‎\ldots‎ and ‎\cdots‎?

What is the difference between ‍‍\ldots‎ and ‎\cdots‎? For example, To write a sequence of points which is best to use? a_1,\ldots,a_n Or a_1,\cdots,a_n. Couple of examples of the difference can be useful.
Neda Bhr
  • 333
22
votes
1 answer

amsmath undefined control sequence

I am using \documentclass{report} and \usepackage{amsmath}. My problem is relation symbols such as \backsim \lesssim \gnsim are not working. Everytime I try to use such symbols error comes !Undefined control sequence. Please guide.…
Misha
  • 569
21
votes
2 answers

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 \newcommand?
n.r.
  • 4,942
15
votes
1 answer

\dots plus \left

I have the following MNWE and don't understand why this fails. \documentclass{article} \usepackage{amsmath} \begin{document} $\dots \left. \right.$ \end{document} Understanding the relevant code in amsmath proves to be rather difficult and I can't…
Max
  • 5,702
15
votes
4 answers

Different proofs in amsmath with different QED symbol?

I'm trying to expand the amsmath package to get two different proof environments: \begin{proof} ... \end{proof} and \begin{proof*} ... \end{proof*} so proof* should act exactly like proof except of the QED Symbol. proof should provide be a…
Frank
  • 501
14
votes
5 answers

How to write the block matrix in LaTex?

I wish to write the following block matrix in LaTex. I have been trying a bunch of stuff, but none of it seems to work. In particular, I tried the following: \begin{bmatrix} 0 & -1& & & & & 0 & & & …
Student
  • 567
13
votes
2 answers

\providecommand equivalent of \DeclareMathOperator: \ProvideMathOperator?

What is the \providecommand equivalent of \DeclareMathOperator? I.e. as \providecommand is to \newcommand a method for defining new commands if and only if they have not already been defined? Actually, as pointed out by @egreg in the comments,…
mforbes
  • 5,571
10
votes
2 answers

Math inside \text

Math inside \text looses the information that it is inside a subscript $X_{a+b,\text{\ensuremath{a+b}}}$. \documentclass{article} \usepackage{amsmath} \begin{document} $X_{a+b,\text{\ensuremath{a+b}}}$ \end{document} I'd like to find different…
mhchem
  • 3,485
  • 12
  • 37
10
votes
1 answer

New command: Hypothesis

I'm new with Latex and trying to get four hypotheses in the following style: Hypothesis 1 (H1): This is my first hypothesis. I'm using the amsmath package and the following code: \newcommand{hyp}{Hypothesis} \begin{hyp} This is my first…
Tasia
  • 101
10
votes
2 answers

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 picture of how my ended pdf look like: Here are…
Gamerdue
  • 183
9
votes
1 answer

Dot derivative of vector that includes a hat misaligns

I have a vector defined as \begin{bmatrix}x \\ \hat{x}\end{bmatrix} and it displays as expected, however if i try to add a dot derivative it gets misaligned. minimal…
9
votes
1 answer

How to write centered multi-line conclusion in inference rule?

I'm using the semantic package to write inference rules and I have trouble with the following: \usepackage[inference]{semantic} \usepackage{amsmath} \begin{equation} \inference{ expr }{ \begin{aligned} long_expr1 \\ long_expr2 \end{aligned}…
1
2 3
14 15