A LaTeX template for preparing papers for the Transportation Research Board (TRB) Annual Meeting.
This is a lightweight version of the earlier TRB LaTeX + R/Sweave template.
- The previous version was built for workflows combining R, Sweave, and LaTeX.
- This version is designed for those who need a straightforward LaTeX-only template for TRB papers.
The template uses external shell commands for the word count feature (via texcount). You must compile with the -shell-escape option. For example:
latexmk trb_template.tex -pdf -pvc -shell-escapeNote: texcount requires Perl. Install a Perl interpreter such as ActivePerl.
- Copy
trb.bstandtrbunofficial.clsinto your project directory. - Update your preamble in
trb_template.texto supplement those already intrbunofficial.cls. - Run
latexmkwith the-shell-escapeoption (see above).latexmkautomatically recompiles when source files change. - If using version control (recommended), commit the template files to your repository.
If you are using TeXstudio, enable -shell-escape:
- Go to Options → Configure TeXstudio → Commands → pdflatex
- Update the command to:
pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape %.texThe template automatically detects the main TeX file name for word counting. If you rename your main file, no changes are needed in trbunofficial.cls.
This works by including:
\usepackage[realmainfile]{currfile}
\quickwordcount{\currfilebase}The total word count includes:
- Title page text (except the footnote)
- Paper body
- References
Excluded:
- Title page footnote
- Text inside tables (each table is counted as 250 words, regardless of content)
See TRB’s guidelines
The included latexmkrc file ensures the submission date on the title page auto-populates according to TRB’s event clock: https://trb.secure-platform.com/a/page/TRBPaperReview/trbamfaq#due
This template is also available on Overleaf: https://www.overleaf.com/latex/templates/transportation-research-board-trb-latex-template/jkfndnnkkksw