[texhax] parenthesis problem in LaTeX
Tom Schneider
toms at ncifcrf.gov
Wed Jan 14 02:40:45 CET 2009
Mike:
> If you use a single letter in the subscript and define it elsewhere, your
> problem is solved.
\newcommand{\ring}{\mbox{ring}}
\newcommand{\silent}{\mbox{silent}}
\newcommand{\rinc}{\mbox{ring}}
use \verb|\ring| and \verb|\silent|
\begin{equation}
H =
P_{\ring} \times \left( -\log_2 ( P_{\ring}) \right)
+
P_{\silent} \times \left( -\log_2 ( P_{\silent}) \right)
\end{equation}
use \verb|\rinc| and \verb|\silent|
\begin{equation}
H =
P_{\rinc} \times \left( -\log_2 ( P_{\rinc}) \right)
+
P_{\silent} \times \left( -\log_2 ( P_{\silent}) \right)
\end{equation}
\renewcommand{\r}{\mbox{ring}} % r is already defined!
\newcommand{\s}{\mbox{silent}}
use \verb|\r| and \verb|\s|
\begin{equation}
H =
P_{\r} \times \left( -\log_2 ( P_{\r}) \right)
+
P_{\s} \times \left( -\log_2 ( P_{\s}) \right)
\end{equation}
All of these failed.
Did you try your example? Please try.
Tom
Dr. Thomas D. Schneider
National Institutes of Health
National Cancer Institute
Center for Cancer Research Nanobiology Program
Molecular Information Theory Group
Frederick, Maryland 21702-1201
toms at ncifcrf.gov
permanent email: toms at alum.mit.edu
http://www.ccrnp.ncifcrf.gov/~toms/
More information about the texhax
mailing list