A quick guide to LaTeX

This semester I’ll be teaching real analysis. I am going to have the students type their homework in LaTeX. To make this as easy for them as possible, I will give them a template that is all ready for them to enter their solutions. They shouldn’t have to worry about headers, packages, font sizes, margins, etc. Furthermore, I decided that I should give them a LaTeX cheat sheet—a single document that has all the LaTeX information that they will need. I’ve created LaTeX cheat sheets like this before—but one was for real analysis, one was for topology, one was for linear algebra, and one was for discrete math. Each cheat sheet had different symbols.

So, I decided to bring them all together into a one-size-fits-all LaTeX cheat sheet. I kept it to two pages, so it can be printed (double-sided) on one piece of paper. (I have also posted the LaTeX code. Feel free to take it, edit it, and use it.)

It doesn’t have everything. As I said, I’ve left out all information about headers, etc. Also, since these students will probably not be using figures or tables, I’ve left them out. [Update: I added information about figures. I also added links to some online resources.]

Please let me know in the comments if there is anything that you think I should add. I still have a week and a half to tinker with it before classes begin. Also, please let me know if you find any errors. Thanks!

[Note: When I began this project I intended to modify this cheat sheet by Winston Chang to suit my needs. But in the end, I wiped it clean and started from scratch. (I did use his very nice three-column format though.)]

17 Comments

  1. sherifffruitfly says:

    Does the cheat sheet include a linky to the standard LaTeX guide? (lshort.pdf, I think it’s called)

    1. Nope. It also doesn’t have information about software, etc. I’ll probably update this old web page of mine to have that type of info.

  2. Fabio says:

    The commands for quote marks (and single quotes) are not showing properly (I mean, they are showing as almost proper quote marks instead of the commands you need to type for latex to show quote marks). No idea how to display the proper characters in latex, though (maybe \textquotesingle for the right hand one).

    1. Hey, Fabio! Thanks. Yes, I really wanted characters that looked like primes and backward primes (like on the keyboard), but didn’t (and still don’t) know how to do that. Perhaps someone will respond with a solution.

  3. Don’t teach your students to use double dollar signs, that is not recommended for LaTeX. Instead, use \[ … \] or \begin{equation} … \end{equation}. See l2tabu[1]. (The german version is more updated than the english version, but both feature this tip.)

    Also, the amsmath package provides several matrix environments that you can use instead of \left|\begin{array} etc., but that is perhaps more a matter of taste. See the amsmath manual (“texdoc amsmath” in a command line) section 4.1 for a complete list.

    [1]http://www.ctan.org/tex-archive/info/l2tabu

    1. That is SO FUNNY that you wrote that. I always use \[ and \], and that’s what I had in there until the very end. I put in the $$ thinking that it would be less confusing. Based on your comment, I think I’ll switch it back. I also debated about whether to use \emph use \textit (I always use the former, but I thought the latter might be easier for them to remember).

  4. Matthew Arbo says:

    Unless I’m severely misreading, you have a typo in there under “Equations,” where you say how to write math inline.

  5. Peter says:

    I know that it’s probably too late with the class starting so soon, but since you seem to want to shield your students from the unnecessary complexities of document formatting with LaTeX, I wanted to point out one alternative that I’ve started to like very much.

    Namely, using markdown+mathjax just like mathoverflow. You get the strength of LaTeX for writing mathematical formulae (with your cheatsheet) but the light weight and much more human readable markup language that is markdown.

    There’s a nice, simple (and open source) text editor called Qute that offers a live preview much like mathoverflow. (disclaimer: it’s written by a friend of mine)

    Of course, you can still convert everything to LaTeX later — pandoc is an amazing tool.

    Anyway, just a thought.

    1. Cool. Thanks for sharing that.

      1. Peter says:

        If it’s really an option and you and the students will actually use it, we should get in touch — Felix is definitely eager for feedback and improvements (other than being bugged by me all the time) and I’d love to hear about how useful it turns out to be.

  6. Dave Riegert says:

    I had another suggestion for editors. When I first started using LaTeX I used LyX (http://www.lyx.org/) because as you type your mathematical statements, it displays it directly (live preview I suppose – as above). You don’t need to convert to a PDF to make sure that what you typed in was correct.

    I don’t think you have as much flexibility as working directly with the LaTeX, but it gives you a really good feel for what you can accomplish with LaTeX without the learning curve.

    Also, since you would be using a template anyway, I believe (not 100% sure) you can just open the template in LyX and type away.

    Just another option.

  7. Kate Nowak says:

    This is so beautiful it made me cry a little bit.

    1. You crack me up, Kate. Glad you like it.

Comments are closed.