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.

I am using Lyx (template report) and I would like to add a dedication to my family on the 3rd page of my document. Something like this:

enter image description here

I tried the code \begin{dedication} text \end{dedication} but got no result.

share|improve this question

1 Answer 1

up vote 4 down vote accepted

In order to use \begin{dedication}...\end{dedication} you would have to define the environment.

Looking at the image you provided, I'm assuming that the header and footer are defined elsewhere. Here is one method to get your dedication environment

\documentclass{article}

\usepackage{lipsum} % for sample text
\newenvironment{dedication}{\phantom{}\vfill\begin{flushright}\begin{minipage}{0.5\textwidth}\raggedleft}{\end{minipage}\end{flushright}\vfill}
\begin{document}

\begin{dedication}
\lipsum[1] 
\end{dedication}

\end{document}
share|improve this answer
    
The screenshot isnt mine , i found it on the net while searching , although i want a dedication like the screenshot's .. This code you gave me i have to put it on preamble on Lyx ? –  ALdaperan Oct 16 '11 at 16:14
2  
@ALdaperan Just the \newenvironment... goes in the preamble. Change the 0.5 to anything you like. –  cmhughes Oct 16 '11 at 16:16
    
ook I did it but the dedication appears on the top right side of the page Is it possible to put it on the right side but on middle of the page like scrrenshots ? –  ALdaperan Oct 16 '11 at 16:21
    
@ALdaperan Yes, I've edited it. Note the use of \phantom{}\vfill –  cmhughes Oct 16 '11 at 16:26
    
With this the dedication went on the bottom right not on middle of the page :( –  ALdaperan Oct 16 '11 at 16:28

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.