Re: foilhead position
"Hans Fr. Nordhaug" <[email protected]> Mon, 24 Mar 2003 15:04:32 +0100 (CET)
| Newsgroups | gmane.comp.tex.texpower.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 24 Mar 2003, Agustín E. Bolzán wrote:
> I am using foiltex and want to move the foilhead title
> upwards in order to use more space in the slide for the
> text. I revised the foiltex dvi and found no clear
> indication about how to do that. Could anybody in the list
> give me a clue?.
Moving the foilhead title/header means increasing the textheight/area and
that is a bit tricky. Basically you have to make your own copy of foils.cls and
make the necessary changes. You are not allowed to change it and keep the
name... I think the important line is
\addtolength\textheight{-2in}
Replace "-2in" with something else. (You have to do it in the class -
afterwards doesn't work.) Tell me/the list hwo it goes.
> Another question: is it possible to define the \activatestep
> in order to change not only the colour of the active text
> but also the font type (i.e. bold on activation, normal
> after that)?
Yes. Just define a command \bfenhanced like
\newcommand{\bfenhanced}[1]{%
\textbf{\highlightenhanced{#1}}}
and do
\liststepwise*[\let\hidestepcontents=\hidedimmed\let\activatestep=\bfenhanced]{%
...}
Or as I *always* prefer - give a minimal, but complete, example. (You have
seen this one before - setting the colors to better see \highlightenhanced.)
-------------------------
\documentclass{article}
\usepackage[display, lightbackground]{texpower}
\defineTPcolor[lightbg]{pagecolor}{rgb}{.5,.5,.5} % Redefining pagecolor
\defineTPcolor[lightbg]{etextcolor}{rgb}{0.5,0,0} % Added to better see when it's highlighted.
\lightbackground % making the new defs available
\newcommand{\bfenhanced}[1]{%
\textbf{\highlightenhanced{#1}}}
\begin{document}
\begin{itemize}
\liststepwise*[\let\hidestepcontents=\hidedimmed\let\activatestep=\bfenhanced]{%
\step{\item 1 word}
\step{\item 2 word}
\step{\item 3 word}
\step{\item 4 word}
\step{}
}
\end{itemize}
\end{document}
-------------------------
Regards, Hans
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf