{amsmath} is a package provided by AMS that enhances LaTeX's mathematical typesetting capabilities in various ways.
8
votes
3answers
1k views
Cases with square brackets
How can I subdivide in cases with square brackets?
I mean I want to write:
⌈ 2_i if ...
rank (q, l) = | 2_i + 1 if ...
⌊ ....
with square brackets, not ...
8
votes
2answers
632 views
How to get the AMS mathbb font while using Palatino elsewhere
I'm a Latex user. I've been using Palatino for typesetting a piece mathematical text:
\usepackage{mathpazo}
\usepackage[scaled=.95]{helvet}
\usepackage{courier}
The results are good, however I ...
8
votes
2answers
635 views
\frenchspacing not setting the space factor codes correctly?
When I type \showthe\frenchspacing, I get the following output:
> \frenchspacing=macro:
->\sfcode `\.1006\sfcode `\?1005\sfcode `\!1004\sfcode `\:1003\sfcode `\;1002\sfcode `\,1001 .
Shouldn't all ...
8
votes
3answers
113 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? ...
8
votes
2answers
596 views
Difference between (split, align) and (gather, aligned)?
Here is an MWE which shows that they seem to do the same thing. Is there any reason to prefer one over the other for typesetting groups of equations? I would prefer the align syntax because it allows ...
8
votes
3answers
414 views
Clash between aligned environment and TikZ?
The following code mis-renders the multi-line label:
\documentclass{article}
\usepackage{tikz}
\usepackage{amsmath}
\begin{document}
\begin{equation}
\begin{aligned}
\begin{tikzpicture}
\node (A) at ...
8
votes
5answers
3k views
How to properly subscript in a superscripted fraction?
the title says it all. It attached a MWE to display the different relative sizes of a subscript within a normal fraction and a superscripted fraction. As you can see, in the superscripted fraction the ...
8
votes
4answers
430 views
Better transitive closure of labelled arrow
I think the answer will be easy, but I haven't found it yet:
I use labelled arrows like \xrightarrow\tau a lot.
Sometimes, I need the transitive closure of such relations, which I write
...
8
votes
3answers
298 views
\left and \right in equation across multiple lines [duplicate]
Possible Duplicate:
Left/Right across multiline equation
Could someone explain why I can't get the left and right commands to work correctly
code:
\documentclass{article}
...
8
votes
1answer
1k views
\hbar new letter
I would want to know in which package the symbol \hbar is defined. In fact I ask this because I need to create a letter like \hbar but with 'k' instead of 'h'.
8
votes
1answer
655 views
Amsmath has problems with $e^{\sum{x}}$
Running the code:
\documentclass{article}
\usepackage{amsmath}
\begin{document} Test: $e^{\sum{x}}$ \end{document}
Dies, yet it runs just fine with the \usepackage{amsmath} commented out. The logs ...
8
votes
1answer
203 views
Interaction between \hdotsfor and colortbl: Bug/Feature?
When using package colortbl, the command \hdotsfor fails (partially), leaving too much white space before and after the dotted part. The mwe
\documentclass{book}
\usepackage{colortbl}
...
8
votes
2answers
709 views
\mathrel conflict with \left,\right,\middle
I refer to this question and particularly to this answer. I defined \set by
\usepackage{mathtools}
...
\DeclarePairedDelimiterX\set[2]{\{}{\}}{#1 \mathrel{\delimsize|} #2}
where ...
8
votes
1answer
138 views
Correct usage of \ifmmode
Seems that there is some subtlety in using \ifmmode that I am not aware of. For some reason, using:
\newcommand{\hlcodeA}[1]{\ifmmode\else\small\fi\texttt{\hilight{#1}}}%
is not quite identical ...
8
votes
1answer
412 views
Is there a left-handed equivalent of \implies?
I’m aware of and use the \implies and \iff commands to denote right-handed implication and if and only if (so A=>B and A<=>B). I’ve been looking for a similar command for left-handed implication ...
8
votes
1answer
191 views
\vec{p_{\bar p}} renders strangely
When I do:
\vec{p_{\bar p}}
I get:
instead of
with the \vec shifted over a bit. Why does this happen?
(Also, \vec{\mbox{p_{\bar p}}} renders identically, even though \mbox{p_{\bar p}} looks ...
8
votes
1answer
142 views
What causes this strange interaction between glossaries and amsmath?
MWE: greatly trimmed from a large document; XeLaTeX; full TeXLive2012 completely up-to-date:
\documentclass{memoir}
\usepackage{fixltx2e}
\usepackage{amsmath}
\usepackage{mathspec}
...
8
votes
2answers
1k views
Increase spacing in split environment
I'm writing long equations with the split environment:
\begin{equation}
\begin{split}
...
\\
...
\\
...
\end{split}
\end{equation}
The problem is that the single lines are a bit high, and there is ...
8
votes
2answers
156 views
minipage is wider than I wanted
Occasionally, the width of a minipage environment seems to be ignored. I've not kept accurate records of when this has happened. But below is purely illustrative code that shows the issue.
...
8
votes
1answer
1k views
How to use more than 10 tab stops in \bmatrix?
I'm using bmatrix environment from the amsmath package, and I'm trying to do something like this:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
...
8
votes
3answers
150 views
\qed or \qedhere at the end of split environment
While I was trying to improve my latest document with respect to its \qed symbols at the end of amsthm's proof environment i came across an interesting point. Assume the proof ends with some formula, ...
8
votes
1answer
320 views
\eqref to give reference to a sequence of subequations
Suppose I have the following code
\begin{subequations}
\begin{align}
a+b = c \label{eq.1}\\
d+e = f \label{eq.2}
\end{align}
\end{subequations}
I want now that upon giving the reference, it ...
8
votes
1answer
219 views
Alternative ways to format the cases environment in display math-mode
The cases environment of amsmath package is useful for defining a function that takes different values in different regions. For example:
\documentclass{article}
\usepackage{amsmath}
\begin{document}
...
8
votes
1answer
680 views
Referencing subequations with cleveref
I try to refer to the parent number of subequations with \cref from the cleveref package. However, I would like to change the output "eq. (...)" into "eqs. (...)" when I refer to parent numbers ...
8
votes
2answers
124 views
Lower overbrace in math enviroment
I would like to achieve the following inside an math environment
But i can't get the text below the equation
\operatorname{min} \left|
\overbrace{\text{Hadamard product}}^{\begin{pmatrix}
X \circ X ...
8
votes
1answer
321 views
The font of operator names
What is the correct way of having all operator names be set in, say, sans serif? Saying
\documentclass{article}
\usepackage{amsmath}
\makeatletter
\def\operator@font{\sf}
\makeatother
...
8
votes
1answer
292 views
ignoring vertical space due to overbraces in cases environment
In the following formula, I would like to change the rendering such that the lower end of the "cases" brace looks as if there were no underbraces. Is that possible? I already tried \smash and negative ...
8
votes
2answers
177 views
Revtex's tensor macro interferes with nested amsmath split and align environments
I've encountered a strange collision between RevTeX and AMSLaTeX. If I nest a split environment inside an align environment, it works as it should, but then the next time I use the RevTeX \tensor{} ...
8
votes
2answers
612 views
Equation numbering problems in AMSMath environments with \pause
I'm writing a beamer presentation, and trying (unsuccessfully) to use \pause to step through a numbered array of equations, with the equations appearing in turn, and the corresponding numbers ...
8
votes
1answer
87 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 ...
7
votes
2answers
382 views
In exponents, parenthesis too small, \big too big
When something big (a fraction, a sum, an integral...) appears within a pair of parenthesis, one can typically use \left(...\right) to get delimiters large enough to surround the contents. The ...
7
votes
3answers
813 views
How to put your symbol explanation for the formula?
I have a formula written in LaTeX. What is the best way to explain what the symbols mean in the formula?
For example I have this equation with a where: symbol definitions
\begin{equation}
...
7
votes
2answers
228 views
Is $ … $ okay to use, while $$ … $$ is not recommended? [duplicate]
Possible Duplicate:
Are \( and \) preferable to $?
According to Why is \[ ... \] preferable to $$?, $$ ... $$ should not be used. My understanding is, it is because $$ ... $$ is not ...
7
votes
5answers
5k views
\qed for theorems without proofs
It is common to place a \qed-Box at the end of a theorem statement (or lemma, corollary, ...) if we give no proof for that statement.
How can I do this in LaTeX? If I place a qed-box at the end of ...
7
votes
3answers
147 views
How to force alignment of “cases” brackets in an enumerate environment?
I am using the enumitem and amsmath packages to give the recursive definition of the valuation function $\nu$ for classical first order logic. The way I have it set up, the brackets of the cases are ...
7
votes
3answers
173 views
How do I make the \min and max bold?
Refering to this question
How to make the table fit into the column?
How should I make the \min and \max bold?
7
votes
2answers
292 views
Workaround for align without using amsmath
I'm preparing a manuscript for a journal that demands a style file (copernicus2.cls) that's not compatible with amsmath. I want to display some aligned equations, but the lack of amsmath means I can't ...
7
votes
2answers
954 views
Putting equations in \intertext to annotate a proof
I'm trying to typeset a proof with Latex. When I do proofs, I like to alternate between a line of text, to explain each step, and the resulting equation. I also like to have the equations align at the ...
7
votes
2answers
188 views
How to stop fractions in display equations from running into each other?
Is there some standard way to create multiple display equations like the following
without having to use:
\renewcommand*{\arraystretch}{2} (so that the two rows in the second equation don't get ...
7
votes
2answers
790 views
multline inside gather?
I have 3 related equations, two of them do not fit on a single line.
I want to present them in a gather-environment, but how to do linebreaks inside equations? multline does not work inside gather.
...
7
votes
1answer
115 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 ...
7
votes
1answer
125 views
\ifmmode self-contradictory in amsmath (OK in just LaTeX)
File:
\documentclass[11pt]{article}
\usepackage{amsmath}
\newcommand{\argghhh}{\relax\ifmmode\bar\else\expandafter\=\fi}
\begin{document}
$ \argghhh a $
\end{document}
produces error (but ...
7
votes
1answer
105 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 ...
7
votes
3answers
734 views
Tagging under an equation using underbrace
I would like to tag two parts of a huge equation using underbraces (and call them, say term A and term B). Later in the text, I want to talk about term A and term B. Is there a way to tag and label ...
7
votes
1answer
2k views
Why does amsmath print a warning about a foreign command?
I was wondering what was the cause of the following warning message with the specific \usepackage used below:
Using the following:
Preamble
\documentclass[amssymb,twocolumn,aps]{revtex4}
...
7
votes
1answer
141 views
alignment problem
I have the following:
\documentclass{article}
\usepackage{nicefrac}
\usepackage{amsmath,amssymb}
\begin{document}
\begin{align*}
f_X(x)&=\frac{1}{2 \pi} \exp ( -x^2/2 ) &\forall x \in ...
7
votes
1answer
252 views
Diagnosing the “too many math alphabets” error
I recently hit up against TeX's "too many math alphabets" error. I'm trying to diagnose what is using up my math alphabets, as I can't work out where they are going. Of course, I could just start ...
7
votes
1answer
3k views
Span formula over multiple pages.
I've looked through the search but I couldn't find what I specifically want.
I have the following
\begin{equation}
\begin{split}
Very long equation
\end{split}
\end{equation}
Now, I have half a ...
7
votes
2answers
288 views
Is it possible to typeset text inside math without amsmath?
Is it possible to typeset text properly inside math without amsmath?
Typically I typeset short text using mathrm, or text (amsmath) within equation:
$M_\mathrm{effective mass}$
$M_\text{effective ...
7
votes
2answers
106 views
How to align terms in separate lines in this case?
I want to get another variant for the alignment points in my question answered by Hendrik Vogt, see How to construct a long equation that is split in LHS and RHS to occupy a narrow column?.
...


