Archives For LaTeX

LaTeX Homework Template

August 20, 2012 — 7 Comments

For most of my inquiry-based learning (IBL) proof-based courses, I typically assign two types of homework assignments:

  1. Daily Homework
  2. Weekly Homework

I’ll briefly explain each of these.

Daily Homework

The Daily Homework is assigned each class meeting, and students are expected to complete (or try their best to complete) each assignment before walking into the next class period. All assignments should be carefully, clearly, and cleanly written. Among other things, this means that the work should include proper grammar, punctuation, and spelling. However, the work done on these assignments is not intended to be perfect. The Daily Homework generally consists of tasks (e.g., completing exercises, proving theorems) from the course notes. On the day that a homework assignment is due, the majority of the class period is devoted to students presenting some subset (maybe all) of their proposed solutions/proofs to the tasks that are due that day. Students are allowed (in fact, strongly encouraged!) to modify their written work in light of presentations made in class; however, they are required to use a felt tip pen, which I provide at the beginning of each class. Students can annotate their work as much as they like and there is no penalty for using the felt tip pen. Students submit their their work at the end of class and the assignment is graded on a $\checkmark$-system. Whether the student receives a $\checkmark-$, $\checkmark$, or $\checkmark+$ depends on how much work they had completed before they walked in the room. The felt tip pen strategy works amazingly well.

Weekly Homework

In addition to the Daily Homework, students are also required to submit two formally-written proofs each week. During week $n$, students submit any two problems marked with a $\star$ that were turned in during week $n-1$ for the Daily Homework. The $\star$-problems are typically a subset of the medium to difficult proofs. The students are required to submit a PDF of their write-ups, and in general, the Weekly Homework assignments are due on a non-class session day (so that they don’t interfere with the Daily Homework). One huge advantage of this approach is that students are forced to reflect on the previous week’s work and it allows them another opportunity to learn the material if they didn’t master it the firs time.

If you’d like to know more about my approach to Daily and Weekly Homework, as well as the felt tip pens, check out the slides for this talk. In the future, I plan to write a more extensive blog post about the advantages of the felt tip pens and the multiple rounds of revision that the Weekly Homework promotes.

Using LaTeX for the Weekly Homework

I either require or strongly encourage my students to type up their Weekly Homework assignments using LaTeX. In case you don’t already know, LaTeX (pronounced “lay-tech”, or sometimes “la-tech”) is a markup language that is the standard for typesetting mathematics (and other technical fields). Most people find it difficult to get started with LaTeX and my students are no exception. To minimize some of the initial difficulties, I encourage them to use writeLaTeX, which is an awesome and free online LaTeX editor. This way students do not need to worry about installing the LaTeX backend and an editor. One advantage to writeLaTeX is that my students can easily share their source documents with me. Whenever they are having difficulty, I can just take a look at their file and either make a comment right in the file or do a quick debug. Another way that I try to reduce the LaTeX start-up cost is by providing my students with a LaTeX Homework Template (see below).

This template is set up exactly how I want the Weekly Homework to look. I also provide a minimal amount of guidance, as well as some examples in the template. Here is what the resulting PDF looks like.

Using the template in writeLaTeX is as easy as clicking the link below. Try it!

Feel free to use the template and if you have ideas for improvements, I’d love to hear about them. Lastly, I’ve written a Quick LaTeX Guide to help my students get started with the actual writing of LaTeX.

Update June 2013: I originally encouraged my students to use ScribTeX, which seems to have joined forces with ShareLaTeX. However, I now have my students use writeLaTeX, which my students and I have been very happy with. I modified my original post to reflect my current use of writeLaTeX.

Note: This post overlaps significantly with Mendeley’s blog post found here.

My current reference manager of choice is Mendeley, which is a free desktop and web solution designed for storing, annotating, and sharing research papers, discovering research data and collaborating online. It combines Mendeley Desktop, a PDF and reference management application (available for Mac, Linux, and Windows) with Mendeley Web, an online research paper management tool and social network for researchers. You can find a short YouTube video that describes what Mendeley is here.

For nearly all of my academic writing, I use LaTeX together with BibTeX. One of the many benefits of Mendeley is that it will automatically generate BibTeX files. However, at the time of writing this post (version 1.1.2 and earlier), integration with BibTeX is lacking in a few ways. In order for things to go smoothly, I suggest the following set up in Mendeley Desktop.

You want to uncheck the “Escape LaTeX special characters” box so that braces, backslashes, dollar signs, etc. don’t get clobbered by Mendeley when it generates the corresponding .bib files. You should choose “Create one BibTeX file per collection”. This generates one .bib file for each subcollection (folder or group) you create in Mendeley Desktop. If you don’t do this, Mendeley will create a duplicate entry in your synced .bib file for each entry appearing in a subcollection, which will in turn prevent LaTeX/BibTeX from compiling properly if you happen to cite one of the duplicate entries. I create a new subcollection for every document that I am writing that might require a bibliography.

Once you have got everything set up, it is really easy to incorporate Mendeley into your LaTeX writing workflow. If you want to cite a particular item, just click on it in Mendeley Desktop, hit “command/control-K” to copy the BibTeX citation key, then paste it into the appropriate location in your .tex file.

I’m currently writing a grant proposal and the narrative is supposed to be double-spaced. As with most of my writing, I’m using LaTeX. I’ve double-spaced a .tex document before, but I do it so infrequently that I needed to remind myself how do it. It seems the most common technique is to make use of the setspace package, which you can find here if you don’t already have it. Here are the steps necessary to double-space.

In the preamble of your document add the line usepackage{setspace}. In order to double-space your document, add the line doublespacing before begin{document}.

The setspace package also supports singlespacing, onehalfspacing, and even setstretch{1.5}, where you can change 1.5 to whatever you desire. In addition, you can make a block of text single-spaced in the middle of a double-spaced document by using begin{singlespace}stuff you want single-spacedend{singlespace}.