Document Classestop margin of page

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
allevo
Posts: 49
Joined: Sat Apr 11, 2009 12:09 pm

top margin of page

Post by allevo »

hi!!!
in the page in which there is the chapter's heading, the top margin is too big. in fact there is the head of page.
how can I remove the margin heading only pages that contain the title of chapter?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

top margin of page

Post by Stefan Kottwitz »

Hi Allevo,

with the titlesec package you could use \titlespacing, for example:

Code: Select all

\titlespacing*{\chapter}{0pt}{-50pt}{40pt}
Stefan
LaTeX.org admin
allevo
Posts: 49
Joined: Sat Apr 11, 2009 12:09 pm

Re: top margin of page

Post by allevo »

where do i put this command?!?!
Only certain pages should have the edge so

i can rewrite \chapter in this way:
\renewcommand{\chapter}[1]{\titlespacing*{\chapter}{0pt}{-50pt}{40pt}\chapter{#1}}
is correct?!?
User avatar
Stefan Kottwitz
Site Admin
Posts: 10324
Joined: Mon Mar 10, 2008 9:44 pm

Re: top margin of page

Post by Stefan Kottwitz »

No, just write it before \begin{document}, you would see an effect.

Stefan
LaTeX.org admin
Post Reply