Skip to main content
28 votes

Beautiful table samples

My humble contribution from studying the way the Economist formats its tables. \documentclass[10.8pt,a4]{article} \usepackage[margin=1.1in,a4paper]{geometry} \usepackage{booktabs} \usepackage{...
25 votes

Beautiful table samples

I recently did this timetable in tikz. I found it easy to set things out in columns rather than rows. The original inspiration for this method was taken from http://www.texample.net/tikz/examples/...
18 votes

Beautiful table samples

I will give an example about drawing a chessboard with the new LaTeX3 package tabularray: \documentclass{article} \usepackage{fontspec} % Need XeLaTeX or LuaLaTeX \setmainfont{Arial Unicode MS} %\...
15 votes

tabu: Error since update

I think this is the correct fix, if it survives some more testing I'll get tabu updated on ctan. \documentclass[a4paper,12pt]{report} \usepackage{tabu} \usepackage{amsmath} \usepackage{xcolor} \...
David Carlisle's user avatar
14 votes
Accepted

Approximate excel spreadsheet

NB! Do not use tabu. It is an outdated and depreciated package. Using cals Here is a possible solution using cals. In this second version, I have updated the code with lighter rules (0.4pt). The ...
Sveinung's user avatar
  • 20.5k
14 votes
Accepted

Dimension too large after recent longtable update

tabu is unmaintained but as a short term fix you can force an old version of longtable to load \documentclass{article} \usepackage{longtable}[=v4.13]% \usepackage{tabu}% \begin{document} \begin{...
David Carlisle's user avatar
13 votes
Accepted

Tabu very recently stopped working with color/xcolor or with fancyvrb

UPDATE 2019-01-14 An equivalent patch has been applied in tabu 2.9 which has been submitted to ctan. This is due to fixing a color leak in p-columns in array which is used underneath tabu, longtable ...
Frank Mittelbach's user avatar
8 votes
Accepted

Package tabu: changing row color changes spacing?

Use \rowfont{\bfseries\leavevmode\color{white}}% see the footnote on page 6 of texdoc grfguide (which translates roughly as sorry, it's not my fault)
David Carlisle's user avatar
8 votes

Incompatibility of fix in latex3/latex2e in respect to (unmaintained) tabu package

Since the tabu package seems to still be rather widely used, I will try to summarize the current situation. The package has been unmaintained by its original author since 2011. Every bug that has ...
schtandard's user avatar
  • 15.4k
7 votes
Accepted

Using 'mintinline' inside 'tabu'

This seems to work: using \tabuDisableCommands to let \mintinline do something different and less complicated during the measuring phase and only do its thing during typesetting. It has a drawback, ...
cgnieder's user avatar
  • 67k
7 votes

Rowcolor, Multicolumn, and Tabu

Another option would be the new tabularray package. The package allows you to completely separate the format from the content. It support cells spanning multiple columns and rows and coloring. \...
marv's user avatar
  • 2,159
7 votes
Accepted

How can I make the vertical line of certain rows thicker in LaTeX tables?

don't use tabu. It is buggy and not maintained instead it I suggest to use (relative new) package tabularray using it you can define all horizontal as well vertical lines in table preamble. \...
Zarko's user avatar
  • 300k
6 votes
Accepted

align text in a tabu-table top-left without tricks

As I said in my comment,it is no clear why you use \makecell{...}. Top left align is easy to achieve without it. If you still persist to use it, than you need to add option [tl] for top align and ...
Zarko's user avatar
  • 300k
6 votes
Accepted

Beautify ugly tabu table

How about transposing the table? Note, I replaced tabu by tabularx, just because I am not familiar with tabu at all. \documentclass[10pt, twocolumn]{article} \usepackage{tabularx} \usepackage{...
hbaderts's user avatar
  • 3,930
6 votes
Accepted

Make table invisibles

Package comment The comment package offers \excludecomment. It can be (mis)used to disable an environment. However, it does not overwrite the \end{...} part, thus the following example clears the end ...
Heiko Oberdiek's user avatar
6 votes
Accepted

Problem with maketitle and siunitx in journal template

The issue isn't siunitx or tabu, it's the standard array package (part of the core LaTeX distribution): siunitx loads array. That counts more or less as 'fundamentally defective' in terms of the ...
Joseph Wright's user avatar
  • 262k
6 votes
Accepted

tabu m-column vertical alignment not working after package updates

UPDATE 2019-01-14 A workaround for this issuse has been included in tabu 2.9 which has been submitted to ctan. tabu probably needs an update to match the latest array, but you can force the use of ...
David Carlisle's user avatar
6 votes
Accepted

Center align only first table row

Instead of tabu and its flexible width columns, I would use the S columns from the siunitx package to align the numbers with resprect to the decimal separator. In order to fit the table onto the ...
leandriis's user avatar
  • 63.1k
6 votes
Accepted

longtabu and color compatibility

UPDATE 2019-01-14 An equivalent patch has been applied in tabu 2.9 which has been submitted to ctan. The following seems to work (I also added the other patch): \documentclass{article} \usepackage{...
Ulrike Fischer's user avatar
6 votes
Accepted

Tables with lots of text

A way with tabular and p column type: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{tabularx} \usepackage{booktabs} \title{Test121212} \author{Konstantinos Leledakis} \date{March ...
koleygr's user avatar
  • 20.2k
6 votes
Accepted

How to offset one end of a bond in Chemfig

EDIT: How about this? This was obtained by adding the single line with the comment %% <-- to your example file. \documentclass{article} \usepackage{graphicx} \usepackage{chemfig} \usepackage{...
citsahcots's user avatar
  • 8,002
5 votes

Beautify ugly tabu table

There is no need to artificially enlarge a table. \documentclass{article} \usepackage{booktabs,caption,makecell} \begin{document} \begin{table}[hbtp] \centering \caption [Strategies and tradeoff ...
egreg's user avatar
  • 1.1m
5 votes
Accepted

How to arrange picture, equation and chemical formula in a grid-style layout?

Here are three ways of doing it. The first one uses ordinary tabulars, nested. The only trick is to move the baseline of the image to half of its height using \raisebox{-0.5\height}{\includegraphics[...
gernot's user avatar
  • 50k
5 votes
Accepted

tabu automatic / manual table width

Use good ol’ tabular* environment: \documentclass[twocolumn]{article} \usepackage{lipsum} \begin{document} \lipsum[2] \begin{table}[htp] \begin{tabular*}{\columnwidth}{ @{\extracolsep{\fill}} |...
egreg's user avatar
  • 1.1m
5 votes

Table and image alignment

with \parbox[c]{1em}{\includegraphics[width=3cm]{images/portrait.png}} you have put the reference point of the image in its vertical centre, which then aligns with the top row of the table, instead ...
David Carlisle's user avatar
5 votes
Accepted

How do I split equations in \tabu environment?

You can use aligned: \documentclass{article} \usepackage{amsmath} \usepackage{tabu,booktabs} \begin{document} \noindent \begin{tabu} to \textwidth{X[c] X[c]} \toprule Column 1 & Column 2\\ \...
egreg's user avatar
  • 1.1m
5 votes

Problem with maketitle and siunitx in journal template

If you really must ypu can re-instate the original tabular just for the \maketitle settings. \documentclass[extra,mreferee]{gji} \makeatletter \let\zz@tabular\@tabular \let\zzendtabular\endtabular \...
David Carlisle's user avatar
5 votes

Simple table without borders

Use tabularx and the X column type. This should be fine: \begin{tabularx}{\linewidth}{c>{\arraybackslash}X} Year 2023-2024 & Very long very long text Very long very long text Very long very ...
Bernard's user avatar
  • 273k
5 votes
Accepted

xcolor breaking \[ and align environments inside tabu

UPDATE 2019-01-14 An equivalent patch has been applied in tabu 2.9 which has been submitted to ctan. This is not a full solution, only a first try!!! At some place in the code tabu checks the "...
Ulrike Fischer's user avatar
5 votes
Accepted

Column Width with Tabu Package

As @HenriMenke has already pointed out in a comment, don't use the tabu package: it's buggy and it's unmaintained. Instead, I would suggest that you use the tabularx package and its eponymous ...
Mico's user avatar
  • 514k

Only top scored, non community-wiki answers of a minimum length are eligible