[powerdot] Twocolumn in own Style

  • From: Patrick Runge <patrick_runge@xxxxxxxxxxx>
  • To: <powerdot@xxxxxxxxxxxxx>
  • Date: Sun, 28 Oct 2007 11:17:04 +0100

For some reason the twocolumn command does not work with my own created style. 
The example in the documentation work very well with the default style, but 
unfortunatly not with my own style. I recive the following error:
Undefined control sequence  \expandafter \XC@getc@l@r \pd@color \XC@@

I created my style from the simple style and mixed it with some elements of the 
default style. Can anybody tell me, which command in the style-template is 
needed to create two columns? My own style looks like:

\NeedsTeXFormat{LaTeX2e}[1995/12/01]
\ProvidesPackage{powerdot-HFT}[2007/09/10 v1.0]
\RequirePackage{pifont}
\RequirePackage{amssymb}
\RequirePackage{pst-blur}%

\definecolor{HFTrot}{rgb}{.6,0,.01}
\newbox\pd@imageboxtitel
\newbox\pd@imageboxslide
\sbox\pd@imageboxtitel{\includegraphics[trim=0 0 0 0,clip, 
width=.175\slidewidth,height=.175\slideheight]{TU-Logo.eps}}
\sbox\pd@imageboxslide{\includegraphics[trim=0 0 0 0,clip, 
width=.065\slidewidth,height=.065\slideheight]{TU-Logo.eps}}%

\pddefinetemplate{basic}{
    titlepos={.05\slidewidth,.89\slideheight},
    titlewidth=.875\slidewidth,textheight=.66\slideheight,
    titlefont=\large\bfseries\raggedright,
    clockpos={.99\slidewidth,\slideheight},
    textpos={.05\slidewidth,.825\slideheight},
    textwidth=.9\slidewidth%,
}{}%

\pddefinetemplate[basic]{titleslide}{
    texthook=t,textpos={.5\slidewidth,.825\slideheight},
    textwidth=.9\slidewidth,textfont=\centering,
    textheight=.6\slideheight,
    titlefont=\Large\bfseries\centering,tocpos,ntocpos,stocpos
}{%
    \rput[tr](.515\slidewidth, .375\slideheight){\usebox\pd@imageboxtitel}
    \rput[tl](.515\slidewidth, 
.355\slideheight){\parbox{.15\slidewidth}{\scriptsize\textsl{TECHNISCHE\\ 
UNIVERSIT"{A}T\\ BERLIN}}}
    \rput[tm](.5\slidewidth, .15\slideheight){\footnotesize\textbf{{Fachgebiet 
Hochfrequenztechnik}}}
    \psset{linewidth=.0075\slideheight, linecolor=HFTrot, shadow=false, 
shadowcolor=black!35, blur=true}%
    \psline(.04\slidewidth, .065\slideheight)(.96\slidewidth, .065\slideheight)%
}%

\pddefinetemplate[basic]{slide}{
    lfpos={.105\slidewidth, .03\slideheight},
    rfpos={.96\slidewidth, .03\slideheight}%
}{%
    \rput[tl](.025\slidewidth, .09\slideheight){\usebox\pd@imageboxslide}
    \psset{linewidth=.0075\slideheight, linecolor=HFTrot, shadow=false, 
shadowcolor=black!35, blur=true}%
    \psline(.105\slidewidth, .07\slideheight)(.96\slidewidth, .07\slideheight)%
}%

\pddefinetemplate[slide]{sectionslide}{
  titlehook=c,titlefont=\Large\bfseries\centering,
  titlepos={.5\slidewidth,.55\slideheight},
  titlewidth=.75\slidewidth,
}{}%
\setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
\def\pd@tochighlight#1{\pd@tocsimple\phantom{#1}}
\def\pd@tochighlight#1{\pd@tocsimple\@firstofone{#1}}
\def\pd@tocsimple#1#2{%
    \@tempdima\pd@@tocwidth
    \settowidth\@tempdimb{\normalsize\ensuremath\triangleright\hskip1mm}%
    \advance\@tempdima-\@tempdimb
    \ifnum\pd@toctype=\@ne\else
        #1{\normalsize\ensuremath\triangleright\hskip1mm}%
    \fi
    \begin{minipage}[b]\@tempdima
        \pd@usedtocfont#2%
    \end{minipage}%
    \ifnum\pd@toctype=\@ne
        #1{\hskip1mm\normalsize\ensuremath\triangleleft}%
    \fi
}
\def\pd@tochighlight#1{%
  \begin{minipage}[b]\pd@@tocwidth
    \pd@usedtocfont\color\pd@@tochltcolor#1%
  \end{minipage}%
}

\setkeys[pd]{section}{sectemp=sectionslide,widesectemp=sectionwideslide}
\pdifsetup{landscape}{\def\pd@tocslide#1{{\tiny\ensuremath\bullet} #1}}{}
\def\labelitemi{\small\ensuremath\bullet}
\def\labelitemii{\small\ensuremath\circ}
\def\labelitemiii{\scriptsize\ensuremath\bullet}
\def\labelitemiv{\scriptsize\ensuremath\circ}
\pdsetup{
  list={labelsep=1em,leftmargin=*,itemsep=0pt,topsep=5pt,parsep=0pt}
}
\def\rmdefault{cmss}

\endinput


Greets Patrick

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=7+wonders+world&mkt=en-US&form=QBRE

Other related posts: