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

learn more… | top users | synonyms

5
votes
2answers
29 views

mhchem/amsmath seems to change the @eqnnum macro so I can't change equation number colors globally. How would I fix this issue?

Thanks to cfr How would I get custom-colored equation numbers as simply as possible? for providing a hint on how to do this without the mhchem/amsmath packages installed. To see what I mean, Here is a ...
2
votes
2answers
28 views

Horizontal positioning of vertical arrows between lines in an alignment

I'm trying to get a construction like \documentclass{article} \usepackage{amsmath,mathtools} \begin{document} \begin{align*} a &= b \\ &\Downarrow \\ a &= c \end{align*} ...
4
votes
3answers
120 views

Multiline equation inside a split environment

I have a series of equations aligned at = inside a split environment. (They're all actually the same equation, so the left-hand-side is missing in all but the first equation.) Unfortunately the last ...
4
votes
3answers
32 views

Equation numbers in split environment messed up by ntheorem thref

When I use ntheorem with the thref option, every time I use the amsmath split command the numbering skips ahead by one. Here is an example: \documentclass{article} \usepackage{amsmath} ...
3
votes
2answers
27 views

Problem with gather and labels

This gives a way of combining two different math environments (so there is no extra vertical skip): Adjusting vertical skip between equations But add labels to that exsample \documentclass{article} ...
1
vote
2answers
20 views

Adjusting vertical skip between equations

\documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} 1 + 1 = 2 \end{equation} \begin{align} 7 + 5 &= 12\\ 12 &= 11 + 1 \end{align} \end{document} ...
2
votes
1answer
35 views

using tag inside table

Say I write a table twice, and want the second table to have the same numbering as the first. With equations, I know how to do it. However, with tables this does not work. The following is what I ...
5
votes
1answer
146 views

How can I redefine \int to put a negative space after the integral sign, but keep the limits properly set?

I'd like to modify the \int command such that it adds an automatic negative space, e.g. \! after the integral sign. Preferentially, I'd like to be able to not edit any of my code, so cleverly ...
5
votes
1answer
67 views

Inconsistent spacing of \dots and … with amsmath

\documentclass{article} \usepackage[utf8]{inputenc} \DeclareUnicodeCharacter{2026}{\dots}% … \usepackage{amsmath} \begin{document} \[\left\{a \dots \right\}\] \[\left\{a … \right\}\] \end{document} ...
19
votes
3answers
10k views

Define pretty sets in LaTeX; esp., how to do the condition-separator?

E.g., I have this set: \{ \alpha \in \Sigma^\omega | \exists^\omega n : \alpha [0,n] \notin \Sigma^* a_1 \Sigma^* a_2 \dotsb a_n \Sigma^* \} Here, I use | as the separator for the condition part. ...
1
vote
2answers
25 views

Spurious blank equation line in a 'gather' environment

I have the following code: \begin{gather} u(x,t) = 0 \ \mathrm{ si\ } x = 0, x = 1\\ \label{ex1bc} \\ u(x,0) = \left\{ \begin{array}{ll} 2x, & \mathrm{si\ } 0 \le x \le 1/2 \\ ...
7
votes
4answers
303 views

How to implement a text “within” an arrow in math mode?

I am aware of \xrightarrow and other options using amsmath, but instead having the text over the arrow, I am looking for something like this: expression --text--> another expression Can this be ...
7
votes
3answers
2k views

alignat makes 3 good alignments and 1 bad

I'm having a problem with the alignat environment. This code: \begin{alignat*}{9} &X_{12}&+X_{13}& & & & & & & &=1 ...
2
votes
1answer
45 views

Equations not properly centered when using \tag in gather* environment

Consider the following MWE: three boxes, all the same width, in a gather* environment. I expect that all boxes will be centered around the same vertical line. However, the length of the tags messes ...
1
vote
1answer
44 views

Modification of some maths environments [duplicate]

I would like to have a minor modification of some standard AMS-environment and realize it as a new one. The problem is that not all the environments allow this procedure. Say, even the mere ...
0
votes
1answer
42 views

how to typeset 'maximum - subject to' relation?

How to type the following formula inside an algorithm in latex?
1
vote
1answer
38 views

How to center the first half of AMS equation-line on the left side of the screen while its second half is centered on the right side of the screen?

For the sake of example, how can I construct (line by line) two Pascal triangles that are next to each other? Here is an example of how I need to position parts of AMS equation (either multiline or ...
7
votes
0answers
53 views

Advanced Math and braille

How does one go about typesetting math books in braille with all parenthesized subscripts and superscripts and are there braille signs for the AmsMath package special symbols?
1
vote
1answer
32 views

aligning equations in latex problem [duplicate]

I am using the amsmath package in latex to align three equations. \begin{align*} &x_{1} - 3x_{2} + 4x_{3} = -4 \\ 3&x_{1} - 7x_{2} + 7x_{3} = -8 \\ -4&x_{1} + 6x_{2} - x_{3} = 7 \\ ...
4
votes
2answers
4k views

Multiple Tab stops in Math Split?

I am using mathmode with split. How can you use multiple tab stops. I want to span an equation across multiple lines, but then the last few I want to indent even more. \[ \begin{split} some& ...
4
votes
1answer
43 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
268 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 ...
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) $$ ...
2
votes
2answers
48 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
36 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
25 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
73 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
59 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
31 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 ...
10
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 ...
3
votes
2answers
43 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
15 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
32 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
50 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
135 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 ...
73
votes
5answers
13k 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: ...
2
votes
1answer
34 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: ...
2
votes
1answer
38 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
34 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 ...
17
votes
3answers
3k 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
211 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
50 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] ...
3
votes
2answers
161 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 ...
1
vote
1answer
65 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 ...
6
votes
3answers
82 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 ...
1
vote
1answer
40 views

Using background color in AMSmath

I'm using \(\frac{\colorbox{yellow}{a-b}}{c-d}\) to highlight numerator only. But (as suggested in this post) how do we use \colorbox{<color>}{\(<math content>\)} format to achieve the ...
7
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 ...
4
votes
1answer
44 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
1answer
33 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
25 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 ...