next up previous
Next: About this document ... Up: An introduction to TEX Previous: LATEX FAQs during the

LATEX exercises

Check out the following resources. You should READ this brief introduction to LATEX in class: http://www.tug.org/tutorials/tugindia/chap03-scr.pdf.
Another Useful guide regarding mathematics in LATEX is http://www.tug.org/tutorials/tugindia/chap11-scr.pdf.
The full AMSTeX guide is available at ftp://ftp.ams.org/pub/tex/doc/amsmath/amsldoc.pdf.
And there is a quick reference at ftp://ftp.ams.org/pub/tex/doc/amsmath/short-math-guide.pdf.

LATEX Exercises I--Mostly structural

  1. PRINT and READ The previous section, Anatomy of a LATEX Document. This will be a very handy resource as you prepare your final project.
  2. READ this brief introduction to LATEX in class: http://www.tug.org/tutorials/tugindia/chap03-scr.pdf.
  3. READ this chapter too, on mathematics in LATEX http://www.tug.org/tutorials/tugindia/chap11-scr.pdf.
  4. Do all of the following in the same LATEX document. Do not delete this document. You want to save it so you can use it for reference, later.

  5. Begin by creating a simple file with only three lines, and make sure it compiles:
    \documentclass{article}
    \begin{document}
    Here is a test document.
    \end{document}

  6. Now try to create a title and author using the special LATEX commands for this.

  7. Next, create two lists, one with the itemize environment, and one with the enumerate environment. Both use the command \item to indicate a new entry in the list. What's the difference?

  8. Using the \section commands, try to put your fist list in Section 1, and the second list in Section 2. Give your sections names.

  9. Put some \subitem in each list.

  10. Instead of using \subitem , try nesting lists in both the itemize and enumerate environments, so you have something like this:
    \begin{itemize}
    \item Number One
    \begin{itemize}
    \item This is a sub item
    \end{itemize}
    \end{itemize}

  11. Try making a small table, using the table environment.

  12. Experiment with math mode. Type the simple equation $ x=y$ in both ``inline'' or ``text'' mode, and also from within the equation environment. What differences do you see?

  13. In a new equation environment, experiment with super and sub-scripts. Produce the following:

    $\displaystyle {{x^2}^3}^4 = {y_2}_3$ (1)

  14. Start a new equation environment and try this formula:

    $\displaystyle \lim_{x\to 0} \frac{\sin x}{x} = 1$ (2)

  15. Now that you've tried the fraction, see if you can get the groupings to look right in this equation:

    $\displaystyle \left( 1+2 \right) \left[ \frac{a}{b}\right]$ (3)

  16. Let's try some Greek symbols

    $\displaystyle p_1(n)=\lim_{n\to\infty} \sum^{\infty}_{\nu=0}\left( 1-\cos^{2m}\left( \nu! ^n \pi / n \right) \right)$ (4)

See if you can create the formulas in this sample document: Sample formulas.


next up previous
Next: About this document ... Up: An introduction to TEX Previous: LATEX FAQs during the
David Wood 2007-06-25