Latex

# IEEETran page margins

This post has nothing to do with getting papers ready for IEEE, it is just using the template they provide for something else, like a University coursework.

IEEEtran_HOWTO says:

Authors should not attempt to manually alter the margins, paper size …

But sometimes one just has to. And then using packages like ‘geometry’ does not help – they confilict with IEEE settings and mess up the entire layout.

I use a4paper option. IEEETran was designed for Letter paper. To make things compatible the desginers made it so the layout will look exactly the same if one used A4 or Letter.

This is great, unless you want only A4 – then the paper has a huge bottom page margin. Which is not birlliant if you have a page limit and is already over it.

Fixing this appeared to be quite easy. Just add:

\newcommand{\CLASSINPUTtoptextmargin}{2cm}
\newcommand{\CLASSINPUTbottomtextmargin}{2cm}
\documentclass[journal, a4paper]{IEEEtran}
.....
\begin{document}
.....
\end{document}


Inspired by this FAQ

Standard

## 4 thoughts on “IEEETran page margins”

1. sureshamrita says:

Hi
How do you display code in a box with line number etc?
thanks
suresh

2. Hi, thanks for sharing this insight.

When I try to do this, I find that the top margin doesn’t adjust properly. In fact, it seems that

\newcommand{\CLASSINPUTtoptextmargin}{18mm}

seems to correspond to no margin at all on the top of the page. Any thoughts on this?

Thanks!

3. Troy says:

Thanks for this, Andrej! Exactly what I needed to get a paper ready for a European conference that “borrows” the IEEE format. That bottom margin was ugly.