I would like to write a KOMA letter with a logo towards the top right corner of the first page. (See the attached image.)
I'm using LuaLaTeX in TeXLive on Win10.
So far, my efforts to setkomavar{firsthead}
and setkomavar{fromlogo}
do not produce an image.
Using documentclass{scrartcl}
and scrletter
, I was able to set the logo using firsthead, but my attempts to move it up failed.
A MWE:
\documentclass[
a4paper,
11pt,
backaddress=off,
pagenumber=no,
fromalign=locationright,
enlargefirstpage=false,
foldmarks=off]{scrlttr2}
\usepackage[margin=2cm]{geometry}
\usepackage{graphicx}
\usepackage{lipsum}
\usepackage{mwe}
%\makeatletter
% \@setplength{firstheadvpos}{-20mm} % doesn't seem to move logo up
% \@addtoplength[-]{firstheadvpos}{40mm} % also seems to do nothing
%\makeatother
\setkomavar{fromaddress}{Santa Claus\\ North Pole H0H 0H0\\ Canada}
% \setkomavar{firsthead}{\hfill\includegraphics[height=3cm]{example-image}}
\setkomavar{fromlogo}{\includegraphics[width=3cm]{example-image}}
\begin{document}
\begin{letter}{Colin Rowat \\ South Pole}
\opening{Dear Colin,}
\lipsum
\closing{Ho Ho Ho,}
\end{letter}
\end{document}
fromlogo=on,
to see the picture.