Beamer 错误让我抓狂

Beamer 错误让我抓狂

\end{document}好吧,我已经盯着这个看了一个小时了。我知道这个框架中有一个错误,因为如果我把这个框架放在这个框架之前,文档就可以编译成功。但是这个框架给出了一个错误

File ended while scanning use of \next

它在哪里?????

\begin{frame}[fragile]
\frametitle{PROC TEMPLATE for a fancy graph (part 1)}
\begin{alltt}
proc template;
 define statgraph scatdens2;
 begingraph;   *BEGIN DEFINING THE GRAPH;
   entrytitle "Scatter plot with density plots";
    *CREATE A TITLE;
   layout lattice/columns = 2 rows = 2
    columnweights = (.8 .2) rowweights = (.8 .2)
      columndatarange = union rowdatarange = union;
   *LAYOUT LATTICE...SETS UP A GRID OF GRAPHS;
   *COLUMNWEIGHTS AND ROWWEIGHTS SETS
    THE RELATIVE SIZE OF THE INDIVIDUAL COLUMNS AND ROWS;
 \end{alltt}
 \end{frame}

答案1

无论你是否相信,这个错误就是由 之前的空格引起的\end{frame}

相关内容