我找不到某些错误——可能缺少 \item。\end{frame}

我找不到某些错误——可能缺少 \item。\end{frame}

我无法获取此代码中的错误,并面临“出现问题 - 可能缺少 \item。 \end{frame}”问题。此处给出的文件

\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}

做完这个之后

  \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}

现在显示相同的问题“未定义的控制序列。\end{frame}”

答案1

您可能想要将图形移出环境itemize

\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}

相关内容