# Spacing issues from vertical margins

I am trying to make the text in my document to align with the margins of my document. Here's a MWE

\documentclass[12pt]{report}
\usepackage[top=1.0in,hmargin=1.25in,height=9.0in,letterpaper,showframe]{geometry}
\usepackage{setspace}
\usepackage{titlesec}
\usepackage{blindtext}

\titleformat{\chapter}{\bfseries}{\thechapter}{1em}{}{}
\titlespacing{\chapter}{0pt}{0pt}{12pt}

\titleformat{\section}{\bfseries}{\thesection}{1em}{}{}
\titlespacing{\section}{0pt}{12pt}{12pt}

\begin{document}
\doublespace
\chapter{Chapter 1}
\blindtext
\section{This is a section}
\Blindtext
\end{document}


There are two issues. The first, on the first page with the chapter title, it is very far from the top margin:

I was under the impression that using the titlesec package and setting the spacing as 0pt would remove the space before, but it doesn't. I found here that the report class uses 50pt of spacing, but using -50pt in the \titlespacing section moves the chapter title too much. I can play with it so it gets to the line, but I am wondering if there's a proper way to do this.

Second, you can see that there is a space between the text and the bottom and top margins:

I have no idea how to remove that space from the top margin. I am less concerned about the bottom margin since one can argue that that spacing will change depending on how much text the page contains, but I am also curious if it is possible to remove that space.

Edit: I fixed the separation from the chapter title according to the solution given. The space between text and margin I'm talking about is this one:

Is this something that can be changed?

• There's no space from the bottom margin (one has to take into account descenders). Feb 14, 2019 at 19:37
• @Bernard Missed that, you're right! But I'm not that crazy about the vertical space between the text and the top margin, am I? Feb 14, 2019 at 19:40
• Maybe you wish to deal with header height, controled by head=10pt in geometry options. Also, there is headsep. Feb 14, 2019 at 19:40
• Make a test with top=0in,includehead and top=0in to see the behaviour. Feb 14, 2019 at 19:44
• So, what you want is to put the top of title at the top of the text area. If you use -1.1\baselineskip it would be almost there. But remember that there could be some glyph taller than capital letters. Feb 14, 2019 at 19:52

\titlespacing{\chapter}{0pt}{-\baselineskip}{12pt}

• That space is for header. See my comments on your post. You can control it. There is the includehead option to take it into account when set up top margin. Feb 14, 2019 at 19:42
• I think we may be talking about different things, I edited the post to include a better idea of which space I'm talking about. I set nohead in the geoemetry package and it did not change that space. Feb 14, 2019 at 19:48