LaTeX Resources, CPSC/PMAT 418, Fall 2017
LaTeX is a powerful typesetting program that is particularly suited for typesetting mathematical symbols.
The textbook for our course was written in LaTeX, for example. You should use LaTeX to write your solutions to the assignments.
Good free LaTeX downloads can be obtained from the following sites:
Here are some useful resources on Latex:
It can be frustrating to start writing a new LaTeX document from scratch. So here are some resources specifically designed
for assignments in this course.
Note that the template and sample files are different for CPSC 418 and PMAT 418, so please be sure to use the correct one
Please do NOT
use the default assignment class provided by LaTeX, but download the customized one from this site!
- Assignment class file - assignment.cls (CPSC) (PMAT)
- Assignment template file - assignment.tex (CPSC) (PMAT)
- Sample assignment source file - sample.tex (CPSC) (PMAT)
- PDF of sample assignment - sample.pdf (CPSC) (PMAT)
Download the class file "assignment.cls" and put it in your working directory or folder.
Also download the assignment template file "assignment.tex" and write your assignments using this template. Be sure to edit the appropriate lines in this template to include
your name, UCID and the assignment number in the correct places.
You can use the sample assignment source file "sample.tex" as a guide.
Some basic LaTeX tips:
- Short expressions can be written inline.
- Long expressions should be centered on a new line using display math, i.e. inside \[ ... \]
- Expressions with several equalities should be split up into several lines, preferably with equalities aligned, using the "align" or the "eqnarray" environment.
- Variables within a sentence should be typeset in math mode, i.e. inside $...$.
- Use the "\frac" command to typeset fractions in displaymath.
- Use "\log" and "\ln" instead of "log" and "ln" for logarithms in math mode.
- The "\text" or "\mbox" command can be used in math mode if you want to write words unitalicized and separated by spaces.
- Importantly, don't leave LaTeX'ing your assignments till the last minute. LaTeX is a programming language, so debugging LaTeX soure files -- just like debuggging any programming code -- takes time.
- Most important of all, proof-read your PDF files before submitting them!
by Renate Scheidler