Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

Questions tagged [booktabs]

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

6
votes
1answer
55 views

A way to create a clear layout for large tables

I know, that the question is somehow subjective, but this is my 2nd document writing in TeX. Therefore I've not so much input about the variety of commands and I would be very grateful for some ideas ...
4
votes
2answers
88 views

Set \bottomrule of two uneven tables to same height

I have two parallel tables not equal in height. I'd like to set \bottomrule of the shorter left table to the same height as the right one. Is this even possible without rearranging the rows? Using \...
2
votes
3answers
26 views

Vertical spacing with \cmidrule with datatool table

I would like to insert a cmidrule when I have an empty line in a table produced by the datatool package and also use \bottomrule. Both of these yield excess vertical space above the line: How do I ...
0
votes
2answers
55 views

the table showing only in half of the page

Problem with the table it shows only in half [![][1]][1] \documentclass[11pt, english, singlespacing, ]{MastersDoctoralThesis} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \renewcommand{...
0
votes
1answer
21 views

Vertical alignment of nested itemized lists in tabular

Why are A1, B1, and C1 not aligned? Shouldn't p align them on top? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{adjustbox} \usepackage{enumitem} \usepackage{booktabs} \usepackage{...
0
votes
1answer
28 views

booktabs rotating table

\documentclass[a4paper,openany]{book} \usepackage{booktabs} \usepackage[counterclockwise]{rotating} \begin{document} \begin{sidewaystable} \begin{center} \begin{table} \begin{tabular}{@{}ccccccc@{}} ...
0
votes
0answers
9 views

Custom styling for printing glossary in document - textwidth for tabular style & print headers

I am using the tabular-style typesetting of glossaries as inspired by the accepted (and top-rated) answer to this question. I have some moderately long glossary entries, and I don't wish them to wrap....
6
votes
3answers
146 views

Number alignment and spacing in tables with parentheses, text, decimals, and integers

I am having a lot of trouble aligning numbers with different format and text within a table environment. After doing a lot of research, I only get as far as the following: The rows X to Z and Fstat ...
2
votes
0answers
16 views

specialrule with longtable and arydshln packages problem

When I use specialrule with longtable, there is a white vertical line in the last row. I have tested, if I don't use arydshln packages, it is good. (But I want to dashed line, so I need to add ...
0
votes
1answer
29 views

tophline/multirow is not recognize in latex

I am not able to figureout why this is not working \begin{table*} \caption{Pearson correlation between daily data.} \label{tab:corr} \begin{tabular}{l l c c} \tophline \...
0
votes
1answer
21 views

How to increase space above and below dashed line using arydshln package

I'm using the arydshln package to insert a dashed line between two lines of data, but when I look at the result of a large table in \scriptsize the line appears to be too close to the lower data line. ...
1
vote
2answers
31 views

Problem using multirow in two places

I'm trying to get two multirows separated by several columns, but it wants to add an extra row in the table. My code is: \documentclass[]{article} \usepackage{multirow,booktabs} \begin{document} \...
3
votes
1answer
39 views

Increase column spacing between some columns with siunitx

I want to increase the spacing between columns in two places. There should be some more space between the DIRINT and DISC columnset and between the DISC and Erbs columnset, to make the table more ...
4
votes
1answer
134 views

Nicely formatting booktab table with multiple columns

I have a pretty ugly table that I would like to format nicely. I have seen in LaTeX table cell with a diagonal line and 2 sub cells how I can include \slashbox and in Parametrize shading in table ...
3
votes
2answers
56 views

Change placement of multi-column header

Right now I have the following table: Which corresponds to this code: \documentclass[12pt, twoside]{scrartcl} \usepackage{float} \usepackage{subcaption} \usepackage{caption} \usepackage{booktabs} \...
5
votes
2answers
87 views

Midrule Not Working

Does anyone know why this isn't working? I'm trying to add horizontal lines to my graphs, and it's breaking at the \midrule command \documentclass{article} \usepackage{etoolbox} \usepackage{...
3
votes
3answers
121 views

Vertical align with TikZ and booktabs

I want to write one line of text in a booktabs table containing a TikZ drawing that is higher than the line-height. Per default the text is vertically aligned with the baseline of the TikZ drawing. I ...
2
votes
1answer
106 views

Stepped table in booktabs

I am looking to typeset the following table in booktabs: I am not sure how to get the steps highlighting the differences between the units in the image. The use of \cmidrule makes the horizontal ...
2
votes
1answer
55 views

rowcolor command from colortbl package leaves unwanted gaps in shading between columns

I would like to highlight the first two rows of my table with a custom shade of gray. For this, I thought of using the \rowcolor environment from the colortbl package. However, its usage seems to ...
0
votes
2answers
53 views

Vertical text in table with booktabs

I managed to create a table with booktabs package with this code : \begin{table}[!ht] \centering \begin{tabular}{l|lll} \toprule & Surveillance de & ...
4
votes
1answer
69 views

Why do the lines in this longtable misalign?

I run latexmk -pdfxe on this MWE \documentclass[landscape]{article} \pagestyle{plain} \usepackage[hmargin=1cm, vmargin=2cm]{geometry} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \...
2
votes
1answer
71 views

Set width of \cmidrule or \cline

I would like to prepare an income statement, so I found and modified a template for this on this site, giving the following MWE: \documentclass[a4paper,12pt]{article} \usepackage{textcomp} \...
5
votes
2answers
350 views

Black box on table

I'm having a really weird problem with a table. I have the following code for two different tables. Table 1's code is the following: \begin{table}[H] \centering \begin{tabular}{*3c}\toprule M\'aximo ...
3
votes
2answers
57 views

Remove extra space between \pm columns in tabular environment?

I keep getting excessive whitespace between columns in my graphs: \documentclass{article} \usepackage{array} \usepackage{siunitx} \usepackage{booktabs} \usepackage[flushleft]{threeparttable} \...
1
vote
2answers
41 views

Column alignment in multi index table not evenly distributed

I am trying to build a very simple multi-index table, yet I cannot get the columns of the lower index aligned properly. With the following code: \documentclass[12pt,a4paper]{article} \usepackage[...
2
votes
1answer
42 views

Vertical Spacing for Table with Equations [duplicate]

So I have a table with equations, below. It's a bit crunched up and I want to add vertical space in the rows. I'm using booktabs package for heavy lifting. \begin{table} \begin{tabular}{lcc} \...
0
votes
1answer
35 views

Coloring text in Arabtex (and booktabs) package

I am using arabtex package in a booktabs style table. I would like to highlight the initial, medial and final forms of the arabic letters with a color such as red or graying out the rest of the ...
0
votes
0answers
45 views

different table border style latex

I have a table in Microsoft office which is too complicated to do it again in Latex. I used this site to generate table because I don't know LaTeX well enough to do it in LaTeX. the result of the ...
0
votes
1answer
45 views

How to get Booktab's `\cmidrule` command to play nicely together with `@{\hskip 3em}`?

Consider the following example: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[h!] \centering \caption{Foo} \begin{tabular}{rr@{\hskip 3em}rr@{\hskip 6em}rr@{\...
0
votes
0answers
107 views

How to make a fancy table filled with text in the shape of a triangle? [closed]

I am new in LaTeX, especially for using customized tables. I am trying to make a table like the following images in LaTeX. I will appreciate any help.
3
votes
1answer
31 views

Tables: how to eliminate whitespace in cells? And how to center a cell vertically?

I did the table below (it is in Portuguese) but I could not eliminate some spaces and center 2 cells ... see the attached figure to understand. I need to save space on the text! Tanks for help! \...
2
votes
2answers
96 views

Need linebreaks in some columns of a wide table

I am trying to create linebreaks in some of the cells of my table, since I have long sentences and the table doesn't fit on an A4 page. How to let LaTeX choose the linebreaks? Here is my code \...
6
votes
2answers
135 views

How can I increase the space after a \crule in a booktabs table?

In the table created in the MWE below, I want the space between the crule and the third row to be slightly greater and the space between the text in the 2nd row and the crule to be slightly smaller. ...
3
votes
2answers
38 views

Why are horizontal lines misaligned when I use `\morecmidrules` in tables?

I am trying to draw a large table with two separate double lines. Even though separate, I expected them to be vertically aligned together. Here is the output I get: And my source code: \...
3
votes
1answer
92 views

How can I make a column that the number is counted automatically?

I have a booktabs (longtable) and I make a column Order. I have to input the number 1, 2, 3, ... by hand. How can I make a column that the numbers are counted automatically? My code is \documentclass[...
2
votes
1answer
76 views

Discontinuous vertical dash lines in tabularx, booktabs environment

I have a very large table includes results of 4 different methods, and my supervisor suggested me to use vertical lines to separate methods for readability. However, when I use vertical dashed lines ...
2
votes
3answers
56 views

Change configurations within a table

I am learning LaTeX while working on my lab report, which might sound stupid but I have to start somewhere before my thesis. Anyhow, I am trying to code the following type of table into my LaTeX ...
2
votes
6answers
513 views

Improve table layout

any ideas about how to improve this table layout? IMHO it looks horrible. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{makecell} \usepackage{amsmath} \begin{...
2
votes
2answers
70 views

Avoiding dummy columns when using \cmidrule

I have to typeset a table that comprises three "main columns" A, B and C, where B and C contain two and three "sub-columns", respectively. This is my code: \documentclass{article} \usepackage{...
0
votes
2answers
204 views

Making a booktabs table

I don't really know how to make tables with booktabs and other posts on this don't seem to help me too much. I have to make a table similar to the one with the image below. How would I get on with ...
3
votes
1answer
117 views

Table using \multicolum and \multirow

I'm working on Latex to generate the following table, I want columns that have numbers to be right aligned and similar sized. Here is a minimal code example to start the discussion: \documentclass{...
2
votes
2answers
79 views

Columns in tables produced using booktabs

I'm trying to make a table using the booktabs package. Here's the code: \documentclass[11pt,amssymb]{amsart} \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables \...
4
votes
3answers
68 views

Help adding row space for some rows, and adjusting \cmidrule and \multicolumn accordingly

The following table has two rows of headers, with the top row organizing categories over the second row using \multirow. The goal is to add blank space between the first group (columns 1-2) and the ...
1
vote
3answers
194 views

Make the table look better

I am trying to create an appealing table. So far this is my result: As you can see the table does not look right. For example the work Komplexität is not hyphenated right. And the column titles ...
1
vote
1answer
44 views

How do booktabs rule commands handle empty argument?

I would like to know how booktabs rule commands handle empty argument. As an example the following example doesn't compile (with LuaLatex): \begin{tabular}{l} \toprule{} \multicolumn{1}{c}{...
1
vote
1answer
129 views

Add booktabs' toprule and bottomrule to (floating) enumerate

I am working on producing a good-looking floating enumerate. What still needs to be done is to add booktabs' toprule above the first enumerate's item and booktab's bottomrule below the last enumerate'...
0
votes
1answer
22 views

longtabu + booktabs: mystery alignment tab in page-header converted to \cr

Minimal testcase: \documentclass{article} \usepackage{longtable} \usepackage{tabu} \usepackage{booktabs} \begin{document} \begin{longtabu}[c]{lrX} \caption{Some table} \bfseries Column 1 & \...
1
vote
0answers
147 views

Why is booktabs adding vertical space between rows of table? [duplicate]

I'm experimenting with the excel2latex tool to quickly get my Excel tables to latex code. However if I check the use booktabs package option in the Excel2Latex AddIn and paste my code into Latex I get ...
1
vote
1answer
110 views

How to use the full textwidth for tablenotes under multiple subtables?

When i use subtables and want to include one tablenote which describes all tables simultaneously the tablenote is only created for the left table not using the whole textwidth. How can i make a ...
0
votes
1answer
176 views

midrule and toprule in table too long

I am having trouble with reducing the horizontal lines in following table. I'm using a custom layout that was given to me and it looks like it reduces the standard page width. The horizontal lines I ...