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

learn more… | top users | synonyms

5
votes
4answers
137 views

Exam Class: how to avoid question going beyond margin

I'm able to create question paper using LaTeX code mentioned below: \documentclass{exam} \usepackage[margin=0.7in,headheight=3.5\baselineskip,headsep=1\baselineskip,includehead]{geometry} ...
2
votes
3answers
88 views

How to type dots whose slope is 1? [duplicate]

We know how to typeset the commonly used diagonal dots, i.e., \ddots, whose slope is -1. Now I want to produce dots with slope 1, which is perpendicular to \ddots. Does anyone know how to do it?
3
votes
1answer
58 views

How to wrap text with flalign*?

I am trying to left align some text as shown below: But the problem here is that the line is almost exceeding the page (shown by red arrow).What I want is somewhat shown in the blue line which ...
5
votes
1answer
126 views

alignment of equations in align environment with itemize

I am using amsmath environment and I want to align equations with multiple align environment. An example can be seen in the figure: Now what i want is shown in arrows. I want i=0,..2n in eq 2.4.2 to ...
6
votes
1answer
142 views

How to typeset row operations on augmented matrix

I would like to typeset row operations on a augmented matrix, but the "gauss"-package does not seem to support the vertical line just before the last column, any way to do this? Thanks!
7
votes
1answer
151 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 ...
6
votes
1answer
95 views

Gauss package: gmatrix not equivalent to corresponding amsmath environment

The following quote is taken from the gauss package documentation: The package defines a new matrix environment gmatrix which behaves just like Latex's and AMS-Latex's matrix. But when using ...
6
votes
1answer
118 views

Issue with bm and breqn packages - is there a way to use a package in only part of a document?

I am a long time stack exchange reader. I always found useful information here. This is however my first post. I have a little issue that I am working on that maybe someone can provide a quicker ...
3
votes
2answers
57 views

\newcommand for bmatrix of features using pgffor throws missing \endgroup error

There are two parts to this question. Mainly, I'm interested in implementing a \newcommand that can take an arbitrary number of arguments to be set in a single column of a matrix. I tried the ...
13
votes
4answers
819 views

Hyperref jumps to the wrong equation if the equation has a \tag and cleveref is used

The problem I'm writing a document where all of my equations are labeled, not by numbers, but by names, which I provide with amsmath's \tag command. I also use cleveref for ease of ...
3
votes
1answer
114 views

Indicator at end of theorem

I'm writing a text with some very long theorem-environments in it and I find the italicised theorems visually not pleasing when they are rather longish. So I'm using the definition theorem style most ...
6
votes
4answers
146 views

Multiple underbraces that span overlapping columns in matrix

I want to display the structure of a matrix as shown in the image below: The following code shows the structure of the matrix, without the underbraces: \documentclass{standalone} ...
1
vote
0answers
103 views

Failed to display math formula in beamer [closed]

This is my preamble for a beamer \documentclass{beamer} \usepackage{beamerthemesplit} \usepackage{graphicx} \usepackage{verbatim} \mode<presentation> { \usetheme{Boadilla} % Pretty neat, ...
9
votes
3answers
385 views

Underbrace in a matrix

I want to display the structure of a matrix as shown in the image below: Can this be done using pmatrix and \underbrace? My attempt at combining pmatrix and \underbrace results in a compile error. ...
3
votes
1answer
40 views

Controlling pgftable numeric output

Please consider the following \documentclass{article} \usepackage{filecontents} % For tables \usepackage{pgfplotstable} \usepackage{booktabs} \usepackage{array} \usepackage{etoolbox} ...
10
votes
4answers
209 views

How to vertically align each comma in the following 2 identical sequences?

The following output seems to be difficult to look up an item in the upper sequence with its corresponding item in the lower sequence as the commas are not vertically aligned. ...
9
votes
4answers
251 views

Highlighting equation with arrow

I want to create an equation with highlighting as shown bellow. But using following code: \documentclass[10pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
13
votes
1answer
15k views

Aligning equations with text with alignat

I'm trying to add this expression to my work: I understand that the best way to achieve this is using the alignat environment within the amsmath package, so I tried the following: ...
3
votes
1answer
104 views

Align environment {amsmath} inside subfigure {subcaption} breaks figure numbering

When I put an equation in align environment into a subfigure, it breaks figure numbering. In the example below, the whole figure gets number 2, not 1 as I want. How do I fix it? \begin{figure} ...
2
votes
1answer
52 views

Equations alignment in Split enviornment

\documentclass[12 pt]{article} \usepackage{graphicx,epsfig,setspace,subfig,url,amsmath} \usepackage{setspace} \usepackage{indentfirst} \usepackage{listings} \usepackage{array} \usepackage{multirow} ...
2
votes
0answers
130 views

Problem with hyperref and amsmath [closed]

I was running into trouble with hyperref when labeling propositions in the appendix. It would get confused between Proposition 1 (in the main body of the article) and Proposition A.1 (in Appendix A). ...
1
vote
1answer
113 views

Latex math encapsulating complex expression in bracket

Latex newbie here. I've clumsily built the following math expression in Latex \begin{align} &W_{i'}(\alpha) = \cdots \notag\\ &\vdots \notag\\ &W_i(\alpha) = ...
0
votes
0answers
28 views

How to remove indentation when using the aligned environment? [duplicate]

I want to align equations inside an enumeration, so I use the aligned environment and its [t] option to make the first equation appear on the same baseline as the item label: \documentclass{article} ...
8
votes
2answers
98 views

Glossaries in Align Environment

Using glossaries commands in align environment seems to screw up the tag alignment. How can I use gls{...} commands in align environments without the tag position being altered? Consider the ...
1
vote
0answers
68 views

amsmath.sty And bad compilation! [closed]

I am experiencing problems with teXMaker and my latex TeXLive installation. I CANNOT obtain a good compilation from math. amsmath.sty not found error plus a bad pdflatex output (without fractions ...
4
votes
1answer
225 views

How to place the QED symbol at the end of equation using IEEEproof environment?

I was wondering how one can place the QED symbol at the end of an equation when using the IEEEproof environment? With the standard proof environment of amsthm this is done by simply placing \qedhere ...
11
votes
2answers
182 views

Equation number enclosing parentheses misplaced with Polyglossia+Hebrew+amsmath

I am compiling the following MWE using XeLatex within TeXnicCenter and get a garbled equation number: \documentclass{article} \usepackage{amsmath} \usepackage{polyglossia} \setmainlanguage{hebrew} ...
11
votes
2answers
236 views

$\VDash$ Symbol in AMS math packages?

I'm trying to typeset some homework that deals with set theory and in particular I'm trying to write the "model-theoretic" notion of forcing. I put model-theoretic in quotes because I don't know the ...
6
votes
5answers
2k views

Using \label with amsmath nested environments

First of all, I'm not sure these environments are supposed to be nested, but the fact is the alignment comes out exactly how I wanted, and no errors are issued. \documentclass[a5paper]{article} ...
7
votes
1answer
91 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} ...
6
votes
1answer
108 views

Match upper horizontal line of two fractions with different roots

I'm learning LaTeX and encountered a problem which I'm not able to solve after reading several related problems (e.g.: Align \sqrt with baseline of other mathematical input). I will present my actual ...
6
votes
2answers
2k views

Alignment across nested aligned environments

I have a list of equations with annotations like the one below: \documentclass{scrartcl} \usepackage{amsmath} \begin{document} \begin{align} aaaa &= 1 &&\text{for $X$} \\ bbbb &= ...
14
votes
1answer
16k views

Text over/under implies arrow?

I'm currently trying to write over/under an implies arrow in LaTeX (in math mode): \implies_{text} This places the text lower, but next to the arrow, not below it. How can I get it below the ...
7
votes
1answer
207 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 ...
5
votes
2answers
129 views

How to redefine the colon-symbol with unicode-math (spacing problem)

I want to change the usual role of : and \colon. Consider the following code \documentclass{scrreprt} \usepackage{amsmath} \usepackage{unicode-math} %\unimathsetup{colon=literal} ...
2
votes
0answers
134 views

Undefined control sequence \nmid [duplicate]

I need to express that "a is not divisible by b" in my LaTeX document. It is my understanding that I should use the \nmid symbol for this case, as in $b \nmid a$. LaTeX gives me the following error: ...
34
votes
6answers
9k 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 ...
3
votes
3answers
71 views

Aligning the right hand side of multiline equations

I would like to align the RHS of the multiline equations and assign equation number for whole as one. \begin{multline*} \frac{\partial P(y_{i}\succ0)} {\partial z_{ij}}=\tfrac ...
4
votes
2answers
116 views

equations inside matrix/array — aligning on charater

Suppose I have a system of equations I'd like to present as a vector. Using amsmath, something like \begin{equation} \begin{pmatrix} (2)(2)+(-1)(-3) \\ (4)(2)+(3)(-3) \end{pmatrix} \end{equation} ...
13
votes
1answer
2k views

How to use more than 10 tab stops in \bmatrix?

I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} ...
7
votes
2answers
195 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 ...
10
votes
2answers
151 views

Math equation typeset problem

I would like typeset equation on the figure below. I have problem with subsript text 1, 2, 3 and 4 under integrals. I try something like this: \begin{align}\label{fyz:eq_fey_null2} ...
1
vote
1answer
84 views

Very wide equation ruins consecutive side edges

I've just created a set of equations in matrix form which looks fine. It also seems to fit in the space of my document, but in the following space after the equation, the side edge is suddenly gone, ...
0
votes
0answers
30 views

Remove extra space to the left of aligned environment [duplicate]

To typeset a collection of equations with alignment, I am using align* from amsmath. Some of these equations have right-hand sides that have multiple lines that should be indented. So far I am using ...
8
votes
2answers
124 views

Text misplacement with certains combinations of \mathring and \overline

If I try to compile the following document \documentclass{article} \usepackage{mathtools} \DeclareMathOperator{\Op}{Op} \begin{document} \[ 1 + \mathring \Op(4) = 2 \] \[ \overline{ 1 + \mathring ...
5
votes
3answers
115 views

alignat inside align enviroment?

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

Strange behaviour of binomial coefficient's delimiters

While writing down my Combinatorics exercises I found that the binomial coefficient's delimiters weren't displayed as indicated inside the amsmath documentation. By subsequent trials and errors I was ...
8
votes
1answer
133 views

How to increase the vertical space surrounding mathematical equations?

How can I, in a systematic way, increase the vertical space surrounding mathematical equations? \documentclass{article} \RequirePackage[ansinew]{inputenc} \usepackage{amsmath} \begin{document} Ah, ...
0
votes
1answer
23 views

How to prevent aligned equations to shift when adding a non-aligned line break?

I have an equation in the aligned environment to align the equal signs together. However, the last equation is too long, and I want to break it up. When I insert a linebreak, all the equations above ...
0
votes
0answers
88 views

Better extensible arrows

Using amsmath and extarrows packages, we have many extensible arrows. But these arrows look ugly, since some parts in an arrow are boldfaced. Are there any better-looking extensible arrows?