Tagged Questions
6
votes
1answer
134 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}
...
4
votes
2answers
155 views
Unhelpful, misleading errors in amsmath environments
With the simple equation environment;
\documentclass{article}
\usepackage{amsmath}
\begin{document}
\begin{equation}
a \foo b
\end{equation}
\end{document}
you can see a helpful error message, ...
2
votes
1answer
353 views
Missing $ error in math mode
I have the following LaTeX code (beginning from line 80):
\begin{definition}
$\hat{n}_{v}$ = \begin{cases}
$n_{v}$ & \text{ if } $v \in$ \text{connected component of size} $< ...
5
votes
1answer
100 views
Makeindex error when ! used in \index in align environment
See MWE below. The symbol ! in the \index causes an error. This is only the case in align environments (not in equation). So it seems to have to do something with amsmath. If ! is put in an \mbox ...
11
votes
1answer
357 views
Lost labels using intertext with varioref and hyperref
I have a problem using \intertext together with \vref when hyperref is also used. Consider the following minimal example:
\documentclass{article}
\usepackage{amsmath, varioref}
...
0
votes
1answer
516 views
Error using the package makeidx
My index is working smoothly with the command
\makeindex
alone. However, when I put
\usepackage{makeidx}\makeindex
compilation gives two errors as
1. Command \see already defined.
...
0
votes
1answer
3k views
Any reason why \blacksquare and \box are causing errors?
I am using the amsmath package. I just want a black box at the end of a proof, right-justified.
\blacksquare and \box both cause errors.
Actually, I'd prefer a musical quarter note if that's ...
2
votes
2answers
171 views
Unable to include equation featuring special symbols
I am designing an article, and using the amsmath package.
I tried to use the following to include an equation in my document:
\begin{equation}
|\psi\rangle = \alpha|0\rangle + \beta|1\rangle ...
0
votes
2answers
1k views
The argument of foo has an extra }.
I'm trying to write a command that does, effectively, an \fbox in something like an align environment. The following code works:
\usepackage{etextools}
\makeatletter
...
3
votes
1answer
8k views
using subequations
I have an equation consisting of two parts and would like to use subequation for that.
Here's the code:
\usepackage{amsmath}
\begin{subequations}
\begin{equation}
\operatorname{min}_{a,b,c}
...
2
votes
2answers
315 views
Why does \everydisplay conflict with gather and multline
When gather* is used together with \everydisplay an error is produced. Is there a possibility to make these work together?
Minimal working example:
\documentclass{ctexart}
\usepackage{amsmath,color}
...
8
votes
1answer
656 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 ...
4
votes
2answers
3k views
alignat problem
Whenever I try to use the alignat environment, it doesn't seem to work on my computer! I tried the following simple code (my file had \usepackage{amsmath}):
\begin{alignat}{3}
\min \quad x_1 ...