Results 1 to 4 of 4

Math Help - [Latex] remove heading space at start of document.

  1. #1
    Member
    Joined
    Mar 2007
    Posts
    206
    Awards
    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
    Follow Math Help Forum on Facebook and Google+

  2. #2
    Moo
    Moo is offline
    A Cute Angle Moo's Avatar
    Joined
    Mar 2008
    From
    P(I'm here)=1/3, P(I'm there)=t+1/3
    Posts
    5,618
    Thanks
    6
    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)
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Super Member flyingsquirrel's Avatar
    Joined
    Apr 2008
    Posts
    802
    Hi,
    Quote Originally Posted by elbarto View Post
    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}
    Attached Files Attached Files
    Follow Math Help Forum on Facebook and Google+

  4. #4
    Member
    Joined
    Mar 2007
    Posts
    206
    Awards
    1
    Thanks a lot guys - Thats exactly what I'm looking for.

    Regards Elbarto
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. how do you start with LaTeX?
    Posted in the LaTeX Help Forum
    Replies: 5
    Last Post: August 14th 2011, 08:40 PM
  2. How to embed LaTeX into an HTML document.
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: December 16th 2010, 02:21 PM
  3. Creating 2 columns in latex document
    Posted in the LaTeX Help Forum
    Replies: 1
    Last Post: June 27th 2010, 11:01 AM
  4. Replies: 6
    Last Post: December 21st 2009, 06:54 PM
  5. convert Russian Word document into Tex/Latex
    Posted in the LaTeX Help Forum
    Replies: 0
    Last Post: April 9th 2009, 10:01 PM

Search Tags


/mathhelpforum @mathhelpforum