My university's Ph.D. thesis guidelines specify an exact top-margin on the first pages of chapters. I am trying to use titlesec to set this margin, but it seems to always set it to be more than it should be. The margin from the top of the text area to the word Chapter is more than 0 when the following code is compiled, and as far as I can tell the following code should set it to 0.
\documentclass[12pt]{report}
\usepackage[compact]{titlesec}
\titleformat{\chapter}
[display]
{\normalfont\Large\bfseries\centering}
{\large\chaptertitlename\ \thechapter}
{0in}
{}
\titlespacing*{\chapter}{0pt}{*0}{*0}
\begin{document}
\chapter{Hello}
Hello
\end{document}
What I really want is a top-margin of exactly two inches total above the chapter name. I was hoping, given Gonzalo's response, that the following would work, but it still sets the top-margin to 0. What's even more perplexing is that adding the \vspace*{1in} adds MORE than one inch to the top-margin! Why??
\documentclass[12pt]{report}
\usepackage[showframe]{geometry}
\usepackage[compact]{titlesec}
\titleformat{\chapter}
[display]
{\normalfont\Large\bfseries\centering}
{\large\chaptertitlename\ \thechapter}
{.1in}
{}
% the following block eliminates the extra space above a chapter heading
\makeatletter
\def\ttl@mkchap@i#1#2#3#4#5#6#7{%
\ttl@assign\@tempskipa#3\relax\beforetitleunit
%\vspace*{\@tempskipa}% NEW
%\vspace*{1in}
\global\@afterindenttrue
\ifcase#5 \global\@afterindentfalse\fi
\ttl@assign\@tempskipb#4\relax\aftertitleunit
\ttl@topmode{\@tempskipb}{%
\ttl@select{#6}{#1}{#2}{#7}}%
\ttl@finmarks % Outside the box!
\@ifundefined{ttlp@#6}{}{\ttlp@write{#6}}}
\makeatother
\titlespacing*{\chapter}
{0pt} % left
{1in} % before
{.5in} % after
\begin{document}
\chapter{Hello}
Hello
\end{document}


geometrypackage, for example) the default page layout? If so, please add this information to your question. – Gonzalo Medina Jun 11 '12 at 19:29