> Well could you start by explaining WHAT you are trying to do? I did not
> quite get it from the first posting.
>
I've managed to do what I wanted but I have some questions. Here is
the code
%----------------------------------------
\documentclass[a4paper,11pt,twoside,openright]{memoir}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern,fourier}
\usepackage{eso-pic,calc}
\usepackage{layouts}
\usepackage{graphicx}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setting dimensions of cover page
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\stockaiv
\setlength{\trimtop}{4mm}
\setlength{\trimedge}{4mm}
\setlength{\paperwidth}{\stockwidth-2\trimedge}
\setlength{\paperheight}{\stockheight-2\trimtop}
\setlength{\spinemargin}{40mm}
\setlength{\foremargin}{0pt}
\setlength{\uppermargin}{40mm}
\setlength{\lowermargin}{0pt}
\setlength{\headheight}{0pt}
\setlength{\headsep}{0pt}
\setlength{\footskip}{0pt}
\setlength{\marginparsep}{0pt}
\setlength{\marginparwidth}{0pt}
\setlength{\textwidth}{\paperwidth-\spinemargin}
\setlength{\textheight}{\paperheight-40mm}
\checkandfixthelayout[fixed]
\listfiles
\begin{document}
\AddToShipoutPicture*{
\newlength\ampladablau
\setlength{\ampladablau}{40mm}
\setlength\unitlength{1mm}
\AtPageUpperLeft{%
\setlength{\fboxrule}{0pt}%
\setlength{\fboxsep}{0pt}%
\fcolorbox{blue}{blue}{\color{white}%
\parbox[t][\ampladablau][c]{\paperwidth}%
{\centering Some logos here}%
}
}
\AtPageLowerLeft{%
\rotatebox[x=0mm,y=0mm]{90}{%
\setlength{\fboxrule}{0pt}%
\setlength{\fboxsep}{0pt}%
\fcolorbox{red}{blue}{%
\parbox[t][\ampladablau][c]{\paperheight-\ampladablau}{%
\fontsize{55pt}{66pt}\selectfont%
\centering\textcolor{white}{Projecte Final de Carrera}%
}%
}%
}
}
}
\author{author}
\title{This is a very very very very very very very very very very
very very long title for a nice project}
\begin{titlingpage}
\maketitle
\end{titlingpage}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Setting dimensions of text pages
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\stockaiv
\pageaiv
\settrims{0pt}{0pt}
\setulmarginsandblock{120pt}{90pt}{*}
\setlrmarginsandblock{90pt}{120pt}{*}
\setlength{\headheight}{14pt}
\setlength{\headsep}{20pt}
\setlength{\footskip}{27pt}
\setlength{\marginparsep}{7pt}
\setlength{\marginparwidth}{101pt}
\checkandfixthelayout
\begin{figure}
\currentstock
\stockdesign
\end{figure}
\end{document}
%------------------------------------------
Our intention is to provide our students with a cls or sty which they
will use
to write their final project. All the design is already fixed but I
was trying to
code it 'better'. Previous example shows what I was trying to do with
the cover.
eso-pic provides \AtPageUpperLeft and \AtPageLowerLeft command which
can be used to place left and upper blue rules. I use this command
instead of \AtStock... because the cover has a 4mm white margin all
around. White lower-right area will be used for the title, author,
date, school, etc information which will be placed there with
\maketitle or similar command.
I started just fixing page width and height (centered over a4paper
stock) but command \checkandfixthelayout was complaining about several
parameters. So I ended setting all parameters which solved some errors
but showing new ones. Then I started this thread.
Now I've what I wanted but I still don't understand the error about
\lowermargin and
I'm not sure about the need of fixing so many parameters.
I hope the problem is better explained now.
Thank you very much,
Ignasi