Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Using the flowfram package, I have created a two page document where on the first page there is only one column and on the second page there are two columns. What I am trying to do now is create a static letterhead that appears at the top of each page. Below is the markup I have so far, but for some reason the letterhead is only appearing at the top of the second page and is constrained to the width of the second column.

Preamble:

\usepackage{lipsum}

\usepackage[draft]{flowfram}

\setlength{\columnsep}{0.5in}

% Column 1, Page 1
\onecolumnStopinarea[1]{0.1\textheight}{\textwidth}{\textheight}{0pt}{0pt}

% Column 1, Page 2+
\onecolumnStopinarea[>1]{0.1\textheight}{0.35\textwidth}{\textheight}{0pt}{0pt}

% Column 2, Page 2+
\onecolumnStopinarea[>1]{0.1\textheight}{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}

% Static Header
\setstaticframe{all}{label={header}, backcolor=myred, textcolor=white}

Document:

\begin{staticcontents*}{header}
\begin{center}
Letterhead
\end{center}
\end{staticcontents*}

\section{Column 1 on Page 1}
\lipsum[1]

\clearpage

\section{Column 1 on Page 2}
\lipsum[1]

\framebreak

\section{Column 2 on Page 2}
\lipsum[1]

What am I missing here?

share|improve this question
    
It would be better to combine your code fragments into a complete compilable document (as in my answer.) E.g. myred is undefined (and not necessary for the example.) –  Alan Munn Oct 24 '11 at 17:01
    
@AlanMunn Sorry, I will pay more attention to my examples in the future. Thank you for overlooking my mistakes and helping. –  squidbear Oct 24 '11 at 18:09

1 Answer 1

up vote 3 down vote accepted

You need to create a new static frame:

\documentclass{article}
\usepackage{lipsum}

\usepackage[draft]{flowfram}

\setlength{\columnsep}{0.5in}

% Column 1, Page 1
\onecolumnStopinarea[1]{0.1\textheight}{\textwidth}{\textheight}{0pt}{0pt}

% Column 1, Page 2+
\onecolumnStopinarea[>1]{0.1\textheight}{0.35\textwidth}{\textheight}{0pt}{0pt}

% Column 2, Page 2+
\onecolumnStopinarea[>1]{0.1\textheight}{0.6\textwidth}{\textheight}{0.4\textwidth}{0pt}

\newstaticframe{\textwidth}{.5in}{0pt}{.9\textheight}[header]
% Static Header
\setstaticframe{all}{label={header}, backcolor=red, textcolor=white}

\begin{document}
\begin{staticcontents*}{header}
\begin{center}
Letterhead
\end{center}
\end{staticcontents*}

\section{Column 1 on Page 1}
\lipsum[1]

\clearpage

\section{Column 1 on Page 2}
\lipsum[1]

\framebreak

\section{Column 2 on Page 2}
\lipsum[1]
\end{document}

output of code

share|improve this answer
    
Oh, duh! I feel silly now. Thanks for helping me. –  squidbear Oct 24 '11 at 18:09

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.