I want to scale down an equation and after trying lots of examples found on the internet I still cannot compile or see what is wrong. My code looks like:
\usepackage{graphicx}
....
\scalebox{0.7}{
\begin{equation} \label{eq_iinf}
entropy(C_j)=-{\sum_{c_j \in C_j}{P(c_j)\log_2 P(c_j)}}
\end{equation}
\begin{equation} \label{eq_P}
P(c_j)=\frac{fs(c_j)}{\sum_{c'_j \in C_j}{fs(c'_j)}}
\end{equation}
}
And the errors are very long, but it complains something like "missing $ inserted" and "you can't use eqno
in math mode"
which doesn't make any sense to me.
Best Answer
use
Otherwise you'll get two paragraphs inside
scalebox
. However, two equation environments can be replaced by one of thealign
environments fromamsmath
.