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

learn more… | top users | synonyms

7
votes
2answers
282 views

What is wrong with defining \bal as \begin{align}?

I'm trying to define two commands \bal and \eal instead of inserting \begin{align} and \end{align} in my document, but in the code below, I'll get some errors. What is wrong with it? ...
7
votes
3answers
2k views

How to put your symbol explanation for the formula?

I have a formula written in LaTeX. What is the best way to explain what the symbols mean in the formula? For example I have this equation with a where: symbol definitions \begin{equation} ...
7
votes
2answers
2k views

What's the difference between align and align*?

After some brief searching I can't find the difference between align and align*. Google summarily ignoring the * is making it harder I think. Can you tell me the difference between these two? ...
7
votes
3answers
1k views

Extra space above boxed multi-line equation

Well, this question is not new. It was asked back in 2007 in texhax, and answered at the same time. However, I couldn't apply the patch as mentioned in the answer, so I decided to ask it here. ...
7
votes
2answers
303 views

Equation number with an apostrophe

I am writing two equations in an align environment: \begin{align} x^2+y^2=z^2, \\ x^2=7, \end{align} I would like the first equation to be labelled with e.g. (1.1) and the second equation to be ...
7
votes
3answers
4k views

aligned environment of amsmath vs array environment

Today I found out the existence of the aligned environment of the amsmath package. However, I can't see the advantage of using it instead of the array environment from the example provided in ...
7
votes
2answers
347 views

Workaround for align without using amsmath

I'm preparing a manuscript for a journal that demands a style file (copernicus2.cls) that's not compatible with amsmath. I want to display some aligned equations, but the lack of amsmath means I can't ...
7
votes
1answer
6k views

amsmath align environment: row spacing

How can I stretch the spacing between consecutive lines in an align* environment? I have a few lines with \fracs in which both the numerator and the denominator consist of textual phrases, not math ...
7
votes
3answers
7k views

AMS Split inside AMS Align

I'd like to have multiple lines inside a single align cell like so: \begin{alignat*}{1} = & \begin{split}x+\\ y\end{split} \end{alignat*} But I get an error like: \end{alignat*} \An extra ...
7
votes
2answers
143 views

How to put \dots in front equation numbers in amsmath

By default the style is \renewcommand{\theequation}{\thechapter.\arabic{equation}} for example x+y =4 (2.1) How to put \dots in front equation numbering such as ...
7
votes
1answer
203 views

\ifmmode self-contradictory in amsmath (OK in just LaTeX)

File: \documentclass[11pt]{article} \usepackage{amsmath} \newcommand{\argghhh}{\relax\ifmmode\bar\else\expandafter\=\fi} \begin{document} $ \argghhh a $ \end{document} produces error (but ...
7
votes
3answers
660 views

A vertically centered equation number on a multline environment

The multline environment does exactly what I want in splitting a long formula between lines by utilizing the horizontal space to the fullest. (I don't want the alignment features of the align ...
7
votes
3answers
3k views

Tagging under an equation using underbrace

I would like to tag two parts of a huge equation using underbraces (and call them, say term A and term B). Later in the text, I want to talk about term A and term B. Is there a way to tag and label ...
7
votes
2answers
261 views

How to stop fractions in display equations from running into each other?

Is there some standard way to create multiple display equations like the following without having to use: \renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
7
votes
2answers
938 views

multline inside gather?

I have 3 related equations, two of them do not fit on a single line. I want to present them in a gather-environment, but how to do linebreaks inside equations? multline does not work inside gather. ...
7
votes
1answer
143 views

Why do math operators not behave like normal control sequences?

From my experience, most control sequences function as an implicit group, for example g^\textrm{th}. However, if we look at the example below, the first line throws an error while the second line ...
7
votes
3answers
269 views

amsmath - bidi - siunitx possible bug?

MWE: \documentclass{article} \usepackage[english]{babel} \usepackage{fontspec} \usepackage[detect-all]{siunitx} \usepackage{amsmath} \usepackage[math-style=ISO,bold-style=ISO]{unicode-math} ...
7
votes
1answer
224 views

Breaking lines in equations

I had an equation that was too long. It got cut off, so I modified it with the split environment inside an equation environment: \begin{equation} \begin{split} & I_{ribbon} = \frac{1}{2} M(a^2 ...
7
votes
2answers
874 views

Nested Environ's give “! Argument of … has an extra }” error

I tried using two Environ's in a nested fashion, but I get the ! Argument of \marray has an extra } error. Any idea why this happens? \documentclass{minimal} \usepackage{amsmath,environ} ...
7
votes
1answer
785 views

Conflict: kluwer and amsmath

When I try to use the document class kluwer together with amsmath there seems to be a conflict. Is is possible to avoid this conflict? I have tried to add \let\iint\noexists before loading amsmath as ...
7
votes
2answers
173 views

Is gather* equivalent to displaymath?

Is gather* with one line of math equivalent to displaymath?
7
votes
1answer
630 views

alignment problem

I have the following: \documentclass{article} \usepackage{nicefrac} \usepackage{amsmath,amssymb} \begin{document} \begin{align*} f_X(x)&=\frac{1}{2 \pi} \exp ( -x^2/2 ) &\forall x \in ...
7
votes
1answer
114 views

Left aligning equations without align character

I realise that this has been asked many times before, but no answers I've found seem to provide a solution to my question. I'd like to left align all text in an align block, in: ...
7
votes
1answer
125 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 ...
7
votes
2answers
145 views

How to align terms in separate lines in this case?

I want to get another variant for the alignment points in my question answered by Hendrik Vogt, see How to construct a long equation that is split in LHS and RHS to occupy a narrow column?. ...
7
votes
2answers
1k views

QED symbol in a custom theorem environment

I have created my own theorem environment like this \newtheoremstyle{mythmstyle}{}{}{}{}{\scshape}{.}{ }{} \theoremstyle{mythmstyle} \newtheorem{mythm}{Theorem} How do I add the QED symbol (the ...
7
votes
1answer
158 views

How to remove the unwanted space on the left side of the following gather*?

\documentclass[preview,border=12pt,varwidth]{standalone} \usepackage{amsmath} \begin{document} \abovedisplayskip=0pt\relax \begin{gather*} 6x^2-30x+36=0\\ 6(x^2-5x+6)=0\\ 6(x-2)(x-3)=0\\ x-2=0 \quad ...
7
votes
1answer
138 views

(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages

This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
7
votes
1answer
819 views

Styling definitions

In the current paper I am writing I make an extensive use of definitions, therefore I've added the amsthm package to my document and I've defined a new command: \newtheorem{definition}{Definition} ...
7
votes
1answer
937 views

operator name for kernel

I'm trying to define \newcommand{\ker}{\operatorname{ker}} just after \begin{document} in order to have a nice way to write the kernel of an application but the command is ignored and I don't know why ...
7
votes
2answers
665 views

\providecommand equivalent of \DeclareMathOperator: \ProvideMathOperator?

What is the \providecommand equivalent of \DeclareMathOperator? I.e. as \providecommand is to \newcommand a method for defining new commands if and only if they have not already been defined? ...
7
votes
1answer
101 views

Is it necessary to give a \\ before \intertext?

I am not sure which one is correct when using \intertext or \shortintertext. Adding \\ before them or not. \documentclass[preview,border=12pt]{standalone} \usepackage{amsmath} \begin{document} ...
7
votes
2answers
222 views

How to typeset piecewise-defined functions? [duplicate]

I am attempting to write out the basic process for finding the absolute value of some number. In ASCII, this is what I am attempting to write. |X| = { x if x > 0 0 if x = 0 ...
7
votes
1answer
110 views

Formula label outside of formula

I want to label a block of equations like that: The "AB" should not inflict the central alignment of the formula. I saw it a lot, but do not succeed on my own. Do I need to build boxes? I used the ...
7
votes
1answer
489 views

svmono+amsmath causes a warning

\documentclass{svmono} \usepackage{amsmath} \begin{document} \end{document} generates the warning Package amsmath Warning: Unable to redefine math accent \vec. Is there any way to remove this ...
7
votes
1answer
2k views

Placing equation number on left with reqno option in amsart document class

Is there a way to force individual equations to place their equation numbers (or more specifically the result of a \tag*{blah}) on a specific side of the page regardless of the options to amsart. I ...
7
votes
4answers
128 views

Multiple alignments within align environment

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{align} \dot{x}_2 = \dot{x}_{2,0}&+\frac{\partial f_2(x_1)}{\partial x_1} \bigg|_{x_1=x_{1,0}} ...
7
votes
1answer
34 views

Is it OK to use a macro for an operator, or a macro defined by `\DeclareMathOperator`, as a non-operator?

Macros like \det, I believe, is intended to be used before some expression, but sometimes I wish to use them as in \det \in \mathbf{VP}. Is it acceptable to use them like this instead of using ...
7
votes
1answer
659 views

Integral limits with amsmath in LuaLaTeX

Also reading the thread about Making integral ∫ use \limits by default with unicode-math I'm not quite happy with the solution. With pdfLaTeX I use the code \documentclass{article} ...
7
votes
1answer
126 views

Problem with \index in align enviroment

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} ...
7
votes
1answer
843 views

What is the advantage of using the equation environment in latex?

My flatmate uses \flalign for all of his equations in LaTeX and after thinking about it, it makes sense. Is the \equation environment not just more restrictive? Is there ever an advantage to using the ...
7
votes
1answer
341 views

Why does mathdesign result in a huge 'cases' environment brace in Tufte documents?

I'm getting strange results when I use the cases environment in Tufte-LaTeX documents with the mathdesign package. Instead of I get Is there something I can do to get rid of that huge brace? ...
7
votes
1answer
1k views

unicode-math and amsmath incompatible

When I compile the following mwe with xelatex, I am told: ERROR: LaTeX Error: Command \dddot already defined. --- TeX said --- Or name \end... illegal, see p.192 of the manual. l.571 ...
7
votes
1answer
630 views

Change the equation font locally

I want to change the equation font to mathbf in a single equation environment, equation or align. How do I do that? I tried \begin{align} \begin{mathbf} equation1 \\ equation2 \end{mathbf} ...
7
votes
2answers
219 views

Color fraction bar

What would be the easiest way to create a fraction whose bar can be coloured as desired? I know one can use the \genfrac{left-delim}{right-delim}{thickness}{mathstyle}{numerator}{denominator} command ...
7
votes
1answer
1k views

Add Overbrace to describe a column of matrix

I want to add some over-braces to a matrix to get the following output: However, this this what I managed to get: I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of ...
7
votes
3answers
821 views

A set of equations, vertically aligned, individually tagged, with subequations, and separate label

Can the following be achieved using just amsmath and mathtools? (If not, what other tools do I need?) I have a collection of equations \begin{align} A &= B \\ C &= D \\ E &= F ...
7
votes
1answer
107 views

problem on the parentheses direction in equations

I recently installed a MacTex version and I faced a problem with the direction of parentheses both in the enumeration and the text reference using \eqref. I use XeLaTeX to compile the tex files. Since ...
7
votes
1answer
88 views

\hat and \bar compatibility issue EDIT: It's a bug, workaround provided

I have two \newcommand defined as follows: \newcommand{\hvar}[1]{\hat{\delta #1}} \newcommand{\gbp}{{{\bar{\gamma}}_p}} And they look like this: \hvar{X} \gbp The problem is that, if I use ...
6
votes
6answers
518 views

please help me fit my equation into my margins!

I have this equation. It is quite wide, and I've had to split things over two lines. However, the part to the left of the = is quite long, and it's causing me some issues. I've posted a MWE here. ...