추가 } 또는 $ \end{frame}을 잊어버리고 $를 누락하여 \end{frame} 삽입

추가 } 또는 $ \end{frame}을 잊어버리고 $를 누락하여 \end{frame} 삽입

나는 지금까지 이것을 컴파일하기 위해 오랜 시간을 노력하고 있습니다. 그리고 다음과 같은 오류가 나타납니다.

Missing $ inserted \end{frame}
Extra }, or forgotten $ \end{frame}
Missing $ inserted \end{frame}
Missing $ inserted \end{frame}

코드가 크기 때문에 제가 작업해 온 부분을 포함하겠습니다.

\documentclass[trans,9pt]{beamer}
\usepackage[spanish]{babel}
\usepackage[latin1]{inputenc}
\usepackage{lmodern}
\usepackage{bookmark}
\usepackage{graphicx}
\usetheme{Madrid}
\usecolortheme{wolverine}
\hypersetup{urlcolor=blue}
\tiny



\title{Comparaci\'on entre fotones y leptones sin carga}
\subtitle{Los neutrinos y fotones para ver el universo}
\author{Pablo \'Alvarez Rodr\'iguez}
\institute{Universidad de Oviedo}
\subject{F\'isica Moderna}

\begin{document}

\begin{frame}
\titlepage
\begin{center}
\includegraphics{UNIOVIlogo.jpg}
\end{center}
\end{frame}

\begin{frame}
\frametitle{\'Indice}
\tableofcontents

\end{frame}

\begin{frame}
\section{Introducci\'on}
\frametitle{Introducci\'on}
\begin{itemize}
\item Realizar\'e una comparativa entre neutrinos y fotones  con respecto a   su eficiencia en la astrof\'isica de part\'iculas. \pause
\item Expliar\'e los fen\'omenos necesarios para la producci\'on de neutrinos y fotones. \pause
\item Hablar\'e de algunos experimentos en los que se estudia esta disciplina. \pause
\end{itemize}
\end{frame}

\section{Breve repaso a part\'iculas elementales}
\begin{frame}
\frametitle{Breve repaso a part\'iculas elementales}
\begin{center}
\includegraphics[height=7.5cm, width=7.5cm, keepaspectratio]{particulaselementales.png}
\end{center}
\end{frame}
\subsection{Leptones}

\begin{frame}
\frametitle{Leptones}
Aqu\'i se encuentran:
\begin{itemize}
\item Los electrones, con masa $0.511 MeV$ y carga el\'ectrica $-1$ \pause
\item Los muones, con masa $105,66 MeV$ y carga el\'ectrica $-1$ \pause
\item Los tauones, con masa $1777 MeV$ y,carga el\'ectrica $-1$ \pause
\item Y los neutrinos, que son tres, y tienen la particularidad de no tener carga: \pause
\begin{itemize}
\item neutrino electr\'onico $\nu_e$. Su masa es menor que $2 eV$\pause
\item neutrino mu\'onico $\nu_\mu$. Su masa es menor que $0.19 MeV$\pause
\item neutrino tau\'onico $\nu_\tau$.Su masa es menor que $18.2 MeV$\pause
\end{itemize}
\item Todas tienen spin $1/2$; por lo que obedecen a la estad\'istica de Fermi-Dirac \pause
\end{itemize}
\end{frame}

% And therefore, for the bibliography, after non-used-right-now-text:

\begin{frame}
\frametitle{Bibliograf\'ia}
\begin{thebibliography}{10}
\setbeamertemplate{bibliography item}[book]
\bibitem{Author}
\newblock{\emph{F\'isica para la ciencia y la tecnolog\'ia} Volumen 3: F\'isica Moderna}
\newblock Paul A. Tipler y Gene Mosca
\newblock 6\textsuperscript{a} edici\'on 2012
\setbeamertemplate{bibliography item}[book]
\bibitem{Author}
\newblock{\emph{F\'isica Te\'orica} Volumen 3: Mec\'anica Cu\'antica}
\newblock B. G. Levich
\newblock 1\textsuperscript{a} edici\'on 1974
\setbeamertemplate{bibliography item}[online]
\newblock Wikipedia: Leptones
\newblock \url{http://es.wikipedia.org/wiki/Lept\%C3\%B3n}
\setbeamertemplate{bibliography item}[online]
\newblock Información sobre Tauones
\newblock \url{http://astrojem.com/teorias/tauones.html}
\end{thebibliography}

\end{frame}

\end{document}

나는 몇 시간 동안 일해 왔으며 지금까지 PDF가 만들어지지 않았지만 다음 오류가 발생했습니다.

Missing $ inserted \end{frame}
Extra }, or forgotten $ \end{frame}
Missing $ inserted \end{frame}
Missing $ inserted \end{frame}

어디가 문제인지 모르겠어서 많이 수정했습니다. 도움?

답변1

문제를 찾으려면 코드 덩어리를 주석 처리하면 됩니다. 오류가 계속되면 주석 처리된 코드는 (적어도 해당 오류에 대해서는) 책임이 없습니다. 그렇지 않으면 문제는 주석 처리된 코드에 있어야 합니다. 이 방법을 사용하면 문제를 참고문헌의 최종 항목으로 분리할 수 있습니다.

여기서 문제는 유니코드 인코딩으로 보이는 것을 사용하여 악센트 문자를 직접 입력했지만 입력 인코딩이 이라고 TeX에 알렸다는 것입니다 latin1. 이제 많은 편집자들은 기본적으로 UTF8 인코딩을 사용하므로 인코딩을 명시적으로 설정하지 않은 경우 그럴 수도 있습니다. 파일이 해당 인코딩에 있어야 하는 경우 파일이 실제로 인코딩되었는지 확인하거나 latin1악센트에 마크업을 사용해야 합니다(이 경우 inputenc전혀 필요하지 않음).

\documentclass[trans,9pt]{beamer}
\usepackage[spanish]{babel}
%\usepackage[latin1]{inputenc}% if the file is really encoded this way

\begin{document}

  \begin{frame}
    \frametitle{Bibliograf\'ia}
    \begin{thebibliography}{10}
      \setbeamertemplate{bibliography item}[online]
      \newblock Informaci\'on sobre Tauones
      \newblock \url{http://astrojem.com/teorias/tauones.html}
    \end{thebibliography}

  \end{frame}

\end{document}

또는 파일에 유니코드 인코딩을 사용할 수 있는 경우 문자를 직접 입력하고 옵션을 다음으로 변경할 수 있습니다 inputenc.

\documentclass[trans,9pt]{beamer}
\usepackage[spanish]{babel}
\usepackage[utf8]{inputenc}

\begin{document}

  \begin{frame}
    \frametitle{Bibliograf\'ia}
    \begin{thebibliography}{10}
      \setbeamertemplate{bibliography item}[online]
      \newblock Información sobre Tauones
      \newblock \url{http://astrojem.com/teorias/tauones.html}
    \end{thebibliography}

  \end{frame}

\end{document}

에 비추어 편집됨데이빗의 코멘트이제 적어도 덜 부정확해지기를 바랍니다.

관련 정보