Questions tagged [tabu]

{tabu} concerns the tabu tabular package under e-TeX

Filter by
Sorted by
Tagged with
276 votes
15 answers
390k views

Beautiful table samples

I'm interested in learning about some nice-looking table samples. Colors can make a huge difference, and just providing some color to headers, background, or borders can dramatically change ...
68 votes
2 answers
29k views

Is the tabu package obsolete?

When I stumbled upon tabu some time ago it looked quite interesting on a first glance and I intended to learn more about it when I have the time. But, in the comments section of this question posted ...
Philipp's user avatar
  • 3,815
9 votes
1 answer
3k views

longtabu and floats: wrong table breaks on pages with floats

I noticed that the tabu package seems to have problems with its longtabu environment, if it is placed on a page, where a float already is placed. Consider the following MWE: \documentclass[10pt]{...
DigNative's user avatar
  • 1,255
12 votes
3 answers
2k views

Strange line spacing effects in longtabu

I got some strange effect with longtabu: As you can see the line with λ seems to be closer to the above line than to the one below of it. I cant’t figure out why … This is the code with which I ...
Tobi's user avatar
  • 56.4k
10 votes
1 answer
3k views

threeparttablex table notes for tabu tabulars with less than \textwidth

threeparttablex can be used to add table notes to tabu tabulars*. If the tabular spans \textwidth, the output is as expected. It seems however that the tablenotes environment does not adjust its width ...
dgs's user avatar
  • 2,751
11 votes
1 answer
2k views

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

Below is a MWE with a tabu table that compiled perfectly fine up until I updated packages today (Dec. 16, 2018) with TeX Live Utility. \documentclass[11pt]{article} \usepackage{amsmath} \usepackage{...
Andrew Patrick Turner's user avatar
3 votes
2 answers
1k views

longtabu and color compatibility

After last update of TeX Live packages this code won't compile: \documentclass{article} \usepackage{longtable,tabu} \usepackage{color} \begin{document} \begin{longtabu} to \linewidth {llX} a &...
andc's user avatar
  • 951
4 votes
1 answer
846 views

Too little space between wrapped text and the line below it

Consider the following table example, the text in the second row is wrapped. \documentclass[a4paper]{article} \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{tabu} \usepackage{...
sergej's user avatar
  • 6,461
11 votes
2 answers
5k views

tabu: Error since update

Since the last update of tabu.sty I get the following error: ! Improper \prevdepth. \tabu@verticalspacing ... tempdimc \t Here is a MWE \documentclass[a4paper,12pt]{report} \usepackage{tabu} \...
chris's user avatar
  • 325
9 votes
4 answers
3k views

longtabu and scrpage2: line breaks in page header cause compilation errors

Please consider the following MWE: \documentclass{scrartcl} \usepackage{longtable,tabu} \usepackage{lipsum} \usepackage{scrpage2} \chead[Headline 1\\ Headline 2]{Headline 1\\ Headline 2} \pagestyle{...
DigNative's user avatar
  • 1,255
7 votes
2 answers
1k views

Long table with X column for usage with glossaries

Question: I am searching for a way to use X columns in combination with multipage tables in a custom written glossary style. Update According to Nicola Talbot's comment, I have created the following ...
leandriis's user avatar
  • 62.6k
6 votes
2 answers
2k views

align columns in multiple tables

I am trying to align the columns of multiple tables. I know I can use p column format to fix column widths but I would prefer that TeX automatically figure out the widths for me. I was hoping to: ...
user1189687's user avatar
  • 1,953
6 votes
1 answer
3k views

Vertical alignment in multicol

In the following code the horizontal rules on the right don't line up in all cases with the horizontal rules on the left. It seems to be related to the text content. How can I fix this in such a way ...
user1189687's user avatar
  • 1,953
5 votes
2 answers
627 views

multiple pairs of columns

Consider this example code which creates a 2x6 table where the 6 columns are formed from three name/value pairs: \documentclass{article} \usepackage[svgnames,table]{xcolor} \usepackage{tabu} \...
user1189687's user avatar
  • 1,953
4 votes
2 answers
1k views

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

In the github issue: Longtable change breaks 'X' column specification (https://github.com/latex3/latex2e/issues/111) the problem of the incompatibility of a necessary bug fix in latex3/latex2e is ...
albert's user avatar
  • 1,327
3 votes
2 answers
2k views

Align (center) header row in table

I use @{\hskip 50pt} to separate columns in my table. The problem which arises is that I add this extra space after a multicolumn. This also moves the header row so that it is no longer centred. Is ...
Josh's user avatar
  • 847
20 votes
2 answers
1k views

Incompatibility between verbatim and tabu? (Danger of using \scantokens in a package)

With the following MWE \documentclass{article} \usepackage{verbatim} \usepackage{tabu} \makeatletter \renewcommand\verbatim@processline {% \begin{tabu}to\textwidth{|l|X[-1,l]|} foo&\the\...
Stephan Lehmke's user avatar
20 votes
1 answer
11k views

Consistent vertical spacing with tabu

In the following table I get some vertical space after the rows whose content is short but not after the row having a cell with long content. The problem is that I want to generate the report from ...
user1189687's user avatar
  • 1,953
9 votes
2 answers
4k views

Dimension too large after recent longtable update

After recent update of longtable package (2021.05.07) I am getting the error: Dimension too large. \end{longtabu} Log: ! Dimension too large. <to be read again> = l.10 \end{longtabu} ...
andc's user avatar
  • 951
9 votes
1 answer
7k views

How to exceed left margin with longtable

I'm trying to make a longtable that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
user3189626's user avatar
9 votes
1 answer
2k views

Hide an entire table (but still generate it)

In this answer the following code appears. The idea is that the initial table sets up the column widths used by the subsequent tables. The initial table itself is not supposed to be shown. Its only ...
user1189687's user avatar
  • 1,953
8 votes
2 answers
379 views

Odd results using FP package inside table environment

I'm trying to create a number of running totals using the FP package. I define a macro for adding numbers to a running total and then I define a macro to output the final value. The problem I'm ...
user24909's user avatar
8 votes
1 answer
1k views

Vertical spaces above and below longtabu

This is, in a way, a follow-up-question to New table-environment, spaces and enclosing { } in a new environment, which has already been answered conveniently by @egreg. Please compile this MWE to see ...
LCsa's user avatar
  • 569
7 votes
1 answer
1k views

Adjust vertical spacing in tabular containing \href

I seem to be stumped by what seems like a basic tabular spacing issue (when an \href is used). The obvious solution of tweaking arraystretch does not seem to work. What I want is that the output of ...
Peter Grill's user avatar
6 votes
1 answer
1k views

Beamer tables like block structure look-and-feel

I am trying to define a type of table similar to the look-and-feel of beamer blocks. I tried the following (using the tabu for tables), but with no luck. \newenvironment<>{tabvarblock}[2][.9\...
cacamailg's user avatar
  • 8,405
6 votes
1 answer
2k views

Dashed hline in longtabu (arydshln conflicts, does not work?)

I have a large table with the following requirements: Spans multiple pages (currently using longtable) The last column's text must wrap (using tabu's longtabu environment as tabularx does not support ...
Pat's user avatar
  • 463
5 votes
1 answer
2k views

Longtabu total width, fixed left margin

I'm trying to make a longtabu that is wider than the textwidth at a certain moment. I've tried different things always ending up with a different problem: First possibility: If I use the adjustwidth ...
user34491's user avatar
5 votes
1 answer
584 views

Longtable appears to prevent \enlargethispage from working

The following code works for me, but if I remove the comment and thus add the longtabu/longtable, then the \enlargethispage loses its effect. \documentclass{article} \usepackage{lipsum} \usepackage{...
Max's user avatar
  • 5,702
4 votes
2 answers
3k views

Little indentation despite \noindent after tabu custom-environment

this question is about a (to me) mysterious little indent (looks like an ordinary blank...) after a custom-environment using the tabu-environment. Please compile this MWE: \documentclass[a4paper, ...
LCsa's user avatar
  • 569
3 votes
1 answer
1k views

tabu m-column vertical alignment not working after package updates

After MIKTEX package updates vertical m-column alignment in tabu does not work anymore. See MWE below \documentclass{article} \usepackage{tabu} \begin{document} \tabulinesep=3pt Result using tabu: ...
Micha's user avatar
  • 43
2 votes
1 answer
720 views

Longtabu, \tabucline placed on wrong page

See the following longtabu axample: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage{tabu} \usepackage{lipsum} \begin{document} \tabulinesep=1.5mm % <---- ...
sergej's user avatar
  • 6,461
2 votes
3 answers
582 views

How to get rid of vertical offset in a table containing pictures?

While trying to compose some kind of "wanted poster" (Steckbrief), I could not get rid of the vertical spacing LaTeX automatically introduces! Here's an MWE, which should work on Linux/Mac OS with --...
winkmal's user avatar
  • 845
2 votes
1 answer
11k views

Centring a sidewaystable both horizontally and vertically

I'm trying to have a sideways table at the end of my document, however I can't seem to get it to centre to the A4 page perfectly like intended. Here's my preamble: \documentclass[11pt,a4paper,...
Ben's user avatar
  • 1,229
19 votes
4 answers
92k views

How to draw two \hline and two vertical line?

I want to draw a table with two \hline and two vertical line. But as shown in the figure, the first vertical line do not cross the two hline. How to solve this problem? \documentclass{article} \...
Eden Harder's user avatar
11 votes
3 answers
591 views

Approximate excel spreadsheet

I am trying to approximate the following table below. After a lot of work I was able to produce the following table using the tabu package In the MWE I included the showframe option, just to see ...
N3buchadnezzar's user avatar
10 votes
2 answers
834 views

Macro \verb inside tabu environment

I would like to use the \verb command inside of a tabu enviroment. Here is my example \documentclass{article} \usepackage{tabu} \begin{document} \begin{tabu}{lll} a & \verb+\wedge+ & b\\ c ...
konze's user avatar
  • 343
10 votes
1 answer
2k views

newcolumntype, siunitx, tabu and illegal pream-tokens

I use tabu with siunitx for making my charts with MikTeX 2.9, tabu 2.8 and now siunitx v2.5g. Since last time using the updater \newcolumn commands like \newcolumntype D{X[1,c]{% S[group-four-...
bz-mof's user avatar
  • 101
9 votes
2 answers
2k views

color rows on table (Tabu package)

I am writing a table with colored rows using the tabupackage (2.10). For example \documentclass[12pt]{article} \usepackage{tabu} \usepackage[table]{xcolor} \begin{document} \begin{table} \...
C. Zhihao's user avatar
  • 265
9 votes
2 answers
3k views

tabu package - gaps in vertical lines

I'm in the unfortunate situation that I have to make a table in LaTeX which has thick vertical lines. Since this does not seem to be possible with the default tabular environment, I chose the tabu ...
Wanderer's user avatar
  • 267
8 votes
2 answers
3k views

Many vertical alignment problems with tabu table

I use tabu to easily specify colors for different parts of my table. Also the X column makes life easier. I have some problems regarding vertical placement: In the linked figure you can see many ...
Tarek Eldeeb's user avatar
8 votes
1 answer
2k views

Missing number, treated as zero with nested tabu

I have this minimal example: \documentclass{article} \usepackage{colortbl} \usepackage{longtable} \usepackage{tabu} \begin{document} \begin{longtabu} {|ll|} a & \begin{tabu}{l} 1 \\ ...
user21903's user avatar
  • 103
8 votes
1 answer
2k views

Align siunitx numbers in a tabu table

The minimal example below gives me a strange offset in numbers with exponential numbers. I think tabu and siunitx are getting in each others way. Is anyone aware of a workaround? \documentclass[...
Martin H's user avatar
  • 18.2k
8 votes
4 answers
1k views

How would you reproduce the Leibniz binary table

I would like to reproduce the original Leibniz binary table (as seen here). The most precise the better...
nadous's user avatar
  • 746
8 votes
1 answer
8k views

A vertical alignment problem in tabu environment with X[m]

I learned tabu for a while and I can not solve a problem about vertical alignment with X[m]. Here is the minimal working example below. \documentclass{article} \usepackage[linegoal]{tabu}\...
XIAO Lishun's user avatar
  • 1,041
8 votes
2 answers
7k views

Vertical and horizontal alignment with tabu package

Another question led me to use tabu for the purpose of fitting one column to its content while allowing the others to stretch equally. This is my current code: \documentclass{article} \usepackage{...
jtbandes's user avatar
  • 4,262
7 votes
1 answer
5k views

minipage has overfull hbox

I'm struggling with this piece of LaTeX code: \begin{minipage}{0.5\textwidth} \begin{tabu} to \textwidth {>{\itshape}r c} Foo:&\makebox[5cm]{}\\ \cline{2-2}\\[-0.5em] ...
lindhe's user avatar
  • 274
7 votes
1 answer
2k views

How to make \rowfont (from tabu package) overlay specification-aware (in beamer package)?

I have tables in a beamer presentation, and I would like to highlight table rows sequentially (not necessarily in row order) using overlay specifications. So I would like to be able to write code ...
Clara's user avatar
  • 617
7 votes
2 answers
2k views

Conflict between tabu and tabularx, when using siunitx

I have many tables set with {tabularx} but for some of the it seems easier to use {tabu} which works. But if I use both packages and gave the last X column in {longtabu} an S and optional argument it ...
Tobi's user avatar
  • 56.4k
6 votes
1 answer
1k views

Tabu command replacement

I am currently setting up a fresh LaTeX environment and trying to incorporate all my old files. They use the tabu package a lot. Since it is very outdated, giving errors etc. I decided to replace it ...
buecki's user avatar
  • 441
6 votes
1 answer
132 views

Problem while rendering tabu with data from datatool

I have this strange problem while trying to render a table with tabu package from data gathered with datatool package. Here is a working example: \documentclass[a4paper,10pt]{article} \usepackage[...
Luciano César Natale's user avatar