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




    \chapter{Chapter 1}
    \section{This is a section}

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

Chapter title spacing 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:

Bottom and top text

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:

Vertical separation

Is this something that can be changed?

  • 1
    There's no space from the bottom margin (one has to take into account descenders).
    – Bernard
    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?
    – ralk912
    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.
    – Sigur
    Feb 14, 2019 at 19:40
  • Make a test with top=0in,includehead and top=0in to see the behaviour.
    – Sigur
    Feb 14, 2019 at 19:44
  • 1
    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.
    – Sigur
    Feb 14, 2019 at 19:52

1 Answer 1


Is this what you want?


enter image description here

  • Ah! That's what I was looking for for the chapter title. But there is also that tiny vertical space between the frame and the text, which I assume is set for all pages since it looks like the same one on page 2, where there's no title. Any ideas on that?
    – ralk912
    Feb 14, 2019 at 19:41
  • 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.
    – Sigur
    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.
    – ralk912
    Feb 14, 2019 at 19:48

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.