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

learn more… | top users | synonyms

17
votes
4answers
2k views

Tip on how to make a visually good table

I'm using booktabs to make most of the tables in my thesis. However, I'm not sure if that is the best solution for tables with more than 6-7 rows, as it can be difficult to read (there is no line ...
0
votes
0answers
19 views

Unwanted white space with knitr+booktabs package

I want to include a table in my latex document that I create using knitr package. I "call" the table using: \begin{table}[H] \begin{centering} <<r second part}>>= kable(Per_cond, ...
3
votes
2answers
107 views

Prettify booktabs table with subheadings/categories

I basically want to list attribute names and a attribute description in a table. The attributes belong to a certain category. The idea is to list all attributes in one table to avoid creating multiple ...
1
vote
1answer
25 views

Trouble aligning table cells

I need to wrap the text in two table cells. However, when the text has been wrapped correctly in cell (1,1) and (1,3), the text on the first row in the table do not align. \documentclass[b5paper, ...
0
votes
1answer
40 views

Create a table that fills a page with empty rows

I'm trying to create an inventory sheet for our lab, and as such I need a large blank table. Is there a better way to do this then copy and pasting \midrule&&&\\ over and over again? I'd ...
5
votes
1answer
106 views

longtable with booktabs, midrule is pushed to next page

I'd like to make a formal longtable in landscape mode. I use booktabs to make the table formal. Here is an example tex document: \documentclass{article} \usepackage{array} \usepackage{longtable} ...
5
votes
1answer
54 views

“Undefined control sequence” on left parenthesis after midrule in longtable

With this file: \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \begin{document} { \begin{longtable}{p{.3\textwidth}p{.5\textwidth}} \midrule label & value \\ \midrule (2) ...
1
vote
0answers
80 views

Booktabs table with multirows: alternative to vertical rules?

I am trying to format a booktabs table with multirow content. I am aware that vertical rules go against the booktabs style. However, in this table, it seems to me that some kind of vertical guide ...
2
votes
0answers
91 views

How to generate a professional table in LyX? [closed]

Many academic journals ask authors to make tables in a professional style, i.e., only have horizontal rules (usually 3 horizontal rules) without any vertical rules. In LaTeX, the booktabs package ...
6
votes
2answers
94 views

Redefining \toprule to default line thickness to use in tables

How can I change the width of a line in a table produced by \toprule to a default of 0.25em? I know it would be something along the lines of \renewcommand{\toprule}{??} but what would be in the ...
0
votes
1answer
39 views

Vertical lines within cell

I'm trying to replicate the folowing table in LaTeX with booktabs: However, I have trouble making the vertical lines. Here's what I have so far: \begin{tabularx}{\textwidth}{l | c c c c c c c c c ...
4
votes
3answers
102 views

Line break in columns in booktabs table

Hi I want to fit the following table on to one landscape page: Therefore I want columns 2,3,4,5,6 to have a line break in the header row only. Also I want to be able to use footnotes and I need to ...
5
votes
3answers
279 views

Formatting table using booktabs

I am having a bit of a trouble with a table. The code for the table looks like this: \documentclass{report} \usepackage{booktabs} \usepackage{array} \newcommand*\rotbf[1]{\rotatebox{90}{\textbf{#1}}} ...
2
votes
1answer
75 views

Problems with table layout

I have some issues when creating my OLS regression in LaTeX and I really hope, that some of you could help me. I have three questions: 1) How to make "Growth 91-92" and "Growth92-93" with a space, so ...
3
votes
2answers
126 views

Table caption inside tabular environment

I would like to write a table with latex which looks as similar as possible to this one here but I do not know how to add the caption to the header of the table as seen down below: I reach as far ...
2
votes
2answers
59 views

Page-breaking of long tables with tabularx and booktabs in scrreprt documentclass

within my thesis I want to have a page break within tables that are very long, and which are created with tabularx and booktabs packages. Surprisingly I could not find any applicable solution for my ...
1
vote
0answers
18 views

Beamer, booktabs, empheq, pgfplots incompatability [duplicate]

The following minimal example \documentclass{beamer} \usepackage{booktabs} \usepackage{empheq} \usepackage{pgfplots} \begin{document} \begin{frame} Test \end{frame} \end{document} gives the error ...
1
vote
1answer
87 views

Problems for coloring tables using booktabs and xcolor

Well, recently I posted a question related here. Thanks to the solution suggested by Harish Kumar I could fix the two tables posted at first. Later I tried to apply the solution to a new third table. ...
3
votes
1answer
176 views

Problems with \rowcolors and booktabs

I'vegot few tables created with few packages included booktabs where I use the command \rowcolors from the xcolor package. But in the last I notice that the colour is wider that the lines of the same ...
2
votes
1answer
97 views

Align numeric values from knitr command \Sexpr{} by decimal in table created with booktabs and tabularx

I am writing my thesis as dynamic document using .Rnw, knitr and R. I ran my statistical analyses in an external R-script, which I sourced into my main .Rnw-file. I also want to create some tables ...
2
votes
1answer
55 views

Multi-column problem with booktabs package

I'm trying to make a simple-looking table with the booktabs package. I would like to make a multi column, followed by another cell. Right now I can't get to make the following cell, where I would like ...
3
votes
2answers
225 views

Remove whitespace between columns in table

I'm trying to create a table using booktabs, but for some reason I get extra whitespace between my last two columns. \documentclass{article} \usepackage{booktabs} \begin{document} ...
5
votes
2answers
189 views

\midrule splits vertical lines in table

I realise that the booktabs package does not want me to use vertical lines in my tables. However, I like vertical lines in my tables. Therefore, I am hoping there is a workaround to a problem that ...
0
votes
0answers
44 views

longtable + booktabs - \bottomrule in \endlastfoot is not getting printed

My last line in a longtable ends with \\. Are there circumstances where a \bottomrule, defined via \bottomrule \endlastfoot would not get produced, especially at the end of a page? The only thing ...
2
votes
1answer
147 views

\arraystretch in conjunction with booktabs

I'm trying to enlarge the row-height of my booktabs-table but \arraystretch does this asymmetrically. I am slightly confused because this is an obvious problem to me and I couldn't find any solutions ...
5
votes
2answers
85 views

How to combine cmidrule of the booktabs-package with siunitx correctly?

After rewriting this post multiple times, I'll just write it like this: How can I use \cmidrule in combination with siunitx? Is this even adviseable or not? Did I make an error somewhere else? The ...
5
votes
1answer
46 views

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 ...
1
vote
1answer
332 views

Fit a table to page width

I am new to Latex and making tables using booktab. I made a table with hierarchy in the x-axis such that I have 3 columns and each column further has 3 sub-columns. But, the table fails to fit within ...
3
votes
1answer
59 views

cmidrule - Why do I have to give the trim value when specifying the space between two columns?

If one uses the @-operator to tweak the space between two columns, \cmidrule needs to be supplied with the width of the trim, otherwise the rule/line looks really awful. Why is that? I'd rather not, ...
2
votes
1answer
67 views

longtable multirow problem with cmidrule and nopagebreak

I'm trying to reimplement the David Carlisle solution given here for breaking long tables over certain rows (breaking in \hline commnands instead \cline ones). This solution is complemented with the ...
2
votes
1answer
904 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 ...
0
votes
2answers
100 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} ...
5
votes
1answer
72 views

Overhang parameter of rowcolor changes overhang of each cell, not just the row

I want to highlight a few rows in a table, and used \rowcolor as per the first table. Well, this results in the row coloring being wider than I desire, so I thought the simple fix would be to adjust ...
1
vote
2answers
161 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
167 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 ...
22
votes
2answers
569 views

Add \midrule Every 5 Lines Automatically

I wrote a table listing scores of 40 students using booktabs package. How to write midrule command automatically every 5 rows? \documentclass{article} \usepackage{booktabs} \begin{document} ...
10
votes
1answer
458 views

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 ...
8
votes
3answers
280 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
403 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
188 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
137 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
325 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
297 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
898 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
2k 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 ...
41
votes
1answer
9k 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
293 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
182 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
133 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
141 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 ...