1. ## [Latex] remove heading space at start of document.

Hi,

I am trying to write a program that does some simple calculations and creates a Latex file for output so that the calulations can be easily followed. An example of an output file is below:

Code:
 \documentclass[a4paper,12pt]{article}
\begin{document}
$$y(x) = \sqrt{a + b} = \sqrt{2.20 + 4.60} = 2.61$$
\end{document}
My question is, when I build this file into a pdf the text doesn't start until about a quater of the way down the page because of all the room at the start it allocates for headings etc I presume. Is there a way I can make the text start at the begining of the document or is there a better format for automatically documenting calculations that I should be looking at?

Thank You

Regards Elbarto

2. Hello,

Here is what I use :

Code:
\setlength{\topmargin}{-30pt} % no margin at the top
\setlength{\headheight}{13pt}    % top of the page
\setlength{\headsep}{10pt}    % between top of the page and the text
and along with other settings for the left, right and bottom margins, it gives this : http://www.mathhelpforum.com/math-he...rd-normal.html (see the pdf in the second post)

3. Hi,
Originally Posted by elbarto
Is there a way I can make the text start at the begining of the document or is there a better format for automatically documenting calculations that I should be looking at?
Use the typearea package.
Code:
\documentclass[a4paper,12pt]{article}

\usepackage[DIV15]{typearea}
% 15 can be replaced by any number ranging from 6 to 15.
% The larger the number is, the smaller the margins are.

\usepackage{lipsum}

\begin{document}
\lipsum
\end{document}

4. Thanks a lot guys - Thats exactly what I'm looking for.

Regards Elbarto