[Tex/LaTex] Modifying Koma-Script header

header-footerkoma-script

I'm trying to customize the header of my srcartcl. I found this question which lead me to use \deftriplepagestyle to include an image into my header. Neat!

\deftriplepagestyle{default}
{}
{}
{\includegraphics[height=0.6cm,valign=c]{myCoolLogo}-Software} 
{}
{\pagemark}
{}

However, I would also want to include the section name (and maybe number) into the header and I cannot find any solutions on the web, which allow both (section names and image).

(How) can this be done?

Best Answer

Don't use the interface for advanced users, use the simple interface for normal users.

\documentclass[
headheight=22pt
]{scrartcl}
\usepackage{scrlayer-scrpage}
\usepackage{graphicx}
\usepackage{blindtext}
\automark{section}
\ohead{\includegraphics[height=.6cm]{example-image-1x1}}
\begin{document}
\Blinddocument
\end{document}