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

learn more… | top users | synonyms

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
134 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
76 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 ...
10
votes
3answers
3k views

Defining a command for amsmath's align environment

I'd like to define a shorthand command for \begin{align*} and \end{align*}. When I write \newcommand{\ba}{\begin{align*}} it works fine. But when I write \newcommand{\ea}{\end{align*}} ...
3
votes
1answer
80 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
171 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
254 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
78 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
46 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
43 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
66 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
107 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
48 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} ...
0
votes
1answer
41 views

Add vertical space in aligned environment and explanation of the unequal space between two gather/align environments

I want to leave some space between the aligned environments and some below the texts in the environments so to have a nicer output. How can I do that? \documentclass[12pt]{article} ...
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
76 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 ...
6
votes
2answers
84 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 ...
3
votes
1answer
36 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 ...
4
votes
2answers
470 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
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 ...
18
votes
4answers
841 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 ...
2
votes
1answer
67 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 ...
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?
2
votes
3answers
94 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} + ...
1
vote
0answers
55 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
39 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 ...
2
votes
2answers
3k views

Package or command for inverse hyperbolic trig functions?

What are the commands for all the: inverse trig functions (arcsec(x), arcCsc(x), arcCot(x)); hyperbolic trig functions (sech(x) and csch(x)), and inverse hyperbolic trig functions?
7
votes
1answer
108 views

problem on the parentheses direction in equations

I recently installed a MacTex version and I faced a problem with the direction of parentheses both in the enumeration and the text reference using \eqref. I use XeLaTeX to compile the tex files. Since ...
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 ...
0
votes
1answer
23 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
77 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
66 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} ...
8
votes
2answers
261 views

Boxed equation with number

My minimum working example: \documentclass{report} \usepackage{amsmath} \begin{document} \begin{center} \boxed{K_{k+1}=P_ka_{k+1}^T(a_{k+1}P_ka_{k+1}^T+I_N)^{-1}} \end{center} \end{document} ...
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
55 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} ...
4
votes
4answers
95 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.
3
votes
1answer
34 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 ...
2
votes
2answers
128 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
1answer
72 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$ ...
2
votes
3answers
133 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*} ...
1
vote
2answers
55 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 ...
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} ) - ...