Double subscript and ! Missing { inserted in LaTeX?

by Neelofar Javaid   Last Updated May 15, 2018 18:23 PM

If $\textit{P}_{\textit{i}}$ is given tile \big($\textit{u,v}$\big), 
then Prob\big($H_p__i, _(u,v)$\big) = 1 while, 
Prob\big($H_p__j, _(u,v)$\big) = 0, for all j $\neq$ i. 

Why I am getting error ! Double subscript and ! Missing { inserted in LaTeX?



Answers 1


The character $ is not for printing “special symbols” such as \neq, but for whole mathematical formulas.

\documentclass[a4paper]{article}
\usepackage{amsmath}

\DeclareMathOperator{\Prob}{Prob}

\begin{document}

If $P_{i}$ is the given tile $(u,v)$, then $\Prob(H_{P_{i},(u,v)}) = 1$,
while $\Prob(H_{P_{j},(u,v)}) = 0$, for all $j\neq i$. 

\end{document}

I fixed p_{i} into P_{i}: I don't think there should be different symbols, should they?

There's no need to use \big, which adds nothing to clarity in this case. Anyway, it should go inside the math formula

$\Prob\bigl(H_{P_{i},(u,v)}\bigr) = 1$

enter image description here

egreg
egreg
May 15, 2018 17:54 PM

Related Questions


Weird compilation error

Updated July 15, 2017 17:23 PM

\textsubscript not working anymore after update

Updated June 05, 2015 22:10 PM

Subscript on $\rangle$

Updated May 18, 2015 21:10 PM

How to typeset subscript in usual text mode?

Updated May 20, 2015 03:10 AM

Question about font size of a subscript

Updated June 27, 2015 18:10 PM


Cache file /home/queryxchang/public_html/apps/frontend/config/../cache/-q-24-431732-double-subscript-and-missing-inserted-in-latex- could not be written