jameskermode / aps-length

Calculate length (number of equivalent words) for APS manuscripts written with LaTeX
GNU General Public License v2.0
39 stars 16 forks source link

Use wordcount method #7

Open Turgon-Aran-Gondolin opened 6 years ago

Turgon-Aran-Gondolin commented 6 years ago

I tried detex and your program works great, but when I tried wordcount I got

Traceback (most recent call last): File "/pathto/aps-length", line 569, in process(tex_file, opts) File "/pathto/aps-length", line 512, in process main_text_words = count_main_text_words_wordcount(tex_lines, opts) File "/pathto/aps-length", line 310, in count_main_text_words_wordcount line = mod_tex_lines.pop(0) # comment out the \end too IndexError: pop from empty list

BTW I don't know how you invoke wordcount in your code, and both version from dnf and CTAN failed. Could you please help me?