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

learn more… | top users | synonyms

7
votes
3answers
103 views

Is it possible to create a barchart in a table?

I'm using booktabs to display some profiling data. I would like to add bars to each row to visually indicate the quantities in one column. I would like to use a table instead of a barchart since ...
4
votes
1answer
53 views

Footnote in booktabs package [duplicate]

I wish to add a footnote somewhere in a table. I am using booktabs package. I wrote the footnote using \footnote. It is showing symbol 1 inside a small box but it is not showing the footnote anywhere. ...
4
votes
2answers
133 views

Compiling problem

I have had the problem of compiling my document with the following table in it: \begin{table}[!h] \centering\small \caption{Thickness measurements on the two tubes.} \label{tab:Thickness_measurement} ...
3
votes
2answers
62 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} ...
5
votes
6answers
233 views

ltablex and booktabs

I need a table which is larger than one page and it should have a fixed size. To improve the look, I use booktabs. However, the foot of the table is not nice on all pages, except on the last page. ...
4
votes
2answers
87 views

Do the different rules generated by booktabs have the same thickness?

I use the booktabs package and excel2latex to generate my tables. I work in TeXmaker. As I zoom in or zoom out on my table, I find that, sometimes the \toprule, sometimes \midrule and sometimes the ...
3
votes
4answers
156 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
1answer
81 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 ...
36
votes
1answer
877 views

booktabs: What is the difference between \toprule and \hline

The horizontal lines in tabular environment can be constructed. What is the difference between \toprule, \midrule, \bottomrule and specifying horizontal line using \hline?
2
votes
1answer
91 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 ...
4
votes
3answers
58 views

How to use \shortstack together with \arraystretch to achieve the same row separation?

When I use \shortstack to create newline in a table cell, the row separation is not the same as defined by the value of \arraystretch. The following MWE shows the problem: ...
4
votes
2answers
70 views

How to trim horizontal line ends in table with vertical lines?

How to obtain something like this ? The only way for trimming horizontal line in table that I found is using booktabs. The problem with booktabs is that it doesn't manage good vertical lines. I ...
3
votes
1answer
93 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 ...
4
votes
1answer
158 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}% ...
6
votes
2answers
407 views

\cmidrule with two multirows not behaving correctly?

Here is the code: \begin{table} \centering \begin{tabular}{rrrrr} \toprule \multirow{2}{*}{b} & \multicolumn{2}{c}{QCDH} & Single & \multirow{2}{*}{$\frac{\pi_{q1}}{\pi_{s1}}$} \\ ...
2
votes
0answers
72 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} ...
4
votes
1answer
123 views

Serious problems with table layout

I have some issues when creating my OLS regression in LaTeX and really hope, that some of you could help me. (I do not know how to make more columns and to add text like: ...
0
votes
1answer
165 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}} ...
12
votes
1answer
400 views

Use of \midrule in booktabs table

Are there any formal guidelines/suggestions on the use of \midrule inside a booktabs table with just rows of identically formatted data? The booktabs manual is very specific about vertical rules, ...
2
votes
0answers
70 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 ...
7
votes
3answers
153 views

Table inside enumeration: How to align vertically when using booktabs' \toprule?

I want to display a table inside an enumerate environment such that the first row aligns with the item label. My current code is the following: \documentclass{article} \usepackage{enumitem} ...
10
votes
2answers
359 views

Table using booktabs and cellcolor looks ugly

When using \cellcolor in a booktabs table, I find that the output is not really appealing: I don't really care that the colored cell does not touch the lines above and below (cf. Coloring columns ...
2
votes
2answers
105 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 ...
1
vote
2answers
133 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 ...
11
votes
3answers
753 views

Horrible table layout

I have a table which gives an overview of some theory. It includes a lot of words or combination of words. The layout is horrible and not LaTeX quality. Some guidance as to how to improve would be ...
4
votes
1answer
276 views

Table and \hlines too short or wide

Here is a MWE of what I am trying to do. \documentclass[a4paper]{article} \usepackage{tabularx,booktabs} \usepackage{color,colortbl} \begin{document} \begin{table}[htb] \centering ...
5
votes
1answer
296 views

Decimals in table don't align with dcolumn when bolded

I am making a table using booktabs and dcolumn. It works perfectly until I tried to bold one of the numbers and then the decimals won't read properly. Are there any workaround here? ...
3
votes
1answer
73 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
612 views

Midrule that extends only over some of the columns in booktabs

I hope this isn't a silly question, the thing is that I want to create a table with a midrule applied in just some cells, I mean something like that (just between Item, Animal and Description): ...
0
votes
1answer
185 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 ...
3
votes
2answers
412 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: ...
1
vote
1answer
133 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} ...
12
votes
2answers
434 views

Slovak (and Czech) babel gives problems with cmidrule and cline

I tried to use the Slovak language with the booktabs package. Let's see a couple of cases. slovak is included in the options to babel \usepackage[english,slovak]{babel} or ...
2
votes
2answers
187 views

Table formatting

I use the following table: \documentclass[a4paper, 12pt, bibliography=totoc, index=totoc, abstracton, ...
3
votes
1answer
152 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} ...
14
votes
1answer
542 views

\cmidrule with booktabs in beamer does not show up

I am trying to use a coloured \cmidrule in a table in beamer - however, it does not show up. I have read Strange disappearing colored rules in beamer which indicates that this is a bug and discusses ...
5
votes
1answer
324 views

How to trim the length of \toprule? [duplicate]

How to trim \toprule (from booktabs package)? It is probably something basic I'm missing, but I need it and it's nowhere to be found.
2
votes
1answer
338 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 ...
3
votes
2answers
95 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} ...
4
votes
1answer
3k views

Equations inside tabular environment, no vertical spacing

I have a problem with the spacing of my equations. According to this http://tex.stackexchange.com/a/50348/15360 booktabs one should rarely have to regulate the spacing. But the result of the code ...
4
votes
1answer
440 views

How can I use renewcommand for toprule of the booktabs package?

I have a LaTeX document and want to change the thickness of \toprule and \bottomrule to 1.5pt. Is there a way to do this with the \renewcommand or do I have to change every \toprule to ...
1
vote
1answer
374 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} ...
0
votes
1answer
336 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 ...
3
votes
1answer
877 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. ...
5
votes
2answers
5k views

Problems with \toprule and \midrule in a table

Having the following siunitx table code in LyX, for each occurrence of \toprule and \midrule I obtain an error message: The control sequence at the end of the top line of your error message was ...
1
vote
1answer
213 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 & ...
10
votes
1answer
2k views

Vertical table lines are discontinuous with booktabs

I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one ...
5
votes
3answers
258 views

slim braces in a table

We need to make clear that certain data is the same in several rows. An underbrace taken from math-mode does the job quite well, but is unfortunately way too prominent in the table, especially in ...
4
votes
1answer
200 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 ...
5
votes
1answer
799 views

multirow and text wrapping

I have a problem using multirow along with text wrapping when spanning cell contains a lot of text. Here is my code: \documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} ...