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

learn more… | top users | synonyms

1
vote
0answers
32 views

Toprule, midrule and bottomrule not showing up correctly

I'm trying to set up a table with the nice look from the \toprule, \midrule and \bottomrule commands. However, they don't seem to show up correctly - the thickness of the top and bottomrule are not ...
2
votes
1answer
20 views

pgfplotstable with .tsv file where the headers have underscores: How to avoid “Missing $ inserted”?

The file I want to show is a .tsv file that I cannot edit. It looks like this: up_gene up_chr up_strand up_Genome_pos APLP2 chr11 + 129991686 BACE2 chr21 + 42617990 BRDT chr1 + ...
2
votes
2answers
31 views

vertical centering in tabular using array and booktabs

In the following school timetable for my 4 kids I am trying to use array and the m{} command (vertical align middle) to get the word Peter to be vertically aligned in its cell, (at the cmidrule), ...
3
votes
3answers
44 views

Tables: adjust column widths

I would like this table to adjust the width of its columns to the content. Columns 2, 3 and 4 are way big. Any suggestions? \documentclass[12pt]{article} \usepackage[margin=3cm]{geometry} % ...
1
vote
1answer
54 views

multicolumn table with a legend in latex

I'm not very experienced in drawing tables in latex, but for this paper I have no choice. Please forgive me, if this is a stupid question. So, here's my preamble: \documentclass[a4paper, ...
1
vote
1answer
29 views

Problem with tabularx's vertical spacing

I have a problem with the way tabularx (or is it booktabs?) is handling vertical spacing between horizontal lines and the cell content / background color. MWE: ...
1
vote
1answer
38 views

Specific horizontal space with vertical lines

I would like to add one specific located horizontal space in a table (not after all rows like here). For instance, \addlinespace works perfectly well but not when vertical lines are added. ...
5
votes
1answer
84 views

\multicolumn in a booktabs table

I'm having a few problems with a table which uses \multicolumn and the booktabs package. This is what I've done: \documentclass[12pt]{article} \usepackage[margin=1.8cm]{geometry} \geometry{a4paper} ...
2
votes
3answers
94 views

How to setup a longtable with booktabs and a colored (head) row

I'd like to make a longtable with the first (head) row colored in grey. Since booktabs inserts white space below the \toprule and above the \midrule, i need to insert a colored rule: ...
5
votes
2answers
156 views

Booktabs and colortbl not filling height of row

I have a simple booktabs table very similar to the following MWE: \documentclass[12pt]{article} % set the font of the document \usepackage{fontspec} % set line spacing \usepackage{setspace} ...
4
votes
3answers
123 views

Booktabs table, multicolumn header underline

I have a table for a regression, which has two main parts ("Immigrants" and "Locals"). I would like to put a small line underneath Immigrants that goes from where the first model starts ("Disability") ...
5
votes
1answer
41 views

Extending bottomrule when using two tabular in table

I am wanting to vertically stack two tables, as described here by Stefan. I am wanting to include a \toprule and \bottomrule to enclose the entirety of the table (both tabulars). The problem I get is ...
1
vote
1answer
46 views

Defining left/right overhang with \cellcolor

I want to highlight one row and one column in a table. The column is no problem. However, the colour panels of the outermost left and right cell in the row overhang the table's borders if I use @{} in ...
1
vote
1answer
28 views

merge cells using multirow package

I have the following code for a table: \bgroup \def\arraystretch{1.5} \begin{table}[ht] \textbf{\caption{My Table}} % title of Table \centering % used for centering table \begin{tabular}{ c|ccc } ...
2
votes
1answer
69 views

siunitx: Appended currency symbol mispositioned with aligned negative values

I'm trying to do some LaTeX-table-magic for a friend, and I've run into a strange issue I haven't been able to find a solution for. I'm using siunitx (along with booktabs) to align some values in a ...
20
votes
3answers
9k 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 ...
0
votes
1answer
35 views

Booktabs: Vertically align to top for p{…}-formatted columns

I have a table that looks like this. The latex code for the column definitions is the following: \begin{tabular}{lp{4cm}cccccc} How can I align the text in the second column with property p{4cm} ...
1
vote
2answers
101 views

How to add 25/50/75/100% filled circles to a table?

Often I see in a paper a table with a column of circles which are filled for 25/50/75/100% to show priority/level of meeting requirements, to mention yes/no/unknown/NA etc? Do such (usage of) ...
3
votes
3answers
88 views

Problem with aligning table cells correctly

I have troubles with the correct aligning of my table cells. I want to get a look like in the lower picture below. The caption should be no matter for this MWE (I know how to modify this using the ...
16
votes
2answers
1k 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 ...
4
votes
1answer
45 views

Padding Issue when Coloring Cells of the Latex Table individually

I created the following latex table in booktabs style and colored each cell with a different colour. But in the end, I saw some padding which is not coloured because of the different size of the ...
2
votes
1answer
72 views

An error with \begin{tabular}{@{}l*{2}{>{\textbackslash\ttfamily}l}l<{Example text}@{}}

\documentclass{article} \usepackage{booktabs} \newcommand{\head}[1]{\textnormal{\textbf{#1}}} \newcommand{\normal}[1]{\multicolumn{1}{l}{#1}} \begin{document} ...
16
votes
3answers
25k 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 ...
2
votes
1answer
125 views

I am trying to convert into scientific notation

I am trying to convert the following table with scientific notation (e.g. e^-01), but it's not working. Here is a minimal working example for my thesis. Thank you very much for your help! ...
2
votes
2answers
27 views

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 ...
2
votes
1answer
126 views

Remove spaces above and below cmidrule [duplicate]

I'm using booktabs to create table and use cmidrule to span a line across a few columns. The problem is when the cells have background color, the spaces around cmidrule makes it look really bad. ...
2
votes
1answer
122 views

Best way for page break with book tabs table

What is the best practice for the displaying of booktab tables with page break? I could not find any solution but when I use the code from my example, I get alawys confused by a missing separation ...
1
vote
2answers
90 views

Table error - Extra alignment tab has been changed to \cr

Where I did wrong? \begin{table} \begin{center} \begin{tabularx}{\textwidth}{YYYYYYY} \toprule \textbf{Style} & \multicolumn{2}{c}{\textbf{Yarn}} & & \multicolumn{2}{c}{\textbf{Count}} ...
1
vote
0answers
58 views

Linewidth of tabular with booktabs varies randomly

The Following MWE produces the output that I want to achieve: \documentclass[11pt, a4paper, twoside, %openright, toc=listof, BCOR=5mm, bibliography=totoc, parskip=half]{scrreprt} ...
4
votes
1answer
677 views

Problems with \rowcolors and booktabs

I've got 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 ...
1
vote
1answer
41 views

Texlive contains booktabs-de or not?

I'm using Ubuntu vivid and have installed the textlive-full package. If I use the package booktabs-de my tex file cannot be complied because the package cannot be found. According to ...
1
vote
1answer
302 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 ...
2
votes
1answer
173 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 ...
0
votes
1answer
116 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, ...
1
vote
1answer
68 views

Auto-select page orientation for tables

I am trying to write a python script that takes a matrix and converts it to a latex document containing just one table. I have most things sorted out, and I can get e.g. a table TeX file outputted ...
2
votes
1answer
33 views

Refer to table body in new environment

I'm trying to create a new environment based on tabularx. I'd like it to have a \bottomrule at the end. How do I refer to the table rows on the new environment definition? Right now the bottom line is ...
0
votes
2answers
59 views

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 ...
3
votes
2answers
61 views

Split row distance between two colored table rows

I would like to add some space between the lines the improve the readability of my booktabs table. I already colored every second line therefore but I cannot achieve equal rows and the centered text ...
4
votes
1answer
36 views

Centering of content below cmidrule

I'm trying to figure out how I can center the columns below a multicolumn statement with a very long text because my current result does not look fine. I didn't find anything related but it is also ...
2
votes
2answers
45 views

An over full \hbox problem using tabular

I want to get something like this: I used the following code: \documentclass{article} \usepackage{booktabs} \newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} \begin{document} ...
1
vote
2answers
75 views

A booktabs question: How to get rid of the blank column?

I tried to make a table like this: But I don't want those black space, how can I get ride of them? (I still want the table to have text width ) I referred to the latex code of ...
10
votes
2answers
6k views

\midrule dashed and colored in booktabs — two kinds of midrules in one booktab

Is it possible to make two \midrules in one booktab? The first one should be colored, the second one colored and dashed, as it is shown in the picture. Before each entry is a horizontal space - how to ...
4
votes
1answer
116 views

Table - problem with two lines (NEW)

Dear TeX Stackexchange I have one issue, when I create my table. As you can see on the picture below, the three black lines don't go to the right but stops under (10): My text look like this: ...
0
votes
1answer
76 views

Problems with table - extra column

When I try to make my table - it won't create a fourth column. My preamble look like this: \documentclass[a4paper,11pt,oneside]{article} \usepackage[protrusion=true,expansion=true]{microtype} ...
3
votes
1answer
161 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 ...
0
votes
0answers
39 views

Redefine \cmidrule for longtable preventing page-break after \cmidrule [duplicate]

Is there a way to redefine the \cmidrule command in such a way that no page-break is allowed after \cmidrule in longtable? To be more specific: I use both the \midrule and the \cmidrule command from ...
3
votes
2answers
202 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} ...
5
votes
0answers
46 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
77 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 ...
1
vote
0answers
80 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 ...