29
votes
Beautiful table samples
Unfortunately, as of 2018-11-12, the tabu package is still unmaintained (see repository) and color are not working anymore.
Therefore my example below is not working.
Here is my modest contribution. ...
Community wiki
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{...
Community wiki
23
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/...
Community wiki
16
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}
%\...
Community wiki
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}
\...
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 ...
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 ...
12
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{...
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)
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 ...
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, ...
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.
\...
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.
\...
6
votes
Accepted
How to get long enumerate list in \longtabu across the page like MS word can easily do?
Avoid tables for this type of layout. In most cases you can achieve similar effects by nesting normal lists, and if you really need a frame you can use tcolorbox:
\documentclass[12pt]{article}
\...
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 ...
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{...
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 ...
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 ...
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 ...
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 ...
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{...
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 ...
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{...
5
votes
Accepted
minipage has overfull hbox
Sigur pointed out the answer in the comments:
Every paragraph is indented as default. Since the minipage begins a new paragraph it too will be indented. This behaviour can be prohibited by putting \...
5
votes
Accepted
Weird "Misplaced \noalign \end{tabu}}" error
Apparently, \rowfont must be used before \rowcolor:
\documentclass[a4paper, 11pt]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{tabu}
\usepackage[version=3]{mhchem}
\...
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 ...
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[...
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}} |...
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 ...
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\\
\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tabu × 424tables × 191
longtable × 64
vertical-alignment × 36
longtabu × 31
tabularx × 27
color × 26
spacing × 24
horizontal-alignment × 23
multirow × 17
multicolumn × 16
colortbl × 13
environments × 12
siunitx × 12
beamer × 9
footnotes × 9
captions × 8
width × 7
graphics × 6
xetex × 6
line-breaking × 6
margins × 6
line-spacing × 6
multicol × 6
macros × 5