LaTex 投影机出现未定义的控制序列错误

LaTex 投影机出现未定义的控制序列错误

我无法使用此代码

%\documentclass{beamer}
\documentclass[handout,t]{beamer}
\usepackage{graphicx,url}
\usepackage[brazil]{babel}  
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{wrapfig,lipsum}
\usepackage{ragged2e}
\usepackage{etoolbox}
\batchmode
\usepackage{amsmath,amssymb,enumerate,epsfig,bbm,calc,color,ifthen,capt-of}
\usetheme{Berlin}
\usecolortheme{senac}

%-------------------------Titulo/Autores/Orientador------------------------------------------------
\title[IGTDT Centre]{Activities}
\subtitle{ Meeting}
\institute[]{\large IGTDT Centre \\ GYUHJUYT}
\date{27th June - 2017}
\author[ Meeting]{JACK katil}

%-------------------------Logo na parte de baixo do slide------------------------------------------
%\pgfdeclareimage[height=0.7cm]{iccsir_logo3}{iccsir_logo3}
%\logo{\pgfuseimage{iccsir_logo3}\hspace*{0.5cm}}

%-------------------------Este código faz o menuzinho bacana na parte superior do slide------------
\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Outline}
    \tableofcontents[currentsection]
  \end{frame}
}
\beamerdefaultoverlayspecification{<+->}
% -----------------------------------------------------------------------------
\begin{document}
% -----------------------------------------------------------------------------

%---Gerador de Sumário---------------------------------------------------------
\frame{\titlepage}
\section[]{}
\begin{frame}{Contents}
  \tableofcontents
\end{frame}
%---Fim do Sumário------------------------------------------------------------


% -----------------------------------------------------------------------------
\section{Past Years’ activities}
\begin{frame}{Past 5 Years’ activities}
\begin{itemize}
    \item  Dipole and sea salinity

    \item  rainfall over  region
    \item Satellite data of cloud –  climatology    
\end{itemize}
\end{frame}
%------------------------------------------------------------------------------

%------------------------------------------------------------------------------

\begin{frame}{Next Years’ activities}
\begin{itemize}
    \item  change mitigation

    \item Study of ground water over 

    \item Building 

    \item Weather 

\end{itemize}
\end{frame}
%------------------------------------------------------------------------------
\section{SWOT}
\begin{frame}{SWOT Ana}
\begin{column}{1\textwidth}
    \includegraphics[width=\textwidth]{SWOT}
\end{column}
\end{frame}

%------------------------------------------------------------------------------
\section{El Niño-2017}
\begin{frame}{El Niño Condition}
\centering
\includegraphics[width=10cm, height=5cm]{Elnino-2017}
\begin{itemize}
    \item Normal conditions are present.

    \item Equatorial sea surface temperatures (SSTs) are near-to average in the central and east-central Pacific Ocean. 

\end{itemize}
\end{frame}
%------------------------------------------------------------------------------
\begin{frame}[c]{El Niño Condition}
\centering
\vspace{3}
\includegraphics[scale=0.4]{Elnino-2017A}
\begin{itemize}
    \vspace{3}
    \item In absence of El Nino, the Southwest Monsoon 2017 is expected to be NORMAL.

\end{itemize}
\end{frame}
%------------------------------------------------------------------------------

%------------------------------------------------------------------------------
\section{Seasonal Monsoon Forecast}
\begin{frame}{Seasonal Monsoon Forecast-USA Model}
    \begin{columns}[onlytextwidth,T]
        \begin{column}{.54\textwidth}
            \includegraphics[width=\textwidth]{SW-MONSOON-USA1}
        \end{column}
        \begin{column}{.47\textwidth}
            \begin{itemize}
                \item Part of normal rainfall
                \item During later possible.
            \end{itemize}
        \end{column}
    \end{columns}
\end{frame}
%------------------------------------------------------------------------------
\begin{frame}{Seasonal Monsoon}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.6\textwidth}
        \includegraphics[width=\textwidth]{SW-MONSOON}
    \end{column}
    \begin{column}{.43\textwidth}
        \begin{itemize}
            \item The rainfall during summer 
            \item Part of  normal rainfall.
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


%------------------------------------------------------------------------------

%------------------------------------------------------------------------------
\section{South America Rainfall}

    \begin{frame}{South America Rainfall }
    \begin{columns}[onlytextwidth,T]
        \begin{column}{.4\textwidth}
            \includegraphics[width=\textwidth]{Monsoon-Brazil}
        \end{column}
        \begin{column}{0.6\textwidth}
            \begin{itemize}
                \addtobeamertemplate{block begin}{}{\justifying}
                \item\justifying Brazil : In their June Crop Report
                \item Sorghum and rice  practically unchanged.

            \end{itemize}
        \end{column}
    \end{columns}
\end{frame}


%------------------------------------------------------------------------------

\begin{frame}{South America (Brazil and Argentina) : Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.4\textwidth}
        \includegraphics[width=\textwidth]{Monsoon-Brazil1}
    \end{column}
    \begin{column}{0.6\textwidth}
        \begin{itemize}
            \addtobeamertemplate{block begin}{}{\justifying}
            \item\justifying Wheat production  more with a projected production of 31.5 million tons. 

        \end{itemize}
    \end{column}
\end{columns}
\end{frame}

%------------------------------------------------------------------------------

% -----------------------------------------------------------------------------
 \section{}
 \begin{frame}[c]
 \centering

 \textbf{\large Thank You for the attention}\\
   \vspace*{1cm}     
    Suggestions for providing additional services /informations are most welcome 

\end{frame}
% -----------------------------------------------------------------------------
\section{Monsoon Rainfall-2017}
\begin{frame}{Cumulative Rainfall as on 25th June, 2017}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{MONSOON}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
            \item Country =  - 1 \% 
            \item Ka \& So region : Rainfall = - 52 \% 
            \item Kon \& region: Rai= - 3 \% 
            \item Marfall = + 47 \%
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


% -----------------------------------------------------------------------------
\begin{frame}{District wise Cumulative Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{SW-MONSOON-CUMULATIVE-IMD3B}
    \end{column}
    \begin{column}{.48\textwidth}
        \begin{itemize}
            \item\justifying Centralred zones).

            \item\justifying The exd normal rainfall (Green and blue zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


%-----------------------------------------------------------------------------

\begin{frame}{District wise Cumulative Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{SW-MONSOON}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
            \item\justifying Most part of the
            \vspace{3} 
            \item\justifying   some part ofrainfall (Red zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}
\end{document}
-----------------------------------------------------------------------------

%-----------------------------------------------Este comentario nunca aparecera

错误信息:

line 82: Undefined control sequence. \end{frame}
line 82: Undefined control sequence. \end{frame}
line 82: Undefined control sequence. \end{frame}
line 82: Package keyval Error: undefined. \end{frame}
line 82: Undefined control sequence. \end{frame}
line 82: Undefined control sequence. \end{frame}
line 82: Undefined control sequence. \end{frame}
line 106: Illegal unit of measure (pt inserted). \end{frame}
line 106: Illegal unit of measure (pt inserted). \end{frame}
line 137: File `SW-MONSOON' not found. \end{frame}
line 207: File `MONSOON' not found. \end{frame}
line 242: File `SW-MONSOON' not found. \end{frame}
line 242: Illegal unit of measure (pt inserted). \end{frame}
line 95: Overfull \vbox (0.40567pt too high) detected
line 123: Overfull \hbox (3.0712pt too wide) detected
line 137: Overfull \hbox (9.2183pt too wide) detected

答案1

无论你使用什么编辑器,都请使用另一个可以显示完整错误消息而不仅仅是第一行的编辑器。这样你就能知道代码中的问题出在哪里。

两个主要问题

  • 你不能使用环境column之外columns
  • 你不能使用\vspace{3}没有单位的,例如它应该是\vspace{3pt}或你在选择时想到的任何单位3

其他的建议:

  • 你不需要

    \usepackage{graphicx}, \usepackage{etoolbox}, \usepackage{enumerate}, \usepackage{color}

    Beamer 为您加载所有这些包

  • 我没有\usecolortheme{senac}。如果这导致问题,请包含一个可以找到此文件的链接

  • 仅指定图像的宽度或高度,而不是两者,这将在 99.9999% 的情况下扭曲图像。

  • 大多数列都太大了,例如,如果合并\begin{column}{.54\textwidth}\begin{column}{.47\textwidth}如果不进入边距,就无法将其放在框架上

  • 为什么你有\addtobeamertemplate{block begin}{}{\justifying}itemize 环境内部?


%\documentclass{beamer}
\documentclass[handout,t]{beamer}
%\usepackage{graphicx}
\usepackage{url}
\usepackage[brazil]{babel}  
\usepackage[utf8]{inputenc}
\usepackage{setspace}
\usepackage{mathtools}
\usepackage{wrapfig,lipsum}
\usepackage{ragged2e}
%\usepackage{etoolbox}
%\batchmode
\usepackage{amsmath,amssymb}
%\usepackage{enumerate}
\usepackage{epsfig,bbm,calc}
%\usepackage{color
\usepackage{ifthen,capt-of}
\usetheme{Berlin}
%\usecolortheme{senac}

%-------------------------Titulo/Autores/Orientador------------------------------------------------
\title[IGTDT Centre]{Activities}
\subtitle{Meeting}
\institute[]{\large IGTDT Centre \\ GYUHJUYT}
\date{27th June - 2017}
\author[ Meeting]{JACK katil}

%-------------------------Logo na parte de baixo do slide------------------------------------------
%\pgfdeclareimage[height=0.7cm]{iccsir_logo3}{iccsir_logo3}
%\logo{\pgfuseimage{iccsir_logo3}\hspace*{0.5cm}}

%-------------------------Este código faz o menuzinho bacana na parte superior do slide------------
\AtBeginSection[]
{
  \begin{frame}<beamer>
    \frametitle{Outline}
    \tableofcontents[currentsection]
  \end{frame}
}
\beamerdefaultoverlayspecification{<+->}
% -----------------------------------------------------------------------------
\begin{document}
% -----------------------------------------------------------------------------

%---Gerador de Sumário---------------------------------------------------------
\frame{\titlepage}
\section[]{}
\begin{frame}{Contents}
  \tableofcontents
\end{frame}
%---Fim do Sumário------------------------------------------------------------


% -----------------------------------------------------------------------------
\section{Past Years’ activities}
\begin{frame}{Past 5 Years’ activities}
\begin{itemize}
    \item  Dipole and sea salinity
    \item  rainfall over  region
    \item Satellite data of cloud –  climatology    
\end{itemize}
\end{frame}
%------------------------------------------------------------------------------

%------------------------------------------------------------------------------

\begin{frame}{Next Years’ activities}
\begin{itemize}
    \item change mitigation
    \item Study of ground water over 
    \item Building 
    \item Weather 
\end{itemize}
\end{frame}
%------------------------------------------------------------------------------
\section{SWOT}
\begin{frame}{SWOT Ana}
\begin{columns}
\begin{column}{1\textwidth}
    \includegraphics[width=\textwidth]{example-image}
\end{column}
\end{columns}
\end{frame}

%------------------------------------------------------------------------------
\section{El Niño-2017}
\begin{frame}{El Niño Condition}
\centering
\includegraphics[width=10cm, height=5cm]{example-image}
\begin{itemize}
    \item Normal conditions are present.

    \item Equatorial sea surface temperatures (SSTs) are near-to average in the central and east-central Pacific Ocean. 

\end{itemize}
\end{frame}
%------------------------------------------------------------------------------
\begin{frame}[c]{El Niño Condition}
\centering
\vspace{3pt}
\includegraphics[scale=0.4]{example-image}
\begin{itemize}
    \vspace{3pt}
    \item In absence of El Nino, the Southwest Monsoon 2017 is expected to be NORMAL.

\end{itemize}
\end{frame}
%------------------------------------------------------------------------------

%------------------------------------------------------------------------------
\section{Seasonal Monsoon Forecast}
\begin{frame}{Seasonal Monsoon Forecast-USA Model}
    \begin{columns}[onlytextwidth,T]
        \begin{column}{.54\textwidth}
            \includegraphics[width=\textwidth]{example-image}
        \end{column}
        \begin{column}{.47\textwidth}
            \begin{itemize}
                \item Part of normal rainfall
                \item During later possible.
            \end{itemize}
        \end{column}
    \end{columns}
\end{frame}
%------------------------------------------------------------------------------
\begin{frame}{Seasonal Monsoon}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.6\textwidth}
        \includegraphics[width=\textwidth]{example-image}
    \end{column}
    \begin{column}{.43\textwidth}
        \begin{itemize}
            \item The rainfall during summer 
            \item Part of  normal rainfall.
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


%------------------------------------------------------------------------------

%------------------------------------------------------------------------------
\section{South America Rainfall}

    \begin{frame}{South America Rainfall }
    \begin{columns}[onlytextwidth,T]
        \begin{column}{.4\textwidth}
            \includegraphics[width=\textwidth]{example-image}
        \end{column}
        \begin{column}{0.6\textwidth}
            \begin{itemize}
                \addtobeamertemplate{block begin}{}{\justifying}
                \item\justifying Brazil : In their June Crop Report
                \item Sorghum and rice  practically unchanged.

            \end{itemize}
        \end{column}
    \end{columns}
\end{frame}


%------------------------------------------------------------------------------

\begin{frame}{South America (Brazil and Argentina) : Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.4\textwidth}
        \includegraphics[width=\textwidth]{example-image}
    \end{column}
    \begin{column}{0.6\textwidth}
        \begin{itemize}
            \addtobeamertemplate{block begin}{}{\justifying}
            \item\justifying Wheat production  more with a projected production of 31.5 million tons. 

        \end{itemize}
    \end{column}
\end{columns}
\end{frame}

%------------------------------------------------------------------------------

% -----------------------------------------------------------------------------
 \section{}
 \begin{frame}[c]
 \centering

 \textbf{\large Thank You for the attention}\\
   \vspace*{1cm}     
    Suggestions for providing additional services /informations are most welcome 

\end{frame}
% -----------------------------------------------------------------------------
\section{Monsoon Rainfall-2017}
\begin{frame}{Cumulative Rainfall as on 25th June, 2017}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{example-image}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
            \item Country =  - 1 \% 
            \item Ka \& So region : Rainfall = - 52 \% 
            \item Kon \& region: Rai= - 3 \% 
            \item Marfall = + 47 \%
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


% -----------------------------------------------------------------------------
\begin{frame}{District wise Cumulative Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{example-image}
    \end{column}
    \begin{column}{.48\textwidth}
        \begin{itemize}
            \item\justifying Centralred zones).

            \item\justifying The exd normal rainfall (Green and blue zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}


%-----------------------------------------------------------------------------

\begin{frame}{District wise Cumulative Rainfall}
\begin{columns}[onlytextwidth,T]
    \begin{column}{.45\textwidth}
        \includegraphics[width=\textwidth]{example-image}
    \end{column}
    \begin{column}{.47\textwidth}
        \begin{itemize}
            \item\justifying Most part of the
            \vspace{3pt} 
            \item\justifying   some part ofrainfall (Red zones). 
        \end{itemize}
    \end{column}
\end{columns}
\end{frame}
\end{document}
-----------------------------------------------------------------------------

%-----------------------------------------------Este comentario nunca aparecera

答案2

  • 删除 \batchmode 命令。您希望在 LaTeX 错误出现时立即处理它们。
  • 如果您删除 \usecolortheme{senac} 命令(和 \usepackage[brazil]{babel} - 我没有相应的文件),您的文档可以与当前版本的 TeXLive 和 pdflatex 配合使用。因此您的问题可能源于颜色主题文件。

相关内容