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

learn more… | top users | synonyms

1
vote
2answers
81 views

{booktabs}: What to do with tables like these?

OK, you all know that booktabs forbids the use of vertical rules. But what to do with tables like these? \begin{center} \begin{tabular}{c|c|c|c|c|c|c|c|c} $y$ & -2 & -1 & 0 & 1 & ...
4
votes
3answers
78 views

Header of table with math mode, align to decimal dot

I have to create a table with math symbols in the header and numbers in the body. I would like to align all the numbers to the decimal dot. To do that I used the siunitx package. The problem is that I ...
0
votes
1answer
27 views

Vertical alignment of \multirow using fraction as subscript

I am using booktabs and multirow to build my table. Below is my sample code, \usepackage{multirow,booktabs} \begin{document} \begin{tabular}{lllllllr} \toprule \multirow{2}[3]{*}{...
1
vote
0answers
18 views

DTLoad from Start to End Record?

Assume I want to use DataTool to display CSV data in a Latex Table. However, my CSV table, is say 1000 lines long, and I can only display 50 on a page. So I what I am looking for is a solution to ...
1
vote
0answers
33 views

Lyx with template

after having written large parts of my dissertation in lyx - I would need to adopt a template for formatting 1 . Can somebody tell me how to reformat my lyx document in a way as to have it in that ...
6
votes
2answers
81 views

bold or higlight first row and column of tabe created from csv file

I'm using csvreader from csvsimple package to read csv data and create table from it. My goal is to bold or somehow highlight first row and first column. Here is my MWE: \documentclass{article} \...
0
votes
0answers
43 views

Single column table, spanning multiple pages, on two column document

As the title says, I would like to create a single column table, that spans multiple pages, on a two column document. On top of that, the table uses multicolumns. Below is my MWE: \documentclass[11pt,...
1
vote
0answers
58 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
27 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
53 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
55 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
42 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: \documentclass[paper=a4,fontsize=12pt]{...
3
votes
1answer
73 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, 12pt]{...
1
vote
1answer
46 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
107 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
129 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: \newcommand*{\...
5
votes
3answers
204 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
44 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
66 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
32 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
84 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
38 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
122 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
57 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 cell'...
2
votes
1answer
90 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} \begin{tabular}{@{}l*{2}{>{\...
3
votes
3answers
93 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
150 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
28 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
161 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
118 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
72 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} \usepackage{...
1
vote
1answer
51 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 https://packages....
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
34 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
145 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
46 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
66 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
65 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 ...
6
votes
2answers
210 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
50 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} \begin{table*}\...
1
vote
2answers
85 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 http://www.inf.ethz....
0
votes
1answer
97 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
121 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
47 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
81 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
249 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
171 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
89 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 ...
4
votes
1answer
140 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 ...