¿Cómo escribir correctamente la dedicatoria?

¿Cómo escribir correctamente la dedicatoria?

Estoy tratando de hacer algunas líneas con espacios verticales en la dedicatoria. Pero no pude encontrar cómo.

Aquí está el código que estoy usando:

\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
  }

Cuando intento esto, obtengo una línea vacía. No recibo ninguno.

\begin{dedication}
ABC \\ \\ DEF
\end{dedication}

¿Y cómo puedo cambiar el estilo de fuente Johnen este código?

\begin{dedication}
ABC \\ \\ DEF \\ \\
John
\end{dedication}

¡Muchas gracias!

Respuesta1

\documentclass{book}
\usepackage{lmodern}
\usepackage[T1]{fontenc}
\newenvironment{dedication}
  {%\clearpage           % we want a new page          %% I commented this
   \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}
 \frontmatter              %% better to use this in book class
 \chapter{Dedication}
  \begin{dedication}
    ABC 
    \par   %% or a blank line
    \vspace{2\baselineskip}
    DEF

    \vspace{\baselineskip}
    \usefont{T1}{LobsterTwo-LF}{bx}{it}
    John
  \end{dedication}
%.
%.
%.
%.
\mainmatter             %% and use this for main chapters.
\chapter{Introduction}
\end{document}

ingrese la descripción de la imagen aquí

En lugar de \vspace{2\baselineskip}, también puedes usar \medskipo bigskipetc. Otra opción es usar

ABC \\[2\baselineskip]
DEF

como se menciona en los comentarios anteriores.

Puede cambiar el estilo de fuente mediante comandos estándar como \normalfont, \sffamilyetc.

información relacionada