I've been frustrated with using Microsoft Word for typing out equations, so I've decided to switch over to LaTeX to write all of my homework with. I've never used LaTeX before to typeset anything, so I'm a little overwhelmed right now.

At the moment, all I need to do is make a simple document that has the following format:

My Name
My ID Number
Class Name

Document Title

Multiple paragraphs of double-spaced text will go here.

Another paragraph of text.

How can I typeset this simple document in LaTeX?

  • 3
    Relatively recently I was exactly like you. There is already an answer below, but I'll try to predict what is going to happen very soon: you will find yourself frustrated and looking for ways to create tables, add (and trim, and scale, and rotate) images, set up multiple columns and variety of other customizations and tweaks. So to avoid all this I started with "LaTeX Beginners guide" by Stefan Kottwiz (no need to read thoroughly, just things related to your work area) and "The TEXbook" by Donald Knuth is another excellent example.
    – Pranasas
    Mar 30, 2013 at 17:39
  • 1
    Check out this link: en.wikibooks.org/wiki/LaTeX ... It's a huge help on your everyday work with LaTeX
    – Oliver
    Mar 30, 2013 at 17:41
  • 3
    I would suggest you to start with a basic introduction to LaTeX; perhaps the lshort document. Mar 30, 2013 at 17:41
  • Another good option to read is "LATEX for Word Processor Users". Mar 30, 2013 at 20:18

2 Answers 2


My Name\\
My ID Number\\
Class Name

\Huge\textbf{Document Title}




  • I'm accepting this answer because it looks more straightforward and does not have as many advanced features that I don't really understand yet. Mar 30, 2013 at 17:51
  • 2
    @user1494845 ` \\ ` should never be used unless absolutely necessary. I suggest you look into \Author The OP will not have to go through hbox error in the future, if they do not use ` \\ `
    – Jeel Shah
    Mar 30, 2013 at 18:07

Here's one possibility:



\@author \\
\@idnumber \\

\author{My Name}
\classname{General Topology}
\title{Closure of a set}




The first page of the resulting document:

enter image description here

I defined some commands \idnumber and \classname for the ID number and the class name; the \makeheader command typesets the information for these two commands and \author, \title with the desired formatting.

The setspace package was used to change the interline spacing.

The lipsum package was only used to generate text for the example.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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