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

learn more… | top users | synonyms

4
votes
3answers
221 views

How to write two equations as part of one equation?

\begin{equation} \begin{align} \mathbf{x_{t}=f_{t}(x_{t-1},u_{t})}\\ \mathbf{y_{t}=g_{t}(x_{t},v_{t})} \label{eq:state-space&obs-equ} \end{align} \end{equation} I want that y(t) equation should ...
7
votes
1answer
39 views

Switch between leqno and reqno options (of amsmath) in the same document

I'd like to know if it is possible switch between the leqno and reqno options in the same document keeping the numbering of the equations. Namely i use the reqno option (default for amsmath and the ...
12
votes
1answer
123 views

Why is the \underbrace off the line?

I have the following problem with \underbrace: As you can see, the third underbrace and its comment are not in the line with the first two. Here is my code: \documentclass[a4paper,12pt]{article} ...
2
votes
0answers
24 views

\dotsc or \dots in this case? [duplicate]

I know that we should use \dotsc with a comma and \dots if there is no comma. But what if I have a comma on the right side and no comma on the left side, for example in Pr[X_i | X_{i+1}, ... ] ...
3
votes
2answers
136 views

tips to make best estimate on aligning

Hey so I keep on using \ \ {text} to make sure all my equations are aligned. Is there any good ways to do this beside using the spacing systems? Like I had to print my project two times because ...
5
votes
2answers
78 views

How can I DeclareMathOperator* with spacing after it, preserving the alignment?

In the context of optimization problems, I'm using \usepackage{amsmath} \DeclareMathOperator*{\minimize}{\text{minimize}} \DeclareMathOperator*{\subjto}{\text{subject to}} to declare some operators ...
3
votes
1answer
83 views

Why the summation is printed like this?

The values of the upper and lower limits of a summation are usually printed below and above sigma. But I find TeX something very unusual. How to correct this? Here is the MWE: ...
6
votes
2answers
174 views

Align the n's in the equation

In the following code, how do I align the n's? Here is the MWE: \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{align} n \propto exp(-U/kT) \notag \\ \Rightarrow \quad n ...
6
votes
4answers
266 views

Different proofs in amsmath with different QED symbol?

I'm trying to expand the amsmath package to get two different proof environments: \begin{proof} ... \end{proof} and \begin{proof*} ... \end{proof*} so proof* should act exactly like proof except ...
5
votes
1answer
82 views

Why can't split with curly-brace be inside align but it can be inside gather?

The following code snippet will guide you through the issue chronologically. \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{mathtools} \begin{document} \section*{gather+aligned} ...
0
votes
2answers
15 views

How can I position the tag of a “nested” aligned environment?

I have an equation that is two wide to fit on a single line, but it has \left(-\right) split over two lines, and I can't align to something inside these for some reason... The wanted output is ...
4
votes
1answer
48 views

How to make equations the same size

When I write an equation using the simple \[ and \], it comes out to the correct size, with the fractions bulging above and below the lines and the parentheses surrounding them. But when I use the ...
2
votes
2answers
44 views

set section environment to be math only, amsmath's begin{gather}

I want to create a small formulary, and for that virtually every line has to be math formulas. I use the gather-environment from the package amsmath, for example: ...
0
votes
1answer
71 views

“Dimension too large” using geometry package

So, I have an interesting problem with a really (really really ...) large equation that I am trying to typeset. Basically, crunching the file through pdflatex gives: This is pdfTeX, Version ...
2
votes
2answers
70 views

Latex Alignment

So I got help for my LaTeX problem. I am in need of a little more help to get this example to look perfect. I want to perfectly align everything in the words section of each of my equations. I would ...
9
votes
2answers
109 views

How to Align systems

I am having a hard time of getting my texts and equations aligned. Idk what pack to use. Sorry the way I listed the codes are not the very best. This is my first time going on to this forum. Here's a ...
2
votes
1answer
50 views

Problem with align*, having & inside \dfrac arguments

To center align two equations, I need to place the & inside a \dfrac argument (I am using AMS LaTeX) but if do that, I get an error message and the code does not compile. The only alternative way ...
5
votes
0answers
58 views

Is using DeclareMathOperator for functions the right thing to do?

I'm wondering if I use the \DeclareMathOperator for the wrong things. For example I have a cost function cost(x,y) which takes two arguments. I would declare it as \DeclareMathOperator*{\cost}{cost} ...
5
votes
2answers
46 views

How to make \dots from amsmath and ellipsis work together

The amsmath package changes the \dots command to have different vertical alignment depending on context (I'm not sure if it does anything else to it). The ellipsis package changes the \dots command to ...
3
votes
1answer
78 views

What does \normallineskiplimit do?

In this excellent answer, one of the tools used is to redefine \normallineskiplimit. I cannot find this macro in any reference, although it does show up in this answer. Where is this length originally ...
3
votes
1answer
40 views

How to align terms in alignat: too much spaces and too few

Please, help me this code has too much spaces and too few, how can I fix it? \begin{subequations} \begin{alignat}{2} \forall i \in[m] && \sum \limits_{e \in N_{out(s_{i})}} y(i,e) - \sum ...
6
votes
2answers
86 views

What's the difference between split and aligned?

I don't understand the difference between the split and aligned environments introduced by amsmath, so I'm posting this question as a place to collect what subtle details there may be. One thing ...
4
votes
2answers
477 views

Big forward slash in math

I have a equation in from of a=VERYBIGSTUFF / VERYBIGSTUFF And I would like to have a "verybig" forward slash in the middle of them. I dont like \frac mode, as I would like to have them ...
0
votes
0answers
17 views

amsmath: error using subequation environment “Missing \endgroup inserted \end{align}” [duplicate]

Here's my minimal problem-causing example: \documentclass{standalone} \usepackage{fixltx2e} \usepackage{amsmath} \begin{document} \begin{subequations} \begin{align} a &= ...
3
votes
3answers
137 views

Why does `gather` behave this way, and what can we do about it?

Here's a simplified version of the code I'm having trouble with. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{center}\underline{First set of identities.}\end{center} \[x+x = ...
0
votes
0answers
46 views

! Undefined control sequence \backsim [duplicate]

My latex file does not accept the command \backsim. This is what I wrote in the file: $ \backsim 2.5 \mu$ What is wrong?
18
votes
4answers
843 views

How to typeset an i with asterisk above?

I tried it with a modification of \overset as suggested by Werner in this question: Creating non-math mode substitutes for \overset and \underset not dependent on the amsmath package With the new ...
0
votes
0answers
42 views

Locally change font style from sfmath to amsmath

I am using the package sfmath. It is rather hard to explain why, but the reason should not matter for my question. If it is required I can try to explain why I need sfmath. Nevertheless, the main ...
1
vote
0answers
59 views

amsmath package clash

Just this afternoon I seem to have a package clash that resulted in all my equation numbers disappearing. I seem to have resolved the issue by putting \usepackage{amsmath} at the top of the preamble ...
1
vote
1answer
53 views

What is the correct way to properly align a split equation with continued parts prefixed with a binary operator?

Consider the following result with 2 methods. Don't hesitate to propose better ones if any. The question is: What is the correct way to properly align a split equation in which binary operator ...
4
votes
2answers
40 views

Left-align a split equation

I am trying to left-justify a split equation. I would like to have the first line left-justified, and have a hanging indent on the second line. I used flalign successfully for other equations that ...
4
votes
2answers
83 views

Setting vertical margins on top and below align* environment

I'm using the amsmath align* environment to format multi line formulas. Unfortunately, the environment adds a lot of margin before and below the formula. I found only one solution to get rid of this ...
2
votes
3answers
95 views

Aligning a set of equations with one equation number

The following set of equations cannot be aligned from left to right. Since, I need to index them just with one number, I had to use split equations: \begin{equation} \begin{split} X={}^ 2 \bar{x} + ...
0
votes
1answer
24 views

LaTex align and split

I am trying to split an equation inside the align environment, but I get an error message each time I try to add the \begin{split} ... \end{split} lines in the code below: \begin{align} % requires ...
5
votes
1answer
81 views

LuaLaTeX - Linux libertine (math and pgfplots)

I have some problems using Linux libertine font within equations or pgfplots and tried this answer but it doesn't work. \documentclass{article} \usepackage{fontspec} \usepackage{pgfplots} ...
2
votes
2answers
69 views

Problem formula with \usepackage{marvosym} \usepackage{tikzsymbols} \usepackage{MnSymbol,wasysym}

I have the following code: \documentclass[12pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} ...
2
votes
1answer
33 views

Wrong alignment of split equation in align environment

This is an example code of my problem: \documentclass[a4paper]{article} \usepackage{amsmath} \begin{document} \begin{align*} x_n&=\begin{split} &1+\frac{1}{2}+\left( ...
4
votes
1answer
48 views

! Missing } inserted. all the time!

\begin{multline} (3 + 2\omega )\left( \frac{{B\prime (r)}}{{2A(r)B(r)}}\varphi \prime + \frac{1}{{A(r)}}\varphi \prime \prime - \frac{{A\prime (r)}}{{2{A^2}(r)}}\varphi \prime + ...
2
votes
1answer
48 views

changing the general theme of math fonts

I'm using latex templates which is producing a particular kind of math font, shown below. How can I change it to produce something like following? I'm particularly interested in changing the math ...
3
votes
2answers
57 views

Is there a better (more condensed) way of formatting a subscript \perp (or \bot)?

I'm writing a lot of these types of formulas: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{equation} \mathrm{e}^{-\mathrm{i} \boldsymbol k_\bot \cdot \boldsymbol r_\bot} ...
3
votes
1answer
35 views

mathscript glyphs in nomenclature list

I am trying to use a glyph defined by \mathscr{F} in a list of nomenclature. The explanation shows in the list fine, but the glyph doesn't. Anyone come across this before or have a ...
4
votes
4answers
98 views

! Missing $ inserted (normal text in Bmatrix)

\begin{Bmatrix}\text{Of what nacion.}\\text{Of what countrée.}\\text{Of what auncetours.}\\text{Of what parentes.}\end{Bmatrix} Apparently, I'm supposed to insert $ but I don't know where.
2
votes
2answers
129 views

Equation setting

I have a problem with this equation compilation at the end{split} please fix it. \begin{equation} \begin{split} \frac{\partial }{\partial X_{j}}(\rho \bar u_i \bar u_j) = -\frac{\partial \bar ...
2
votes
3answers
135 views

\middle too big

I'm trying to typeset an equation that contains a "|": \begin{align*} \lambda_{l} = \lim_{q \to 0^{+}}P\left(X_{2} \leq F_{2}^{(-1)}(q) \middle| X_{1} \leq F_{1}^{(-1)}(q) \right) \end{align*} ...
2
votes
1answer
74 views

Changing font and using amsmath [duplicate]

I've read several threads about this, but none solves my problem. When I try to change font, it won't compile. Is there an other way to change font, that will still allow me to write stuff like: $\mu$ ...
1
vote
2answers
58 views

big equation in flalign

I am trying to use a big equation inside flalign. The biggest chunk is the third line and I couldn't figure out how to something akin to \shoveright in this third equation, as I want is ending on the ...
2
votes
0answers
29 views

Multiple tags in one line of align environment [duplicate]

Is there a possibility to tag each equation of a single line in an align environment of the amsmath package? Like so (this code leads to the error Package amsmath Error: Multiple \tag.): ...
4
votes
2answers
49 views

Trouble defining new environment with embedded gather

I looked at the solution to How do I embed a gather environment within a custom environment? But things are still not working for me: MWE: \documentclass[border=6pt]{standalone} ...
5
votes
4answers
78 views

Increase the spacing of rows in equations

I have a formula and I want to increase the space between the rows to make the reading easier. \begin{equation} \begin{flalign*} \epsilon \bm{\Xi}_n & = M_\epsilon(\bm{x}_{\epsilon,n-1} ) - ...
1
vote
1answer
75 views

Commutative diagram with blank spacing and crossing-layer arrows

Related to a previous post, now pardon me to go to a specific example, here is my output and my Minimum Working Environment ...