13

I currently don't like the typesetting of a document. In my two sided document, I want that the chapter headings not have a vertical space before their appearance.

The text on the second page should start at line 1 or if it's possible on line 2.

My document preamble:

\documentclass[12pt,parskip=half,a4paper,twoside]{scrreprt}
[..]
\usepackage{fancyhdr}
\usepackage{titlesec}
[..]
\titleformat{\chapter}[hang]{\normalfont\huge\bfseries}{\thechapter}{1em}{\Huge}
\titlespacing*{\chapter}{0pt}{0pt}{1em}

\titleformat{\section}{\normalfont\Large\bfseries}{\thesection}{1em}{}
\titlespacing*{\section}{0em}{1em}{0em}

\titleformat{\subsection}{\normalfont\large\bfseries}{\thesubsection}{1em}{}
\titleformat{\subsubsection}{\normalfont\normalsize\bfseries}{\thesubsubsection}{1em}{}
\titleformat{\paragraph}[runin]{\normalfont\normalsize\bfseries}{\theparagraph}{1em}{}
\titleformat{\subparagraph}[runin]{\normalfont\normalsize\bfseries}{\thesubparagraph}{1em}{}

\begin{document}
[..]
\end{document}

Margin

  • I see no vertical space before the chapter title. – egreg Dec 2 '11 at 21:47
  • On the second page appear the text before the chapter heading on the first page. How can I make that everything on the same vertical position starts? – Robin Dec 2 '11 at 21:53
  • Oh, yeah! That's not the heading, but a subsection title. – egreg Dec 2 '11 at 21:56
12

You can try with

\renewcommand{\chapterheadstartvskip}{\vspace*{-2\baselineskip}}

in your document preamble.

When using titlesec as you do, write

\titlespacing*{\chapter}{0pt}{-2\baselineskip}{1em}
| improve this answer | |
  • Thank you for your answer. Unfortunately, it does not work. I use the package titlesec. Is this might the problem? – Robin Dec 2 '11 at 22:39
  • @Sam If you want help about this you should show the relevant parts of your preamble. – egreg Dec 2 '11 at 22:43
  • Your solution works when I don't use titlesec. I've updated my question. I think that's all, what is in context with my problem. – Robin Dec 2 '11 at 22:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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