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.

If I pdflatex the below Latex, then "Kind regards," and "Sandra" doesn't get centred.

If the letter is two pages long, then it does.

Question

How do I get this centred when my letter is just one page?

\documentclass[a4paper, danish]{letter}
\usepackage{a4}
\usepackage[danish]{babel}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{aeguill}

\signature{Sandra}

\begin{document}
\begin{letter}{}
\opening{Re: }

test

\closing{Kind regards,}

\end{letter}
\end{document}
share|improve this question
    
Those are not usually centered, but you could surround them in the center environment: \begin{center} \closing{Kind regards,} \end{center}. –  Peter Grill Jan 7 '13 at 3:30
    
You could also just end letter with \centering Kind regards,\par\vskip{5\baselineskip} Sandra. –  Werner Jan 7 '13 at 3:35
    
Even with two pages, I do not see any centering. As the content produced by \closing is inside a \parbox (that is \raggedright), neither the center environment (@PeterGrill) nor the \centering macro actually center the text horizontally. On that note, {\centering\closing{\centering Kind regards}} centers the actual text inside the \parbox and the \parbox as well. –  Qrrbrbirlbel Jan 7 '13 at 3:38
    
@Qrrbrbirlbel: Good point. I did not look carefully enough and indeed it is not cnetered with \begin{center}, but it is also not centered using \closing{\centering Kind regards}. I think the \closing macro needs to be redefined. –  Peter Grill Jan 7 '13 at 3:46
    
Can you provide a pair of MWE that shows the multipage letter with the closing centered. If I add \usepackage{lipsum} and \lipsum[1-20] to your MWE, the closing stays in the same place. –  StrongBad Jan 7 '13 at 10:32
add comment

1 Answer

up vote 4 down vote accepted

The closing isn't never centered, but it will change its location and move more to the middle if you add a "fromaddress" with \address{fromadress}.

The letter-class is quite old and not very good. Consider to use a better one: http://www.tex.ac.uk/cgi-bin/texfaq2html?label=letterclass

Avoid the a4 and the aeguill packages.

share|improve this answer
    
Is the letter class any older than the article class? –  StrongBad Jan 7 '13 at 10:34
    
@Ulrike Fischer Yes, I removed the \address{} to make it fit one page =) Thanks for pin pointing the problem. How would you have made my example? –  Sandra Schlichting Jan 7 '13 at 19:08
add comment

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.