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

learn more… | top users | synonyms

4
votes
1answer
66 views

Controlling horizontal spacing in math mode in text

I am using the most recent release of TexLive on my MacBook Air. I am using the packages amsmath, amssymb, scalefnt, graphicx,and subcaption in addition to a journal's package. Like a previous ...
5
votes
2answers
441 views

Best Practice: Package for Mathematical Documents - amsmath and Beyond

I am aware that best practice questions are not always appreciated since there there's not "one size that fits all". I am going to give a LaTeX introduction for phd students at my company. All of ...
0
votes
0answers
24 views

Error while displaying bold R \mathbb [duplicate]

Here's my sample code : \documentclass[a4paper,12pt]{article} \usepackage{amsmath} \begin{document} \pagenumbering{roman} \section*{Problem 1} Given that : \\ $$ x \epsilon \mathbb{R} (3,2) $$ \end{...
2
votes
2answers
95 views

\colorbox{color}{text} display issue with same math expressions but different syntax

My following LaTeX file in MikTeX' TeXworks editor on my Windows 8.1 is showing the highlighted content with different sizes when the highlighted content is inside quadratic formula but not when it's ...
3
votes
1answer
43 views

Using \textstyle with \pmod

If I'm in a displayed equation but I want the \sum symbol to appear as it does in inline formulas, I can just put \textstyle in my equation. I thought that writing \textstyle would also force \pmod to ...
1
vote
2answers
55 views

How can I align lines to the right except the first in a multiple line equation?

I have always tried to achieve this but after a few tries decided to skip and concentrate on writing instead of solving it. I am using align environment and trying to align the multiple lined ...
2
votes
2answers
120 views

How to make italic and bold letter with \pmb command?

I'd like to italicize the letter in the following code: \documentclass{article} \usepackage{amsmath} \begin{document} $\pmb{\mathsf{z}}$ \end{document} I've already read the discussion in this ...
4
votes
1answer
111 views

Aligning chemical elements in a reaction equation

As pictures tell the issue better than I could I'm just gonna insert a screenshot of the problem right off the bat. My problem is concerning the undesired whitespace between the second column of ...
2
votes
1answer
38 views

How to make the distance between two rows larger in array?

I found a mathematical formula in mathdesign document, it looks good and elegant When I try to type it as it looks, what I got is always not as good as origin. The code I use is \begin{equation}\...
11
votes
3answers
2k views

How to get the AMS mathbb font while using Palatino elsewhere

I'm a Latex user. I've been using Palatino for typesetting a piece mathematical text: \usepackage{mathpazo} \usepackage[scaled=.95]{helvet} \usepackage{courier} The results are good, however I don'...
3
votes
2answers
85 views

Non-continuous Equation Counters (increment per equation type)

I'm trying to have two separate equation counters, one for TypeA equations and another of TypeB equations. They shouldn't share a counter, but pick up the counter from whichever type they are within. ...
1
vote
1answer
42 views

Missing endcsname inserted error

I have the following latex code which produces the error mentioned in the title: \documentclass{article} %\usepackage{flexisym} %\usepackage[T1]{fontenc} %\usepackage{array} \usepackage{setspace} \...
2
votes
1answer
54 views

Make a tall rectangular array square

I have a tall array that I would like to make square. Unlike the solution here, which works but makes the array wider to match up with the width, I would like to decrease the spaces between rows to ...
1
vote
1answer
74 views

Writing a nice function

How to write a function mapping like this: MWE \documentclass{standalone} \usepackage{amsmath,amssymb} \begin{document} $ \begin{matrix} f'\colon & A \to \mathbb{R} \\ & x\mapsto f(x)=x^2 \...
5
votes
6answers
155 views

Breaking equations within the align environment

I currently have these two equations, but they are too long to fit on one line: \begin{align*} [((a_0, a_1, a_2)+(b_0, b_1, b_2)) + (c_0, c_1, c_2)] &= [((a_0 + b_0, a_1 +...
79
votes
5answers
15k views

Is there a preference of when to use \text and \mathrm?

I'm unsure of when it is preferable to use \text versus \mathrm, is there some unwritten rule about the use of these? For example, I saw the following code in a math post: \frac{\mathrm{lcm}(m,n)}{\...
2
votes
1answer
37 views

Doing case analysis on an argument of a macro

Background: As has been discussed here, there appears to be no widely accepted typographical standard for logical quantifiers. To address this I defined in my paper the following macro: \newcommand{\...
2
votes
1answer
51 views

How to manage the position of intertext within align

\begin{equation*} \begin{aligned} E(X) & = \sum_{x=0}^{\infty}x\frac{e^{ - \lambda }\lambda ^x}{x!} \\ & = \sum_{x=0}^{\infty} \frac{e^{ - \lambda }\lambda ^x }{(x-1)!} \\ & = \...
4
votes
3answers
41 views

getting the equation numbering right using align and a long equation that splits

So I've got a system of equations. One equation is very long. I want them all aligned, but I want the long equation to split over two lines. \begin{align} \theta &= \theta(t-1) -p \theta(t-1)...
17
votes
3answers
4k views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
6
votes
1answer
242 views

Why “p” in pmatrix?

I am using the command \begin{pmatrix} [...] \end{pmatrix}. I wonder why this command is not just called \begin{matrix} [...] \end{matrix} and why a "p" before "matrix".
3
votes
1answer
67 views

Hyperref refer chapter and page in text

\documentclass[oneside,10pt]{book} \usepackage{amsmath, amsfonts, amsthm, amssymb} \usepackage{hyperref} \usepackage{blindtext} \begin{document} \chapter{something} \blindtext[1] \chapter{...
3
votes
2answers
175 views

How to give some text an equation number

I want to be able to write the following in LaTeX We make the further assumption that \begin{equation} \label{eqn:assumption} There is a bounded linear operator $B:X\to X^*$ such that $B^*=B$...
1
vote
1answer
133 views

Left align text in equation environment (no use of align environment)

I understand that you can left-align text using \intertext{...} inside \begin{align}...\end{align} environment, e.g. this answer. Is it possible to do the same but inside \begin{equation}...\end{...
6
votes
3answers
100 views

How to align equations in two columns?

Well, my problem is I'm trying to find a way to write many equations and divide these into columns as you would when writing on paper, cut in some part and continue. I have achieved almost using the ...
8
votes
1answer
2k views

Is there any AMS TeX or LaTeX macro for background color in math-mode

Is there any way to display math expressions with a background color (highlight) using AMS-Tex or AMS-LaTeX . For example, using AMS-TeX/LaTeX, we can display a math expression in font color using \...
1
vote
1answer
47 views

Missing } inserted and missing $ inserted using amsmath package

I'm using Texmaker 4.5 over Ubuntu 15.10 and trying to compile some amsmath code: \begin{eqnarray*} $\underset{\mathbf{S}}{\operatorname{arg\,min}}$ \displaystyle\sum\_{i=1}^{k} \sum\_{\mathbf x \...
1
vote
1answer
54 views

Align/Array equation - explain the options

I have searched and found a solution to a problem I had here: Horizontal alignment, but now I have a follow-up question (and can't comment there because I have little reputation): The code in the ...
3
votes
1answer
37 views

\setmainfont breaks \DeclareMathOperator

\DeclareMathOperator works fine without \setmainfont. \documentclass[a4paper]{standalone} \usepackage{amsmath} \DeclareMathOperator{\grad}{\nabla} \usepackage{unicode-math} \begin{document} $\nabla \...
2
votes
2answers
193 views

Auto-linebreaking in underset

I often find myself writing explanations to passages in (in)equality chains directly under the (in)equality signs, by putting an underset which puts a vertical line starting from the sign and going ...
8
votes
3answers
114 views

How do I display verification of propositional logic in this way?

I want to typeset something like the following picture. I came up with \documentclass[oneside,12pt]{article} \usepackage{microtype} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{...
22
votes
2answers
616 views

Is eqnarray really obsolete?

I just learned in eqnarray vs align that eqnarray should be avoided in general. Ok, so I started looking at my documents to get rid of it and (as suggested) use some environment of the amsmath package ...
3
votes
1answer
29 views

Centering text in aligned environment

How can I center the text between the inequalities? ATM it seems that they are right-aligned. \documentclass{article} \usepackage{amsmath} \begin{document} \[ \begin{aligned} 15 ...
2
votes
2answers
65 views

math: \textstyle won't work

I'm trying to reproduce this math thingy in LaTeX: What I've currently done is this: \documentclass[oneside,12pt,pointednumbers]{scrartcl} \usepackage[ngerman]{babel} %Deutsche Sprachunterstützung ...
3
votes
2answers
42 views

Alignat environment changes its behaviour in one document

I have the following problem: I am writing my PhD and the alignat environment changes the behaviour during the document. Here is an example: \documentclass[12pt, a4paper]{book} \usepackage[utf8]{...
1
vote
1answer
50 views

Align a cases equation with another equation vertically on the same line

I am using the following to align the two equations. However, they are not vertically on the same level. How should I fix it? \documentclass{article} \usepackage{amsmath} \begin{document} \begin{...
2
votes
1answer
207 views

Aligning equations in tabular with aligned environment

I am trying to align equations in a tabular environment. Having read that align and align* don't work in tabular, I found this thread: Aligned equations in tables which suggests using the aligned ...
0
votes
1answer
29 views

How to used aligned environment and enable equation number

How is it possible to use the aligned environment and enable equation numbering for both equations in the example below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \...
1
vote
1answer
67 views

Use \Updownright between two vertical expressions

I have a long equation \ldots - m \neq 0 \Leftrightarrow \ldots \neq m where \ldots is a long expression. Instead of having this on one line, can I instead format it to obtain \ldots - m \neq 0 \...
28
votes
1answer
10k views

Is there a left-handed equivalent of \implies?

I’m aware of and use the \implies and \iff commands to denote right-handed implication and if and only if (so A=>B and A<=>B). I’ve been looking for a similar command for left-handed implication (i....
0
votes
2answers
195 views

How to typeset a math proof in beamer that displays line by line

I'd like to display a step-by-step proof of a mathematics result. I want to have steps following other steps inside amsmath's align environment, except I want to \pause the slide after each line in ...
1
vote
2answers
56 views

How can we force one line proof environment to stick to its associated theorem environment?

In my LaTeX document, some of the proofs are one-liners: \documentclass[letterpaper]{article} \usepackage{amsmath} \usepackage{amsthm} \usepackage{lipsum} \theoremstyle{plain} \newtheorem{theorem}{...
1
vote
1answer
85 views

multi line math in pgfplots labels

Quick and maybe easy question, did some research on my own but didn't lead anywhere... Is there a way to use a split or multline environment inside a pgfplot label? Maybe ditching the label altogether ...
3
votes
3answers
37 views

Error with ifacconf.cls and subequations with more than twelve equations

I'm working on a paper for an IFAC conference for which you're supposed to use their ifacconf.cls, resulting in a fairly standard layout. However, you get an error when you use subequations (amsmath) ...
2
votes
0answers
42 views

too much spacing between equations and text if line before equation is full [duplicate]

I have a problem when equations appear in the text without a linebreak. It seems like an additional spacing before an equation is inserted, when the line before the equation is just full until the end....
15
votes
4answers
2k views

mathop shifts the baseline, DeclareMathOperator doesn't

Here is a little example that illustrates this strange behaviour: \documentclass{article} \usepackage{amsmath} \DeclareMathOperator\foo{\mathbf{l}} \begin{document} baseline$\mathbf{l}$baseline$\...
4
votes
2answers
49 views

Not getting alignment that I want in an alignat environment

In the following display, $+ \frac{1}{4!}$ in the third line of the alignat environment should be aligned directly below $+ \frac{1}{2!}$ in the second line. Depending on the spacing in the corrected ...
0
votes
1answer
51 views

Use upright font (no italics) with svjour3 (springer)

I cannot find how to do that automatically for all the theorems in my latex document with the class svjour3 (provided by Springer). I use amsmath too in my document.
1
vote
1answer
118 views

TeXworks compilation error when using ^ as a plain text

In my TeXworks (MikTeX 2.9) editor, the following file compiles correctly. But when I change sin-1(x) to sin^-1(x) the following error occurs. I thought TeXworks would treat sin^-1(x) just as a plain ...
5
votes
1answer
72 views

Underbrace overlapping text

I am trying to type the equation in the figure below. The text on the brace is long and it does not wrap around. Can you help me to solve the problem? Thanks. Equation: \documentclass{article} \...