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

learn more… | top users | synonyms

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
25 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]{*}{...
3
votes
1answer
71 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
40 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]{...
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
29 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
76 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} \...
3
votes
2answers
2k 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 ...
0
votes
0answers
37 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
54 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
26 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
51 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
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
104 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
124 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*{\...
6
votes
2answers
201 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} \...
5
votes
3answers
197 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
65 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
82 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
10k 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
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) ...
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 ...
16
votes
2answers
2k 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 \usepackage[...
4
votes
1answer
56 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
87 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}{>{\...
17
votes
3answers
28k 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
147 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
159 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
143 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
114 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
70 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{...
4
votes
1answer
742 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
49 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
320 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
187 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
126 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, booktabs=...
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 ...
0
votes
2answers
65 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 ...
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 ...
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
84 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....
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
120 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: ...