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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 7 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

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.