SublimeLaTeXWordCount
SublimeLaTeXWordCount copied to clipboard
Exclude footnotes not working?
Trying to get footnotes counted, but changing setting doesn't seem to be reflected in word counts.
My user settings:
{
"ignore_numbers": false,
// customisable settings for word counts of LaTeX documents
"LaTeX": {
// regular expressions for markup commands. commands not contained in
// this 'whitelist' will be stripped from the text before the words
// are counted, as will formulas, any commands in the preamble (before
// \begin{document}), the abstract, and any text that is commented out
"markup_commands": ["text\\w+", "uppercase", "uline", "emph", "citet", "citep", "cite"],
// whether to exclude \section and \paragraph headers from the wordcount
"exclude_headers": false,
// whether to exclude the content of \footnote{}s
"exclude_footnotes": false,
// whether to exclude all appendix content
"exclude_appendices": true,
// whether to exclude the abstract
"exclude_abstract": true
}
}
Note my user settings are being read -- the citet
addition to markup_commands, for example, is reflected in the word counts. But my footnotes are still being ignored. For example, the text:
Here is a test.\footnote{Should be eight words.}
Generates:
Suggestions?
I can hack it by adding footnote
to the markup_commands list, just wondering if others having problem with global command.