As some older ITE@GT folks may know, Greg shared a LaTeX template for TRB here three years ago. His template enabled you to dynamically generate your TRB paper using documentation software such as R, LaTeX, and Sweave. It is a very useful tool for people who like to use R for data analysis and graphics. It is also very useful for people like to create a “dynamic document”. As I was playing with it, I realized that a minor feature was not included in the template, which is the total word count. By total word count, I mean the sum of the count of words and the equivalent counts of words from tables and figures (each table/figure accounts for 250 words).
To my surprise, in LaTeX, it is not a very straight-forward task. There is no default command or package in LaTeX that you can directly use. After trying a couple of days with no luck, I posted my question on Tex.SX and got a solution. So I implemented the solution on Greg’s previous template, added some other minor tweaks, and thought I should share it with y’all in case anyone is interested.
So here is an updated version of the TRB LaTeX template, developed based on the impressive work by David Pritchard as well as Greg, with some additional features such as the automatic total word count and some minor formatting.
Similar to Greg’s template, to make this document, you will need to have LaTeX and R installed on your system. Here is an example of the final document trb_template, although there is still work to be done, personally, I think it is good enough (and I think we spent too much effort on it already :P). Essential files, including the .rnw file, the BibTex definition file, and the .bib file, can be downloaded as a .zip file here.