From e5d8d729558fd668411f1dad720dc280655ec3a1 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 28 Mar 2018 20:08:22 +0100 Subject: [PATCH] Don't count header, footer, title page or ToC towards wordcount --- main.tex | 6 +++++- wordcount.yaml | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/main.tex b/main.tex index 14b8fe6..7c61eee 100644 --- a/main.tex +++ b/main.tex @@ -16,13 +16,17 @@ \author{Some Author} \date{2018-01-01} + $if(secondpass)$ \include{header-footer} + $endif$ \begin{document} + $if(secondpass)$ \input{title} - \tableofcontents + $endif$ + \thispagestyle{empty} \cleardoublepage \setcounter{page}{1} diff --git a/wordcount.yaml b/wordcount.yaml index e8b409b..7ccbbec 100644 --- a/wordcount.yaml +++ b/wordcount.yaml @@ -1,3 +1,4 @@ --- wordcount: {wordcount} +secondpass: true ...