Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exclude footnotes not working? #27

Open
nickeubank opened this issue Dec 12, 2016 · 0 comments
Open

Exclude footnotes not working? #27

nickeubank opened this issue Dec 12, 2016 · 0 comments
Labels

Comments

@nickeubank
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants