Questions tagged [booktabs]

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

Filter by
Sorted by
Tagged with
1
vote
2answers
35 views

Excess vertical space when using booktabs cmidrule in math align environment

I'm using booktabs cmidrule in a math align environment. It's working but it's producing too much vertical space. How can I reduce that vertical space. Here's a simple demo \documentclass{article} \...
3
votes
3answers
89 views

Unwanted irregular layout when using \multirow

I am an experienced user of latex but new to constructing tables. My problem is illustrated with this example: \documentclass{amsart} \usepackage{booktabs} \usepackage{multirow} \usepackage{tabularx} ...
0
votes
1answer
36 views

Vertically align vertical text in booktabs and multirows

I am trying to create a table such as the one presented here, but the text within the first two columns should be centered vertically. However, I am not able to achieve it. What am I doing wrong? I ...
2
votes
1answer
48 views

algorithm2e with booktabs style and listing the algorithms in toc

I'm using the solution that @egreg provided on this answer, but I'm using the algorithm2e package instead of algorithms. I'd like to retain the design from booktabs but the command \listofalgorithms ...
1
vote
1answer
30 views

Help rendering booktabs tables in RStudio

Can I use the booktabs package in R? I am using RStudio and could not find a way to install a version of the booktabs package. The table I am trying to render in a .Rmd file is provided below: %----- ...
0
votes
1answer
32 views

How to make a list in table cell to show multiple items in a better way?

I am trying to show multiple-choice questions in a table along with a description & percent. Here is my attempt: \begin{table*} \small \centering \begin{tabular}{rrr} \toprule {\bf Question Type} ...
2
votes
1answer
68 views

How to omit vertical realignment when using cmidrule in different colors AND widths

The problem Let's say I want to have more than rules in two different colors in the same row ... how can I make it work? Here is a minimal example: \documentclass{article} \usepackage{colortbl} \...
1
vote
2answers
54 views

How can I make these table columns adaptive so that they remain centered?

I'm trying to create a table that can adapt its column height so that when the text length increases, column-width stays the same but column height adapts. Also, I'd like this table to have the text ...
0
votes
1answer
20 views

latex (pdflatex, xelatex, and latex command) seems hanging on error with `-interaction=nonstopmode`

The following code will result in command pdflatex -interaction=nonstopmode file.tex hanging when encounter the error. Could someone give me some reason? It only happens when the backslash \ goes ...
0
votes
0answers
29 views

Fix background cellcolor to match the borders

How can I fix the booktabs borders to match the cell color or vice versa? \documentclass{article} \usepackage[normalem]{ulem} \usepackage[svgnames,table,xcdraw]{xcolor} \usepackage{booktabs} \...
2
votes
3answers
47 views

LaTeX booktabs package cmidline gets pushed up if another column heading requires more than one line

Compiling the following code shows the problem. The first table is given in the booktabs documentation. The column following the cmidrule-spanned columns requires a single line of text. The second ...
3
votes
1answer
38 views

Text overflows cell

"Endomorphism" overflows cell even though I have provided a hyphenation for it. What could be the cause of this? \documentclass[11pt]{article} \usepackage{array, tabularx, ragged2e, ...
1
vote
1answer
54 views

Long text string wrapping in a LaTeX table

I am currently trying to create a simple 4-column table and I've been trying to sort out the wrapping issue. \begin{table}[ht] \centering \caption{- Main silicate HFSE-hosting minerals from ...
0
votes
1answer
31 views

Booktabs and multicolumns

I want to exend the line in xltabular to cover as well the definitons of @{}. For this question I found a solution with the optional parameter (lr) which is more or less documented in the booktabs ...
2
votes
2answers
34 views

4 decimal place S table to 3 decimal % table

I have the following table which reports the values to four decimal places. However I wish to change it to 3 decimal places and in % format. For example, from say 0.9919 to 99.1. Any thoughts on how ...
3
votes
1answer
81 views

Two tabulars not coming out same width despite every column width specified with p{}

I have two tabulars in a single table environment. They should be aligned but they are not (see photo), despite me having specified all the column widths and given them the exact same setup. Can ...
1
vote
0answers
35 views

booktabs' bottomrule fails with table content via \input [duplicate]

Below code compiles as-is but fails when commenting out the \input statement. Why, and how to fix this? \documentclass{article} \usepackage{booktabs} \begin{filecontents*}{mwe-bottomrule} abc \\ \...
3
votes
2answers
141 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
134 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
180 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
74 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
138 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
42 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
723 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
40 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
86 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
28 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
56 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
59 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
94 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
42 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
66 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
30 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
32 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
69 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
50 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
112 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
23 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
34 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
80 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
80 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
149 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
102 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
60 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
113 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
96 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
43 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
290 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
61 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 & ...

1
2 3 4 5
8