Questions tagged [booktabs]

{booktabs} is a package that provides some additional commands to enhance the quality of tables in LaTeX.

{booktabs} is a package that provides some additional commands to enhance the quality of tables in LaTeX. It does so by defining a set of guidelines that specify how tables in published scientific books and journals should look like. In particular, it discourages the use of vertical or double lines.

494 questions
19
votes
2 answers

Booktabs and row color

As you may know, there is a problem of white space when you try to color rows with book tabs. I found the above solution. However, when you use @{} in \begin{tabular}{@{}*{6}{>$c<$}@{}} (in order to suppress the space in the edges) some color…
hindi
  • 317
8
votes
1 answer

Problem with \toprule: sometimes not bold

I am using package booktabs and using \toprule, \bottomrule etc. in order to make bold lines. The problem is that sometimes, using \toprule or \bottomrule, the lines drawn are bold but sometimes not! No error message appear, simply the lines are not…
Elisa
  • 81
6
votes
1 answer

How can I make a column that the number is counted automatically?

I have a booktabs (longtable) and I make a column Order. I have to input the number 1, 2, 3, ... by hand. How can I make a column that the numbers are counted automatically? My code…
4
votes
1 answer

macro for cmidline results in staircase

I'm doing a table with booktabs: \documentclass{article} \usepackage{booktabs} \begin{document} \newcommand{\crI}[2]{\cmidrule(#1){#2}} \begin{tabular}{@{}lllll@{}} \toprule \multicolumn{1}{c}{} & a & b & c & d \\ …
user2740
  • 493
  • 2
  • 9
3
votes
1 answer

How to omit vertical realignment when using cmidrule in different colors AND widths

The problem Let's say I want to have more than rules in two different colors in the same row ... how can I make it work? Here is a minimal example: \documentclass{article} \usepackage{colortbl} \usepackage{booktabs} \begin{document} …
2
votes
3 answers

Include colored box, rotated text in booktabs styled table

I am trying to make a latex table that looks like the picture. There should basically be 4 columns of rotated text under Header 1, one grey cell that that contains additional information. I am new to latex and have no idea how to make this table in…
matais
  • 23
2
votes
2 answers

widening toprule et al. in booktabs

I have two tables side by side. I want to trick readers into seeing this as one table, by widening the toprule command. In the MWE below I want to join the toprule of the cats table to the dogs table, and the same for the bottom rule and mid…
Tim
  • 1,539
2
votes
2 answers

Remove spacing below/above top/bottomrule

I tried to remove the white space between the last row and the top/bottomrule and I already found some solutions but I couldn't get them work: Table Row Color Covers Text Combining \rowcolor and \cmidrule The only way I could get that working was by…
flp
  • 459
1
vote
1 answer

How to decrease the height of a "longtable"?

I have the following problem. I have the following code and now I want to achieve that the table is not shown on a new page, but under the section heading, so that the table is shortened vertically a bit. How do I do…
1
vote
2 answers

Note under table incorrectly centered

I have the following problem(s). I have a sample table: Unfortunately, the text under the table is also always centered and is not left-aligned. What can be done about this? And is there a way to make the text flush with the width of the…
1
vote
0 answers

\cmidrule from the booktab package is adding extra horizon space

I want to add some sub-lines in my form; however, the lines generated by \cmidrule are pulling the words around it. The words above the \cmidrule seem higher than they should be, and the words below seem lower. The words at both sides of the…
Blue Bird
  • 113
1
vote
0 answers

How to remove \toprule from top left cell

How can I remove the \toprule above a specific cell? \begin{table}[!htbp] \begin{center} \begin{tabular}{l l l} \toprule & column & column\\ \midrule row & word & longword\\ & word & word\\ & word &…
1
vote
2 answers

booktabs: \dotrule as \midrule

I'd like to have a dotted rule like \midrulefrom the booktabs package. I took code from the booktabs.sty, simplified it and have: …
Keks Dose
  • 30,892
1
vote
2 answers

Symmetrical table, is booktabs recommended?

I have the following table, used with booktabs. I call it "symmetric" as three states of two variables are compared, but it does not matter if a variable is written along the rows or along the columns. It is not a some variables (columns)…
audeoudh
  • 278
  • 2
  • 12
1
vote
2 answers

An over full \hbox problem using tabular

I want to get something like this: I used the following…
Chubing
  • 25
  • 3
1
2