CTAN Comprehensive TeX Archive Network

Direc­tory macros/latex/contrib/tabu

|            tabu - Flexible LaTeX tabulars               |

tabu provides a single environment:          tabu
designed to make all kind of tabulars provided that they do
not split accross pages.

tabu is based on array.sty and requires no other package.
tabu does not modify array.sty nor the classes of tokens.

Starting from version 1.5, longtabu is provided: based on
longtable, longtabu allows tabulars to stretch out on
several pages.

tabu can be used in place of tabular, tabular* and tabularx
X columns in tabu can be specified with a width coefficient
the alignement (l,r,c,j) the column type (p,m,b) or even $.

tabu also works in math mode and its name remains tabu.
tabu can contain any type of tabular, array, tabularx
tabu can be put inside tabular, array, tabularx, tabular*

\begin{tabu} is like tabular if the preamble has no X column
\begin{tabu} to <dimen>      specifies the target width
\begin{tabu} spread <dimen>  enlarge the natural width

tabu with X columns has a default target if not specified
(usefull for nested tabus + compatibility with \linegoal)

tabu provides facilities to change the font and the alignment
in one row (\rowfont), save and restore the preamble and the
tabular parameters (\savetabu, \usetabu, \preamble).

tabu provides other facilities to align numbers in X columns
draw lines with color, dashed or even leaders. Those facilities
are provided for convenience: they work as long as the tabu
preamble does not contain "too special tokens".

tabu has been tested successfully with many packages related
to tabulars, cells, alignment...

Down­load the con­tents of this pack­age in one zip archive (1.5M).

tabu – Flex­i­ble tab­u­lars

The pack­age pro­vides an en­vi­ron­ment, tabu, which will make any sort of tab­u­lar (that doesn't need to split across pages), and an en­vi­ron­ment longtabu which pro­vides the fa­cil­i­ties of tabu in a mod­i­fied longtable en­vi­ron­ment. (Note that this lat­ter of­fers an en­hance­ment of ltxtable.)

The pack­age re­quires the ar­ray pack­age, and needs e- to run (since ar­ray.sty is present in ev­ery con­form­ing dis­tri­bu­tion of , and since ev­ery pub­licly avail­able for­mat is built us­ing e-, the re­quire­ments are pro­vided by de­fault on any rea­son­able sys­tem). The pack­age also re­quires xcolor for coloured rules in ta­bles, and col­ortbl for coloured cells. The longtabu en­vi­ron­ment fur­ther re­quires that longtable be loaded. The pack­age it­self does not load any of these pack­ages for the user.

The tabu en­vi­ron­ment may be used in place of tab­u­lar, tab­u­lar* and tab­u­larx en­vi­ron­ments, as well as the ar­ray en­vi­ron­ment in maths mode. It over­loads tab­u­larx's X-col­umn spec­i­fi­ca­tion, al­low­ing a width spec­i­fi­ca­tion, align­ment (l, r, c and j) and col­umn type in­di­ca­tion (p, m and b).

\be­gin{tabu} to <di­men> spec­i­fies a tar­get width, and \be­gin{tabu} spread <di­men> en­larges the en­vi­ron­ment’s “nat­u­ral” width.

Li­censeThe Project Public Li­cense 1.3
Copy­right2010 Florent Chervet
Main­tainerFlorent Chervet
Con­tained inTeX Live as tabu
MiKTeX as tabu
Topics Ta­ble long
Guest Book Sitemap Contact Contact Author