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

learn more… | top users | synonyms

3
votes
1answer
837 views

How to use \displaybreak?

I have a very long equation \begin{equation*} \begin{aligned} multiple line equation... \end{aligned} \end{equation} But just using the above code causes the whole equation to start from a ...
0
votes
0answers
35 views

How can I typeset a summation symbol with a two-line bottom? [duplicate]

I am using the amsmath and amssymb packages. Is it possible to type a summation with two lines of text under the symbol? Here is an screenshot example from a book I'm reading (which was clearly ...
4
votes
2answers
117 views

Custom cross-reference formats (e.g. “Equation 1” instead of just “1”) [duplicate]

I have an equation system set up as below. When I reference it however, ie. with \ref{eqn:surfacetension}, it only prints the number '1', and not 'Equation 1'. How can I modify the code to do that? I ...
6
votes
3answers
3k views

aligned environment of amsmath vs array environment

Today I found out the existence of the aligned environment of the amsmath package. However, I can't see the advantage of using it instead of the array environment from the example provided in ...
6
votes
1answer
86 views

Temporarily undefining a “starred” command

I would like to temporarily undefine a command. The reason for this is that I need to use a specific class file which defines the equation* using \@namedef and I would also really like to use the ...
14
votes
5answers
1k views

Typesetting math: an optimisation problem (cost & constraints)

I really struggle to align a system of equation for an optimisation problem. It was all ok at the beginning until I started adding the constraint. I've got this code so far: \documentclass{article} ...
3
votes
1answer
97 views

Automatically start a new line at the beginning of a proof environment?

I use amsmath to provide the proof environment. However, if a itemize (or tikzpicture) environment immediately follows the proof environment, xelatex will produce a messy result: \begin{proof} ...
2
votes
1answer
145 views

Proper way to typset minimum value of variable in formula?

To typeset a value with a subscript I use this: $U_{\text{res}}$ Which results in: Now I'd like to write "the minimum value of Ures", how would I correctly typeset that? The first thing I tried ...
2
votes
1answer
456 views

Is a cupdot symbol available in amsmath? [duplicate]

I'm looking for a command in amsmath that makes something like \cupdot in MnSymbol (I hope spell it right...). Look at the picture below: i.e. a command that puts a dot instead of the "+". One ...
3
votes
2answers
153 views

Formatting equations and text in amsmath [duplicate]

I'm working on a document on how to solve some basic integral problems. However, I'm having difficulty getting \begin{equation}\end{equation} to do what I need it to do. I would like all of my ...
1
vote
1answer
86 views

System of equations with tag which has subscript

Suppose I have an equation u_t = F(x) u(0) = u_0 I want to put a brace around on the left hand side of both lines and give it a tag with a subscript (eg. P_w) AND I want to be able to refer to ...
1
vote
1answer
161 views

Left and right subscripts in multline environment

I am using \documentclass[12pt]{article} \usepackage{amsmath} \begin{document} \begin{multline} \big_{1}[_{2}(...)_{2}\big]_{1}. \end{multline} \end{document} The lower suffix works only for right ...
2
votes
2answers
205 views

Breaking a long math expression

I am trying to type long expression by using parenthesis inserting some sentences, as an example I have a expression like product of \documentclass{12 pt}{article} \begin{document} \begin{multline} ...
5
votes
3answers
1k views

Left-align math with fleqn inside split environment

Below, how would I move the first math-line left so that a^2 left-aligns with where? \documentclass{article} \usepackage[fleqn]{amsmath} \begin{document} \setlength{\parindent}{0pt} Some text ...
9
votes
2answers
606 views

How to format Maxwell equations?

Is there a variant of split environment from amsmath package which would allow for two aligned equations in a row? I want to format two pairs of Maxwell equations in two rows and put single equation ...
2
votes
1answer
168 views

Two labeled equations on the same line with labels lining up vertically

I'm using the following LaTeX code within the amsmath environment in LaTeX (MiKTeX 2.9 and TeXnicCenter under Windows): Let $f$ represent the resulting number of such two-step cycles that operate per ...
2
votes
1answer
129 views

Which one is recommended to split, continue and align a long equation?

In my investigation, the outputs are identical as follows. Version 1: Using aligned. \begin{align*} \framebox[6cm]{Top LHS}\\ \framebox[5cm]{Middle LHS}\\ \framebox[4cm]{Bottom LHS} &= \! ...
2
votes
1answer
174 views

Using \limits in a customized \overset for superscript together with \sideset for subscript

I am trying to create a notation for a certain space. I am using a customized \overset in mrf's answer in this thread to suppress the extra vertical space. I still want the subscript on the right ...
0
votes
1answer
84 views

Choose which rows in multi-line equation to assign numbers to [duplicate]

If i do: \begin{align} a = b \\ b = c \\ c = d \\ \end{align} The output will be like: (1) a = b (2) b = c (3) c = d If I use algin* instead. No row will be ...
4
votes
1answer
1k views

Making large substack more readable?

I have the following code: \[\mathcal{I}(A,B) = \inf_{\substack{h : M\times I\rightarrow M\\ h(\cdot,t) \;homeomorphism\\ h(x,0) = ...
3
votes
4answers
261 views

How to create subset with sim symbol

I've been trying to typeset as an operator the symbol ⫇ (\subset on top a \sim), but the following solutions have not been helpful ⫇ does not seem to be listed in symbols-a4.pdf, so detexify does ...
2
votes
1answer
268 views

How to automatically scale `\mid` within delimiters

\mid within \left and \right delimiters is expected to be automatically scaled, but today I noticed such behavior: L = \sup \left\{ \sum_{x \in F} a(x) \mid F \subset X,\, |F| < \infty \right\}, ...
11
votes
4answers
171 views

Aligning the long equations

I have read all of the different solutions for fitting long formulas in a page, yet I am still not satisfied with the output I get. The formulas are right aligned which does not look good. Would you ...
7
votes
1answer
802 views

Add Overbrace to describe a column of matrix

I want to add some over-braces to a matrix to get the following output: However, this this what I managed to get: I don't know how to get the neuron 1 and neuron 2 headings...I was thinking of ...
4
votes
1answer
585 views

Remove unnecessary horizontal space from amsmath align between two &

How do you remove unnecessary horizontal space in an amsmath align environment between two &? Consider: \documentclass{article} \usepackage{amsmath} \begin{document} Version 1: \begin{align*} ...
1
vote
1answer
81 views

Equation number displaying problem

I used \eqref to reference two different equations (\eqref{eq1} and \eqref{eq2}) but it displays the same strange shape as shown below in the image. The equation numbers are 1 & 2, any help?
6
votes
1answer
685 views

What is the advantage of using the equation environment in latex?

My flatmate uses \flalign for all of his equations in LaTeX and after thinking about it, it makes sense. Is the \equation environment not just more restrictive? Is there ever an advantage to using 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 ...
8
votes
1answer
153 views

Align successive equations through the entire document

I am fairly new to TeX and need to create my math assignment with TeX. I have succeeded aligning all my calculations with the use of \begin{align*} and \intertext{}, however in my document i have ...
11
votes
1answer
566 views

stmaryrd and boldsymbol: avoid warnings

Here are two examples: 1 \documentclass[a4paper,10pt]{article} \usepackage{amsmath} \begin{document} $\boldsymbol x$ \end{document} 2 \documentclass[a4paper,10pt]{article} ...
3
votes
1answer
254 views

Indenting equations

I'm using amsmath[fleqn] but I'd like to also indent equations outside equation/align/gather environments. A natural choice would be to indent using the same length amsmath uses, but I don't know how ...
5
votes
1answer
143 views

Trouble creating properly aligned matrix within a matrix

I'm trying to insert parentheses around a group of elements creating a matrix within a larger matrix. So far I have this: \begin{equation} \begin{bmatrix} \begin{matrix} 0 & 0 \\ 0 & \omega_0 ...
3
votes
1answer
776 views

Spacing between equation and text inconsistent due to large equations

I've read through answers to similar question but I still have the same problem. Essentially, I have some large equations and they are in the form \documentclass{article} \usepackage{amsmath} ...
1
vote
1answer
141 views

Using split to break a long equation

I am trying to break a long equation over multiple lines. It is here as follows: \begin{equation} \begin{split} L(\textbf{q})=&\prod_{t=0}^{36}{q_{1}^{iB(t)sB(t+1)+iC(t)sC(t+1)}\\ &\quad\cdot ...
3
votes
1answer
95 views

Text inside Math

I tried doing this: \usepackage{amsmath} $x^2 \text{something} y^2$ but that just came out like: x^2somethingy^2 Anyone know how to fix this issue? I need to have text inside my math ...
3
votes
1answer
254 views

Emulating amsmath's \varGamma…\varOmega with unicode-math

While recompiling old documents with XeLaTeX and unicode-math I have run into the two problems: The amsmath \varGamma...\varOmega macros for slanted uppercase Greek math characters are not defined. ...
-1
votes
1answer
274 views

Vector Notation in optimization problems [closed]

I am typing optimization problems in latex. Half of the variables are vectors. First I used bold to mention vectors, but it looked ugly. Now I am using $\mathbbmss{p}$ but I am not sure if this looks ...
3
votes
5answers
6k views

Real numbers symbol in XeTeX

How can I get the 'real number' sign (something like \mathbb{R} with the amssymb package in LaTeX) in XeTeX?
1
vote
0answers
39 views

split problem between \left( and \right) [duplicate]

I have this equation, and strangely enough I can not split the equation from somewhere in between \left( and \right) If I use the \\ to split the equation after \right) then it works, I did not really ...
7
votes
1answer
505 views

Integral limits with amsmath in LuaLaTeX

Also reading the thread about Making integral ∫ use \limits by default with unicode-math I'm not quite happy with the solution. With pdfLaTeX I use the code \documentclass{article} ...
6
votes
1answer
3k views

Multiple labels in aligned environment

I would like to format an optimization problem by \documentclass{article} \usepackage{amsmath} \begin{document} We want to label each line separately. The inserted text and formulas have to be ...
6
votes
1answer
616 views

“Extra \fi” errors in equation environment with savetrees

I get the Extra \fi error for the \end{equation} line in the following code. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{savetrees} \usepackage{amsmath} \begin{document} ...
1
vote
1answer
95 views

change tag position in amsmath and xy-package

I use the amsmath-package and xy. Now I have a formulae like this \[ \label{eq-name} \tag{$\ast$} \xymatrix{ & A & B & C \\ D & & E & & F \\ & G & & H } \] ...
7
votes
1answer
137 views

Why do math operators not behave like normal control sequences?

From my experience, most control sequences function as an implicit group, for example g^\textrm{th}. However, if we look at the example below, the first line throws an error while the second line ...
11
votes
2answers
205 views

Manually controlled size of delimiters in macros

I am using the amsmath package and I'd like to control the size of my delimiters manually, i.e. using the \bigl, \Bigl, ... , \Bigr, \bigr commands, instead of \left, \middle, \right. Now I want to ...
6
votes
4answers
1k views

Centering equations within alignat command

I want to centre the formula inside the equals. So far I have \begin{alignat*}{2} v_2(16)&=\frac{2}{5}[v_3(32)+v_3(8)] &&= 0, \\ v_2(4)&=\frac{2}{5}[v_3(8)+v_3(2)] &&= ...
4
votes
1answer
272 views

Naming equations with breqn

I know that the tag command from amsmath should be used to name equations (see below a mwe). \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} c^2 &= a^2 + b^2 ...
5
votes
1answer
72 views

But why are the two sets of absolute parentheses different sizes?

Silly question maybe - but why are the two sets of absolute different sizes? Is there an easy way to set the size locally - or globally? \documentclass{article} \usepackage{amsmath} ...
5
votes
2answers
214 views

Writing math formula

Currently I'm having to write something like: I'm writing "q" in the denominator as |\vec{q}| using the "pipe"; is it the proper way to do it?
5
votes
1answer
2k views

How to fix this amsmath warning about redefining \vec

I am using the pss(b) template, which starts with, \documentclass[pss]{wiley2sp} % provides pss two-column style \usepackage{amsmath} %\usepackage{bm} % uncomment these two packages if ...