Questions tagged [booktabs]
{booktabs} is a package that provides some additional commands to enhance the quality of tables in LaTeX.
433
questions
1
vote
1
answer
55
views
\usepackage{booktabs} giving an error
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{hyperref}
\usepackage[margin=1in]{geometry} % full-width
\topskip = 20pt
\parskip = 10pt
\parindent = ...
4
votes
2
answers
87
views
Negative decimal numbers missing decimal point in table using siuntix to align by decimal point
I'm trying to align the numbers within this table so that the decimal points are always underneath each other. This seems to work with the siunitx package. However, I have come across two difficulties:...
-1
votes
1
answer
120
views
is there a way to produce a similar table in LaTeX?
I would like to produce a similar table to (see the picture below) in LaTeX, overleaf..
I read the docs for creating tables in overleaf, and it does not seem capable of producing the same table... any ...
0
votes
1
answer
36
views
Longtable paragraph cells doesn't wrap properly
I'm creating a table with the following packages
longtable for tables with lots of rows
booktabs for pretty book styled tables
xcolor with [table] option to add zebra style colors
However text in ...
4
votes
4
answers
153
views
Spacing issues in a complicated table
I have a table in which I am including lists in each cell of a column and I am insistent on using vertical lines. At present, I have the following MWE:
\documentclass[11pt]{article}
\usepackage[...
2
votes
4
answers
130
views
Word Wrap in Table Cell in BOOKTABS Tables
In a Nutshell:
How can you provide word wrap in left-aligned table cell when you are using the package bookstabs?
My Problem in Detail:
I am writing a scientific paper to be (hopefully) published in ...
1
vote
3
answers
119
views
Line breaks in booktabs?
How do I fit such a table on a page (so that it's not too wide)? I guess I'd like to have a line break in the name of every column and also line breaks in each cell of the entire first column. How do ...
2
votes
2
answers
64
views
Cmidrule misplaced \noalign
I am using cmidrule as I have used it before, but it's giving me strange errors. Below the MWE reproduces them. What is going on?
\documentclass{beamer}
\usepackage{booktabs}
\usepackage{multicol}
\...
1
vote
0
answers
31
views
How to adjust LaTeX table and format it using booktabs? [duplicate]
I have a created a table in LaTeX which goes straight out of the page on the right side (fig shown). This is a 14 by 6 table. The kind of format I want to achieve is something like the one given in MS ...
6
votes
2
answers
137
views
Booktabs table lines not showing
I am using a conference template (see https://sice.jp/siceac/sice2022/01.html) to write my paper. When creating tables with the Booktabs package, all lines in the table are not showing. Plain tables ...
0
votes
3
answers
72
views
Add a division bar between two elements of an array
I have this array:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage{amsmath, amsfonts}
\usepackage[thicklines]{cancel}
\title{shortenedExample}
\author{CATboardBETA}
\date{February ...
0
votes
0
answers
20
views
Toprule, midrule and bottomrule not appearing in table [duplicate]
\documentclass[aps,prd,reprint,groupeaddress,showpacs,preprintnumbers,nofootinbib,nobibnotes,amsmath,amssymb,floatfix,superscriptaddress]{revtex4-1}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{...
9
votes
2
answers
135
views
\cline equivalent that allows `(lr)` trim on either side
I am looking for the equivalent of \cline{1-1} that does not affect the vertical spacing, but with the option to be able to apply a trim such as (lr) that \cmidrule allows.
The MWE below produces:
I ...
1
vote
1
answer
31
views
\rotate in NiceTabularX inserts too much space above the contents
I am trying to use \rotate inside \RowStyle to rotate elements of first row, but it seems too much space is inserted above the contents. How to remove it?
My MWE
\documentclass[aspectratio=169, t]{...
2
votes
2
answers
64
views
Table best practice - how to combine multiple semi related tables
What is the best practice when it comes to tables that semi-correlate context-wise? I've got the problem, that currently the tables take a large space from my work, but are also required. What would ...
2
votes
2
answers
46
views
Improve longtable styling
For my master thesis I need to adress a large amount of variables for my statistical model. Since there are some margin restrictions to the paper I used longtable to split the table efficiently over ...
0
votes
0
answers
18
views
Broken / Missing Vertical Line on Table [duplicate]
I've been trying to recreate this table,
so far i manage to write,
\begin{table*}[h!]
\caption{Bit error rates of different templates when using the same deep-learning based extraction method}
\...
0
votes
0
answers
16
views
tweaking of vertical spacing after \bottomrule [duplicate]
\documentclass[12pt, a4paper, UTF8, scheme=plain, twoside]{ctexrep}
\usepackage{amsmath}
\usepackage{adjustbox} % uses graphicx
\usepackage{booktabs}
\usepackage[margin=0.5cm]{geometry}
%%
%%
%%
%%
%%
...
2
votes
1
answer
53
views
Latex to html : keep white space between colored cells in booktabs tables
I use a colored Table to illustrate a concept called 5-fold cross-validation. (Code is below). In latex, it looks as follows:
When I convert this to html using tex4ebook cv_table.tex I get this:
...
1
vote
1
answer
61
views
Interrupted toprule/midrule/bottomrule lines in booktabs-table when converting to html with tex4ebooks
I am converting latex to html/ebook using the command tex4ebook filename.tex .
When using the booktabs package, the line generated by \toprule, \midrule, \bottomrule are interrupted (have extra space) ...
2
votes
2
answers
64
views
Vertically align first table row with text with booktabs' toprule
A top-aligned tabular aligns the baseline of its first row with the base line of the surrounding text. However, when using booktabs' \toprule, the rule is considered the first row and thus aligned ...
2
votes
1
answer
54
views
Errors using \bottomrule when inserting table
EDIT: Added preamble, and it seems \input table worked! When I manually insert the table, rather than input it, I do not get any errors, and it looks nice. However, when I use \input{table.tex}, I get ...
5
votes
4
answers
149
views
verbatim columns of vectors in booktabs columns
After lots of calculation in Python, a Pandas DataFrame is created that has several vectors. Fortunately Pandas can export its table in booktabs format, but the "vectors" get aligned by ...
1
vote
2
answers
166
views
How to remove a space generated after using \cline in tabular?
I am using tabularx in Springer nature template. I want to create a table, but the problem is that after I am using \cline{2-2}, the created table generated with a space. I want to remove this space. ...
3
votes
1
answer
52
views
Misplaced noalign with datatool and booktabs
I experience a (I’m afraid not so original) “Misplaced noalign” with the following example.
\documentclass{article}
\usepackage{booktabs}
\usepackage{datatool}
\begin{document}
\DTLnewdb{mydb}
\...
2
votes
1
answer
91
views
Why does `\makecell` not provide proper vertical alignment for this particular line?
I am trying to align table cell contents using \makecell. It strikes me as very strange that (in the same table), one row gets aligned vertically as intended while the other does not. I want the words ...
1
vote
1
answer
84
views
Adjust booktabs table width to content
Can somebody tell me how I can adjust a tabluarx' width to its content? Consider the following working example:
\documentclass[a4paper,twoside]{article}
\usepackage{booktabs} % for 'tabularx' ...
3
votes
1
answer
284
views
Misplaced \noalign because \input before booktabs rule
In a large project, I reuse with \input tabular rows stored as child files. This has worked perfectly in the past, but in my texlive 2021 this fail when a booktabs rule follow the input. MWE:
\...
2
votes
2
answers
312
views
Special cmidrule with booktabs - colored and custom spacing with cmidrule
I would like to create a gray cmidrule a la booktabs. I have created a gray midrule gmidrule (extends entire table width) with different tighter space via
\newcommand{\gmidrule{\arrayrulecolor{...
0
votes
2
answers
53
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
0
answers
87
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
1
answer
107
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
0
answers
94
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
1
answer
27
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
0
answers
65
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
1
answer
90
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
1
answer
53
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
1
answer
42
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
2
answers
56
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
1
answer
94
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
2
answers
162
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 ...
1
vote
2
answers
94
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
1
answer
170
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
3
answers
121
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
1
answer
31
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
3
answers
155
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
2
answers
79
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
3
answers
96
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
1
answer
132
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
1
answer
119
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 ...