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

learn more… | top users | synonyms

2
votes
1answer
38 views

latex typesetting multiline alignment with flalign

I'm trying to align the second line equation below the integral in the first line. How do I go about doing that? I have used \right. commands to be able to move onto the next lines. I didn't have to ...
4
votes
1answer
42 views

Serious problem with \widebar

I met across a serious problem using the widebar math command defined by Hendrik Vogt as an answer to question 16337. It worked fine until I used \(wide)hat in its argument. Here is a M(non)WE: ...
3
votes
1answer
53 views

bmatrix no new row

I use: \[ M= \begin{bmatrix} 1 & 2 & 3 & 4 & 5\\ 3 & 4 & 5 & 6 & 7\\ \end{bmatrix} \] and as a result i have only one row. 1 is combined with 3, 2 with ...
9
votes
4answers
7k views

side-by-side equations, with equation numbers for each

The align command from amsmath allows me to put two equations side-by-side: \begin{align} x = y && a = b \end{align} Unfortunately for my purposes, this shows both equations under one ...
4
votes
2answers
126 views

About \def\b*{\begin{align*}}

I want to make the code shorter. I defined the following pair of macros: \def\b*{\begin{align*}} \def\e*{\end{align*}} My point is that I saw this is a document, with \def\b*{\begin{eqnarray*}} ...
2
votes
0answers
15 views

Error using split within an equation [duplicate]

I am getting multiple errors for using split within an equation. I use this command in a number of other places throughout my LaTeX document, but there is one case in which many errors are given ...
1
vote
1answer
53 views

Customized equation number not in same line in Beamer

I have the following code beamer, but I can not understand why the number of my equations are not on the same line when using \ tag. The column are "plenty" of space. \documentclass{beamer} ...
0
votes
1answer
52 views

Math in a table

Im trying to put some \times and \power in a table, but it isn't quite working. \usepackage{mathtools} \usepackage{amsmath} \begin{tabular}{| p{3cm} | p{9cm} } \hline \bf hardware & \bf ...
0
votes
1answer
30 views

Align formula with amsmath

I know similar questions have already been asked, but still I couldn't get the alignment to work. I know that align is supposed to replace eqnarray, but I just don't manage to achieve the same ...
2
votes
2answers
166 views

LaTeX Error: \mathbb allowed only in math mode.

I'm writing a package which, among other things, gives abbreviations for \mathbb, as follows: \newcommand{\A}{\mathbb A} \def\B{\mathbb B} \def\C{\mathbb C} \newcommand{\D}{\mathbb D} ...
1
vote
1answer
33 views

Bracket extending on two lines

I need to write something like this in latex: I can use \Big\{ or \bigg\{, but the problem is that all I write next goes on a single line. I need to embed the bracket into two lines, how to do ...
4
votes
1answer
43 views

\hslash with other letter

I would like to know how to make a character like \hslash, but with a 'd' instead of an 'h'. I know that \hbar is defined using \mathchar'26, might there be a similar character for the slash in ...
7
votes
1answer
107 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: ...
3
votes
3answers
43 views

\raisetag not working with alignedat environment

It seems the amsmath \raisetag macro does not work in combination with the alignedat environment. See the MWE below: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
1
vote
0answers
19 views

How can I make braket's \Set work with align* and htlatex/tex4ht

I have the following test.tex file: \documentclass{article} \usepackage{tex4ht} \usepackage{amsmath} \usepackage{braket} \begin{document} \begin{align*} \Set{|} \end{align*} \end{document} When I ...
0
votes
1answer
21 views

How can I get htlatex to work with amsmath's align and cleveref?

I have a document test.tex: \documentclass{article} \usepackage{amsmath} \usepackage{etoolbox} \AtEndPreamble{\usepackage{cleveref}} \begin{document} \begin{align} . \end{align} \end{document} It ...
1
vote
0answers
26 views

numbering of equations in a cases-like environment [duplicate]

I'd like to get exactly the output generated by \begin{gather} \left\{ \begin{aligned} a &= b,\\ c & = d. \end{aligned} \right. \end{gather} except that I'd like separate numbers for each ...
2
votes
1answer
32 views

Are the \[ and \begin{equation} used interchangeably?

When I use double dollar signs $$ or \[ and \] to begin and end math mode I have no problem compiling the file. When I substitute them with \begin{equation} and \end{equation} correspondingly I get an ...
6
votes
3answers
111 views

Define a \dots-aware command

edit: changed the MWE to show the problem with french babel So, I was wondering about in TeX.sx and came upon this question How do magic \dots work in amsmath?, I wanted to do the same thing (have a ...
7
votes
1answer
28 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 ...
2
votes
1answer
32 views

\tag{} causes line break in align environment. how to prevent?

while using the leqno and fleqn options of amsmath package tags tend to cause line-breaks: MWE: \documentclass{article} \usepackage[leqno, fleqn]{amsmath} \usepackage{mhchem} \begin{document} ...
4
votes
2answers
86 views

How to break a line in a long equation?

I am using a class named abntex2 and I don't know how to break an equation. I've tried inserting a package amsmath, breqn, mathtools, but it does not work. I type: \usepackage{amsmath} ... and ...
6
votes
2answers
36 views

Relational Operator spacing problem with alignat

I have not asked a really embarrassing question in a while, so thought it was time :-). I am stumped as to why the spacing around the = on the third line is incorrect: Notes: I realize I am ...
8
votes
1answer
99 views

\cee command (from mhchem package) doesn't allow \\[10pt]

when using \cee command (from mhchem package) within align environment, \\[10pt] doesn't work. It works in align environment without \cee. Is there a workaround? here is a MWE: ...
1
vote
2answers
55 views

amsmath, vec and if not working together

I am trying to define some macros in which I need an "if" which test contains an argument of the macro. The issue arises when this argument is \vec{<arg>} and the amsmath package is loaded. Here ...
8
votes
1answer
138 views

How do I rescale an align environment on a beamer slide?

I'm trying to resize an equation on a beamer slide to make it larger. However, the usual approach of using \scalebox doesn't seem to work: \begin{frame} \scalebox{2}{ \begin{align} x &= y\\ y ...
1
vote
1answer
34 views

Force equation number to be right aligned

I'm trying to typeset some basic equations with proper numbering. I simply want a single equation to have a right aligned number in the two column environment that I'm using. I tried three approaches, ...
6
votes
3answers
89 views

How do I make \widefbox bigger in the vertical direction?

I want to enclose some equations in a widebox, but I need to make the box bigger the the y-direction/vertical direction. How is this done? A sample code is given below (taken from the empheq manual). ...
1
vote
0answers
24 views

What package must I load to be able to write \mathbb{Z}? [duplicate]

Downloaded TeXworks a couple weeks ago and have been using it to type my mathematics homework in LaTeX. I keep having to write sentences such as: Let $n$ be an integer. There are times when I would ...
9
votes
2answers
153 views

Center one equation of many in align?

I have the following align enviroment: \documentclass[12pt]{memoir} \usepackage{amsmath} \begin{document} Here we see \begin{align} \text{cat} &= \text{dog}\\ \text{dog} &= cute ...
38
votes
2answers
5k views

What does each AMS package do?

In my view, any document with a substantial amount of mathematics should load the packages from AMS-TeX. Hence, most of my document's preambles contain \usepackage{amsmath, amsthm, amssymb, amsfonts} ...
5
votes
1answer
42 views

I can't use some binary operators

I'm using the amsmath package, and i want to put in a sentence, the not similar binary operator. I tried this: ... bla bla $ a \nsim b $ bla bla ... I get the error: "Undefined control sequence". ...
4
votes
3answers
1k views

Having the starred version of a theorem environment unnumbered - with ntheorem

I'm trying to switch from amsthm to ntheorem. (This is due to the incompatibility of amsthm with babel+Hebrew, see here and here; seems not to have been resolved.) I would like to have both a starred ...
2
votes
1answer
69 views

How can I write the number set of positive rationals in LaTeX2e?

How to write this in latex2e, the set of all rational numbers.
4
votes
2answers
97 views

Designing medcirc and circledtimes symbols

It would be great to use only \medcirc and \circledtimes from the pxfonts or to design the similar symbols by other techniques. The symbols from pxfonts are quite well but when I connect the ...
2
votes
0answers
29 views

tex4ht compile error using mathml switch using multline with pmatrix and easybmat

It took me a long time to find this and be able to make a MWE. I hope someone has an idea what is causing it and if there is a work around. This problem shows up in this small example, only when I use ...
3
votes
2answers
53 views

is it possible to add dashed lines between rows/column of pmatrix from amsmath?

I wish these packages from amsmath have more options! Is there a way to add a macro to add dashed lines between rows and columns for a matrix typeset using pmatrix? Similar to what is being asked ...
2
votes
4answers
132 views

How to modify eqnarray?

I'm currently writing a maths undergrad dissertation using Texmaker, and when I use eqnarray. It keeps justifying all of the equations to the right but still in the center? How do I change this so ...
6
votes
3answers
158 views

align* not aligning properly with \sqrt

Using this, everything is aligned properly: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align*} 16x^2&=144&\text{| }&\text{sqrt}\\ 4x&=12&\text{| ...
3
votes
1answer
64 views

Lyx handling of \begin{align} and duplicate \tag with amsmath?

I am trying Lyx. I started Lyx and asked it to import this plain Latex file: \documentclass[12pt]{article}% \usepackage{amsmath} \begin{document} \begin{align} A &= B+C \tag{33}\\ D &= ...
28
votes
3answers
14k views

align* but show one equation number at the end

I am using align*, but I still need an equation number. I know one solution is to use align and add \nonumber to all lines but the last. Is there a 'lazy' way to do it? I searched a little and found ...
1
vote
1answer
34 views

Common numbering for theorems and definitions

I use the amsmath environment and I put the following code in the preamble: \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] \newtheorem{lem}[thm]{Lemma} \newtheorem{cor}{Corollary}[section] ...
1
vote
1answer
65 views

The meaning of $\rightsquigarrow$? [closed]

Perhaps this is not the good place to ask this question. In order to write a scientific paper, I would like to use the symbol $\rightsquigarrow$ (works also with $\leadsto$ which has a clearer ...
6
votes
1answer
66 views

How can I split and align this series of equations?

I know this is an issue that comes up frequently, but I keep running into issues using all the suggested examples (breqn, amsmath; split, align, etc). Here's what I have: ...
4
votes
1answer
61 views

Using \left( & \right) around amsmath's align delimiter (“&”)

I want to align equations (using the align environment from the amsmath package) inside matching \left( and \right) commands. For example: \documentclass[a4paper,12pt]{article} \usepackage{amsmath} ...
4
votes
3answers
64 views

How can I make a single-aligned row under two double-aligned rows in an equation?

I have an equation that I would like to align like this (the x is actually \times): A = BBBBB CCCCCCC x DDDDD = EEEEEEE FFFFF I have tried the align environment, align with nested ...
5
votes
4answers
105 views

Multiple alignment points in equations and no curly brackets for correcting spacing

Consider the following example: \documentclass{article} \usepackage{amsmath} \usepackage{siunitx} \begin{document} \begin{alignat*}{5} &\text{Honning:}\qquad ...
3
votes
2answers
40 views

raggedleft (right-aligned) entries in pmatrix? [duplicate]

I'm using pmatrix from amsmath package and would like the output to align all entries in the same column to be align on the right hand side, as shown here in the code: \[ \begin{pmatrix} -1 & ...
2
votes
1answer
82 views

To have a question mark over an arrow [duplicate]

I want to have a question mark over the arrow "\to". I cannot use "\limits^{?}" command because "\to" is not a mathematical operator. How can you have a question mark over the arrow?
1
vote
3answers
881 views

Hat accent on bold greek letters in math mode

I would like to insert an hat accent on bold letters/symbols in math mode. For latin letters, e.g. the q char, I insert this commands in my preamble ...