2

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

2
  • Welcome, tables (i.e. tabulars) are used where you might now expect them, for example when printing the author(s) on the titlepage.
    – Johannes_B
    Nov 12, 2015 at 10:30
  • Related: Easiest way to delete a column?
    – Werner
    Nov 12, 2015 at 15:50

1 Answer 1

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

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .