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

learn more… | top users | synonyms

7
votes
5answers
438 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 ...
0
votes
3answers
52 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
61 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 ...
0
votes
0answers
59 views

Creating a Big Matrix

I need to create this but I have no idea how because I'm just a beginner. \usepackage{tabu} \begin{document} ...
2
votes
1answer
165 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
29 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
94 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
50 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
34 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
139 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
2answers
85 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
1
vote
0answers
27 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 ...
1
vote
1answer
25 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}} + ...
7
votes
2answers
106 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 ...
3
votes
2answers
62 views

sum symbol in tikzposter too small

I am using the tikzposter package and am fairly happy with it except for one small thing: When I have an equation with a sum the sum becomes ridiculously small. I have read the questions about ...
3
votes
0answers
36 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
258 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} ...
0
votes
2answers
47 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: ...
2
votes
1answer
44 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
117 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
46 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 ...
22
votes
3answers
5k views

Guidelines for typesetting fractions

I realize that this question is to some extent subjective. However, I suspect that there are some common standards regarding how fractions ought to be typeset in mathematics. The guide Mathematical ...
1
vote
1answer
18 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): ...
43
votes
2answers
25k 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. ...
0
votes
0answers
29 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
42 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 ...
1
vote
1answer
24 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
57 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, ...
12
votes
3answers
5k views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
4
votes
2answers
45 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 = ...
1
vote
1answer
36 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 ...
18
votes
2answers
3k views

Multiset notation in LaTeX

Does anyone know how to make (nice looking) double bracket multiset notation in LaTeX. i.e something like (\binom{n}{k}) where there are two outer brackets instead of 1 as in binomial? You can see an ...
10
votes
2answers
243 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: ...
5
votes
1answer
44 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, ...
1
vote
1answer
33 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
24 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}{% ...
2
votes
1answer
44 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 ...
4
votes
2answers
43 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
74 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
39 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 ...
4
votes
1answer
69 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. ...
2
votes
1answer
54 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 ...
1
vote
2answers
108 views

What kind of font is used in math mode of LaTeX?

For some reasons of compatibility and interactivity I need to create my own simple system for drawing the formulas. (So I need standard math sybols and something like \mathcal{N}.) Is there a way ...
2
votes
2answers
66 views

How to put a long equation spanning two columns while using IEEEtran?

I am using the IEEEtran document class to generate my PDF file so that it has two columns, but now I get a long equation and I cannot put it into just one of the two columns. Thus I used \onecolumn at ...
6
votes
3answers
300 views

Align without display math?

Is it possible to use the align environment without the display math? For example, I would like \sum to look as if it were inline. The solution given here does not work, insofar as the summation ...
2
votes
1answer
46 views

How to make normal subgroup sign in overleaf? [duplicate]

Overleaf is saying that both \unlhd and \trianglelefteq are undefined control commands, although \traingleleft works fine. How else can I make normal subgroup symbol i.e. with an equality sign ...
4
votes
1answer
83 views

Formatting a fractional exponent in display math

Typographically, what is the correct way to display a fractional exponent in display math mode? There was a post regarding inline math, but consider this example. \documentclass{article} ...
4
votes
2answers
32 views

scale down first half of split math equation

I need to scale down my math equation, I looked on the forum and it only addresses one part of my problem, splitting the equation into two lines, but the first line still exceeds the textwidth. I dont ...
2
votes
2answers
71 views

Hide Text with Latex

So I was wondering if there is some commands or/and packages that allows us to hide text (I didn't find an answer here on the site ...) , because I really need it for hiding hints in some math article ...
5
votes
2answers
97 views

flalign doesn't work in for me

I want to left justify my equations using flalign. However,it works in some places and doesn't in others. Below is a sample of my code \documentclass[12pt]{article} \usepackage{amsmath} ...