I have a longtable and page headers which pick up the first and last item of the table on a page. The solution I achieved with pulling together various pieces of advice from e.g. here Incorrect running heads on last page of a long table and here longtable - how to put the first element on a page into the header but the result is not yet satisfactory; the margins for the header and the margins for the table do not agree.
I would prefer to make the header agree with the table (left and right margin) and cannot make the table narrower.
The MWE is:
\documentclass{scrbook}
\KOMAoptions{paper= 6.14in:9.21in,
BCOR=8mm,twoside,
headinclude=false, footinclude=false,
headings=normal,
titlepage=true,
DIV=13, % textbuecher 11 % textwidth 117
fontsize=11pt,
}
\usepackage[german]{babel}
\usepackage{booktabs,array,microtype, longtable}
\usepackage[automark,headsepline]{scrlayer-scrpage}
\rehead{\leftmark} \rohead{\leftmark}
\lehead{\rightmark} \lohead{\rightmark}
\begin{document}
\newcommand{\dohang}{\hangindent1em\hangafter1 }
{\begin{scriptsize}
\addtolength{\oddsidemargin}{-10mm}
\addtolength{\evensidemargin}{-10mm}
\begin{longtable}{@{}
l
>{\everypar{\dohang}\dohang\raggedright\arraybackslash}p{18mm}
>{\everypar{\dohang}\dohang\raggedright\arraybackslash}p{65mm}
>{\everypar{\dohang}\dohang\raggedright\arraybackslash}p{26mm}
p{9mm}}
{} & Lemma & Gedichtzeile & Gedichttitel & Index \\\\
\endfirsthead
\markboth{Abendsäuseln}{Abendsäuseln}&Abendsäuseln & Eingelullt von Abendsäuseln, & Himmelsleiter & 5:1-3\\
\markboth{abgedorrt}{abgedorrt}&abgedorrt & Doch endlich abgedorrt! & Am Sarg eines & 7:1-3\\
\markboth{alt}{alt}&alt & Hockt vor der Tür und flickt die alten Schuh und wirkt und wirkt bis ans ende der Zeit. & Wie glänzt der helle & 2:1-14\\
\markboth{alt}{alt}& & So ist die alte Eiche & Am Sarg eines & 7:1-2\\
\end{longtable}
\end{scriptsize}
}
\end{document}
Any suggestion how to fix?