Home

Awesome

Texprlcount

texprlcount is a Perl script that uses texcount to estimate the word count for Physical Review Letters articles (or other Physical Review articles).

APS sets a limit of 3750 words for PRL articles and provides a guide for estimating the length of a paper:

https://journals.aps.org/authors/length-guide

This script uses the output of texcount to evaluate the word count by considering:

and excluding

Then, it detects the images appearing in the document and their aspect ratio, based on the output log of pdflatex.

Usage

In order to use texprlcount, do the following

  1. Make sure that texcount is installed (most TeX distributions include it). It may be installed by e.g., apt install texlive-extra-utils on Debian sytems.

  2. Fetch the texprlcount script, e.g.,

      wget https://raw.githubusercontent.com/matteoacrossi/texprlcount/master/texprlcount.pl
    
  3. Use texprlcount with the following syntax

     perl texprlcount.pl filename.tex
    
  4. texprlcount looks for the filename.log file for extracting information on images. If the file is not present, texprlcount will compile the .tex file with pdflatex in a temporary folder. If your file requires special instructions for compiling, please compile it and make sure the log file is present in the file directory.

NOTE

texprlcount is offered as a tool for estimating the word count of a tex document. texprlcount may fail to produce the correct estimation for a number of reasons and should be used with caution. Apart from unknown bugs, the following are known limitations.

Current limitations