[Tex/LaTex] Centering an image vertically


I'm currently having a few problems with centering an image on a page (both vertically and horizontally) while enlarging the image so that it is taking the whole width of the page.

I'm managing to center the picture horizontally, but not vertically. The code below shows the version I made that centers the image horizontally. My question is here what can I do to center it also vertically?

I'm having an srcbook class .tex:



I'm currently positioning the image like this:


Best Answer

\centerline takes an argument so in


the argument is just \noindent

so it is equivalent to


so you get one blank white line from the \centerline then an overfull box with the image.

possibly you want


I am assuming here you did intend your image to be as wide as the paper not just as wide as the text block, so covering both margins.

Related Question