I need to do a wordcount of my thesis that excludes tables, but not their legends. I need to remove all of my tables, ideally with a command in the preamble. I am currently using Foxit reader's wordcount tool.
MWE:
\documentclass{article}
\usepackage{multirow}
\begin{document}
\begin{table}[h!]
\centering
\begin{tabular}{l l l l}
\hline
Foo & Bar \\ bar bar bar & Sum & Foo \\ \hline
Foo & Bar & Sum & Foo \\
Foo & Bar & Sum & Foo \\
Foo & Bar & Sum & Foo \\ \hline
\end{tabular}
\caption[Contexts]{Le Table}
\label{table:tisch}
\end{table}
The table is Table \ref{table:tisch}.
\end{document}
tabular
environment to act as acomment
environment?