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

learn more… | top users | synonyms

2
votes
2answers
26 views

Trouble with align environment

Edited I am having trouble using the alignenvironment, which I've read is a better alternative to eqnarrayto align equations. Hereafter I display the PDF output of my Latex code: I would like ...
4
votes
1answer
8k views

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 ...
78
votes
6answers
34k views

How can I write multiple lines in a subscript?

Is there a way to force a line break inside a math mode text? My example: \[ \underbrace{....}_\text{Some long text that should be multiline} \] Trying \text{Some long text that\\ should be ...
1
vote
1answer
19 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 ...
5
votes
2answers
177 views

Putting a tag in aligned environment

I want to set a counter in the following two lines (to the right) \[ \left\{ \begin{aligned} & u_t = H(x,t,Du)&\text{ in }& \mathbb{R}^n\times (0,T) \\\\ & u(x,0)=u_0(x) & \text{ ...
11
votes
2answers
4k views

Lower overbrace in math environment

I would like to achieve the following inside an math environment But I can't get the text below the equation \operatorname{min} \left| \overbrace{\text{Hadamard product}}^{\begin{pmatrix} X \circ X ...
7
votes
1answer
152 views

Problem with \index in align environment

Please compile the following MWE. As you will then see, the typesetting of $\mu^{\otimes\downarrow n}$ in the index is strange! \documentclass{article} \usepackage{amsmath} \usepackage{imakeidx} ...
6
votes
3answers
211 views

alignat inside align environment?

Why can't I nest an alignat environment in an align environment? \begin{equation} \label{eq:115} \left\{ \begin{aligned} \begin{alignat*}{2} ...
13
votes
2answers
2k views

Footnote in align environment

It appears that one is not supposed to use \footnote in math mode as per this appropriately named question: Footnote in math mode. However, it appears that I can get it to work without having to ...
1
vote
1answer
20 views

Can I (sub-)align some but not all of the lines in a multi-line equation?

I have a multiline equation and want some of the lines to be aligned at an additional symbol. Here is an example, where all lines are aligned at the equal sign, but lines 2 and 3 should additionally ...
2
votes
0answers
54 views

Problem with AMS packages

I have a problem that occurs every time I use one of the AMS packages (regardless of the document class or template I use), for instance amsmath or amsthm. In the next line after the \usepackage ...
9
votes
2answers
421 views

Ignoring specific ampersand formatting on a specific line of an align block

I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
4
votes
1answer
54 views

Defining a null environment

I am writing a mathematical document and I want to make a overview document, in which I only present the theorems and definitions and not the proofs, so I thought that I can change the environment ...
10
votes
3answers
585 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
0
votes
0answers
25 views

Working to find Latex error – Redefinition Problem

Working to find Latex error – Redefinition Problem I have been trying-out the several ways of writing a vector symbol with harpoon above, - as described in several replies to an early post ref: how ...
1
vote
1answer
23 views

multiple use of split

I have two equations that I would like to split (with a split command) but have them both lined up; i.e., something like \begin{align} \begin{split} a&=xxxxxxxxxxxxx\\ ...
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} ...
4
votes
4answers
174 views

other terms in equation to the same size as tfrac terms

How do I make other terms in equation to the same size as tfrac terms \begin{equation} X=\tfrac{2J^2}{4J^2+U^2/4}\sin^2\big(({\sqrt{4J^2+U^2/4}})t\big) \end{equation} looks like How do I adjust ...
0
votes
1answer
341 views

GnuPlot terminal LaTeX: \Diamond not centered!

I use the following GnuPlot commands: set terminal latex size 12cm, 7cm set output "4Kalibratie.tex" set nokey set xlabel "kanaal $k$" set ylabel "$E$ (MeV)" plot [0:2000] [0:10] ...
4
votes
3answers
106 views

amsmath equation identation wrong with text

I have a problem creating an equation, where I first want to write it as text and then resolve it to numbers. This is a minimal example: \documentclass[headings=small,12pt,a4paper]{scrartcl} ...
11
votes
2answers
2k views

Too small space when using \DeclareMathOperator

Currenlty I'm writing a math script (ring theory, PDF). When I need a new math operator I use \DeclareMathOperator from the amsopn-package. However I noticed some strange behaviour when using an ...
3
votes
5answers
64 views

Mathbf error in displaymath mode

I get a recurring error when working with \begin{equation}. If use \mathbf it returns an error saying that it will only work in math mode. Is there anyway around this? The first column runs badly, ...
0
votes
1answer
14 views

Break conditions in different line

I have a code to generate a equation in Latex. My problem is that How can I break line between a and b condition in the equation. With below code, the 0<=a<=10 and 0<=b<=10 are located in ...
2
votes
2answers
38 views

Multline equation along with aligned equations

How can I write the following? I have currently written it with an align environment and a multline, but I don't really know what is the correct approach to combine those (if that is the correct way ...
2
votes
2answers
267 views

How can I do matrix with 1 column?

I want to make a matrix with elements like in the image: How can I do this? Thank you!
3
votes
1answer
28 views

amsmath fleqn doesn't work?

I would like to have my equations left aligned. I use fleqn to achieve this, but unfortunately, it seems everything is getting right aligned? I really don't know why this happens. Can someone help me ...
2
votes
1answer
34 views

Fraction Equation problem

I am a new user of LaTeX. I am using amsmath package but keep getting errors with the following: \begin{align} \frac{\partial P}{\partial t} = \mu(N,I)P - mP - \nu \frac{\partial P}{\partial z} + ...
4
votes
1answer
48 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} ...
5
votes
2answers
57 views

superscripting a dot which is enclosed in square brackets

This question is about how to extend the nice answer here by @egreg http://tex.stackexchange.com/a/304078/103130 to the following case (which is close to what I need except that the brackets should ...
5
votes
3answers
80 views

Redefine align* to do the same thing as align, for use with autonum package

I'm writing a large thesis, and recently discovered the autonum package, which will automatically only number equations which are referenced in the text. This seems like a very good addition to my ...
1
vote
1answer
16 views

amsmath left- and right aligned Formulas in one line [duplicate]

I thought this would be a common problem, but I can't find any satisfying answer to this. I am using the amsmath package. Using the align environment is helpful for separating the two expressions, but ...
1
vote
1answer
44 views

Big curly braces Inside the equation

I am trying to print following following equation in latex The code I have \documentclass{article} \usepackage{amsmath, amsthm, amssymb} \begin{document} \begin{equation} ...
5
votes
3answers
403 views

Make equation look nicer

I have an equation which has a fraction to the power of another fraction. The fraction in the power is really small. I tried using \cfrac to change the size of that fraction but then the constant and ...
2
votes
1answer
33 views

pdfTex: \operatorname with Computer Modern Roman

I am using the default font, Computer Modern Roman, and I am trying to get \operatorname to work properly. The issue is that it appears to look identical to normal text. This question: LuaLaTeX: No ...
0
votes
0answers
41 views

Commutation function in TexStudio [duplicate]

I have been searching for the commutation/ permutation command for a while. Reference to inserting special characters did not help. Searching for a special mathematical character did not help ...
2
votes
1answer
23 views

Problem with amscd package

I'm trying to insert a commutative diagram into a report. I've loaded the amscd package, but I have a problem with its diagrams. When I put up or down arrows, there are no problems. For example, ...
0
votes
0answers
67 views

how to typeset 'maximum - subject to' relation? [closed]

How to type the following formula inside an algorithm in latex?
0
votes
1answer
33 views

amsmath updates and package history

I just noticed that the amsmath package was updated lately. Sadly, I am unable to find the package history? texdoc amsmath does not seem to help and the documentation available online seems limited.
4
votes
1answer
59 views

\bar only allowed in math mode error

I am trying to type up an equation for my discrete math class but I keep on getting the "\bar allowed only in math mode" error. My previous usage of \bar worked out fine. $p( \bar{E} \cap \bar{F}) = ...
2
votes
1answer
54 views

Left align problems

I have no idea how to ask a question in here as I tried pasting my latex document in (it is only short) to demonstrate my issue but it does not look like anything else here and I don't want to piss ...
1
vote
1answer
179 views

autonum, amsmath and \qedhere

I have a weird behavior of the \qedhere command while using amsmath in combination with autonum. Consider the minimal (not working) example below: In unreferenced equation with \qedhere (Theorem 2) ...
0
votes
0answers
24 views

How to apply `flushleft` to display style equations?

I was wondering, how can I flush left all the equations in my document? I mean, I already got the answer using \documentclass[twoside,letterpaper,10pt,fleqn]{article} \usepackage{amsmath} ...
4
votes
1answer
221 views

Latest xparse/amsmath update doesn't work well in align

The following minimal example doesn't compile when the optional argument to \macro is used: \documentclass{article} \usepackage{xparse,amsmath} \NewDocumentCommand{\macro}{o}{A\IfValueT{#1}{(#1)}}% ...
1
vote
1answer
14 views

kpfonts makes fleqn and leqno options ignored when passed via \PassOptionsToClass

The following M(n)WE points out that fleqn (and leqno as well) option, passed to the class thanks to \PassOptionsToClass, is taken in account except if kpfonts package is loaded (no problem if the ...
2
votes
1answer
49 views

Bold math with siunitx, fourier and amsmath problem

With this configuration I can't have bold siunitx otherwise than using \pmb, but with an ugly side effect : \documentclass[margin=5pt]{standalone} \usepackage{fourier} \usepackage{fontspec} ...
1
vote
1answer
50 views

Box part of equation in align environment

I want to box, as an answer, an equation of the align* environment. Not sure how to do it. \begin{align*} (1+2i)z_2&=-11(2-i)\\ z_2&=\dfrac{11(i-2)}{1+2i}\\ z_2&=11i \end{align*} I have ...
5
votes
1answer
22k views

Any reason why \blacksquare and \box are causing errors?

I am using the amsmath package. I just want a black box at the end of a proof, right-justified. \blacksquare and \box both cause errors. Actually, I'd prefer a musical quarter note if that's ...
5
votes
1answer
250 views

How to make the binomial symbol look better?

I am using \binom{\mathcal{L}}{k} with the following font (see code sample below), and I'd like the parenthesis to completely "capture" \mathcal{L} and k as they do if I use the default font. (If you ...
2
votes
3answers
44 views

Equation number in long equation

I have a long equation that goes over two lines. The first line takes up the full horizontal space and the second line is indented. I use amsmath's split for that. My problem is that the equation ...
7
votes
1answer
365 views

Breaking lines in equations

I have an equation that is too long. It gets cut off, so I have tried to modify it with the split environment inside an equation environment: \begin{equation} \begin{split} & I_{ribbon} = ...