Coder Social home page Coder Social logo

trb_latex_tex's Introduction

TRB_LaTeX_tex

A LaTeX template for Transportation Research Board Annual Meeting papers.

This is a light version of the former TRB LaTeX template. The previous version was built primarily for people using R, Sweave, and LaTeX. This version is created for people who need a straight-forward LaTeX template for TRB papers.

More instruction and details about the project can be found inside the trb_template.tex. The document uses external shell commands hence it needs to be compiled with -shell-escape option. This is necessary for word count feature which uses texcount program. For example:

latexmk trb_template.tex -pdf -pvc -shell-escape

Perl is necessary for texcount to work and needs a Perl interpreter e.g. ActivePerl.

Usage

  1. Copy the files trb.bst and trbunofficial.cls into the directory for your document
  2. Change the preamble of your document to correspond to the template (trb_template.tex)
  3. Run latexmk to make your document as shown above. Note that latexmk watches for changes and recompiles the document automatically.
  4. Note also that if you use source control on your document (strongly recommended), you need to check in the template files into the repository as well.

Troubleshooting

Shell escape for texcount

Using -shell-escape in TexStudio (original source):

Go to Options->Configure texstudio. Click on Commands. Add -shell-escape flag to pdflatex:

pdflatex.exe -synctex=1 -interaction=nonstopmode -shell-escape %.tex

File name matters

The file name of the primary TeX file (e.g., trb_template.tex) is used for calculating total words. If you changed the file name, you will need to change the corresponding filename in the trbunofficial.cls file, on Line 194, where it says

Word Count: \quickwordcount{trb_template}~words

change that trb_template to the new file name you choose to use for your .tex file. For example, if your TeX file name is main.tex, then Line 194 of your trbunofficial.cls file should start with

Word Count: \quickwordcount{main}~words

Texts not counted toward total word count

Note that the current version of this template does not count \author{} on the title page. It also does not count texts in the references. Please be aware and use caution when you are approaching the word limit.

Overleaf

This template has been published on Overleaf, and it can be found here: https://www.overleaf.com/latex/templates/transportation-research-board-trb-latex-template/jkfndnnkkksw

trb_latex_tex's People

Contributors

chiehrosswang avatar akstrfn avatar retorquere avatar gregmacfarlane avatar shankari avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.