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

IEEE modify first page margin

1,488 views
Skip to first unread message

Monika

unread,
May 21, 2013, 5:10:18 AM5/21/13
to
I am submitting a document which is based on the IEEE conference paper class but requires a slightly wider margin for the first page :
A4 first page Top 25 Left 13.1 Right 13.1 Bottom 19.1 mm
A4 other pages Top 14.1 Left 13.1 Right 13.1 Bottom 19.1 mm

I am using TexWorks with MikTex, not sre if that's relevant, but basically need to know if it's possible to only change the top margin for the first page (conference paper, so not a title page as such) and if so how I do this? The other pages are fine as they are, and I would prefer not to have them all have wider margins

Thanks


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-

Axel Berger

unread,
May 21, 2013, 6:23:23 AM5/21/13
to
Monika wrote:
> if so how I do this?

A nasty hack that thought ought to do it is to add

\raisebox{10.9mm}{\strut}

to your title.

Axel

Peter Flynn

unread,
May 22, 2013, 5:11:36 PM5/22/13
to
On 05/21/2013 10:10 AM, Monika wrote:
> I am submitting a document which is based on the IEEE conference paper class but requires a slightly wider margin for the first page :
> A4 first page Top 25 Left 13.1 Right 13.1 Bottom 19.1 mm
> A4 other pages Top 14.1 Left 13.1 Right 13.1 Bottom 19.1 mm
>
> I am using TexWorks with MikTex, not sre if that's relevant, but
> basically need to know if it's possible to only change the top margin
> for the first page (conference paper, so not a title page as such) and
> if so how I do this? The other pages are fine as they are, and I would
> prefer not to have them all have wider margins

Use the geometry package to set the margins for the first page, then use
the \newgeometry command to reset them for the second page onwards.

\newgeometry requires a pagebreak, though, so you would have to add
\clearpage manually in the appropriate place. Not very elegant.

///Peter

Scott Pakin

unread,
May 22, 2013, 7:07:57 PM5/22/13
to
On 05/22/2013 03:11 PM, Peter Flynn wrote:
> Use the geometry package to set the margins for the first page, then use
> the \newgeometry command to reset them for the second page onwards.
>
> \newgeometry requires a pagebreak, though, so you would have to add
> \clearpage manually in the appropriate place. Not very elegant.

Maybe an \afterpage{\newgeometry{...}} would work (cf. the afterpage
package)?

-- Scott

GL

unread,
May 23, 2013, 2:29:48 AM5/23/13
to
Le 21/05/2013 11:10, Monika a �crit :
> I am submitting a document which is based on the IEEE conference paper class but requires a slightly wider margin for the first page :
> A4 first page Top 25 Left 13.1 Right 13.1 Bottom 19.1 mm
> A4 other pages Top 14.1 Left 13.1 Right 13.1 Bottom 19.1 mm
>
> I am using TexWorks with MikTex, not sre if that's relevant, but basically need to know if it's possible to only change the top margin for the first page (conference paper, so not a title page as such) and if so how I do this? The other pages are fine as they are, and I would prefer not to have them all have wider margins
>

You can change the geometry using \newgeometry.
To do that automatically, you can set a hook when
the first page is printed (\shipout).

Such a hook will work if \textwidth is unchanged
(that is if "left+right" margins is constant, which is
the case in your example) :

\usepackage [showframe]{geometry} displays the margins
for easy checking :

\documentclass [a4paper]{article}
\usepackage [utf8]{inputenc}
\usepackage [T1]{fontenc}
\usepackage [showframe]{geometry}
\usepackage {atbegshi}
\usepackage {lipsum}

\title{The Title}
\author{Me}
\date{etad}

\makeatletter
\gdef\SecondPageGeometry % <defines the hook>
{\ifnum 0=\currentgrouplevel % <only when group level=0>
\global\let\SecondPageGeometry =\relax % <clear the hook>
\expandafter \@gobble % <gobbles \clearpage in \newgeometry>
\newgeometry {top=14.1mm,left=13.1mm,
right= 13.1mm,bottom =19.1mm}%
\else \aftergroup \SecondPageGeometry \fi % <sets the hook again>
}

\AtBeginShipout {\AtBeginShipoutUpperLeft % <sets the hook>
{\SecondPageGeometry }}

\begin{document}

\newgeometry {top=25mm,left=13.1mm, right= 13.1mm,bottom =19.1mm}

\maketitle

\section{First section}

\lipsum[1-40]

\end{document}\endinput

Ulrike Fischer

unread,
May 23, 2013, 6:11:33 AM5/23/13
to
Am Tue, 21 May 2013 19:10:18 +1000 schrieb Monika:

> I am submitting a document which is based on the IEEE conference
> paper class but requires a slightly wider margin for the first
> page :

> A4 first page Top 25 Left 13.1 Right 13.1 Bottom 19.1 mm
> A4 other pages Top 14.1 Left 13.1 Right 13.1 Bottom 19.1 mm

Use \vspace*{11.1mm} at the start of the first page.


--
Ulrike Fischer
http://www.troubleshooting-tex.de/

GL

unread,
May 23, 2013, 9:11:10 AM5/23/13
to
Le 23/05/2013 12:11, Ulrike Fischer a �crit :
> Am Tue, 21 May 2013 19:10:18 +1000 schrieb Monika:
>
>> I am submitting a document which is based on the IEEE conference
>> paper class but requires a slightly wider margin for the first
>> page :
>
>> A4 first page Top 25 Left 13.1 Right 13.1 Bottom 19.1 mm
>> A4 other pages Top 14.1 Left 13.1 Right 13.1 Bottom 19.1 mm
>
> Use \vspace*{11.1mm} at the start of the first page.
>
>
It depends whether the first page has a header or not...

Axel Berger

unread,
May 23, 2013, 1:40:16 PM5/23/13
to
Ulrike Fischer wrote:
> Use \vspace*{11.1mm} at the start of the first page.

That's much better than my strut. I didn't dare suggest it, because most
things inserted before \maketitle make \maketitle start a new page. Is
there an easy way to remember what does and what doesn't?

Danke
Axel
0 new messages