{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
44 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). ...
2
votes
2answers
121 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
53 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?
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
62 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
166 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
52 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
141 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
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}} + ...
1
vote
2answers
86 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
107 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
0answers
37 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
259 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
45 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
118 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 ...
0
votes
2answers
48 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
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): ...
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 ...
7
votes
5answers
442 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
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, ...
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 ...
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 = ...
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, ...
11
votes
2answers
252 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
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}{% ...
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
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
44 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
76 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 ...
2
votes
1answer
55 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 ...
2
votes
1answer
47 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
84 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
1answer
44 views

How to number a given equation in the align* environment such that the number depends on the whole document?

\documentclass{amsart} \begin{document} We have \begin{align*} x^{2} &= x\cdot x\\ &= x^{6/3} \end{align*} for all real $x$ \end{document} To illustrate, suppose I would like to number ...
1
vote
1answer
47 views

How can I align multirow and multicolumn equations?

There is a multiline and multirow equation: \begin{equation} \begin{cases} f(x)=\frac{1}{12} \cdot x \quad g(x) = \frac{1}{24} \cdot x, & x<12 \\ f(x)=1 \quad g(x) = \frac{1}{8} \cdot x - 1, ...
2
votes
2answers
72 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 ...
1
vote
2answers
91 views

How can I make comments inside an equation?

How can I make comments inside an long equation, something like: \begin{equation} G(r) % comment here = \frac{A}{B} = \frac{\frac{t_c}{3}}{2 \cdot \frac{2t_b + t_v + t_c}{r}} = \frac{t_c}{6 \cdot ...
5
votes
2answers
99 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} ...
2
votes
1answer
29 views

Combining enumerate and align works in theorem environment, but not outside the theorem environment

I was using MWE 1 (which worked fine), but now I want to get rid of the theorem environment (MWE 2). However, that does not work and I get the following error. Any idea how I can make MWE 2 work? ...
1
vote
1answer
29 views

How can i put in a limit a letter with undescore letter?

well, i have to write the limit in latex, but i don't know why i can't write un underscore caracter in the limit argument.