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.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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 '13 at 17:39
Check out this link: en.wikibooks.org/wiki/LaTeX ... It's a huge help on your everyday work with LaTeX – Oliver Mar 30 '13 at 17:41
I would suggest you to start with a basic introduction to LaTeX; perhaps the lshort document. – Gonzalo Medina Mar 30 '13 at 17:41
Another good option to read is "LATEX for Word Processor Users". – kiss my armpit Mar 30 '13 at 20:18
up vote 5 down vote accepted

My Name\\
My ID Number\\
Class Name

\Huge\textbf{Document Title}




share|improve this answer
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. – Peter Olson Mar 30 '13 at 17:51
@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 '13 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.

share|improve this answer

Your Answer


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.