Ted's Home Page Get Firefox! Get Thunderbird! Friday, April 25, 2014, 4:58 am GMT
    Home :: Contact :: Blog :: Updates (Thu, Sep 29) :: Search :: Highlight Linux :: Apache HTTPD :: PHP :: VIM :: OCS
          email me email me
[Ted and a baby giraffe]
Contact Me
More Information
Faculty Job Search
Industry Job Search
Publication Directory
My Teaching Sites
General Posts
Public hg repos
Public git repos
The Blog
  email me
email me
email me
email me

LaTeX Example :: Homework Assignments (and Similar)

NEW!! – I've put together additional resources relevant to homeworks and reports. Check out: I've also created a public Mercurial repository for the source code to these files at http://hg.tedpavlic.com/homework_texample/

The LaTeX source code distributed below is released for redistribution under a CC BY-NC 3.0 US license.

All of the writing that I do in graduate school is done in LaTeX and typeset in TeX. In order to rapidly learn LaTeX, I decided to submit all of my homework assignments using it. At first, this made assignments take a little longer, but once I got used to it, there were lots of benefits, and, of course, I definitely learned a lot about LaTeX and TeX.

During this time, I put together a LaTeX template for homework assignments (and other similar papers). I'm posting that here in the hope that it will make it easier for others to get started using LaTeX in their homeworks (and then hopefully also in their research publications).

In the templates posted below, I use Stephen Riehm's bracketing rules to mark places where user text should be merged into the template. In other words, wherever you see a <+place holder+>, replace it with the appropriate text. Example text will be given in the caption of the place holder. If you are like me and use VIM, then you should be able to use <C-j> to move from place holder to place holder. (just like moving from bullet to bullet with <C-space> in WinEdt; in fact, I used to use bullets in these files instead, but I started using VIM more than WinEdt, and VIM place holders are more descriptive than WinEdt bullets)

NEW!! – I have made two additional similar homework templates that may also be helpful. Both of these include a subtitle that will be excluded if the subtitle is left blank. Both also include a \matlabscript and a \scalefig macro for including MATLAB scripts and figures easily. Otherwise, the first is almost identical to the original template. The second uses a different type of homeworkProblem that is a macro rather than an environment. This macro allows for subtitles to be used on each homework problem. The titles of the homework problem will be included in the header and footer information while the subtitles will only be shown at the beginning of each problem.

There are comments within the templates that explain the usage of the new macros. See the simple examples for more help. The examples make use of \matlabscript and \scalefig.


appalling appalling
appalling appalling
email me email me
496234 hits
(61 today)
Terms of Use
Ted Pavlic <ted@tedpavlic.com>   appalling appalling appalling appalling email me email me GPG Public Key: D/L, View, Ubuntu, MIT, PGP (verified) (ID: E1E66F7C) This Page Last Updated on Monday, June 13, 2011, 5:00 pm GMT