Como escrever a dedicatória corretamente?

Como escrever a dedicatória corretamente?

Estou tentando fazer alguns espaços verticais de linha na dedicatória. Mas não consegui descobrir como.

Aqui está o código que estou 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
  }

Quando tento fazer isso, obtenho uma linha vazia. Eu não entendo nada.

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

E como faço para alterar o estilo da fonte Johnneste código:

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

Muito obrigado!

Responder1

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

insira a descrição da imagem aqui

Em vez de \vspace{2\baselineskip}, você também pode usar \medskipou bigskipetc. Outra opção é usar

ABC \\[2\baselineskip]
DEF

como mencionado nos comentários acima.

Você pode alterar o estilo da fonte por comandos padrão como \normalfont, \sffamilyetc.

informação relacionada