diff --git a/texprlcount.pl b/texprlcount.pl index f5b397a..80838f8 100755 --- a/texprlcount.pl +++ b/texprlcount.pl @@ -85,6 +85,9 @@ (&@) # We strip comments from the tex file $texfile =~ s/[^\\]%[^\n]*//g; +# Strip appendix +$texfile =~ s/\\appendix.*?\\end\{document\}/\\end\{document\}/sg; + # We count the number of characters in the abstract my $abstract; ($abstract) = $texfile =~ /\\begin\{abstract\}(.*?)\\end\{abstract\}/s;