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

learn more… | top users | synonyms

5
votes
0answers
39 views

Use of \cmidrule in booktabs [duplicate]

I'm using the method from this post to generate booktabs tables with alternating rowcolors (yes I know it's a frowned upon practice but I have to use it). Now I want to use \cmidrule to generate a ...
1
vote
0answers
28 views

Longtable Duplicate Separator at Page Break

I have a longtable spreading over 2 pages. Unfortunately, since I decided to use the booktabs package, I get a duplicate line separator between the table header of the second page and the next table ...
3
votes
2answers
107 views

How customize length of rule in tables?

I want to customize the length of the midrule (xy cm) in the first table. The second table should be default. How can that be done? \documentclass{article} \usepackage{booktabs} \begin{document} ...
1
vote
0answers
30 views

Siunitx S column with line break

I have a table with many S columns of the siunitx package containing mean and errors. The table is to wide for the page width when the mean and error are typed in one line. However breaking a line ...
1
vote
0answers
33 views

Booktabs table with rotated and aligned header, multirows, and tabularx columns

I have a problem with the alignment in a bit complicated table setting (see MWE). I have a table normally stretching the complete width of the paper (for illustrating here the nr of columns is reduced ...
3
votes
1answer
53 views

Is there an easy way to create a partial \toprule?

Is there a relatively simple equivalent to \cmidrule (a partial horisontal line in a table) but with the characteristics of a \toprule? It seems the booktabs package does not provide a \ctoprule ...
5
votes
2answers
84 views

Colouring columns of a table which uses booktabs

I'd like to highlight a couple of columns in a table I have. I'm using booktabs in order to access better horizontal rules, however this also has the side effect of introducing extra (uncoloured) ...
0
votes
1answer
50 views

Make a linewidth table with booktabs

How do I create a table with booktabs which is \linewidth? I tried different approaches among others to use tabularx environment or to put everything in a table environment but that did not change ...
3
votes
1answer
71 views

How to trim the length of \toprule

I want to be able to trim the left and the right of a \toprule and \bottomrule as you can do with \cmidrule(lr){<column range>}. My attempted solution using \cmidrule[\heavyrulewidth]{<column ...
2
votes
1answer
58 views

Matrix: hline is cut by cmidrule

I want to emphasize a block structure in a matrix by both, vertical and horizontal lines. Since I am using bmatrix as matrix environment I had the issues as in How to shorten \hline in a matrix. I ...
2
votes
2answers
77 views

How to space columns evenly in a table with multicolumns?

A hopefully very simple question. Why does the multicolumn in my example below screw up the spacing between the columns below? Obviously I would want columns A, B, and C to be spaced evenly (as they ...
2
votes
1answer
64 views

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

table formatting help (centering on a dash)

I'm not happy with the look of this table: I think the dashes in the entries in the first column should align vertically. I don't like the extra space after the integer percentages in the second ...
19
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
39 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
121 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
27 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
45 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
216 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
116 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
100 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
152 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
128 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
41 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
148 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
416 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
83 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
155 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
101 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
105 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
294 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
129 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
68 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
288 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
377 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
55 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
273 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
130 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
50 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 ...
2
votes
1answer
603 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
89 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
85 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
1k 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
106 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
86 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
202 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
196 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
604 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
674 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 ...