Is there a way to add code in the beginning of a document in latex to ignore the second column for multiple tables?
Asked
Active
Viewed 208 times
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 '15 at 10:30
-
Related: Easiest way to delete a column? – Werner Nov 12 '15 at 15:50
1 Answers
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}
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
