I want to have a book preface signed with author (the prefaces’s, not the book’s), date and place name. I am using Koma-script, but could use a different package as it is quite a simple book. Does any package have a standard way of doing that?
2 Answers
Here what I ended up wiþ:
\medskip
\begin {flushright}
Leandro Guimarães Faria Corcete \textsc {Dutra}, Brasília, fim da seca
de 2017.
\end {flushright}
-
1You don't need the
\par
at the end.\end{flushright}
uses\endtrivlist
.\endtrivlist
automatically adds\par
in horizontal mode. Commented Sep 28, 2017 at 18:19
The source of the German KOMA-Script guide uses
\bigskip\noindent
Markus Kohm, Neckarhausen bei eisigen Temperaturen im Januar 2017
at the end of the preface.
If you want the date of the LaTeX run, you can use
\bigskip\noindent
My Name, \today, somewhere
If you want several lines
\medskip
\begin{flushleft}
My Name\par
\today\par
Somewhere
\end{flushleft}
or
\medskip
\begin{flushleft}
My Name\\
\today\\
Somewhere
\end{flushleft}
-
Thanks, @Schweinebacke, you helped a lot to build my solution.– LeandroCommented Sep 30, 2017 at 19:11
\begin{flushright} author name\\date\\place\par\end{flushright}
. you probably want to add some\vspace
before the signature block.scrlttr2
variables with another class, you can use packagescrletter
. But if you just want the current date,\today
should be enough.