Math 3220-1, Foundations of Analysis II, Summer 2010

Instructor: Robert Hanson

Office: TBA

email: (this is the best way to contact me)

Office Phone: TBA

Office Hours: By appointment

This page is a short tutorial on how to TeX your homework assignments for this course.

Log in to one of the math department computers. Then open a terminal window (look under Applications > Utilities > Terminal).

Next, you should create a directory for your homework assignments. At the command prompt (which might say something like "1 sunbeam >") type:
mkdir 3220
cd 3220

Now you have made a directory called 3220 and are in that directory.

It might be a good idea to learn how to copy, move, and delete files. The commands are cp, mv, and rm. To see a help file on a particular command, copying for instance, type man cp. The "man" takes you to the Unix Manual. To get out of the maual, press q.

Below are links to homework templates. Click on the link and save the file in your 3220 directory. Go back to the terminal window and type:
gedit HW1.tex &

The "&" tells the computer to run it in the background, so you can still do stuff in the terminal window. You can now edit the .tex file in the gedit window.

When you are ready to compile the file, go to the command line in the terminal window and type:
dolatex HW1.tex

A dialog box should pop up. Click on the button [LaTeX]. Look in the terminal window for messages from DoLaTeX. If there is an error, it will tell you where the error is, and what it thinks might need to be done about it.

When you are able to compile your file error-free, click on the button [View DVI] to preview your document. This is a good way to check that what you wanted to come out on the page actually is coming out on the page. The downside is that it won't show you any figures you have included (it will show you where they are on the page, though).

When the document looks like you want it to look, go to the terminal window and type:
dvipdf HW1.dvi

This will convert your .dvi file into a .pdf file. You can now view and print this file using Adobe Acrobat.

Here is a nice short reference document (.pdf) to use while writing up a LaTeX document. It has more than what you will need for writing up the homeworks.
To add a figure to your document, insert the following text:

You will need to have the file "FILE.eps" in the same directory as your LaTeX document. To create this file, use whatever graphics program you find most convenient for the particular figure, or scan in a hand drawing, and then use that graphics program to Export the file as an Encapsulated Postscript (.EPS).

Here are the .tex files for the homework sets.
HW1.1 and HW1.2