Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm trying to include a verbatim environment in a powerdot slide as follows, but that does not work:

\documentclass{powerdot}

\begin{document}

\begin{slide}{title of the slide}  
\begin{itemize}
\item  \begin{verbatim}
           abcdefghijklmnop...
       \end{verbatim}
\end{itemize}
\end{slide} 

\end{document}

I get the following message in the log :

! Argument of \verbatim@ has an extra }.
share|improve this question
add comment

1 Answer

up vote 6 down vote accepted

You need to use method=direct or method=file for slides containing verbatim material (see Section 6.4 Verbatim on slides of the powerdot documentation):

\documentclass{powerdot}

\begin{document}

\begin{slide}[method=direct]{title of the slide}  
\begin{itemize}
\item  \begin{verbatim}
           abcdefghijklmnop...
       \end{verbatim}
\end{itemize}
\end{slide} 

\end{document}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.