Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Formatting a titling page with memoir

1,471 views
Skip to first unread message

Ignasi Furio

unread,
Sep 17, 2011, 9:40:34 AM9/17/11
to
I'm trying to made a document style for our student's projects based
on memoir class. The cover (or title page) will show something like an
inverted blue L with some logos inside and title, author, date, etc on
the right side of the page,

I want to use eso-pic to position logos with its blue background and
use a particular \maketitle over the rest of the page (typeblock)

Until now I managed to obtain something like this

%-------------------------
\documentclass[showtrims,a4paper,11pt,twoside,openright]{memoir}

\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{lmodern,fourier}
\usepackage{eso-pic,calc}
\usepackage{layouts}

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

\begin{document}
\begin{figure}
\currentstock
\stockdesign
\end{figure}
\end{document}
%--------------------------------

I've fixed a paper size different from stocksize in order to use
\AtPaper... from eso-pic because the cover must show a 4mm white
border all around the page.

My problem is that \checkandfixlayout complains and I don't understand
why.
A second question is about the code, I have fixed all parameters, but
I'm not sure if all of them are necessary.

Do you know a better solution?

Thank you,

Ignasi

Remco Viëtor

unread,
Sep 19, 2011, 3:57:39 AM9/19/11
to
Ignasi Furio wrote:

> I'm trying to made a document style for our student's projects based
> on memoir class. The cover (or title page) will show something like an
> inverted blue L with some logos inside and title, author, date, etc on
> the right side of the page,
>
> I want to use eso-pic to position logos with its blue background and
> use a particular \maketitle over the rest of the page (typeblock)
>
<code snipped>
>
> I've fixed a paper size different from stocksize in order to use
> \AtPaper... from eso-pic because the cover must show a 4mm white
> border all around the page.
>
> My problem is that \checkandfixlayout complains and I don't understand
> why.

The code you posted doesn't call \checkandfixlayout... That aside, I get a
number of warnings about sizes set to 0, which in all cases corresponds to
what you requested (e.g. marginparsep and marginparwidth are set to 0pt,
which makes marginpars impossible, thus the warnings)

> A second question is about the code, I have fixed all parameters, but
> I'm not sure if all of them are necessary.
>
> Do you know a better solution?

Could you post the complaints from \checkandfixthelayout , so we can see
what (you think) goes wrong?

Remco

Ignasi Furio

unread,
Sep 19, 2011, 5:06:43 AM9/19/11
to
>
> Could you post the complaints from \checkandfixthelayout , so we can see
> what (you think) goes wrong?
>

Here you have how .log file ends when \checkandfixlayout is used
instead of \fixthelayout

...
Class memoir Warning: \marginparsep is zero or negative on input line
29.


Class memoir Warning: \marginparwidth is zero or negative on input
line 29.


! Class memoir Error: \footskip (0.0pt) is too large for \lowermargin
(-9.72667
pt) by 9.72667pt.

See the memoir class documentation for explanation.
Type H <return> for immediate help.
...

l.29
---------

Ignasi

Lars Madsen

unread,
Sep 19, 2011, 5:15:17 AM9/19/11
to Ignasi Furio
Which memoir version are you using? I do not get any errors at all

I'm using a fully updated TL 2011.

--

/daleif (remove RTFSIGNATURE from email address)

Memoir and mh bundle maintainer
LaTeX FAQ: http://www.tex.ac.uk/faq
LaTeX book: http://www.imf.au.dk/system/latex/bog/ (in Danish)
Remember to post minimal examples, see URL below
http://www.minimalbeispiel.de/mini-en.html

Ignasi Furio

unread,
Sep 19, 2011, 5:23:00 AM9/19/11
to
I'm using MikTeX 2.9 updated last week. memoir version is v3.6j

--------------
This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded
format=pdflatex 2011.6.3) 19 SEP 2011 11:14
...
("D:\Archivos de programa\MiKTeX 2.9\tex\latex\memoir\memoir.cls"
Document Class: memoir 2011/03/06 v3.6j configurable book, report,
article docu
ment class
------------

Ignasi

Lars Madsen

unread,
Sep 19, 2011, 5:32:12 AM9/19/11
to Ignasi Furio

> I'm using MikTeX 2.9 updated last week. memoir version is v3.6j
>
> --------------
> This is pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9) (preloaded
> format=pdflatex 2011.6.3) 19 SEP 2011 11:14
> ...
> ("D:\Archivos de programa\MiKTeX 2.9\tex\latex\memoir\memoir.cls"
> Document Class: memoir 2011/03/06 v3.6j configurable book, report,
> article docu
> ment class
> ------------
>
> Ignasi

I have the file list below, I get warnings, but no errors

btw: \checkandfixthelayout[fixed]

might also be helpful

*File List*
memoir.cls 2011/03/06 v3.6j configurable book, report, article
document cl
ass
ifpdf.sty 2011/01/30 v2.3 Provides the ifpdf switch (HO)
ifxetex.sty 2010/09/12 v0.6 Provides ifxetex conditional
ifluatex.sty 2010/03/01 v1.3 Provides the ifluatex switch (HO)
etex.sty 1998/03/26 v2.0 eTeX basic definition package (PEB)
mem11.clo 2008/01/30 v0.3 memoir class 11pt size option
mempatch.sty 2009/07/24 v6.0f Patches for memoir class v1.6180339
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
inputenc.sty 2008/03/30 v1.1d Input encoding file
latin1.def 2008/03/30 v1.1d Input encoding file
lmodern.sty 2009/10/30 v1.6 Latin Modern Fonts
fourier.sty 2005/01/01 1.4 fourier-GUTenberg package
fontenc.sty
t1enc.def 2005/09/27 v1.99g Standard LaTeX file
textcomp.sty 2005/09/27 v1.99g Standard LaTeX package
ts1enc.def 2001/06/05 v3.0e (jk/car/fm) Standard LaTeX file
fourier-orns.sty 2004/01/30 1.1 fourier-ornaments package
eso-pic.sty 2010/10/06 v2.0c eso-pic (RN)
atbegshi.sty 2011/01/30 v1.15 At begin shipout hook (HO)
infwarerr.sty 2010/04/08 v1.3 Providing info/warning/message (HO)
ltxcmds.sty 2011/04/18 v1.20 LaTeX kernel commands for general use (HO)
keyval.sty 1999/03/16 v1.13 key=value parser (DPC)
xcolor.sty 2007/01/21 v2.11 LaTeX color extensions (UK)
color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
pdftex.def 2011/05/27 v0.06d Graphics/color for pdfTeX
calc.sty 2007/08/22 v4.3 Infix arithmetic (KKT,FJ)
layouts.sty 2009/09/02 v2.6d graphical depiction of document elements
fmlfutm.fd 2004/10/30 Fontinst v1.926 font definitions for FML/futm.
fmsfutm.fd 2004/10/30 Fontinst v1.926 font definitions for FMS/futm.
fmxfutm.fd futm-extension
ts1cmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
t1futs.fd 2004/03/02 Fontinst v1.926 font definitions for T1/futs.
supp-pdf.mkii
t1lmtt.fd 2009/10/30 v1.6 Font defs for Latin Modern
fmlfutmi.fd 2004/10/30 Fontinst v1.926 font definitions for FML/futmi.

my log mentions:

Package layouts Warning: Layout scale set to 0.5 on input line 29.


Package layouts Warning: The footbox is higher than the footskip on
input line
32.

(/vol/packages/TL/2011/texmf-dist/tex/latex/lm/t1lmtt.fd)
(/vol/packages/TL/2011/texmf-dist/tex/latex/fourier/fmlfutmi.fd)

Class memoir Warning: The material used in the headers is too large
(13.59999pt) for the given head height (0.0pt), it is recommended to
either increase the head height or redesign the header
(in both cases you will find help in the memoir manual). on input line 34.


Overfull \vbox (13.59999pt too high) has occurred while \output is active

Class memoir Warning: The material used in the footer is too large
(9.51996pt) for the given foot skip (0.0pt), it is recommended to
either increase the foot skip or redesign the fotoer
(in both cases you will find help in the memoir manual). on input line 34.

Ignasi Furio

unread,
Sep 19, 2011, 6:21:55 AM9/19/11
to
I'm getting same file list than you and also same warnings with
\checkandfixthelayout[fixed]. With just \checkandfixthelayout
compilation stops showing the error about \lowermargin.

In any case, is this a good (correct) way of doing what I want?

Ignasi

Lars Madsen

unread,
Sep 19, 2011, 6:53:24 AM9/19/11
to Ignasi Furio

> I'm getting same file list than you and also same warnings with
> \checkandfixthelayout[fixed]. With just \checkandfixthelayout
> compilation stops showing the error about \lowermargin.
>
> In any case, is this a good (correct) way of doing what I want?
>
> Ignasi

Well could you start by explaining WHAT you are trying to do? I did not
quite get it from the first posting.

Perhaps it would be better to create a generical front page that does
not depend on memoir.

I usually use eso-pic and then place stuff globally (or code the front
page manually). Using global positioning, enables one to do some rather
nifty stuff.

And then provide some special interface for users to add their data to
this design.

Ignasi Furio

unread,
Sep 19, 2011, 11:40:40 AM9/19/11
to

> 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

0 new messages