using texcount in the command line interface produces the error 'could not recognise package list'. I'm using
texcount -1 -sum -inc mymainfile.tex
which includes several files in a two different subdirectories with the command \include{mysubdirectory/myfile}
. This all compiles with no errors in LaTeX.
Edit: It seems that hyperref and geometry with \usepackage are causing the errors.
Edit: Deleted "The only related information I've found online is that texcount used to have a problem with packages with hyphens in their names (probably fixed since 2013), but I can't see a way around this to check."
\usepackage
or a similar macro which TeXcount fails to parse. If you add the option-v
for verbose output, it should be more clear which macro produces the error.\usepackage
or\RequirePackage
) causes the error. Without knowing that, it's hard to tell exactly what the cause is and what can be done to either fix or bypass it.-relaxed
option may help, but TeXcount may be restrictive in allowing options covering multiple lines.