SublimeLaTeXWordCount icon indicating copy to clipboard operation
SublimeLaTeXWordCount copied to clipboard

Exclude footnotes not working?

Open nickeubank opened this issue 8 years ago • 0 comments

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:

screen shot 2016-12-12 at 8 45 49 am

Suggestions?

I can hack it by adding footnote to the markup_commands list, just wondering if others having problem with global command.

nickeubank avatar Dec 12 '16 16:12 nickeubank