Open joel-coffman opened 3 years ago
I'm afraid the implementation of the option file parsing is very lacking, and only supports a subset of the TeXcount instructions.
Fixing this is on my TODO list, but I don't have much time for TeXcount and the TODO list is starting to get long, so I don't want to make any promise as to when I can get around to fixing this.
An alternative which bypasses this problem is to place these TC commands in a separate tex file and either include it in the TeX document (requires -merge
to ensure the file is processed immediately), or run TeXcount on both the options file and the document (eg texcount tcoptions.tex document.tex
). Neither of these solutions are ideal, so I really should fix this as there have been more requests for it.
Thanks for the response, and I understand completely regarding other priorities. If I had any familiarity with Perl, I'd work on a patch myself.
I appreciate the suggested workarounds – I'll give them a shot to see if they're feasible in my workflow.
Consider the following example (from the documentation):
texcount
reports the following:These same TC commands do not work correctly when in an option file. More specifically, consider the following option file:
texcount -opt=<path-to-prior-file>
reports the following:I'm guessing that this parsing failure is a bug unless there's another way to define new counters in an option file?