2

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

  • 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 '15 at 10:30
  • Related: Easiest way to delete a column? – Werner Nov 12 '15 at 15:50
2

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

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.