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

learn more… | top users | synonyms

7
votes
4answers
118 views

Aligned underbraces between amsmath equations

I have an \amsmath aligned environment containing some equations aligned with &=. I want to be able to place underbraces between the equations in such a way that that both the contents and “point” ...
6
votes
2answers
141 views

Define certain letter in math-mode to be always non-italic - using unicode-math in lualatex

I once had this question a while ago, asking about how to set the letter j always to be non-italic j in math mode without using \mathrm. The provided solution was: ...
1
vote
1answer
78 views

Extra alignment tab has been changed to \cr. <recently read> \endtemplate [duplicate]

I need to insert a 19x19 matrix in my article, but when I try this code: \begin{vmatrix} 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 ...
3
votes
1answer
48 views

Missing } inserted. \end{alignat}? why this error keeps on popping up?

here is a part of my code, which I am trying to run. \begin{alignat}{2} [M]: \max_&Z ~ \label{eqnP27}\\ \mbox{s.t.}~ %capacity constraints & \sum_{k \in H} y_{k} \leq ...
3
votes
1answer
54 views

\begin{align} not working as expected

In this small snippet of code, I'm doing quick derivation to arrive at an equation to be used later in the analysis: $ |\vec{F}|=q|\vec{v}||\vec{B}|sin(\theta)\\ m\frac{v^2}{r}=qvB\\ ...
5
votes
2answers
118 views

Missing number, treated as zero with amsmath and calc

This simple code produces "Missing number, treated as zero" \documentclass{article} \newcounter{test} \newcounter{testtwo} \usepackage{calc} \usepackage{amsmath} \begin{document} ...
2
votes
1answer
66 views

Why are \colon and \mathpunct{:} not equivalent? [duplicate]

According to this answer, \colon is of type \mathpunct. But in the MWE below, the outputs of the two lines are not identical. Why not? \documentclass{article} \usepackage{amsmath} \begin{document} ...
3
votes
1answer
107 views

Trigonometric function script? [duplicate]

Is there a script for the sinc function analogous to \sin for sinus? If not, what method should I use to insert it in a equation?
0
votes
0answers
36 views

Typesetting system question related to amsmath [duplicate]

After consulting the existing questions and answers related to packages for Mathematical Equations, I found this recommendation, given by @cmhughes, advising to use amsmath. After including it in the ...
2
votes
2answers
48 views

Equation and math system on same line

To add a math system into a LaTeX document, I add to preambol \newenvironment{sistema}% {\left\lbrace\begin{array}{@{}l@{}}}% {\end{array}\right.} then in the document I do something like ...
1
vote
1answer
122 views

Epsilon and log functions

I m trying this T(n) \epsilon \left(\Theta(n^\log_22$\right) = $\Theta(n^\log_22 )$ = $\Theta(n)$ but i want below result. Is E sign is epsilon only . And also log bracket not coming properly and ...
7
votes
3answers
321 views

How to typeset piecewise functions [duplicate]

I don't know what the big { thing is called so can't search and when tried and write in LaTeX and didn't find this expression or structure in word either.
4
votes
1answer
48 views

Overarrow in latex

Hello I'm have created some Latex Matrix equations. But for remembering how it works i wanna create a matrix dimensions workflow like: \begin{align} &\hphantom{(2\times 3)( }% ...
0
votes
0answers
16 views

How to set equation number with respect to the article instead of chapter? [duplicate]

I am working on a paper which is based on a special template. I need to use the \chapter to organize by document. In each chapter, if I have \begin{equation}, the equation is number with the chapter ...
1
vote
1answer
45 views

Undefined control sequence with \overbar

can anyone tell me why I get an "undefined control sequence" error with the following code please? \documentclass[times]{fldauth} \usepackage{amsmath} \usepackage{amsthm, amssymb, amsfonts} ...
3
votes
1answer
33 views

How to put \varinjlim in the section name?

Here is (almost) minimal example of the file, which gives the error. \documentclass{article} \usepackage{amsmath} \usepackage[english]{babel} \begin{document} \section{Section name with varinjlim: ...
6
votes
2answers
54 views

Expand arrows within an array

Any ideia of how I can expand the \xrightarrow so that they all have the same size? (for aesthetics) \documentclass{article} \usepackage{amsmath} % \text nas equacoes \usepackage{mathrsfs} ...
5
votes
3answers
189 views

How to make large binomial coefficient?

I have a potentially-repeated question, but I was unable to find anything about this. So, I need to create a giant binomial coefficient in LaTeX (something around 1000pt). When I compile the below, ...
1
vote
4answers
75 views

line break in a centered cell of tabular

I have a table like in the following example: \documentclass[11p,twoside,a4paper,leqno]{article} \usepackage[utf8]{inputenc} \usepackage{mathtools} \usepackage{amsfonts} \usepackage{xcolor} ...
0
votes
0answers
42 views

Editor text color in align environment

I am using TeXworks to type up very long assignments. For the types of assignment I type up, I usually have many lines of equations of all sorts with interjections of normal text as explanations and ...
5
votes
2answers
74 views

How to mimic spacing around \bullet with \DeclareMathOperator?

I'm trying to define \conjunction by means of \textbullet instead of \bullet, since the latter looks too big in logical formulas. How can I make the spacing around \conjunction to behave like the ...
11
votes
3answers
138 views

Incorrect spacing after minus sign with combination of amsmath and hyperref

When no packages are loaded, no space is inserted after the minus sign of a negative number: \documentclass{article} \begin{document} \begin{equation} -1 = -1 % output: -1 = -1 \end{equation} ...
6
votes
2answers
115 views

More than two columns amsmath cases

I'm trying to use the cases environment to show an arbitrary equation. But I noticed that it only allows me to use 2 columns. However, I would require a third column, or perhaps a fourth as well. An ...
1
vote
0answers
35 views

How to construct block matrix with shadowed entries? [duplicate]

Is there a simple way of drawing matrices with shadowed blocks like the ones in the picture? I've tried something like Gonzalo Medina's proposal: %% with these packages loaded %% ...
7
votes
2answers
97 views

boldsymbol badly modifies spacing

In the example below, it is my feeling that \boldsymbol badly increases the horizontal spacing with the index: \documentclass[fleqn,11pt]{book} \usepackage{amsmath} \begin{document} ...
8
votes
2answers
102 views

\bigl and \bigr in sub/superscripts

When typesetting expressions with multiple adjacent parentheses, I like to use \bigl and \bigr on the outermost parentheses to make it easier to read, especially with 3 or more parentheses in a row. ...
0
votes
0answers
14 views

Package for angle commands [duplicate]

I want to use the command "\angle". I have the "amsmath" package included im my document, and I can use any other math commands, but not this. What I need to do? It requires a different package? ...
1
vote
2answers
39 views

bmatrix, how to give details after particular row bracket[ ]?

I am new to LaTeX. I want matrix like in bmatrix [1 1 1] R1=R1-R2 (Row1= Row 1 - Row 2) 1 1 1 R2<-R1+R3 1 1 1 I want "R1=R1-R2" after the matrix [1 1 1] but when i add this its goes to ...
3
votes
2answers
121 views

Redefining line break (double backslash) for align environment

I am trying to figure out if it is possible to (locally) redefine \\ (double backslash) within amsmath's align environment. On the one hand, I'd like to be able to dynamically insert extra columns, on ...
2
votes
1answer
73 views

Problem numbering equations properly

I'm trying to create some equations with amsmath with captions and references. I'd like to suppress the equation number in the margin. I know this can be done using the equation* environment but ...
3
votes
2answers
138 views

amsmath's multline and fleqn

As a fleqn fanatic, I run across this problem once every week: when splitting a long formula using amsmath's multline, the middle lines are flushed left: \documentclass[fleqn]{article} ...
6
votes
2answers
67 views

Using \ensuremath inside \text

Using \ensuremath inside \text works fine and gives good results. However, I realized that the spacing in superscripts changes. I tried working with \mathchoice, but that doesn't know that it is in a ...
3
votes
0answers
25 views

mathspec and \RequirePackage{amsmath} error [duplicate]

In my package, I request amsmath with \RequirePackage{amsmath}, resulting in this basic setup: \documentclass{minimal} \usepackage{amsmath} \usepackage{mathspec} \RequirePackage{amsmath} % part of ...
0
votes
1answer
61 views

Hyperbolic functions both produce error and result already existant when inserted in preamble

I'm trying to write hyperbolic functions like sech, csch, etc, Since amsmath doesn't recognize them in the form \sech, \csch, ... I wrote a preamble like \DeclareMathOperator{\sech}{sech} but I get ...
3
votes
0answers
55 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 ...
0
votes
1answer
48 views

Different math rendering in Beamer? [duplicate]

When using beamer for presentations, I notice that the rendering for math becomes quite different, and I really prefer the usual rendering, say, when typing a paper. The symbols look a bit less ...
2
votes
3answers
248 views

Best approach to write an multiline equation

What is best way to let LaTeX formate a long equation such that it matches between the borderrs of a page? As an example I have the following expression: \documentclass{scrartcl} ...
3
votes
1answer
64 views

Using \qedhere automatically in every proof

I'm currently using \qedhere at the end of my proof every time since I'm really satisfied with the positioning of the qed mark. The problem is, I use it so often that I want to make the qed mark ...
1
vote
2answers
52 views

Multiple labels for one line of alignment

I have these four equations thus aligned, and would like to label each of them separately, placing the labels to the left of the two equations on the left and to the right of the other two. So far, ...
0
votes
2answers
55 views

ams math environment, missing $ in equation mode

I'm trying to write some report in Latex, and I need to use amsmath further in the code, but since I added this package, the following piece of code stopped working (initially it was between \\[\\] ...
4
votes
2answers
76 views

Amsmath environments eating \active characters

\documentclass{amsart} {\catcode`\z\active \global\def\activate{\catcode`\z\active\defz{active}z}} \begin{document} {\activate z} %1 \begin{equation}\activate z\end{equation} %2 \begin{align}\activate ...
2
votes
1answer
25 views

Numbering equations in sections and sub-sections

In general, I would like to number equations using the sub-section number, so for example, if I am in sub-section 2.3, then it should number the first equation in this section (2.3.1). To do this, I ...
6
votes
2answers
111 views

reduce vertical space for \xrightarrow

I find the vertical spacing of amsmath's \xrightarrow too large for the underset. Is there an easy way to reduce it (i.e. put "below" close to the arrow, in the example)? \documentclass{minimal} ...
2
votes
0answers
52 views

Increase the thickness of a brace

I'd like to know if it's possible to increase the thickness of a brace. The code \documentclass[oneside]{article} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
2
votes
1answer
85 views

“undefined control sequence” error with curly brackets

I'm writing a math equation inside which I have to express curly brackets. What I intend to write should look like {h_n}^infinity_0 My code is: \par The problem asks for estimates of the sizes ...
0
votes
1answer
351 views

Latex showing “undefined control sequence” error when using cases inside align*

I am trying to use LaTeX to run the following code: \begin{align*} A\left(x\right)&= \begin{cases} 1, &\text{if } x \eq 1\\ 0, &\text{otherwise} ...
1
vote
1answer
55 views

amsmath: combine \nonumber and \label

I'd like to write something as \begin{align} f(x) & = x + 1 \nonumber \\ & =: \eqref{eq:foo} \label{eq:foo} \nonumber \\ g(x) & = x + 2 \nonumber \\ & =: \eqref{eq:bar} \label{eq:bar} ...
7
votes
2answers
148 views

Is the blkarray package compatible with Xetex and amsmath?

Running xelatex on the file \documentclass{article} \usepackage{amsmath} \usepackage{blkarray} \begin{document} \begin{blockarray}{c} 1 \end{blockarray} \end{document} gives the error ...
0
votes
0answers
37 views

Problem with \begin{align} [duplicate]

I am using \begin{align} in my paper. Hence unwanted gaps are being created to accomodate the whole \begin{align} content in one page. how to prevent it ?
3
votes
2answers
88 views

Is it possible to get the package listofsymbols to recognize the \cdots command?

I am trying use the package listofsymbols to define a symbol to be included in a list of symbols in a book. I have problems using the command \newsym to define a symbol which involves the command ...