Re[2]: foilhead position
"Hans Fr. Nordhaug" <[email protected]> Tue, 25 Mar 2003 07:39:08 +0100 (CET)
| Newsgroups | gmane.comp.tex.texpower.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 24 Mar 2003, Agustín E. Bolzán wrote:
> Hello Hans Fr. Nordhaug,
>
> Monday, March 24, 2003, 11:04:32 AM, you wrote:
>
> HFN> Moving the foilhead title/header means increasing the textheight/area and
> HFN> that is a bit tricky. Basically you have to make
> HFN> your own copy of foils.cls and
> HFN> make the necessary changes. You are not allowed
> HFN> to change it and keep the
> HFN> name... I think the important line is
>
> HFN> \addtolength\textheight{-2in}
>
> HFN> Replace "-2in" with something else. (You have to do it in the class -
> HFN> afterwards doesn't work.) Tell me/the list hwo it goes.
>
> No, it just increases the space after the head, so the
> former fulfilled single slide results into two slides. Seems
> that it is not possible to modify the foiltex class and
> that's a pity because I find that one could improve the use
> of the dead space in the slide. Yes, I could move my
> presentation from foiltex to either pdfscreen or powersem,
> but I wonder if it worths the effort (I do not know if the
> use of one or the other classes or packages is just a
> question of taste or foiltex is "the way" to standardise the
> presentations).
I said it was tricky - not impossible. I have made a custom class for my
(former) department at University of Bergen that has a set margin command.
See the follwoing example:
--------------------------------------------------------------------------
\documentclass[dvips,a4paper,headrule]{foils}
\usepackage{parskip} % I don't like intended pars in foils
\makeatletter
\newlength{\mf@translate}
\setlength\mf@translate\paperheight
\addtolength\mf@translate{-2in}
% Redefining macro 'foil@rot@start' for dvips
\if@pdftex\else
\def\foil@rot@start{\special{ps:%
0 \strip@pt\mf@translate\space 72.27 div Resolution mul translate
90 neg rotate
}}%
\fi
\newlength{\mf@diff}
\newlength{\mf@margin}
\newcommand{\setallmargins}[1]{%
\setlength\mf@margin{#1}
\setlength{\mf@diff}{-1in}
\addtolength\mf@diff\mf@margin
\addtolength\hoffset{\mf@diff}
\addtolength\voffset{\mf@diff}
\setlength\textwidth{\paperwidth}
\addtolength\textwidth{-2\mf@margin}
\setlength\textheight{\paperheight}
\addtolength\textheight{-2\mf@margin}
% \addtolength\textheight{-\head@footskip}
% The line above is replaced with three lines below.
% I don't remember why - more robust I guess.
\addtolength\textheight{-\footskip}
\addtolength\textheight{-\headsep}
\addtolength\textheight{-\headheight}
}
\makeatother
\setallmargins{1cm}
\addtolength\foilheadskip{-\baselineskip}
\begin{document}
\foilhead{test}
A word
\rotatefoilhead{test}
A word
\end{document}
--------------------------------------------------------------------------
Comments:
1) I recommend putting everything between (not including) \makeatletter
and \makeatother in a file called for example foiladditions.sty and
load it with \usepackage{foiladditions}. It's much cleaner.
2) \setallmargins sets all margins. If you want to keep the width unchanged
just edit the command as your need (or make a \setvertmargin command).
I have assumed that you want the text area centered.
3) I prefer I smaller \foilheadskip - as you see.
4) Using the dvips option all the time is nice since it's automatically
overridden if you are using pdflatex.
I hope this works for you - it works for my department.
> HFN> Yes. Just define a command \bfenhanced like
>
> HFN> \newcommand{\bfenhanced}[1]{%
> HFN> \textbf{\highlightenhanced{#1}}}
>
> HFN> and do
>
> HFN>
> HFN> \liststepwise*[\let\hidestepcontents=\hidedimmed\let\activatestep=\bfenhanced]{%
> HFN> ...}
>
> It works like a charm!
[cut]
I'm glad you liked it.
> Do you usually set this light background for your presentations
> or is this just the default example you normally provides to
> texpower users? (just curious because I am trying to setup a
> standard template for my future presentations).
No, I normally use a dark (not black) background, but my opinion is as
good (or bad) as yours. This is the only minimal, but complete, example I
have handy.
> Best regards and many thanks.
Your welcome.
Hans
-------------------------------------------------------
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en