14

scrlttr2 seems to set a line with the address on it. I can't figure out which of the many scrlttr2 options turns it off.

\documentclass{scrlttr2}
\setkomavar{fromname}{Seamus}
\setkomavar{fromaddress}{Earth\\
  Solar System\\
  Milky Way\\
  The Universe}
\begin{document}
\begin{letter}{TeX\\
    Stackexhange\\
    dot com\\
    The internet}
  \opening{Dear TeXnicians}

  I am having trouble with the above ruled line

  \closing{Yours hopefully}
\end{letter}
\end{document}

this line!

I am trying to remove the rule, and the text highlighted...

17

To remove the line and the text, add backaddress=off to the class options. To remove just the line, add backaddress=plain to the class options.

  • That's great thanks. But this still seems to leave loads of whitespace where the backaddress used to be... – Seamus Jul 15 '11 at 12:16
  • 1
    Can you provide a reference? I would like to see what other options are available. Thanks! – Limited Atonement Mar 27 '17 at 16:00
8

Set the KOMA variable backaddress to be empty:

\setkomavar{backaddress}{}

or see Michael's suggestion.

To remove the reserved space, set the pseudolength backaddrheight to 0:

\makeatletter
\@setplength{backaddrheight}{0pt}
\makeatother
0

You can remove the back address and the line with a KOMA option:

\KOMAoptions{backaddress=false}

(The default value of this option is underlined which has the same effect as a true-ish value. Also supported is the value plain which just disables the underlining.)

The option setting integrated into your example:

\documentclass{scrlttr2}

\KOMAoptions{backaddress=false}

\setkomavar{fromname}{Seamus}
\setkomavar{fromaddress}{Earth\\
  Solar System\\
  Milky Way\\
  The Universe}

\begin{document}
\begin{letter}{TeX\\
    Stackexhange\\
    dot com\\
    The internet}
  \opening{Dear TeXnicians}

  I am having trouble with the above ruled line

  \closing{Yours hopefully}
\end{letter}
\end{document}
  • That's more or less the same as the accepted answer. – Schweinebacke Aug 19 '17 at 7:28
  • @Schweinebacke, well, it's more. It includes a working example, it explicitly includes a way how to actually set that option and it includes a reference (link!) to that and related options. Depending on how often you use this package this saves you some reading of the fine Koma manual. – maxschlepzig Aug 19 '17 at 7:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.