{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.
3
votes
1answer
26 views
Setting \predisplaypenalty to allow pages to have displayed equations at the top
If you're okay with letting pages have displayed equations at the top, what's a good value less than 10000 to set \predisplaypenalty to? I mean a value that allows pages to have displayed equations at ...
3
votes
2answers
63 views
Numbering of displayed math without using the equation environment
I know about align and equation environments, and tend to use them most of the time, but sometimes I like to have more flexibility within an array of equations, like better control on justification ...
0
votes
1answer
20 views
twocolumn article cases alignment issues
I use the following option twocolumn
\documentclass[11pt, twocolumn]{article}
Images and almost everything works nice.
However I face an issue with the mathmode cases
If my text is too long it ...
20
votes
3answers
431 views
How are big operators defined?
I would like to create a new "big operator", by which I mean something like the Σ character used for summations.
I know about the \DeclareMathOperator* command, which creates an operator whose ...
2
votes
1answer
84 views
Backreferences for equations
I'd like to put a list of pages, hyperlinked to the position of the \eqref or \cref that point to it in the margin of each \labeled equation, like backref does for bibliographies and \cite.
Both this ...
1
vote
0answers
41 views
\lesssim (and some others) not working
I'm writing a latex document and trying to use \lesssim (listed for example in here: http://en.wikipedia.org/wiki/Help:Displaying_a_formula#Relations ) in the text like this: $a \lesssim b$. However, ...
1
vote
0answers
60 views
Name of length for equation number indent if [leqno] is set
I got a weird phenomenon as shown in the picture below. The equation numbering is indented.
I tried the same thing in a fresh document and it produces the result I am looking for. For the other ...
5
votes
1answer
32 views
How to refer to the number of an item in an enumerate environment inside a theorem
I have something that looks like this:
\usepackage{amsmath}
\begin{document}
\begin{thm}
The following are true:
\begin{enumerate}
\item \label{foo} Foo
\item \label{bar} Bar
\item \label{baz} Baz
...
6
votes
1answer
45 views
Ignoring specific ampersand formatting on a specific line of an align block
I want to typeset a number of equations with some alignment constraints, but I want to partially ignore them on certain lines. An example formatted text might look like the following when it's ...
4
votes
1answer
71 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 ...
3
votes
1answer
64 views
Underlining fractions
I need to be able to underline equations involving fractions, which are aligned using the alignedat environment from amsmath. To be able to underline at all, I'm using the solution from this question ...
2
votes
1answer
34 views
How to get to use {align} with an unusual document class?
So I'm required to use a particular documentclass, "llncs", which for some reason is preventing me from using {align}. Is there an alternative that I can use?
The beginning of my tex file
...
12
votes
2answers
83 views
vertical dotted line in column vector / amsmath matrix
I would like to typeset the following set of equations:
... but with contiguous, vertical dotted lines in the column vectors, such that the top and bottom rows of the matrix and of the vectors are ...
4
votes
5answers
87 views
Right superscript dot
I would like to achieve the following: a dot right of an expression
with this minimal example
\documentclass{article}
\usepackage{amsmath}
\usepackage{accents}
\newcommand{\dotr}[1]{%
...
2
votes
1answer
44 views
Aligning equality sign with overset text
I'm typing a logic definition within an align environment that uses \overset{def}{=} from the amsmath environment.
However, the new sign is aligned vertically based on the equality sign, and not on ...
5
votes
2answers
57 views
Uneven spacing around ellipsis in $[A_1;\dotsc;A_n]$
I've noticed that when a \dotsc has a semicolon on each side, there's uneven space around the ellipsis created. With
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{align*}
...
3
votes
3answers
78 views
How to simply center equations using eqnarray*?
So I have this code here:
\begin{eqnarray*}
x + (y - 2)^4 = w^2 \\
(x - 9)^2 + y_2^2 = w^2 \\
x + (y - 2)^4 = w^2 = (x - 9)^2 + y_2^2 \\
\end{eqnarray*}
As you can see, I get the ...
5
votes
1answer
60 views
(Nonfatal but Symptomatic) Conflict of amsmath and mathstyle Packages
This was brought to my attention by our colleague, Lover of Structure, but since it affects my scalerel package (which began using the mathstyle package to detect the current math style, as of version ...
5
votes
1answer
65 views
Annotated equations
I need many of my equations to have annotations stating their domain of validity, or certain conditions for which the equation is true. Preferably, these would be flush right against the equation ...
0
votes
0answers
47 views
Is it possible to remove chapter number from align environment? [duplicate]
Basically I have written a proof using the align environment in a new .tex file and the numbers in the proof came like this (how I want them):
Line1 (1)
Line2 (2)
Line3 (3)
Now I've ...
12
votes
2answers
82 views
Input manually a number into \eqref
Often while writing papers I find the need to cite particular equations from other papers. For example, the landmark paper by Einstein, Newton, and White (2015) lays out the theory of everything in ...
2
votes
0answers
100 views
LaTeX is not compiling consistently
I am really new to LaTeX, so it's possible I'm making some egregious error that I'm not aware of, but my documents are compiling inconsistently. By that I mean it compiles correctly maybe one in ...
8
votes
3answers
124 views
Numbering a set of horizontally distributed equations
Having different horizontally distributed equations inside an align environment, only lines are numbered, but not individual equations.
How can the left equations be numbered using subequations? ...
2
votes
3answers
88 views
Grouping two lines inside align environment to put smth. to the left of them
I have an equation which is alligned at 1st equal sign like this:
\begin{align}
a &= b + c \nonumber\\
d &= e + f \label{eq1}\\ %this is row 1
g &= h + i \nonumber\\ %this is ...
9
votes
4answers
166 views
Curved arrow describing a step in a mathematical derivation
Is it possible to achieve something like this in LaTeX?
I want a curved arrrow pointing from 1st line to the other line and is coupled with an equation number which indicates the equation used. I ...
2
votes
2answers
42 views
“\bar allowed only in math mode” error
When I run
\begin{align*}
\textit{m}(A) &=a&, \\
\textit{\bar{A}} &=1-a& \\
\textit{m}(B) &=0& &\text{for} B \neq A \text{ or} B \neq \bar{A}
\end{align*}
I get the ...
1
vote
1answer
76 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
31 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
63 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
99 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 ...
0
votes
0answers
82 views
Numbered equation makes small sum operator
I am using the followig:
\chapter{Theoretical framework}
\section{Econometric framework}
\begin{equation}
{r^{h}_{t+1}}=
\alpha+\beta x_{t} + u^{h}_{t}
\end{equation}
%random test equationn
...
6
votes
1answer
56 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 ...
13
votes
5answers
264 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}
...
2
votes
1answer
54 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
95 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
90 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
49 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
53 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
40 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
123 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
78 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
...
8
votes
2answers
169 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
53 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
63 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
50 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
0answers
91 views
why wont this \therefore command work? [closed]
I want to type this but I am getting an error message
\begin{align} % (15) &a_n = \int_{0}^{1} (X - 1) \sin (n \pi X) \mathrm{dx} = \frac{-1}{n \pi} \\\\ \nonumber
\therefore ~~~~ &V(X,T) ...
0
votes
1answer
58 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
95 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
85 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
56 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\},
...