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.

0
votes
1answer
23 views

How to center the contents of the first column?

How to center only the contents of the first column, without centering anything else, including the header of the first column? \documentclass{article} \usepackage{booktabs} \usepackage{array} \begin{...
0
votes
0answers
18 views

cmidrule overlap [duplicate]

I notice when I have a \cdmidrule command on neighboring columns \cmidrule{5-6} \cmidrule{7-8} that it produces a single straight line between columns 5 and 8. Whereas what I want (for visual ...
0
votes
2answers
39 views

How to get continuous vertical line without breaking inside array environment?

I am facing a problem in the following code, i found that there is a breaking in two vertical lines as shown in red mark when i used the command \cmidrule[1pt](r{-1.0em}){1-4} inside array environment,...
1
vote
1answer
33 views

vertical border in longtable + booktabs + repeating table header

This seems to be a bug in booktabs + longtable when there are repeating header rows. I got an error report on this from the r package kableExtra. https://github.com/haozhu233/kableExtra/issues/377 ...
2
votes
1answer
57 views

Equally distributed table columns

I am trying to make simple table with some numerical data. I used package booktabs and overall the table looks very good, but in my opinion it would be better to have columns equally width according ...
3
votes
2answers
86 views

Uneven column widths when using a long multi-column header

I have the following MWE, but I have a problem with the alignment of the last column (under the multicolumn) \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
1answer
42 views

Cell background color longer than midrule (or hline) in table

I have a small problem in my table editing using booktabs and colors. The main problem is the background color of a cell is longer than the midrule, which is not a huge problem but it is quite ...
2
votes
1answer
20 views

Color alternating groups of rows except the last row in table

I'm coloring alternating groups (5 rows) in a table. I want to do this for the 40 data rows. I don't want to color the last row in the table that's a quality control checklist. More or less I want ...
1
vote
1answer
34 views

Multirow not working properly in combination with booktabs

I am creating a table using booktabs, but I also need multirow in specific places, in combination with long paragraphs of text. If I use multirow normally, there is no way to break the text: \...
0
votes
1answer
83 views

Color alternating groups (5) of rows in Table gray and white

I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows. I have attempted to use the solution posted here Does something like \rowcolors exist for groups of rows?...
4
votes
2answers
71 views

Multi-header column alignment with booktabs

After looking at multiple tex.stackexchange questions, I'm still having trouble getting the alignment of multiple columns right. Here's my code \documentclass[a4paper]{article} \usepackage[T1]{...
3
votes
2answers
68 views

custom \midrule length

I just want a simple \midrule that doesn't span the entire page or cell. For instance, with \rule, you can specify dimensions like: \rule[0.2cm]{100pt}{0.5pt} That's as close as I can get it, but ...
3
votes
2answers
62 views

Control width of columns in a tabular environment

I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now....
0
votes
1answer
30 views

How to align table contents by decimal point?

I've searched online and on this forum. I haven't found an appropriate solution to my issue. I am trying to align the numbers in my table with their decimal point. I'm not exactly sure how to go about ...
1
vote
1answer
49 views

Baum Welch algorithm description

I am trying to replicate this table, on the Baum Welch algorithm, for Hidden Markov Models. I can not put expressions in the center, I'm trying with \ begin {align *} ... \ end {align *}, but the ...
5
votes
2answers
94 views

Align column in table on Plus/minus symbol with values of varying length and align header of first column with data?

I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data ...
2
votes
3answers
120 views

Tables with lots of text

I have really limited LaTeX skills. Trying to make a table that looks like this, but couldn't figure out how: Attempting to use booktabs for horizontal lines, tabu for dealing with column widths (I ...
2
votes
1answer
64 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
147 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
76 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
119 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
49 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
46 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
122 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
46 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
59 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
102 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
77 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
67 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
174 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
37 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
69 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
336 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
78 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
119 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
40 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
105 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
38 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
90 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
18 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
342 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
114 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
118 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
69 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
93 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} \...
4
votes
1answer
179 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
278 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
123 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
162 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
231 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 ...