Many students choose to write their thesis in LaTeX. To facilitate this we have created a document class (BYUPhys.cls) that encapsulates the basic format of a thesis and a template document that demonstrates how to use this class. The class has options for producing a senior, honors, or masters thesis as well as a PhD dissertation. To test it out, create a new folder and unzip the following files into the folder
The file 'template.tex' has quite a few comments to help you understand how it works. If you compile 'template.tex' using pdflatex, you should get the following output:
For longer documents, it is often nice to split the document into several files and keep track of references using BibTeX. If you would like to see an example of how to do this, create another new directory and unzip the following files into it:
If you compile the file 'thesis.tex' using pdflatex, you should get a pdf of the document "Incredibly Useful Advise for Physics Students Writing a Senior Thesis". Notice that the references for this document are stored in the file 'references.bib', and the file 'phBYU.bst' is included to designate how the references should be formatted (your advisor may have you use a different format). If you have questions about getting the template to run correctly or think you have found a bug, you can email Michael Ware about the problem.
There are some excellent tutorials available for learning LaTeX, so we won't try to recreate one here. You might start with one of the documents listed at http://www.latex-project.org/guides/, or you can do a web search for "latex tutorial" and you will find many excellent introductory documents. Take the time to read an online tutorial about LaTeX. If you get stuck, ask around for help. There are a number of students and professors that are familiar with LaTeX and can help you with the basics. Here are some answers to questions that students regularly ask
How do I get LaTeX to run on my personal computer?
On a windows machine, a common way to get LaTeX working is as follows:On a Macintosh, TexShop is a good way to go. Their web site provides installation instructions. If you run Linux, you probably already have LaTeX installed.
What's the deal with DVI, PDF, and Graphics Files?
Traditional LaTeX puts the finished output in a Device Independent (DVI) file. DVI files have the advantage that you can perform an inverse search from a DVI, i.e. you can double click on the nicely formatted DVI and it will take you to the associated place in your LaTeX source file so you can edit it. The only kind of graphics that can be included in a DVI file are Encapsulated PostScript (EPS) files.
Today, Adobe's Portable Document Format (PDF) is the standard for electronic documents. You can convert DVI documents into PDF documents, but normally you shouldn't use this option (the resulting PDF files are large and lack many linking features). Instead, the preferred way to create a PDF is to use PDFLaTeX, which creates a PDF directly from your LaTeX source. PDFLaTeX can include a number of graphics file formats in the finished PDF, but it can't include EPS files.
When creating figures files for your thesis, you should save them in a format that can handle vector graphics (EPS or PDF) rather than one that only handles raster images (jpeg or png). This will make the print quality of the figures much higher. It is usually easier to create EPS files, so a common practice is to create all of your graphics in the EPS format and use plain LaTeX and DVI files (with the inverse search) to get your thesis into shape. Then, when you want to create a PDF of your thesis you can run a utility called "epstopdf" that creates a PDF graphics file from each of your EPS graphics. These PDF graphics files can be included in the PDF of your thesis when you run PDFLaTeX. To make this procedure work right, don't use file name extensions in the \includegraphics command (e.g. use \includegraphics{mygraphic} not \includefile{mygraphic.eps}). LaTeX will automatically look for files with an .eps extension, and PDFLaTeX will automatically look for files with a .pdf extension.
How do I create an EPS graphics file?
First you have to decide what program you will use to create your graphics. You should always use vector graphics (rather than raster graphics) for line drawings and plots. While we don't have a commercial vector drawing program available on the department computers, there are several workable options for you to create your graphics. Perhaps the easiest is to just use the drawing capabilities in PowerPoint.
Most dedicated graphics programs let you export EPS files directly, but PowerPoint lacks this capability. However, you can make an EPS file from any program that can print using the following procedure: