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

learn more… | top users | synonyms

1
vote
2answers
18 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
44 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 ...
0
votes
1answer
31 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
77 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) ...
4
votes
1answer
37 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
54 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} ...
3
votes
3answers
84 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 ...
2
votes
1answer
102 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
25 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
54 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. ...
1
vote
2answers
64 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
48 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} ...
1
vote
1answer
35 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
64 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
30 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 ...
2
votes
1answer
97 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 ...
4
votes
1answer
29 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 ...
0
votes
2answers
42 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
55 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 ...
3
votes
1answer
94 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} ...
2
votes
2answers
41 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
69 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 ...
0
votes
1answer
56 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} ...
4
votes
1answer
113 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
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 ...
5
votes
0answers
44 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
70 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
161 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} ...
3
votes
1answer
146 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
71 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
82 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
107 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
101 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
136 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
118 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
228 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 ...
3
votes
1answer
262 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
56 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
1answer
95 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
163 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
29 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
58 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 ...
6
votes
1answer
560 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
334 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) ...
2
votes
1answer
158 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
263 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
289 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
48 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
287 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 ...