A package providing some additional commands to enhance the quality of tables in LaTeX.

learn more… | top users | synonyms

4
votes
1answer
283 views

Booktab color rows with multicolumn

I would like to color certain rows in my booktabs table. I have tried the following \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage{colortbl}% ...
4
votes
1answer
3k views

How to use \abovetopsep (to add space between a table's caption and tabular part)?

I read in the documentation of the booktabs package that \abovetopsep can be used to add some space between a table and its caption (instead of the lower-level \vspace{}). However, the exact placement ...
4
votes
1answer
208 views

Equivalent of \DTLiflastrow

With the datatool package there is a \DTLiffirstrow. I am looking for a similar command to detect the last row, \DTLiflastrow, but could not find one. I attempted to create my own but was not ...
4
votes
1answer
894 views

'longtable' and 'booktabs' not working on this example?

I am not even sure what is wrong here. I have a table I would like the caption to be at bottom, marked with (continued) from 2nd page onwards. I would like the table to break at certain places by ...
3
votes
4answers
289 views

Help with a booktabs table

I'm a relatively new user to Latex, and this is the first time I am attempting to construct a table for my thesis. I would like the table to look like this: Following some research on the internet, ...
3
votes
2answers
81 views

Modify global size of booktabs table

Here is the table I am trying to make: \documentclass{book} \usepackage{tabularx, booktabs} \usepackage{lipsum} \begin{document} \begin{table} \centering \begin{tabularx}{\textwidth}{lll} ...
3
votes
2answers
3k views

Default value for \addlinespace from booktabs

In the booktabs package documentation the command is described in the following: Occasionally we want to put an extra space between certain rows of a table; for example, before the last row, if ...
3
votes
2answers
482 views

Table layout: cells with short and long text

I've been fiddling with a table layout where some cells contain very little text while others may need multiple lines, and I can't seem to get it readable and nice-looking. MWE: ...
3
votes
2answers
2k views

how to vertically align text in multirow cell with tabularx with renewcommand?

Here I come again, Following the indications on this url I managed to get almost exactly what I want. However the problem is that the first multirow cell (with text "5 and 6") is not vertically ...
3
votes
2answers
130 views

Switch off booktabs for one table only

I am using the booktabs package in basically all my papers to present tables with results or descriptive statistics. However, I need to show a schematic choice in a table, and for that I need a proper ...
3
votes
2answers
101 views

Table contents are not centring properly

I'm trying to make a table however the contents of certain columns aren't centred correctly. I'm using the following in my preamble... \documentclass[11pt,a4paper,twoside, twocolumn]{article} ...
3
votes
1answer
2k views

Strange problem with `longtabu`

I would like to share with you a quite simple example LaTeX is not able to compile. I use the longtabu environment provided by tabu package. I am using commands from booktabs as recommended in the ...
3
votes
1answer
178 views

Using longtable with \cmidrule: page-breaking issues

Here's a (minimal?) working example that illustrates both the issues I am having: \documentclass{article} \usepackage{longtable,booktabs,lipsum,array} \usepackage{pgfplots} ...
3
votes
1answer
509 views

colortbl stepping on midrules in booktabs

I'm using booktabs and colortbl. I'm get a very annoying problem of the color table overlapping a horizontal rule. Maybe pixel snapping problem or something, but I can't make it go away. And I ...
3
votes
1answer
198 views

Proper centering with cmidrule and multi- row and column

The code below produces the following figure: The issue I am having is that Sample is not vertically aligned, I get proper alignment if \cmidrule(l){2-3} \cmidrule(l){4-5} is removed. How do I ...
3
votes
1answer
99 views

dcolumn italicize header for me

I am trying to use dcolumn to align the decimals for me. I am using booktabs while constructing the table. The code I have is: \documentclass{article} \usepackage{booktabs,dcolumn} ...
3
votes
1answer
112 views

Table: rule spanning two side-by-side tables

I have a little problem for which I desperately need help. Basically I want to span a midrule (or any other type of rule) over two vertically aligned side-by-side tables. As in the MWE below, I could ...
3
votes
1answer
1k views

Conflict between TikZ with decorations.text library, caption and booktabs packages and progressbar theme [duplicate]

Possible Duplicate: No room for a new \dimen I obtain an error when using simultaneously the above 4 elements. When removing one of them (which I do not wish), the output is fine. ...
2
votes
2answers
1k views

booktabs and tiny horizontal space

In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
2
votes
2answers
221 views

Table formatting

I use the following table: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
2
votes
1answer
2k views

how to \multicolumn in booktabs?

Following is my code: \documentclass[a4paper,10pt]{article} %\documentclass[a4paper,10pt]{scrartcl} \usepackage[utf8x]{inputenc} \usepackage{booktabs} \begin{document} \begin{table}[htbp] ...
2
votes
1answer
44 views

\cmidrule one column wide

What's the problem with a \cmidrule(lr){1}? Please consider the following MWE \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \centering \footnotesize ...
2
votes
1answer
492 views

Formatting raggedright in booktabs. Why am I getting a \noalign error?

I have a \sidewaystable that is also a \threeparttable. I'm trying to produce it using booktabs. In the shape columns there are words with more than 8 letters that TeX keeps hyphenating. The column ...
2
votes
1answer
2k views

Autofit table column with booktabs

Background Using booktabs produces the top table in the following image: Both tables reside in floats, but even when outside of the float the same result is produced. The Application and Version ...
2
votes
1answer
428 views

booktabs with custom column spacing

I'm trying to use the booktabs package, and I'm trying to make tables with "column groups" that are delimited by extra space. In the following, I am doing this using the @{} syntax in the tabular ...
2
votes
1answer
151 views

Combining \rowcolor and \cmidrule [duplicate]

I want to shade the heading of my table. It all worked fine until I started using \cmidrule. This is my output: Is there a way to shade the white space between the first and second row? The code ...
2
votes
0answers
76 views

I have 3 errors running this code with \toprule and \midrule in a table… If include booktabs package in my preamble, I have 9 errors [closed]

\begin{table}[htbp] \centering \caption{Zeros e pesos para quadratura de Gauss-Legendre} \begin{tabular}{cccccc} \toprule \multicolumn{2}{c}{n = 5} & \multicolumn{2}{c}{n = 10} ...
2
votes
0answers
83 views

Errors using dmath for multiline equation breaking in a table with booktabs package?

I would appreciate if you can help me find a solution/way out to the following problem. I am using the booktabs package to get a nice looking table. I have a long equation in the table which I ...
1
vote
3answers
3k views

Booktabs and longtable - strange spaces between lines

I needed to make some horizontal table lines bold so I used booktabs package. However if I use \toprule command to make line bold I get strange outcome - there are some spaces between bold line and ...
1
vote
2answers
166 views

Why won't my \otoprule command work in table formatting?

Primer: I'm very new to LaTeX. I am creating a table with the following code. Here is part of the table: \usepackage{tabularx, multirow, booktabs} \begin{table}[tp] \caption{Rain garden site ...
1
vote
1answer
459 views

how to split the table heading in booktabs?

how to split the column headings? How do I get newline after some word? When I put \\, it changes the alignment badly. This is my code: \documentclass{article} \usepackage{pgfplots} ...
1
vote
1answer
185 views

How to embed a minted environment inside a tabular environment?

I'm using packages minted and booktabs, and would like to put a minted environment within a tabular one. However, the following does not work: \documentclass[11pt]{article} \usepackage{minted} ...
1
vote
1answer
231 views

Table without using booktabs

I would like to know how to create the following table without using the package booktabs. Is this even possible? \begin{table*}\centering \begin{tabular}{@{}rrrrcrrrcrrr@{}}\toprule & ...
1
vote
1answer
120 views

Table wrapper breaks when using svn-multi and booktabs

I have a bizarre problem with a customised table wrapper in conjunction with booktabs and svn-multi. The MWE below illustrates the issue. The wrapper myTable works fine if: either booktabs is not ...
1
vote
1answer
1k views

bottomrule not working in a self-made environment

I have this environment for consistent tables in my LaTeX documents: \newenvironment{defaultTable}[2] { \@float{table}[h] \noindent \tabularx{\textwidth}{#1} \specialrule{0.5pt}{10pt}{0pt} ...
1
vote
2answers
43 views

Vertical text in table with no vertical lines

I want to modify this table in this way: Here is my MWE, in which I tried to achieve it with no success. \documentclass{article} \usepackage{array} % \extrarowheight macro \usepackage{graphicx} ...
1
vote
0answers
44 views

tabu, booktabs and line spacing

The following MWE illustrates the problem \documentclass{scrartcl} \usepackage{booktabs,tabu,blindtext} \begin{document} \begin{tabu} spread \linewidth {X} test\\\midrule Nunc quis urna dictum turpis ...
0
votes
1answer
271 views

Excel2LaTeX code not working in LaTeX

% Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{ccccccc} \toprule \multirow{2}[4]{*}{\textbf{Gauge Number}} ...
0
votes
1answer
227 views

booktabs-de from texlive-lang-german not installed in debian wheezy [closed]

I have debian wheezy with packaged texlive (TeX Live 2012/Debian) and want to use the package booktabs-de from the apt-package texlive-lang-german. The debian apt installation of that package ran ...
0
votes
1answer
372 views

In a table how do I add vertical lines between each column?

I have this as my current table which is fine, but I would like there to be vertical lines too just to make it look that bit neater. I'd also like horizontal lines between each row but this would ...
0
votes
1answer
44 views

Alignment of multi-columns and line breaks within cells

I am failing to set up a complex APA table once again. Actually, I need a table like shown below: My current MWE: \documentclass[12pt,ngerman]{article} \usepackage[utf8]{inputenc} ...