Graphics, Figures & Tablesdisable column in a table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

disable column in a table

Post by fhrttn »

Code: Select all

\begin{table}[h]
\begin{center}
\caption{A}
 \begin{tabular}{|c|c|c|c|c|c|}
    ....
    ....
    ....    
\hline
  \end{tabular}
\end{center}
\end{table}
Is it possible to disable a column in a table ? I do not want to remove, If I need it I want to use it again..Thanks in advance

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

disable column in a table

Post by Stefan Kottwitz »

Yes, that's possible. This is by Martin Scharrer, showing how the collcell package written by him can be used:

Code: Select all

\usepackage{collcell}
\makeatletter
\newcolumntype{H}{>{\collectcell\@gobble}c<{\endcollectcell}@{}}
\makeatother
Then just change c into H, in tabular.

Stefan
LaTeX.org admin
fhrttn
Posts: 20
Joined: Thu Nov 16, 2017 2:43 pm

disable column in a table

Post by fhrttn »

Worked without error :) thanks for this help..
Post Reply