2

Is there a way to add code in the beginning of a document in latex to ignore the second column for multiple tables?

Torbjørn T.
  • 206,688

1 Answers1

3

Using the array package one can create a new column type which will void all the data for one column. You will still have to go through all your tabulars and change the column definitions, but you can leave the data intact.

\documentclass{article}
\usepackage{array}

\newsavebox{\bitbucket}

\newcolumntype{V}{>{\hspace{-2\tabcolsep}\savebox{\bitbucket}\bgroup}{c}<{\egroup}}

\begin{document}
\noindent\fbox{\begin{tabular}{ccc}
test & column & data\\
first & second & third
\end{tabular}}

\noindent\fbox{\begin{tabular}{cVc}
test & column & data\\
first & second & third
\end{tabular}}
\end{document}

tabular bit bucket

John Kormylo
  • 79,712
  • 3
  • 50
  • 120
  • Actually, it seems I reinvented the wheel here. Se e http://tex.stackexchange.com/questions/16604/easiest-way-to-delete-a-column/16607#16607 – John Kormylo Jun 13 '16 at 23:17