TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I defined the headmark over \ihead[]{\headmark} and an image over \ohead[\Logo]{\Logo} with the use of koma script. Now I´ve got the problem, that the \headmark is not at the baseline of the head. I helped me by defining \ihead[]{\vphantom{\Logo}\headmark}, but that gives different headers on scrplain and scrheadings. Here is an example:

\documentclass{scrreprt} 
\usepackage[T1]{fontenc}
\usepackage{selinput}
\SelectInputMappings{
    adieresis={ä},
    germandbls={ß},
    Euro={€},
}
\usepackage{blindtext}
\usepackage[  automark
            , headsepline
            , plainheadsepline
           ]{scrpage2}

\pagestyle{scrheadings}
\clearscrheadfoot

\addtolength{\headheight}{1.2cm}
\addtolength{\textheight}{-1.2cm}

\ihead[]{\vphantom{\Logo}\\\headmark}
\ohead[\Logo]{\Logo}

\newcommand{\Logo}{\rule{3cm}{1cm}}

\begin{document}
\blinddocument
\end{document}

How can I adjust the \ihead to the baseline of the header?

share|improve this question

One way is to add a linebreak to the arguments of \ohead:

\ihead[]{\vphantom{\Logo}\\\headmark}
\ohead[\\\Logo]{\\\Logo}
share|improve this answer

I´d like to have the chapter name a bit lower than the logo. So I tested a little bit and got this solution:

\ihead[\vspace*{\dimexpr\the\headheight-\baselineskip}]
      {\vspace*{\dimexpr\the\headheight-2\baselineskip}\\\headmark}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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