如何制作合适的静态流程框架信头?

如何制作合适的静态流程框架信头?

使用该flowfram包,我创建了一个两页文档,其中第一页只有一列,第二页有两列。我现在要做的是创建一个出现在每页顶部的静态信头。下面是我目前的标记,但出于某种原因,信头只出现在第二页的顶部,并且被限制在第二列的宽度内。

前言:

\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}

文档:

\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]

我在这里遗漏了什么?

答案1

您需要创建一个新的静态框架:

\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}

代码输出

相关内容