[powerdot] Re: textheight ignored?

  • From: Björn Brodersen <bjoern.brodersen@xxxxxxxx>
  • To: powerdot@xxxxxxxxxxxxx
  • Date: Fri, 24 Nov 2006 11:00:32 +0100

Thank you very much !

This works just the way I need it, cool...

Greetings,
Björn

Hendri Adriaens wrote:
>> \makeatletter
>>   \setlenght{\textareaheight}{\pd@@textheight}
>> \makeatother
>
> Define (in the preamble) a macro that you can use on the first line of
> a slide:
> \makeatletter
> \newcommand\setmylength{%
>  \setlength\textareaheight{\pd@@textheight}%
> }
> \makeatother
>
>> but it seems that this variable - or key, following my understandings of
>> xkeyval - is set only localy inside the style file.
>
> It is variable over styles, so one slide to the other might change
> yes, if the style changes.
>
>> I need this value because the text-area of my wideslide and slide
>> enviroments differ in height, and I want to give users the opportunity
>> to draw a pspicture with size (\textwidth x \textareaheight) for freely
>> placing things via \rput commands using positioning like ( 0.5\textwidth
>> x 0.8\textareaheight).
>
> See an example below.
>
> -Hendri.
>
> \documentclass{powerdot}
> \newlength\textareaheight
> \newlength\textareawidth
> \makeatletter
> \newcommand\setmylengths{%
>  \setlength\textareaheight\pd@@textheight
>  \setlength\textareawidth\pd@@textwidth
> }
> \makeatother
> \begin{document}
> \begin{slide}{title}
> \setmylengths
> \psframe(0,0)(\textareawidth,-\textareaheight)
> \end{slide}
> \end{document}

-- 

------------------------------
Dipl.-Ing. Björn Brodersen MSc
TU Braunschweig
Institut für Statik
Beethovenstr. 51
38106 Braunschweig
Tel.: 0531 / 391 - 3670


Other related posts: