I have this strange requirement that chapter titles shall only appear in the \tableofcontents and page headings, but not in the document body.
I have been successful in removing the number by using:
\renewcommand*{\chapterformat}{}%
And the text doesn't appear if I use:
\chapter[Test]{}
But I can't get rid of the vertical space. I played around with the things suggested here, but none of those remove all of the space.
If I do \renewcommand{\chapterheadstartvskip}{\vspace*{-25pt}}, that actually does remove all space, but only as long as I don't modify the 10pt option passed to scrbook. (It also seems to be font-dependant, because I need to use a truetype font I can't post here that I import using fontspec, and for that font, -29.3pt is the measure to use at 10pt size).
So, is there any 'portable' way to make page 2 of the document look like page 1? Would it possibly be easier to redefine \chapter, or to use {book} and {titlesec} (as I believe titlesec and the koma-classes don't get along very well)? The project is still at a very early stage, so I could still make any of these changes without breaking anything.
MWE:
\documentclass[10pt,a4paper,oneside]{scrbook}
\usepackage[showframe]{geometry}
\usepackage{lmodern}
\renewcommand{\chapterpagestyle}{headings}
% remove chapter number
\renewcommand*{\chapterformat}{}%
% removes some vertical space, but not all:
\RedeclareSectionCommand[beforeskip=0pt,afterskip=0pt]{chapter}
% works for 10pt only
% \renewcommand{\chapterheadstartvskip}{\vspace*{-25pt}}
\parindent0pt
\begin{document}
Test
\newpage
\chapter[Test]{}
Test
\end{document}
Output:





