# How to change vertical spacing on frontmatter chapters

by José Manuel Slater Carrasco   Last Updated January 20, 2018 06:23 AM

I'm new to latex, and I'm writing a document (book), since vertical space above \chapter is to big I want to reduce it, for chapters in the mainmatter I have no problem, because I use

\documentclass [12pt,oneside]{book}
\usepackage{titlesec}

\titleformat{\chapter}{\Huge\bfseries}{\chaptername\ \thechapter}{0pt}{\vskip40pt\raggedright}
\titlespacing{\chapter}{0pt}{-50pt}{40pt}
\begin{document}
\frontmatter

\tableofcontents
\chapter{Abstract}
this...
\mainmatter
\chapter{Introduction}
work...
\chapter{Results}
good ones...
\end{document}


where the "-50pt" is my desired vertical space above chapter. The problem arises when I try to do the same on the frontmatter chapters (abstract, toc, dedication, etc), since the code above does not affect them. Is there a way to achieve this?