As is known, the sender's name is automatically displayed inside the sender field with the value taken out of fromname's variable (like below).
Minimum example:
\documentclass{scrlttr2}
\usepackage[english, ngerman]{babel}
\begin{document}
\setkomavar{fromname} {John Doe (sender)}
\setkomavar{fromaddress} {25th Doe's Avenue \\ 54321 Springfield}
\begin{letter}{%
Maria Lae\\
2th Coast Road\\
12345 Milltown%
}
\opening{Dear Maria,}
as you can see, I want to change the color of my name inside sender-field
independent respectively for first name and family name.
\bigskip\\
Unfortuntely, I don't know how to solve this...
\bigskip\\
Do you have any idea?
\closing{Sincerely yours}
\end{letter}
\end{document}
Now I want to change the shown font color of firstname and familyname independently into different colors for each word.
Actually my only idea is based on the creation of new KOMA-variables, respective for firstname and familyname:
\newkomavar[sender-firstname]{fromfirstname}
\setkomavar{fromfirstname}{John}
\newkomavar[sender-familyname]{fromfamilyname}
\setkomavar{fromfamilyname}{Doe}
Then, the next problem will be how to replace the existing fromname-registration (inside the sender-field) by the two newly created variables (fromfirstname and fromfamilyname).
Do you have any ideas or other solutions?
Thank you very much for your help!
