# How to place a list of attachments at the same hight as the closing?

I am writing a letter using KOMA-scripts scrlttr2-class. I would like to add a list of attachments at the end, and I would like that list to be at the same height as the closing, but on the right side of the document. Something like this:

Kind regards,                                                 Attachments:
* Attachment one
* Attachment two
My Name


It does not seem to be possible to put the \closing into a tabular. Is there any way to achieve this?

-

You could use a minipage instead of the tabular, somthing like:

\begin{minipage}{.5\textwidth}
\closing{Kind regards,}
\end{minipage}%
\begin{minipage}{.5\textwidth}
Attachments
Att 1\\
Att 2
\end{minipage}

-
Thanks! I didn't try this because I thought if it doesn't work in a tabular, why should it work in a minipage? Seems I was wrong. –  Björn Pollex Jun 8 '11 at 12:43
your solution doesn't produce, in general, the desired vertical alignment. –  Gonzalo Medina Jun 8 '11 at 23:40

Placing the \closing command inside a minipage and the Attachments into another one will not produce, in general, the desired alignment, as can be seen in the following example:

\documentclass{scrlttr2}

\begin{document}

\begin{minipage}{.5\textwidth}
\closing{Kind regards,}
\end{minipage}%
\begin{minipage}{.5\textwidth}
Attachments\\
Att 1\\
Att 2\\
Att 3\\
Att 4
\end{minipage}

\end{document}


resulting in

which shows that the line "Kind regards," is not aligned with the "Attachments" line (using the optional argument for the minipages placement won't make things any better).

One possible solution is to use the minipages inside the \closing command:

\documentclass{scrlttr2}

\begin{document}

\closing{
\parbox{\textwidth}{\begin{minipage}[t]{.5\textwidth}
Kind regards,
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
Attachments\\
Att 1\\
Att 2\\
Att 3\\
Att 4
\end{minipage}
}}

\end{document}


The result:

EDIT: and the necessary modification for the signature:

\documentclass{scrlttr2}

\setkomavar{signature}{\hspace*{1.5em}My Name}

\begin{document}

\closing{\raggedright
\parbox{\textwidth}{\begin{minipage}[t]{.5\textwidth}
Kind regards,
\end{minipage}%
\begin{minipage}[t]{.5\textwidth}
Attachments\\
Att 1\\
Att 2\\
Att 3\\
Att 4
\end{minipage}
}}

\end{document}

-
I just tested this, and it does not work either, because of the way KOMA automatically puts the name below the closing. The name will now appear in the center of the page, below the last line of the attachments. You can reproduce this by adding \setkomavar{fromname}{My Name} to the preamble. –  Björn Pollex Jun 10 '11 at 9:35
@Space_C0wb0y: I couldn't possible guess all the settings of your particular document. Anyway, the solution is simple, see my updated answer. –  Gonzalo Medina Jun 10 '11 at 14:54