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:
\documentclass[11pt,a4paper,BCOR10mm,DIV11,toc=listof,parskip=full]{scrbook}
\usepackage[english]{babel}
\usepackage[utf8x]{inputenc}
\usepackage{amsmath}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{multicol}
I'm currently positioning the image like this:
\centerline\noindent\makebox[\textwidth]{\includegraphics[width=\paperwidth]{MyImage.jpg}

\centerline(which isn't the most "latexy" way to do this), add\vspace*{\fill}and add\vspace{\fill}after it. the starred version will keep the space from disappearing at the top of a page. as for the\centerline, that's a holdover from plain tex. a "better" way (or at least one with better latex syntax) is to use\begin{center} ... \end{center}to "wrap" it. – barbara beeton Jul 22 '14 at 18:42\textwidth; How can I center a too wide table? – Werner Jul 22 '14 at 19:12