[powerdot] Re: listings in twocolumn mode?

  • From: George Hartzell <hartzell@xxxxxxxxxx>
  • To: powerdot@xxxxxxxxxxxxx
  • Date: Mon, 20 Aug 2007 11:27:19 -0700

Hendri Adriaens writes:
 > > Is this an FAQ, or something that others do frequently?  In either
 > > case, how?
 > 
 > See powerdot-example3.tex.

I don't see any use of \twocolumn in that file.

 > > If not, I'll post more details and maybe someone can lend a hand.
 > 
 > Always post a minimal example with your question to avoid us guessing
 > what you are trying to do.

Here's an example, using the "example" environment from
powerdot-example3.tex.  It dies with:

   ! Argument of \lst@next has an extra }.
   <inserted text> 
                   \par 
   l.9   }

Thanks for any suggestions!

g.

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\documentclass[style=sailor,paper=screen,mode=present]{powerdot} 

\usepackage{listings}

\pdsetup{palette=Wine}

\lstnewenvironment{example}[1][]{%
  \lstset{basicstyle=\footnotesize\ttfamily,columns=flexible,%
    backgroundcolor=\color{pdcolor4!30}, 
    frame=single,%
    xleftmargin=\fboxsep,xrightmargin=\fboxsep,gobble=1%
    }\lstset{#1}}{}

\begin{document}

\begin{slide}[method=file]{test slide}
  top...
  \twocolumn{%Left
    \begin{example}
      example
    \end{example}
  }
  {%Right
    right...
  }
  bottom...
\end{slide}

\end{document}

Other related posts: