This problem occurs, for example, when someone writes on behalf of and as part of a company. For example
Peter Smith
Potbelly Incorporation
could represent the name, while
4711 E Leopold Avenue
Grand Belly, XY 88888
represents the address. However, one could also take the view that
Peter Smith
is still the name and therefore the company is part of the address:
Potbelly Incorporation
4711 E Leopold Avenue
Grand Belly, XY 88888
Depending on the role of the company and the person, the position in the sender can also be reversed. At
Potbelly Incorporation
c/o Peter Smith
it is more likely that in many places where fromname
is used, both should actually appear, but in some others they may not.
A first attempt would therefore be:
\setkomavar{fromname}{Potbelly Incorporation\\c/o Peter Smith}
\setkomavar{fromaddress}{4711 E Leopold Avenue\\Grand Belly, XY 88888}
to be used. This solution has two disadvantages:
Both problems can be solved very easily by explicitly setting the two variables responsible for the return address and the signature yourself, for example
\setkomavar{fromname}{Potbelly Incorporation\\c/o Peter Smith}
\setkomavar{fromaddress}{4711 E Leopold Avenue\\Grand Belly, XY 88888}
\setkomavar{signature}{Peter Smith}
\setkomavar{backaddress}{Peter Smith\\\usekomafont{fromaddress}}
or
\setkomavar{fromname}{Potbelly Incorporation\\c/o Peter Smith}
\setkomavar{fromaddress}{4711 E Leopold Avenue\\Grand Belly, XY 88888}
\setkomavar{signature}{Peter Smith\\Potbelly Inc.}
\setkomavar{backaddress}{Potbelly Inc.\\c/o Peter Smith\\\usekomafont{fromaddress}}
Following a complete example of such a letter:
\documentclass[fromalign=left,paper=letter]{scrlttr2}
\LoadLetterOption{UScommercial9}
\usepackage[english]{babel}
\usepackage{lipsum}
\setkomavar{fromname}{Potbelly Incorporation\\c/o Peter Smith}
\setkomavar{fromaddress}{4711 E Leopold Avenue\\Grand Belly, XY 88888}
\setkomavar{signature}{Peter Smith}
\setkomavar{backaddress}{Potbelly Inc.\\c/o Peter Smith\\\usekomafont{fromaddress}}
\pagestyle{headings}
\begin{document}
\begin{letter}{Markus Kohm\\at unknown address}
\opening{Dear Mr.\,Kohm,}
% \markboth{Peter Smith}{\usekomavar{subject}}
\lipsum[1-5]
\closing{Regards}
\end{letter}
\end{document}
The commented-out line can be used to also change the output of the name from page 2 onwards.