以下投影机代码
\begin{frame}[fragile]
\frametitle{PROC TEMPLATE for a fancy graph (part 2)}
\begin{alltt}
rowaxes;
rowaxis /label = 'Infant Mortality (\%)'
griddisplay = on;
rowaxis /label = '' griddisplay = on;
endrowaxes;
layout overlay;
scatterplot x = unemployment
y = infantmortality;
loessplot x = unemployment
y = infantmortality/nomarkers;
loessplot x = unemployment
y = infantmortality/smooth = 1;
ellipse x = unemployment y = infantmortality
/type = predicted;
endlayout;
\end{alltt}
\end{frame}
缩进如图所示,直到以“椭圆”开头的行,该行设置为左对齐。在“失业”后添加段落标记没有帮助。
有任何想法吗?
答案1
我看不到任何问题,当我创建一个完全的semiverbatim
文档来自您的代码片段!但是,beamer 知道也可以使用的环境:
\documentclass{beamer}
\begin{document}
\begin{frame}[fragile]
\frametitle{PROC TEMPLATE for a fancy graph (part 2)}
\begin{semiverbatim}
rowaxes;
rowaxis /label = 'Infant Mortality (\%)'
griddisplay = on;
rowaxis /label = '' griddisplay = on;
endrowaxes;
layout overlay;
scatterplot x = unemployment
y = infantmortality;
loessplot x = unemployment
y = infantmortality/nomarkers;
loessplot x = unemployment
y = infantmortality/smooth = 1;
ellipse x = unemployment y = infantmortality
/type = predicted;
endlayout;
\end{semiverbatim}
\end{frame}
\end{document}