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?
I tried detex and your program works great, but when I tried wordcount I got
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?