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

learn more… | top users | synonyms

10
votes
3answers
128 views

How to get limits aligned?

Assume the following MWE/Screenshot. How to get the "limits" x and y correctly vertically aligned? I tried already: \mathstrut and \vphantom{g} as discussed in How to align limits of double ...
1
vote
0answers
32 views

Foonotes in multlined equations inside minipages

I am having the exact same problem as describe in this question. Unfortunately, however, the solutions listed there do not seem to work for the multlined environment as well. A MWE is the following. ...
6
votes
1answer
146 views

Nested Mathematical Functions

This question has bugged me for a while. I want to write a nested function, f(g(x)). If I naively enter it: \begin{align} f(g(x))=y \end{align} The problem is that each and every parenthesis ...
2
votes
1answer
39 views

Why does using \DOTSM in macro definitions cause an error?

I currently have the code \documentclass{article} \usepackage{amsmath} \newcommand*{\dotprod}{\DOTSM\cdot} \begin{document} $a\dotprod b$ \end{document} but when I try to compile it, I get the ...
2
votes
2answers
50 views

Redefining \pmb for nicer results

I want to use suetterlin font as a math alphabet (in a bold and medium version). This is how far I got (without any manual font conversions....) \documentclass[convert={density=10000}]{standalone} ...
7
votes
2answers
158 views

How can I make amsmath's \dots look ahead after macro expansion?

As explained by egreg, "amsmath redefines \dots so that it can do a lookahead in order to establish what kind of dots to use." However, I noticed that this feature of \dots doesn't work when I define ...
5
votes
2answers
97 views

Typesetting inline row vector

I have (another) question on typesetting inline row vectors. I'm using amsmath and mathtools. I'm aware of the smallmatrix environment. Unfortunately, the elements of the vector get scaled. This ...
7
votes
2answers
195 views

How to assign a single equation number/label to *n* equations?

I want to label \begin{align*} x\equiv & x_1(\text{mod } m_1)\\ x\equiv & x_2(\text{mod } m_2)\\ .\\ .\\ .\\ x\equiv & x_n(\text{mod } m_n) \end{align*} as one set of equations. How to ...
2
votes
2answers
58 views

Issue with displaying unit vectors

I am using the following command to display unit vectors for my report: \newcommand{\ihat}{\boldsymbol{\hat{\textbf{\i}}}} \newcommand{\jhat}{\boldsymbol{\hat{\textbf{\j}}}} This is my result: ...
5
votes
2answers
198 views

Vertical space in bmatrix

I have matrices with dense expressions in them and I'd like to loosen the matrix brackets a little. I'd like to be able to control the horizontal distance from bracket to first letter (both sides) and ...
6
votes
2answers
380 views

Ignore Greek letters using `\mathcal`

I want to define various styles using commands, so that I can globally change them later if necessary. For example I want all sets to written using \mathcal{...}. This worked until I needed to use a ...
2
votes
2answers
41 views

Reducing space between for some of the equations

I need to display a few equations as below The code I have written is :- \documentclass{report} \usepackage{amsmath} \begin{document} \begin{equation} \label{Equ. 3.9} x_{i+1}=\cos(a_i) \cdot ...
2
votes
1answer
69 views

`:` is set to `\colon`, but the spacing is still wrong - part 2

This question explains how to make : behave as \colon. It has two solutions. The present question concerns the second, less upvoted solution, egreg solution, as in this question of mine, it turned out ...
3
votes
2answers
106 views

\operatorname in amsmath: polish diacritic letters “ł” and “Ł” are not rendered

I am attempting to use a mathematical operator (by amsmath package) which would use the polish letter "ł" or "Ł" (defined either directly as a UTF-8 character or via the \l{}, \L{} commands). ...
3
votes
2answers
160 views

How can I make \eqrefs clickable?

I have modified the \eqref macro like this \let\originaleqref\eqref \renewcommand{\eqref}{equation~\originaleqref} as per this answer. I want to have the reference be typeset like equation x or ...
0
votes
3answers
77 views

How to display the word “AMS-LaTeX” in LaTeX? [duplicate]

How do I display the word "AMS-LaTeX" properly in LaTeX like in the image below? Is there a command for the "AMS" part similar to \LaTeX?
2
votes
1answer
81 views

gather: number each equations, even in a single line

My question is really similar to "How to place and number 3 short equations in one line?", except that I have more than one line of equations. So basically, I'd like to continue using {gather}, but ...
2
votes
1answer
241 views

How to horizontal/vertical combine two math symbols?

This is an absolutely minor/cosmetic problem. I can e.g. use stackrel so combine two math-symbols vertically. This is nice for \stackrel{!}{=}. But how to do this horizontally? I want to combine (only ...
0
votes
0answers
34 views

Character with indexes on every corner [duplicate]

I want to write characters in latex with indexes in every corner. For example to write a transformationmatrix from the basis B to the basis B' i need smth like this: ...
3
votes
3answers
111 views

Amsmath equation align last line to the right

I'm trying to obtain something similar to: with the following code, using amsmath package: \begin{equation} \begin{split} Q_\nu(a,b) &= \frac{1}{2}\mathrm{erfc}\left ( \frac{b+a}{\sqrt2} \right ...
2
votes
1answer
170 views

How can I typeset this equation (standard model of physics)? [duplicate]

So, there's this picture Floating around on the internet for the standard model of physics in a relatively short form. I want to typeset this in LaTeX in order to print it. However, I can't find a ...
2
votes
1answer
60 views

How to reset numbering every new math block?

In a paper/document with multiple math blocks, such as align, equation etc. every new block resumes numbering from the number it was left in the previous. How can we reset the numbering, that is, how ...
6
votes
2answers
211 views

Brackets not tall enough with smallmatrix from amsmath

The following MWE shows that when I typeset a matrix using the smallmatrix environment from amsmath, and wrap it in a \left( \right), the parentheses generated are not big enough to reach the ...
1
vote
0answers
28 views

Is there any difference between math mode and text mode for numbers? [duplicate]

Take the sentence: "The answer is 42". Is there any difference between The answer is $42$. and The answer is 42. In the final PDF I cannot see any difference. Does it make a difference whether I ...
2
votes
1answer
45 views

Double subscript error in align

What's the reason for the double superscript error? \nabla = \frac{\partial}{\partial r} \hat{\textbf{\r}} + \frac{1}{r} \frac{\partial}{\partial \phi} \hat{\textbf{\phi}} + ...
1
vote
2answers
186 views

Vector with too short arrow

I'm trying to write two vectors like this: Currently I'm using $\vec{p_e,\SI{10}{\hertz},s2}$ bug ig looks like this: How can I write it correctly? That means: long vector arrow italic Hz
7
votes
2answers
150 views

How to produce nested matrix with labels just using the amsmath package?

I am trying to create this matrix in Microsoft word 2010 with mathtype and since mathtype just uses the amsmath package, I should only use this pckage in my latex code. Can anyone tell me what code ...
4
votes
1answer
83 views

Angle brackets with commath and Asana Math too large (or small)

I want to set bra-ket equations in my document, which uses Asana Math (with lualatex, fontspec and unicode-math). commath is also a requirement for certain stuff. However, in this specific ...
11
votes
3answers
385 views

How do I adjust \underbrace spacing?

I have an equation like this \documentclass{article} \usepackage{IEEEtrantools} \usepackage{amsmath} \begin{document} \begin{IEEEeqnarray*}{rClCl} \left( \begin{array}{c} ...
2
votes
1answer
121 views

How to use AMS Euler font in functions such as \sin and \cos?

Looking carefully at a basic AMS Euler example, we see that the output of\sin and \cos macros are rendered using Computer Modern font instead of the AMS Euler font. So, how to use AMS Euler font in ...
2
votes
2answers
160 views

What's the problem with this code? Overfull \hbox

I want to create something like this in word by MathType 6.9 But I have MikTex 2.9 and texmaker installed on my computer. Just to try out the code and see what is wrong with that, I've created the ...
3
votes
1answer
77 views

print the rows of a matrix in two different sections in order to prevent the elements from mixing together

As you see in the following picture I have a 4x4 matrix and the elements are so lengthy that they will not fit in a single line of an A4 paper. In fact this equation is printed in a book that I'm ...
0
votes
2answers
96 views

latexdiff breaking \frac

I have equations that I will to show the difference. Unfortunately, they contain \frac. Even at --math-markup=1, those equations get broken up. Is there any way to resolve this? For example I have: ...
1
vote
1answer
23 views

Control Spacing and Alignment in align environment

I have an align-environment and basically want all the Z's and all the signs (+-) left-aligned + all centered + the smallest possible/sane gap in between + numbering + labels (if possible): ...
1
vote
1answer
65 views

Inline listing in ams environment drops space before mathescape

In http://tex.stackexchange.com/a/127018/83257 there is a patch to make inline listings work in math mode. When using this together with listings' mathescape option, the space after a math escape is ...
5
votes
1answer
48 views

What is \if@display used for in amsmath?

I noticed that in part of an answer where \pod is redefined using \mathchoice, the statement \if@display...\else...\fi is used for the first two options of \mathchoice. I was wondering: what does ...
9
votes
5answers
647 views

How to change all \vec{} to \bf{}

I'm writing a paper and I used \vec{} to express all vectors. Now, I changed my mind and want to write them in bold letters using \bf{} for instance. Is there a fast way to change all that's been ...
1
vote
1answer
30 views

Customizing header in gsm-l class

I use gsm-l class, a derived class from amsbook, to write my mathbook. However, it happened that on the header, the same number of chapter and section appear, like this (number 1 on the left is ...
3
votes
2answers
119 views

Align definition of variables of an equation right (not next to the equation)

this question has been asked before but I never saw a "perfect" solution for this problem. I use the equation block for my equations and I want the definition of the variables to show at the right, ...
1
vote
1answer
53 views

\varnothing or \emptyset not at the end of the line

I'd like to place either a \varnothing or a \emptyset symbol in my text, but every time I try, the symbol appears at the end of the line and not just behind the text where it needs to be. How can I ...
4
votes
2answers
62 views

Odd spacing due to diagonal dots in pmatrix environment

I'm trying to typeset this matrix, but it seems the spacing between the fourth and fifth lines is off, perhaps due to the diagonal dots : Here is my Latex code : \[ \mathrm{Mat}_{\mathcal B}D = ...
5
votes
1answer
97 views

Allow page breaks in a gather environment with a nested align

I have two consecutive lists of equations, the second of which is quite long (16 lines with no reasonable way to shorten it apparent). Because the center alignment of gather looks ugly in this case, ...
12
votes
2answers
424 views

How to make underbrace label text wrap at brace width?

Is there a way to make underbrace label text automatically wrap at the underbraces width, preferably even with automatic syllabication? Example where brace label text exceeds underbrace width: ...
2
votes
1answer
46 views

New gather and equation environments with a single counter

So I've created a new equation-style environment with an associated counter to track a certain set of definitions I introduce in my document: \newcounter{defcounter} \newenvironment{defeq}{% ...
1
vote
1answer
52 views

Multi-row text comment in align environment

I am wondering what is the best way to make multi-row text comments in the align environment. Here is an example code: \begin{align*} \int \left( \frac{x+3}{2}\right) \, dx =& \int ...
2
votes
1answer
51 views

Distinguishing a symbol from a character around it while typesetting

When typesetting the LaTeX in Math mode is it safe to create a space (one carriage return) around a LaTeX symbol to isolate it from the surrounding character instead of enclosing the surrounding ...
5
votes
2answers
91 views

How to set \qedhere properly within “alignat*” environment?

The last part of my proof is formatted in an alignat* environment. How do I make \qedhere appear correctly? The naive approach (as you would do with align*): \documentclass{article} ...
7
votes
2answers
164 views

French equation numbering using bis, ter, etc

As a corollary to my other Question "French section numbering using bis, ter, etc", I am looking for a way to number equations by appending "bis," "ter," and other latin suffixes after the equation ...
1
vote
4answers
55 views

What is the command to add newline linebreak in \sum \prod? [duplicate]

I am sure this question or similar has been asked but I cannot find it by searching so adding it to make it more accessible: what is the command/environment to add newline linebreak in \sum \prod so ...
2
votes
1answer
85 views

How can I write a big set in overleaf

I want to write a set with 14 elements, for that I am using this but this keeps it all in one line and half of the set is visible only ...