3

I'm writing a Statement of Purpose, in which I've opted to leave out the title altogether, and instead put the details of myself (name, program etc) in the header. While this works fine, I have trouble in reducing the gap between the header and the first line of text on the page. I tried using \vspace, but that doesn't seem to help as I see no difference at all. Also, using vspace is OK for the first page, but since I should have no idea when the next page begin, I wouldn't know where to put the \vspace for Page 2.

Here's a minimal document :

\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc} 
\usepackage[margin=1in]{geometry}
\usepackage{fancyheadings}
\pagestyle{fancy}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}

\fancyhead{}
\fancyfoot{}

\fancyhead[CO, CE]{Name}
\fancyhead[LO, LE]{Statement of Purpose}
\fancyhead[RO, RE]{Computer Science, PhD}


\begin{document}

It is my greatest desire ...

\end{document}

1 Answer 1

8
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[margin=1in,headsep=0pt]{geometry}
\usepackage{fancyhdr}
\pagestyle{fancy}

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}}
\newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}

\fancyhf{} % clear all fields

\fancyhead[C]{Name}
\fancyhead[L]{Statement of Purpose}
\fancyhead[R]{Computer Science, PhD}


\begin{document}

It is my greatest desire ...\lipsum

\end{document}

Set headsep to zero; the lipsum package is only used to generate dummy text. Use fancyhdr rather than the obsolete fancyheadings.

2
  • Would you happen to know what the default value of headsep is ? I made it 0, and found its rather too tight - so I wanted to pick a value lower than the default value but > 0.
    – TCSGrad
    Nov 7, 2011 at 13:51
  • 1
    The default value for the article class is 25pt
    – egreg
    Nov 7, 2011 at 13:59

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .