Equal cell width in Latex tables
Latex will automatically adjust the width of a cell in a table. If you wish to have a table where each cell in a row has the same width, you would use the p option instead of l, c or r for left, centre...
View ArticleTable: column-type repetition
I am sure you know the situation where you have several columns in a tabular which all are of the same type: \begin{tabular}{|r|c|c|c|c|c|} Now this can be simplified as follows using the *(star)...
View ArticleCont: Equal cell width (right and centre aligned content)
One of my last posts was on how to define the width of a column in a table (see here). The parbox (p), which is used by Latex when you define the column width, will by default align its content on the...
View ArticleHighlight table rows/columns with color
The following post will show you how to better present your data in tables through coloring rows/columns or even single cells to highlight important data. You will need the following two packages, the...
View ArticleMulti-page tables using \longtable
The longtable package defines an environment that has most of the features of the tabular environment. In addition however, tables may be broken by TeX’s standard page breaking algorithm. Furthermore,...
View ArticleChange font size of a table column
I recently edited a table with data. One column contained a text description which was rather long. So I wondered if there is a way to reduce the font size of the whole column rather than for each cell...
View ArticleColoring every alternate table row
In one of my previous posts I describe how to color or shade every other row in a LaTeX table. However, there is a much nicer, cleaner and simpler way to color every odd/even row, making tables much...
View ArticleUsing footnote in tables
Have you ever tried to add a footnote to a table inside the tabular environment? Even though the index is printed, the search for the actual footnote will be in vain. One way to overcome this issue is...
View ArticleGenerate LaTeX tables from CSV files (Excel)
Besides various online services and scripts, there are several LaTeX packages that generate tables directly from CSV (comma separated value) files. The advantage is everything is in the tex-file in one...
View ArticleMulti-column and multi-row cells in LaTeX tables
I always forget how to do this. If you have the same problem, here is a quick post for your bookmarks… Basic commands %multi-column \multicolumn{number cols}{align}{text} % align: l,c,r %multi-row...
View ArticleLaTeX heatmap using tabular
Inspired by a question in the latex-community.org forum and on the basis of a solution to a similar question on tex.SX, I came up with some code to plot a heatmap based on matrix in form of a standard...
View ArticleHidden text with LaTeX colored multi-row tables
When multirow cells in LaTeX tables are colored, the text is partially hidden as illustrated by the example below. This happens because the color of the second row is added after typesetting the text...
View ArticleColoring multi-row tables in LaTeX
Since Apple introduced alternately colored rows in their lists in Mac OS X, it has become more and more popular to color tables in LaTeX in a similar fashion. Usually, this can be achieved fairly...
View ArticleRemoving/hiding a column in a LaTeX table
It’s easy to add, remove, or shift rows. Just copy-and-paste or delete the corresponding line in the table. Removing columms is a different story. You might be able to come up with some sophisticated...
View ArticleReplacing repetitive values in a table column by an arrow
Ideally, tables are quickly and easily readable. Removing repetitive content helps the reader to grasp the essential result quicker and makes tables more readable. A possible option to make a table...
View ArticleProfessional and clean tables with LaTeX
Tables are great to visualize data in a structured way. Unfortunately, too often I see tables which are cluttered and difficult to read and interpret. It takes little to make them more presentable and...
View ArticleColor Table Series Part 1: Introduction & Colortbl Package
Overview Introduction to colors The colortbl package The xcolor package 1. Introduction to colors Colors constitute the human visual interpretation of light waves of different wavelengths. Color...
View ArticleColor Table Series Part 2: Xcolor Package
Overview Introduction to colors The colortbl package The xcolor package 3. The xcolor package While coloring tables, the xcolor package provides the same commands as colortbl. The reason is that...
View ArticleColor Table Series Part 3 : The Colortab package
Series overview Introduction to colors The colortbl package The xcolor package The colortab package 4. The colortab package The colortab package is another package to color table cells and rules...
View ArticleGenerate LaTeX tables from CSV files (Excel)
Besides various online services and scripts, there are several LaTeX packages that generate tables directly from CSV (comma separated value) files. The advantage is everything is in the tex-file in one...
View Article