Stack Exchange Network

Stack Exchange network consists of 175 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

Questions tagged [booktabs]

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

2
votes
1answer
42 views

How do I use \includegraphics with booktabs?

I'm making a reference document for my students regarding the 14 Bravais lattices. I've gotten this table to work but it is messy. Does anyone have suggestions on how to clean it up? (I've added ...
4
votes
2answers
126 views

Decimal alignment in a table with math mode

After reading some answers on the site, I'm trying to use dcolumn pacakge in order to add horizontal alignment to my tables. Unfortunately without success so far. I'm writing as a part of a group so I ...
1
vote
0answers
37 views

Control space before and after specific cmidrule in tabular [closed]

I would like the space after the \cmidrules to be reduced. However, belowrulesep affects all the rules. \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \...
1
vote
1answer
61 views

Vertical lines will not connect completely

The vertical line between 8 and comment will are not completely connected top. \begin{table}[H] \centering \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|} \hline \multirow{2}{*}{No.} & \multirow{2}{*}{...
1
vote
1answer
34 views

Grouping table rows while having page breaks in a long table in Latex

I have a long table spread over a few pages, made of groups of rows. I use the packages longtable, booktabs, multirow and multicol, and have read their documentation, but could not find answers to my ...
0
votes
2answers
39 views

How to fit a content in a column of LaTeX table?

I am trying to create a table in LaTeX. However content of my column is exceeding the width and intruding in the other column. Please help me to solve this problem. Code is pasted below.Screenshot of ...
1
vote
3answers
106 views

How to improve this table?

I'm looking for ideas to improve the layout of the following table. Is there a better way to separate ABC Metrics and XYZ Metrics (other than using separate table for each metric)? Should I convert ...
4
votes
1answer
26 views

A midrule line under each column, separated by white space

How can we draw a horizontal line in a table with white space between each column? A MWE, using booktabs's \midrule and \cmidrule: \documentclass[11pt,twoside,a4paper]{article} \usepackage{booktabs}...
1
vote
2answers
53 views

Problem with setting up vertical lines in booktabs tables

As pointed out here it is important to use \multicolumn{3}{|l|}{} in the following line of multicolumn. Nevertheless I am struggling around with the same issue (unconnected vertical lines) and ...
5
votes
1answer
64 views

Hangindent and justfied multiline text in single cell of table

I have quite a lot of text that I want to format in a readable manner in a single cell of a table, so I want to use hangindents. But in addition to that I want to make the text justified, but this is ...
1
vote
1answer
40 views

glossary in long-booktabs style has no bottomrule in minipage

I want to put a longbooktabs glossary in a minipage environment, but when I do that it curiously loses the bottomrule. Is there anything I can do about that? As Nicola Talbot commented it suffices to ...
4
votes
1answer
52 views

Wrapping text in a multirow, 90 degree oriented cell

I have the following MWE \documentclass[letterpaper,12pt,oneside,onecolumn,draft,openany]{report} \usepackage{caption} \usepackage{wrapfig, subcaption, siunitx, booktabs, multirow} \usepackage{...
6
votes
1answer
125 views

Align numbers in table with scientific notation and minus sign

I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format in what it looks like the right way to me, but actually I haven't found any ...
1
vote
1answer
34 views

Changing the column order breaks tabularx

Why does the following table breaks with TeX saying that ! Extra alignment tab has been changed to \cr. <recently read> \endtemplate l.9 \end{tabularx} ? If I change the column ...
1
vote
1answer
47 views

Booktabs help alignment

For some strange reason, the right column is left aligned in contrast with the other columns. I'm not seeing what I did wrong. This is due in 3 hours, but I haven't noticed it until now. Please help ...
0
votes
2answers
127 views

Using percentage in column width resulting in overfull table when getting at 100%

I define a columntype which wrap its contens automatically and needs an argument for its width. As I want that my tables are exactly starting at the left margin and ending at the right one I used some ...
6
votes
1answer
74 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
105 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
37 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
88 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
30 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
65 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
16 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
289 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
70 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
76 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
40 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
63 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
126 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
217 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
97 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
117 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
5answers
197 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
121 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
95 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
69 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
85 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
169 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
470 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
159 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
73 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
119 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
78 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
75 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
180 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@{\...
3
votes
1answer
32 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
125 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
298 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
70 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: \...
4
votes
1answer
99 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[...