Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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}
share|improve this question
add comment

1 Answer

up vote 6 down vote accepted
\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.

share|improve this answer
    
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 '11 at 13:51
1  
The default value for the article class is 25pt –  egreg Nov 7 '11 at 13:59
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.