Questions tagged [booktabs]

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

Filter by
Sorted by
Tagged with
3
votes
2answers
85 views

Booktabs Table overflows the page

Hope you’re all having a great day. I have the following table which just doesn’t fit the page, do you happen to know which command should I be using so that it fits the page? Thanks in advance. \...
2
votes
3answers
115 views

Booktabs Cell Coloring Overflow and Position Bias

I want to fill booktabs table cells in a custom manner. I did two examples as below, one with kerning and the other is straight booktabs table. The first problem is in both tables, coloring that is ...
2
votes
4answers
142 views

How to align decimal point of table entries having units and no units

I have the situation, that I have to present some metrics of many different signals. However, some metrics have units others are unitless and some are percent values. In the example the values using \...
2
votes
2answers
51 views

threeparttable: How to change font size of threeparttable's table notes when also using flushleft?

I want to modify the font size of tnotes in threeparttables based on this approach of user egreg. Minimum Working Example (MWE) of functional approach: \documentclass{article} \usepackage{booktabs} \...
1
vote
1answer
115 views

booktabs: \dotrule as \midrule

I'd like to have a dotted rule like \midrulefrom the booktabs package. I took code from the booktabs.sty, simplified it and have: \documentclass{article} \usepackage{array} \usepackage{booktabs} ...
0
votes
1answer
32 views

Latex multirow table text and borders messed up

I have the following table (code below): \documentclass[a4paper,fleqn]{cas-sc} %\usepackage[numbers]{natbib} %\usepackage[authoryear]{natbib} \usepackage[authoryear,longnamesfirst]{natbib} \...
5
votes
6answers
690 views

Ideas for a better style for this table? [closed]

I have drawn the table showed in this post, but I don't like the style too much. Do you have any idea for better design, or does it seem like it might be okay after all? Thank you all in advance! ...
2
votes
1answer
37 views

babel clashing with booktabs and tabularx in custom environment

I have a document like this, that is compiled normally: \documentclass{article} \usepackage{booktabs} \usepackage{tabularx} \newenvironment{myenv} {\tabularx{\columnwidth}{X}\toprule} ...
0
votes
0answers
50 views

Styling sphinx LaTeX tables with booktabs package

I am trying to improve the look of LaTeX tables generated from Sphinx. In particular, I'd like to use the booktabs top, mid, and bottom rules and suppress vertical cell separators. This rST table: +---...
0
votes
1answer
22 views

How to prevent overflow of row/cell colors in booktabs? [duplicate]

Based on this answer you know how to easily create rows with background colors. This also works for booktabs. Edit: This is how it looks by default with \begin{tabular}{lccc}: But we want to change ...
2
votes
3answers
46 views

Not enough vertical spacing with booktabs and siunitx [duplicate]

I am using siunitx and booktabs, but I need a bit more vertical space between my units. Here is a picture of my problem: Here is a MWE: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{...
2
votes
3answers
55 views

Include colored box, rotated text in booktabs styled table

I am trying to make a latex table that looks like the picture. There should basically be 4 columns of rotated text under Header 1, one grey cell that that contains additional information. I am new to ...
1
vote
2answers
38 views

My table corners are not connected. how to solve this issue

\begin{tabular}{|p{4.25em}|p{15.125em}|p{12.315em}|p{8.565em}|} \toprule \textbf{Variables} & \textbf{Definition} & \textbf{Formula} & \textbf{Source} \\ \midrule Credit ...
0
votes
1answer
83 views

rows of alternating colors in longtable: filling whitespace depending on the row number

I'm using the longtable package along with booktabs-style rules and alternating row colors. The MWE \documentclass{article} \usepackage[a6paper]{geometry} \usepackage[T1]{fontenc} \usepackage[utf8]{...
1
vote
1answer
26 views

Multicolumn error: I expect to see \omit only after tab marks or the \cr of an alignment

I made the following table: \begin{table}[htp] \caption{ABC} \label{tab:info} \centering \begin{tabularx}{0.48\textwidth}{lX} \scriptsize \multicolumn{2}{c}{A Information} \\ \toprule Attribute & ...
1
vote
2answers
48 views

How to include skewed text in a table

I would like to make a table like this one, in which the columns have skewed text (I use booktabs): I tried to search everywhere, but couldn't find an answer. Any advice on this?
0
votes
0answers
27 views

How to stop latex from starting a new page?

I am writing a two-column style report, and the house style mandates that references be printed at the end under a bottom rule. And what happens is that this bibliography (containing a single ...
0
votes
2answers
31 views

Divide table line by two, rather than resizing table

I've created the following table that contains long DNA sequences, represented as a long string of characters, with their name in the left column. The way it is formatted now, all sequences get ...
0
votes
1answer
33 views

The \toprule, \midrule and \bottomrule do not extend past the first column when also using `xltabular` [duplicate]

I am making a correlation matrix with booktabs. However, the toprule and similar commands do not extend past the first column when also using \usepackage{xltabular}. I tried to remove the xltabular ...
1
vote
1answer
45 views

booktabs table column seperation

Struggling with fitting a table on a beamer slide. Why is there so much spave between columns?! \begin{frame} \frametitle{Recovering GR} \begin{table} \centering \renewcommand{\arraystretch}{1.3} \...
1
vote
4answers
108 views

How to increase the gap between only 2 columns in a tabular without skewing the centering?

The Problem How to adjust the gap between just two columns in a tabular environment while automatically retaining the centering of headings? I know the length columnsep is used to adjust the ...
1
vote
1answer
21 views

How to combine bottom alignment and top alignment in a single table?

I would like to construct very long comparison table, which includes a lot of points to compare, each of which may include multiple subcateogries. This is how I want the table to look The comparison ...
1
vote
1answer
32 views

longtable, landscape, and booktabs throw up errors in combination — please help!

I'm not really sure what my problem is, but I'll do my best to explain. I've been trying to put together a large, landscaped table summarizing some data. It all comes from a similar kind of source, so ...
4
votes
2answers
67 views

Put a symbol to the side of a row in a booktabs table

I would like to annotate one or more rows of a table with a star; the star should not be part of the table. I am using booktabs, so I cannot just add another column, or add the star to the rightmost ...
2
votes
2answers
55 views

When coloring table rows, there is white space between the line and the \toprule and the \bottomrule

As stated in the headline, I am trying to add color to my tables but it seems the booktab package leave extra white space between \toprule and \bottomrule that are not covered by \xcolor \...
1
vote
1answer
67 views

Using numprint to round numbers within a single column in a table

I like to use numprint to format my tables with numerical values, as it improves readability and alignment. However, sometimes I want to use a different rounding setting for a particular column, and ...
0
votes
3answers
65 views

Rowcolor overhang with makecell

When I trim the sides of tables using @{}, the \rowcolor hangs over the sides. I've fixed this with <{\kern-\tabcolsep} on the first and last column (according to this question). However, if \...
1
vote
1answer
43 views

Rowcolors in a longtable with three parts

I have a longtable inside a ThreePartTable environment and I want to have alternating row colors across page breaks. I want to have no color on the first row, since the header is also colored. The ...
1
vote
2answers
75 views

How to remove blank spaces around table rules

I am trying to produce a colored table but the separation lines and the border lines are creating blank spaces that ruins the aesthetics of the table. I wish to remove them. Here is the code I'm ...
3
votes
3answers
89 views

Using booktabs and \tabular I get a heavy vertical rule on the right edge only

My table is filled and all boxes are filled. I have made similar tables elsewhere in the document with no issues. (It is a conjugation table for verbs in a conlang I'm making, if you're wondering.) ...
0
votes
1answer
28 views

Adding rules to the tabularx environment

How does one automatically add a \bottomrule at the end of a tabularx environment? \documentclass{scrartcl} \usepackage{tabularx} \usepackage{booktabs} \usepackage{etoolbox} \newenvironment{...
2
votes
2answers
178 views

\toprule is not spanning the width of the table

I am trying to create a landscape table that spans the vertical length of a page. The following is what I get: The table almost looks good, except for the following: The \toprule, \midrule and \...
2
votes
1answer
58 views

Why this simple booktabs code does not work?

I have the following code: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table} \begin{tabular}{SSSS} 1& small copper ring & small aluminum ring & ...
4
votes
3answers
105 views

Tabularx, landscape, \toprule \midrule do not fully underline row

Somehow \toprule does not underline the whole row of my table. Hopefully, someone can explain to me what I am doing wrong. My ultimate goal is to create a table similar to: Copy of my shortened code: ...
0
votes
2answers
45 views

No vertical lines in multirow with booktabs

I want to have a table that looks like this but without the horizontal lines above and below MULTI: My code is the following: \documentclass{article} \usepackage{tabularx} \usepackage{booktabs} \...
0
votes
2answers
37 views

Extra gap between the columns in colored tables

Tables again. I want to color several rows in the table and use colortbl package. Everything works fine. Now I want to add extra gap between the first and the second column to make the table more ...
2
votes
3answers
63 views

Table out of the right margin of the template

I am using booktabs library to make my table in latex. However, I noticed that due to the size of the table it goes out of the right margin. I tried to follow several recommendations from several ...
0
votes
0answers
60 views

How to edit/create table optimal in Latex?

I am familiar with some latex online editors like tablesgenerator ot latex-tables, however often I want to directly see the output in my own code, so I edit the tabular directly in my code. Despite ...
2
votes
2answers
135 views

FIll empty cells automatically with dummy values

I am working on layoutin a huge table for my thesis. For this it would be great that the tabl is not just blank, it should contain all empty cells with dummy values like x It simply could do so by ...
0
votes
1answer
104 views

Thickness of toprule and bottomrule when resizing table

I have the problem that when my table gets too wide so that I have to resize it, the thickness of \toprule and \bottomrule won't show any more. When I zoom in I can see that there still is a thickness ...
1
vote
2answers
69 views

Rotated multi-column header in booktabs

I want to gernerate a cross table with booktabs. Therfore, I have 2 data sets I want to compare to each other. The table should look like the pic below but I do not get it to write the vertical ...
5
votes
1answer
208 views

xltabular breaking booktabs

I want to have a page-filling and -breaking longtable, so I decided to try xltabular. Unfortunately xltabular seems to screw up the booktabs rules in the normal tabular environments, see: \...
1
vote
1answer
39 views

Cmidrule align same line using arraystretch

Consecutive cmidrule need to align same line(as given in the second part of table) even using arraystretch? \documentclass{article} \usepackage{booktabs} \usepackage[table]{xcolor} % Correct for \...
2
votes
2answers
64 views

pgfplotstable: change the color of a cell's content in string type while maintaining the style

Expanding the topic covered in pgfplotstable: how can I change the color of a cell's content while maintaining the style?, correctly resolved by @frougon, I need to change the color of a single cell ...
0
votes
0answers
28 views

Double line in cmidrule narrows subsequent cmidrule

I had applied two cmidrule in the table but subsequent cmidrule not aligned same line, please give solution using booktabs. Already there is an option hhline, but rule crop cannot done both side of ...
2
votes
3answers
800 views

How can I to do this?, but with lines join

I used Excel2Latex % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{table}[htbp] \centering \caption{Add caption} \begin{tabular}{|r|r|r|r|r|} \cmidrule{1-1} \rowcolor[rgb]{1,1,...
1
vote
1answer
46 views

Two tables next to each other

How can I get two tables next to each other? MWE: \documentclass{article} \usepackage{multirow} \usepackage{amsmath} \usepackage{setspace} \usepackage{booktabs} \begin{document} \begin{table}[...
0
votes
1answer
29 views

Fixing multirow and multicolumn

How can I add (fix) the last two rows? I need add one more row to each of one: \documentclass{article} \usepackage{multirow} \usepackage{amsmath} \usepackage{booktabs} \begin{document} \begin{table}...
1
vote
2answers
53 views

Remove multicolumn from Tabular

I'm trying to remove the first column (RoE) in this example: \documentclass[11pt]{article} \usepackage{multirow} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \...
1
vote
0answers
38 views

Centering table cells about decimal point with bold and asterisk, for dynamically generated tables

I am using PdfLaTeX (MiKTeX) called via R-Brew to dynamically populate and generate a LaTeX table. Use of R tables does not support all of the statistics, and is not flexible enough for the tables I ...

1
2 3 4 5
8