1

I'm looking to perform a word count on a long PDF that contains many footnotes and citations. Is there an easy way to prevent basically anything that would appear as a footnote, including auto-citations in BibLaTeX, from being printed?

MWE (compiles with XeLaTeX):

\documentclass[a4paper,11pt]{memoir}

\usepackage{polyglossia}
\setmainlanguage[variant=usmax]{english}
\usepackage[backend=biber]{biblatex-chicago}
\usepackage{filecontents}

\begin{filecontents}{lib.bib}
@book{foobar,
title = {Foo},
author = {John Bar},
location = {Footown},
publisher = {Bar},
date = {2005},
}
\end{filecontents}
\bibliography{lib.bib}

\begin{document}

Some text that I want to be in the word count.\autocite[Prenote][Postnote]{foobar} Some more text.\footnote{A footnote}

\end{document}
  • 1
    \renewcommand{\footnote}[1]{} would be my first guess, but i haven't tested it. – Johannes_B Jun 10 '15 at 10:19
  • So I thought of something similar. The difficulty is with \autocite, where there can be multiple optional arguments. I was hoping that there was something that would just suppress the printing of the box under the line where footnotes are printed. – DavidR Jun 10 '15 at 10:23
  • Please provide a minimal working example for the convenience of the helpers. – Johannes_B Jun 10 '15 at 10:25
  • 2
    Did you actually try \renewcommand\footnote[1]{}? Or do you simply guess that it doesn't work? – Ulrike Fischer Jun 10 '15 at 10:59
  • 1
    redefining footnote works perfectly fine for me. – Johannes_B Jun 10 '15 at 11:49
1

If you redefine the footnote command to do exactly nothing, no footnote will be printed in your document.

\renewcommand\footnote[1]{}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.