# Dedication page in article class

Alignment of dedication page in the document class article.

\documentclass[a4paper,12pt]{article}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry}
\newenvironment{dedication}
{\vspace{6ex}\begin{quotation}\begin{center}\begin{em}}
{\par\end{em}\end{center}\end{quotation}}
\begin{document}
\begin{dedication}
\hspace{4cm}
\vspace*{9cm}{Dedicated to google and wikipedia.}
\end{dedication}
\end{document}


The alignment is moving horizontally but not vertical. Am i missing something here?

Using Texmaker in Linux.

-
Try to use \vspace*{6ex}. – Sigur Mar 16 '13 at 21:19
Thanks!. that did the job. – rnish Mar 16 '13 at 21:21

## 2 Answers

Probably a different approach is better. Choose yourself the proportion of white space at the top and the bottom (here it's 1:3).

\documentclass[a4paper,12pt]{article}
\usepackage[paper=a4paper,left=30mm,right=20mm,top=25mm,bottom=30mm]{geometry}

\newenvironment{dedication}
{\clearpage           % we want a new page
\thispagestyle{empty}% no header and footer
\vspace*{\stretch{1}}% some space at the top
\itshape             % the text is in italics
\raggedleft          % flush to the right margin
}
{\par % end the paragraph
\vspace{\stretch{3}} % space at bottom is three times that at the top
\clearpage           % finish off the page
}

\begin{document}
\begin{dedication}
Dedicated to google and wikipedia
\end{dedication}
\end{document}

-

As this is the first Google result for "latex dedication", I'd like to contribute a simpler way for dedications in Latex, which I adapted from here:

\newpage \vspace*{8cm}
% Sets a PDF bookmark for the dedication
\pdfbookmark{Dedication}{dedication}
\thispagestyle{empty}
\begin{center}
\Large \emph{Dedicated to google and wikipedia}
\end{center}

-