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.
\documentclass{article}
\begin{document}
foo
\end{document}

This code leaves a very big whitespace above foo. Why is this and how do I make it smaller?

\usepackage[showframe=true]{geometry} (thanks for the tip cmhughes) gives me

enter image description here

share|improve this question
1  
What do you mean with space? Do you mean the margin size? –  azetina Aug 20 '12 at 20:42
1  
adjust the page size using geometry. If you use \documentclass{article}\usepackage[showframe=true]{geometry} \begin{document} foo \end{document} then you'll have a nice visualization of the current page setup –  cmhughes Aug 20 '12 at 20:45
    
@azetina That's exactly the question. I don't know why this white space is there. If I knew it was f.e. the margin size, I could look into how to change that value, but I don't know what it is that causes it. –  Edward Stumperd Aug 20 '12 at 20:47
2  
The extra white space is usually for headers and footers like footnotes or for example with the fancy page style the headers and footers. You can use: \usepackage[top=length,bottom=length]{geometry} or the sort. Do you have experience with the geomtery package? –  azetina Aug 20 '12 at 20:53
    
No, I'm afraid I had no experience with it before your post. –  Edward Stumperd Aug 20 '12 at 21:13

1 Answer 1

up vote 2 down vote accepted

This is enough smaller?

\documentclass{article}
\usepackage{lipsum}
\usepackage[showframe=true]{geometry}
\geometry{verbose,tmargin=0pt,bmargin=90pt,lmargin=90pt,
rmargin=90pt}
\begin{document}
\lipsum[1-10]
\end{document}
share|improve this answer

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.