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 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?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

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}
share|improve this answer
    
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}
share|improve this answer
    
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

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.