I would like to create a pdf file that containes only the table captions, but not the content of the table. So I tried to redefine the tabular environment in the preamble of my document (it is probably not the best solution but I don't mind quick and dirty - I need to use it only temporarily):

```
\let\oldtabular\tabular
\let\endoldtabular\endtabular
\renewenvironment{tabular}{\iffalse\oldtabular}{\endoldtabular\fi}

```

or

```
\usepackage{etoolbox}
\preto\tabular{\iffalse}
\appto\tabular{\fi}

```

Unfortunatelly, it seems to have no effect on my document. If I manually frame the tabular environment it works:

```
\begin{table}[htbp]
    \centering
    \caption{my captiontext}
    \iffalse
        \begin{tabular}
            Content I don't want to see
        \end{tabular}
    \fi
    \label{myTableLabel}
\end{table}

```

Thanks in advance for any input!