Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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.

share|improve this question
2  
Try to use \vspace*{6ex}. –  Sigur Mar 16 '13 at 21:19
1  
Thanks!. that did the job. –  rnish Mar 16 '13 at 21:21
add comment

1 Answer

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}
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.