\begin{center}
\section*{\textcolor{blue}{Ukaaranta }}
\end{center}
\subsection*{Shabhu Harivat}
\addcontentsline{toc}{subsection}{shambhu harivat}
\begin{center}
\section*{\textcolor{blue}{Krostru Shabda}}
\end{center}
I have a need to create something like this, however when I run this program, it gives error at the second "\end{center}" Funny but the same command works above. did not do anything different just copy pasted and changed the text. Similar commands on elsewhere in the document work just fine. I have no clue why its behaving like this. Hit ? and R - enter and it gives the desired output but its a pain to do that every-time. Thanks for your help
