I have a longtable which is a tiny bit indented, despite I have set LTleft to zero. The header line of the table "Gedichttitel .." is not aligned with the text above!
Reading other perhaps related questions did not help so far; for example, it seems that @ could be useful in this case, but I cannot understand its use nor find documenation (the documenation for the array package seems to technical for me).
The MVE is:
\documentclass{scrbook}
\KOMAoptions{paper= %161mm:239mm, % increased size to avoid resizing
6.14in:9.21in, %format of proof
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}
\setlength\LTleft{0pt}
\setlength\LTright\fill
\begin{document}
\newcommand{\dohang}{\hangindent1em\hangafter1 }
\section{Titel der Gedichte - Titels of Poems}
Da Gedichttitel manchmal im Laufe der Zeit verändert werden
\begin{longtable}{>{\everypar{\dohang}\dohang\raggedright\arraybackslash}p{0.7\textwidth}
p{0.15\textwidth}
p{0.05\textwidth}
p{0.1\textwidth}}
Gedichttitel - erste Zeile & Anzahl Zeilen & Buch & Nummer \\\\
\endhead
Abendblick vom Hochstein & 16 & 1 & 1 \\
Abschied & 17 & 1 & 56 \\
Als ich zum ersten Male diesen Narren & 14 & 1 & 30 \\
Als König Salomo beim Tempelbau & 14 & 1 & 50 \\
\end{longtable}
\end{document}
What needs to be changed to have the table exactly aligne with the text?




@{}after the last column, and right align column with figures. – Sveinung Jul 11 '19 at 11:01\midrule, and then right aligned the heading of the second column\multicolumn{1}{>{\raggedleft}p{0.12\textwidth}}{Anzahl Zeilen}– Sveinung Jul 11 '19 at 19:47