0

I cannot getting the erros in this code and facing "Something's wrong--perhaps a missing \item. \end{frame}" problem. The file given in this

\begin{frame}
\frametitle{Possible sources of UHE cosmic neutrinos}
\begin{itemize}
\graphicspath{{C:/Users/hhh/Desktop/Diagram/}}
\begin{figure}[h!]
    \centering
    \includegraphics[width=0.5\textwidth]{blazarneutrino.jpg}
    \caption{The accelareted protons at AGN jets interact with the ambiant photons or matter producing UHE neutrinos}
    \end{figure}
    \item \paragraph{\color{red}AGNs:} 
    \begin{equation}
     p+\gamma\rightarrow \Delta^+\rightarrow n+\pi^+\:\: ; p+X\rightarrow         \pi^\pm+Y
    \end{equation}
    \item leading to the production of UHE neutrinos through:
    \begin{equation}
    \begin{aligned}{}&
    \pi^+\rightarrow\mu^++\nu_\mu \:,\pi^-\rightarrow \mu^-+ \overline{\nu_\mu}\:,\mu^+\rightarrow e^++\overline{\nu_\mu}+\nu_e\\&
  \mu^-\rightarrow e^-+\nu_\mu+\overline{\nu_e}\:,\pi^0\rightarrow 2\gamma
    \end{aligned}
    \end{equation} 
    \end{itemize}

    \end{frame}

After making this

  \begin{frame}
  \frametitle{Possible sources of UHE cosmic neutrinos}
  \graphicspath{{C:/Users/SATYABRATA/Desktop/Diagram/}}
  \begin{figure}[h!]
   \centering
  \includegraphics[width=0.5\textwidth]{blazarneutrino.jpg}
  \caption{The accelareted protons at AGN jets interact with the ambiant     photons or matter producing UHE neutrinos}
  \end{figure}
  \begin{itemize}
  \item \paragraph{\color{red}AGNs:} 
  \begin{equation}
   p+\gamma\rightarrow \Delta^+\rightarrow n+\pi^+\:\: ; p+X\rightarrow    \pi^\pm+Y
   \end{equation}
  \item leading to the production of UHE neutrinos through:
  \begin{equation}
  \begin{aligned}{}&
  \pi^+\rightarrow\mu^++\nu_\mu \:,\pi^-\rightarrow \mu^-+\overline{\nu_      \mu}\:,\mu^+\rightarrow e^++\overline{\nu_\mu}+\nu_e\\&
  \mu^-\rightarrow e^-+\nu_\mu+\overline{\nu_e}\:,\pi^0\rightarrow 2\gamma
    \end{aligned}
    \end{equation} 
   \end{itemize}
   \end{frame}

It shows the same problem now "Undefined control sequence. \end{frame}"

  • Does \begin{figure}[h!] begin with \item? – egreg Jul 8 at 17:41
  • Giving this '\item' reduces one error but Undefined control sequence. '\end{frame}' remains – Dark Knight45 Jul 8 at 17:44
  • What makes you think that \item\paragraph{text} is good? It isn't. – egreg Jul 8 at 17:48
  • Thank u @egreg. – Dark Knight45 Jul 9 at 7:53
2

You may want to move the figure out of the itemize environment.

\documentclass{beamer}
\usepackage{amsmath}
\begin{document}
\begin{frame}
\frametitle{Possible sources of UHE cosmic neutrinos}
\begin{figure}[h!]
    \centering
    \includegraphics[width=0.5\textwidth]{example-image-duck}
    \caption{The accelareted protons at AGN jets interact with the ambiant photons or matter producing UHE neutrinos}
    \end{figure}
\begin{itemize}
    \item \textcolor{red}{AGNs}:
    \begin{equation}
     p+\gamma\rightarrow \Delta^+\rightarrow n+\pi^+\:\: ; p+X\rightarrow         \pi^\pm+Y
    \end{equation}
    \item leading to the production of UHE neutrinos through:
    \begin{equation}
    \begin{aligned}{}&
    \pi^+\rightarrow\mu^++\nu_\mu \:,\pi^-\rightarrow \mu^-+ \overline{\nu_\mu}\:,\mu^+\rightarrow e^++\overline{\nu_\mu}+\nu_e\\&
  \mu^-\rightarrow e^-+\nu_\mu+\overline{\nu_e}\:,\pi^0\rightarrow 2\gamma
    \end{aligned}
    \end{equation} 
    \end{itemize}

    \end{frame}
\end{document}
  • OK ITS WORKING ,THANKS – Dark Knight45 Jul 8 at 17:47
  • sorry my problem remains – Dark Knight45 Jul 9 at 6:49
  • @DarkKnight45 You need to replace \paragraph{\color{red}AGNs:} by \textcolor{red}{QGNs:} (which I did in my code and has meanwhile also been mentioned by egreg). – user121799 Jul 9 at 6:54
  • Thank u @marmot – Dark Knight45 Jul 9 at 7:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.