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

learn more… | top users | synonyms

12
votes
2answers
229 views

Xparse k argument to parse options at end of environment

I am trying to combine the solutions from How to properly use \collect@body within align environment Xparse t argument type (underscore with optional parameter) to parse optional parameters ...
1
vote
1answer
38 views

\section* doesn't work with \renewcommand{\section}

I'd like to modify the \section command and I'd like to sometimes use \section*, but this doesn't work with amsmath package. The code below works fine without it, but I often need it: \documentclass[...
1
vote
1answer
21 views

How to annotate lines in split equation with left-justified comments?

I have an equation that is split into 4 lines using amsmath's split environment. How can I annotate individual lines with a text comment such that the comments are themselves left-justified and ...
3
votes
2answers
34 views

Bracket around some (not all) lines in an equation

I want to put a bracket around some lines of an equation and add some text to it. It should look like this: so the : of the texts should be aligned as well as the =. I tried this code: \begin{...
4
votes
3answers
1k views

break an long line in an algorithm

I have a long line in an algorithm and want to break it into two lines. For similar case in equations, split can be used. How do I do this within an algorithm? \documentclass{article} \usepackage{...
2
votes
3answers
41 views

Aligning system of equilibrium equations

I would like to align equations on the right side to this imaginary red line (to the left). Also, it would be really nice to have just one number of the equation (just like in equation environment) ...
2
votes
2answers
54 views

how to align 2nd column in align environment?

This: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} s_yp&=s_zp && \Longleftrightarrow\\ S_yp &= S_zp &...
1
vote
2answers
123 views

What causes the problem when compiling a displayed equation with \overbrace and \underbrace?

$$ \left( \begin{array}{c} m+n\\ m \end{array} \right) = \frac{(m+n)!}{m!n!} = \frac{\overbrace{(m+n)(m+n-1)\cdots(n+1)}^\mbox{$m$ factors}}{\underbrace{m(m-1)\cdots 1}_\mbox{$m$ factors}} $$ I am ...
2
votes
2answers
28 views

multline environment with multiple equation numbers

I would like a and b to have an equation number of their own, while maintaining the overall layout that multline offers. Is that possible? \documentclass{article} \usepackage{amsmath} \begin{document}...
2
votes
1answer
60 views

vertical position of \dots

In this answer on math I wrote $\frac 12=0.50000\dots =0.499999\dots $ The dots after the 50000 came out higher on the screen than the ones after the 499999. Changing it to \ldots works fine. Why ...
1
vote
1answer
40 views

How do you add doi, e-print (e.g., arxiv), MathSciNet and zbMATH links in a BibTeX bibliography?

I am a beginner with BibTeX and I use amsplain as bibliography style. How can I customize my bibliography style to append doi, e-print (e.g., arXiv), MathSciNet, and zbMATH links (in this order)?...
20
votes
3answers
318 views

How to get the cases brace to be a link

I copied the cases code form amsmath.sty and tried to wrap the \lbrace within a macro and added a \left. to get this to compile. This of course loses the size info so the brace is not the correct ...
6
votes
2answers
82 views

What does amsmath do to \@currentlabel?

Can someone explain what amsmath does to \@currentlabel in the align environments? Better yet: if I want to write what would be expected to be the \@currentlabel together with some other information ...
4
votes
1answer
63 views

Using amsmath, ntheorem and autonum together cause an overfull hbox

I'm trying to use the combination of amsmath + ntheorem + autonum with the thmmarks option enabled. This causes a bug. The minimal case to reproduce is \documentclass{article} \usepackage{amsmath} \...
1
vote
0answers
23 views

Showkey with cleveref and amsmath

I have the following problem with showkeys. When use in combination with cleveref and amsmath the label for equation get some extraneous curly brackets. For example im compile the following the label ...
8
votes
1answer
70 views

How to properly use \collect@body within align environment

The following code (an example of using \collect@body as a test case for this specific question) modified bmatrix to not add the surrounding [ and ]. This seems to work fine, but requires that I ...
47
votes
2answers
50k views

What is the difference between \dfrac and \frac?

The title says it all, both \dfrac{a}{b} and \frac{a}{b} make fractions, so what is the difference between the two?
1
vote
2answers
39 views

Issues with Formatting a Table for Integers Modulo 9

I'm having some trouble formatting a table in LaTeX. I'm trying to format a table for the addition of the Integers modulo 9, but it isn't working correctly. This is what I currently have: \begin{...
2
votes
1answer
77 views

Problem with aligned environments in an enumerate environment

I wonder how I can take this code $\begin{enumerate} \item $\begin{aligned} \int\frac{dx}{\sin x\cos x}&=\int\frac{d(\sin x)}{\sin x(1-\sin^2 x)}\\ &=\int\left [\frac{1}{\sin x}-\...
2
votes
1answer
58 views

Letter “c” appearing inside pmatrix environment with aastex

My journal recently updated its official class file, aastex, from version 5.2 to version 6.0. Apparently this was a major rewrite, as the journal abandoned its own class and based 6.0 off the ancient ...
2
votes
2answers
51 views

How do I represent a mathematical function in LaTeX? [duplicate]

I want to write something like F : X ----> Y x |---> 2x in LaTeX where the x |---> 2x appears directly below F : X ----> Y Any suggestions on how to do this?
3
votes
2answers
54 views

Math environments: Allow empty lines?

Compiling the following document will raise the errors Paragraph ended before \align was complete and Displaymath should end with $$ because par-breaks are not allowed in math environments/...
1
vote
0answers
20 views

\qedhere in line with the bottom of a \bigg) in a formula that ends a proof/example

This is a a follow-up question to this answer. Here there is a minor modification of the MWE provided by the user (where I put \bigg instead of \bigl/\bigr): \documentclass{article} \usepackage{...
0
votes
0answers
20 views

Well-behaved \qedsymbol like for example environment [duplicate]

I would like to have a symbol like \blacksquare at the end of the environment \newtheorem{example}{Example}. However, this symbol should be well-behaved in presence of formulae (i.e. no white space ...
0
votes
1answer
25 views

How can I reduce the size in array environment?

My code is \[ D_{k+1}(x_{k+1}) = \min_{\begin{array}{c} \text{all } x_k \text{ such that}\\ p_{{x_k}{x_{k+1}}} > 0 \end{array}} \left[ D_k(x_k)-\ln\left(p_{{x_{k-1}}{x_k}} ...
0
votes
1answer
38 views

Equation with condition [duplicate]

I'd like to create the following equation: Could you please give me a solution? Thank you.
0
votes
0answers
24 views

wrong output using \lim [duplicate]

I want to write an equation than contains a limit using the following MWE: \documentclass[a4paper,openright,12pt]{book} \usepackage[a4paper, total={165mm, 240mm}]{geometry} \usepackage{fancyhdr} \...
2
votes
1answer
48 views

Double Subscript in Math Mode

\usepackage{amsmath} \usepackage{siunitx} \begin{equation} 2I_{x}S_{z} \overset{\ang{90} \text{Pulse_{I_y}}}}{\rightarrow} \end{equation} For some reason this is not working. For the overset ...
15
votes
1answer
334 views

\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 ...
13
votes
2answers
9k views

Putting equations in \intertext to annotate a proof

I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
2
votes
0answers
40 views

siunitx changed something and when I comment it out, pdflatex freezes

I was using a latex template (provided by a journal) to write a paper with the journal's .cls file . These are the style files provided separately: AMSbsy; AMSfonts; AMSgen, AMSsymb, natbib, upmath ...
2
votes
0answers
43 views

maths symbols- don't appear [closed]

I have a problem with maths symbols. The \leg dosen't appear in PDF. \documentclass[12pt,a4paper,notitlepage]{report} \usepackage{polski} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \...
4
votes
2answers
976 views

Change vertical space in overset

How can I decrease the space in overset? I found this solution online, but it doesn't look quite like the original overset (note I know it is difficult to come up with a solution to handle all cases ...
4
votes
1answer
95 views

Combine split and align environment

The split environment allows you to give one number to two equations, as in \begin{equation} \begin{split} a&=1+2+3+4\\ b&=5+6+7+8 \end{split} \end{equation} which gives Note that the ...
3
votes
2answers
115 views

Centering a big pmatrix

$$ \setcounter{MaxMatrixCols}{28} \setlength{\arraycolsep}{0.1pt} \renewcommand{\arraystretch}{0.5} \begin{pmatrix} \centering 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 ...
1
vote
1answer
70 views

Argument of \mathaccentV has an extra }

I am not able to locate the source of this error. ! Argument of \mathaccentV has an extra }. <inserted text> \par l.238 I've run across a `}' that doesn't seem to match anything. Latex tells ...
3
votes
2answers
127 views

Stop all symbols being changed to mathbb after specifying \mathbb

When using this format, I encountered very interesting phenomena, where \mathbb mode does not stop even after putting "}". By compiling the following, \documentstyle[amsfonts]{jcss} \begin{document} ...
0
votes
0answers
18 views

Difference in the three methods for unnumbered equation [duplicate]

What is the (subtle) difference between the three ways to typeset unnumbered equations (if any)? The first is the plain tex, $$ E = mc^2 $$ The second is the LaTeX \[ E = mc^2 \] And the third ...
0
votes
0answers
11 views

flalign is not aligning equations to the left [duplicate]

I'm trying to align my equations to the left, for this I'm using $\begin{flalign*}$, but as you see, below the matrices the equations are not being aligned, how can I fix this? This is the result I ...
6
votes
2answers
213 views

How to draw a vertical bar on top of a math symbol?

I can do $_\tau^{|}$ which renders: What I don't like is: The tau becomes under the baseline I can't control the line's length Can someone help me? Thanks!
7
votes
2answers
99 views

What is the correct command to produce small wedges in differential forms?

In a differential form (see, for example, Definition 10.11 in Principles of Mathematical Analysis): there are wedge-like symbols. I found two plausible commands to produce them: \wedge and \land. ...
4
votes
1answer
63 views

How to do an equation correctly if the formula won't accept it?

I do have two formulas in my text and the only way I could make them work is in a way with a lot of escaping commands. Now the formula looks correct but whenever I try to add an equation to make it ...
3
votes
1answer
63 views

Blank lines in an equation and some other similar function

Why blank lines between equation makes error? there are a lot of commands in latex and almost for all of them these blank lines are not important, but why in this case is important and is there any ...
5
votes
2answers
217 views

Should I keep using LaTeX to do my math homework?

My probability professor suggested us to try to use LaTeX for the homework. I have successfully wrote my first LaTeX project (5 pages). However, no one except me used LaTeX in that course. I spent 1 ...
1
vote
1answer
40 views

Error missing $ and extra }

I typed the following code : \subsubsection{x....x} x..................x \textit{a} and \textit{a^{\dagger}} : This gives me the error missing $ inserted or extra }. Please tell me how to correct ...
2
votes
2answers
610 views

How can I write a cursive letter k in math?

Using amsmath, writing $\ell$ produces a cursive lowercase letter l. I would like to have a reasonably matching cursive lowercase letter k, available through \kay e.g., so that I can write things ...
4
votes
1answer
36 views

Abbreviations for align

I know from the Technical notes on the amsmath package that it is not possible to introduce direct abbreviations like \newcommand{\bal}{\begin{align}} % doesn't work \newcommand{\eal}{\end{align}} %...
8
votes
2answers
82 views

Number format in matrix, like siunitx

I'd like to know how to format numbers in matrix of amsmath without repeat sinuitx commands, like \num or exponencial expressions. I want to show numbers with grouped digits, and write engineering ...
0
votes
1answer
22 views

How to redefine \eqref output, keeping numbering but changing text and brackets?

I am looking for a macro to redefine \eqref{} output. Resulting in: (equation: 1.1) Thank you.
1
vote
2answers
87 views

Beamer Presentation compile error

I'm trying to do a presentation doing a Beamer template. I've loaded the following packages: \usepackage{graphicx} \usepackage{booktabs} \usepackage{bm} \usepackage{mathtools} \usepackage[utf8]{...