Questions tagged [booktabs]

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

Filter by
Sorted by
Tagged with
0
votes
2answers
52 views

How to make table more readable when it only contains math

I'm trying to make table 2 of this paper more readable. My attempt so far is summarized in the code below: \documentclass[11pt]{article} \usepackage{mathtools,amsmath,amssymb} \usepackage{booktabs} \...
1
vote
0answers
48 views

\cmidrule from the booktab package is adding extra horizon space

I want to add some sub-lines in my form; however, the lines generated by \cmidrule are pulling the words around it. The words above the \cmidrule seem higher than they should be, and the words below ...
0
votes
0answers
53 views

Making \addlinespace work with tabularray

I need to fix the following error after using \addlinespace Misplaced \noalign. \addlinespace ->\noalign {\ifnum 0=`}\fi @ifnextchar [{@addspace }{@addsp... l.25 \end {tblr} \documentclass{...
1
vote
0answers
82 views

Heading of tabularx

How can I align the heading so that it doesn't exceed the width of the table and the text? I would actually have wanted the headline to be printed one line down if it was too long... any suggestion? \...
0
votes
1answer
19 views

Aligning table columns with siunitx overflows borders

I am using siunitx, and I have a column which contains numeric values along with units, it results in this where the units are overflowing on the right side. How do I stretch the table to fit? MWE: \...
1
vote
0answers
37 views

How to remove \toprule from top left cell

How can I remove the \toprule above a specific cell? \begin{table}[!htbp] \begin{center} \begin{tabular}{l l l} \toprule & column & column\\ \midrule row & ...
1
vote
1answer
53 views

How to use booktabs for complex multicols tables to remain consistent design

I am new to latex and booktabs but love the design of booktabs compared to "normal" tables. Thus, I want to use booktabs and have finished some simple tables such as an overview of ...
0
votes
1answer
23 views

Adjust column size with multicolumn

I'm trying to create a nice confusion matrix with a bookstab table. I'm almost satisfied except for the too large gap between the last two columns. I've tried several things like setting the column ...
1
vote
1answer
36 views

Adjusting the table

I am trying to adjust the size of the table, so that the table is more aligned with the text. because it reaches the end of the page. Thanks. \usepackage{siunitx} \usepackage{booktabs} \begin{tabular}...
1
vote
2answers
42 views

siunitx explicit-sign not for all numbers in column

One have the table that align according decimal point by siunitx package, and sign before all numbers is tilde (\sim). How remove tilde for number 7 only, without break the alignment? (I tried to add $...
0
votes
1answer
47 views

Something's wrong--perhaps a missing \item. \begin{table} even with \begin{table}

I have a host of errors telling me that I have missing items even though I can't find any that I have not included. This is occurring for figures, tables, floatingfigures, everything I have in the ...
0
votes
2answers
40 views

How to align multicolumn and cmidrule and get a nice long table in booktabs?

can someone help me with aligning my table using multicolumn and cmidrule. I have a long table with 19 columns and used \tiny to get the table on the page, but the lay out is not so nice. I want ...
0
votes
0answers
33 views

How can I replicate the Fama & French 5 factor (2015) regression table, see image below

I am doing research on asset pricing models and augmented the five factor model. I use the 25 portfolio excess returns as test assets for my time-series regression. I want to replicate the same table ...
0
votes
0answers
36 views

Wich packages to use to draw this kind of table with line-by-line multi references columns(synchronized column)

I'm trying to draw the table of the image, but I can not find the packages to do it with latex PS: Paracol is not allowing switching inside itemize environments. Book tabs environnement are not ...
1
vote
2answers
34 views

Grouping rows of an apa7 table by vertical line

APA-style encourages grouping of columns with a horizontal line if needed, which I am doing with \cmidrule(r){...} in a tabular environment. This is what I currently have: Via this MWE I am using. (I ...
0
votes
0answers
18 views

Algorithms: caption looks too cluttered?

I would like to introduce some spaces between the top and bottom lines of the default caption provided by the algorithm package? I would ideally want to make it look like a header from the booktabs ...
0
votes
1answer
50 views

Latex Error: Runaway argument paragraph ended before \@@@cimidrule was complete in table and tabular

\documentclass[journal]{IEEEtran} \usepackage{booktabs,siunitx} \begin{document} \begin{table*}%[!htbp] \centering \caption{Day ahead accuracy assessment} \label{tab:Day_ahead_Accuracy} \begin{...
0
votes
3answers
114 views

How do I make a complicated table with LaTex? [closed]

I want to create table like this but I am having some troubles doing it. I tried to use the Excel2LaTex plugin but it doesn't create the table I want in LaTeX.
1
vote
1answer
30 views

Remove extra spacing in tables

Hi guys I am new to LaTeX and I have a small issue with the spacings in a table that I made. \documentclass[10pt]{article} \usepackage[a4paper, total={7in, 10in}]{geometry} \usepackage{booktabs} \...
3
votes
2answers
69 views

\rowcolors command (xcolor, option [table]) and different table environments

Using xcolor.\rowcolors together with booktabs.\midrule I have encountered some weird behaviour. To make it plain: the point is not whether or why the tables look so utterly ugly ... In the MWE there ...
1
vote
2answers
43 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
91 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
48 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
75 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
72 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
33 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
72 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
63 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
22 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
36 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
48 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
42 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
97 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
33 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
83 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
44 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
265 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
165 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
253 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
154 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
181 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
64 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
760 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
45 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
137 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
75 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
86 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
73 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 ...

1
2 3 4 5
9