%%
%% Copyright (c) 2022-2023 by Friedemann Bartels
%%
%% This file may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either
%% version 1.3c of this license or (at your option) any later
%% version.  The latest version of this license is in:
%%
%%    http://www.latex-project.org/lppl.txt
%%
%% and version 1.3c or later is part of all distributions of
%% LaTeX version 2008/05/04 or later.
%%

\documentclass[twoside]{pagelayout}
\input{_config}

\margin=20mm
\outermargin=10mm
\topmargin=4mm
\fillpages
\setgrid{
  {{1}{1}}
  {{1}{1}}
}

\begin{document}

  \template[back cover]{f}{}
  \template[front cover]{f}{}

  \setpagecolor{pink}
  \template{f}{\header}
  \nopagecolor
  \template[double]{ff}{\header\header}
  \template{f}{\header}

  \outermargin=30mm
  \topmargin=30mm
  \template{f}{\header}
  \outermargin=10mm
  \topmargin=10mm
  \template[double]{ff}{\header\header}
  \outermargin=30mm
  \topmargin=30mm
  \template{f}{\header}
  \gutter=4mm
  \setpagecolor{red!10}
  \bottommargin=10mm
  \topmargin=0mm
  \page[outer margin=10mm,top margin=10mm,page color=green!10]{}

\end{document}
