Questions tagged [booktabs]

{booktabs} is a package that provides some additional commands to enhance the quality of tables in LaTeX.

Filter by
Sorted by
Tagged with
2 votes
2 answers
55 views

Vertical alignment (centering) not working (multirow, longtable, booktabs)

I am having an issue that I cannot resolve, even after searching online, I apologize as I'm fairly new to Latex and this is basically my first table (which needs to span over multiple pages). As you ...
Botan's user avatar
  • 23
2 votes
2 answers
72 views

Table with multiple column (hierarchical table)

I am trying to draw a table like the following figure . I found a nearest to the solution of my query is the following question. What I found difficult is to add the left most column of my proposed ...
Cantor_Set's user avatar
3 votes
2 answers
177 views

Multi column table with continuous vertical lines

I want to create this type of table in the latex. What I did is the following \begin{tabular}{c|ccccc|ccccc|ccccc} \toprule &&& Edge count &&&&& Wedge count &&...
ann's user avatar
  • 33
1 vote
2 answers
87 views

esttab table from STATA with unaligned number of observations

I am trying to create a table using esttab option of STATA. I am able to edit the table out but the number of observations are not getting aligned. Moreover, is there a nice way to add table notes to ...
Eric's user avatar
  • 59
5 votes
2 answers
93 views

Alignment problems with regression table and math in heading

I have a problem with the alignment of the commas in a regression table. Due to the fact that I also have mathematical expressions in the heading, other solutions I found do not work. Is it still ...
herry.23's user avatar
  • 197
4 votes
5 answers
240 views

\midrule, \bottomrule, etc do not extend until last columns of my table

I am observing strange behaviour in which toprule, midrule, bottomrule fail to extend until the last columns of my table. In the MWE below, I reproduce the issue using toprule, & bottomrule %%% ...
arilwan's user avatar
  • 389
1 vote
1 answer
34 views

How to decrease the height of a "longtable"?

I have the following problem. I have the following code and now I want to achieve that the table is not shown on a new page, but under the section heading, so that the table is shortened vertically a ...
manofthousandnames's user avatar
0 votes
2 answers
47 views

Prevent unnecessary longtable widows

When the remaining rows of a longtable fit exactly onto the current page, longtable will instead create a widow by printing a footer on the current page and moving the last row onto the next page (...
oulenz's user avatar
  • 167
1 vote
1 answer
48 views

Resizing text inside longtable environment without resizing the caption

In my document there are several tables, of varying length, that added up take a lot of space. Therefore, I decided to reduce the size of the text in each table by using the \small command before the ...
Literary Locust's user avatar
5 votes
3 answers
212 views

Adjusting two "three part tables" side by side in a document

I am trying to put two "three part tables" side by side in a document using this TeX code: \documentclass[10pt, a4paper]{article} \usepackage[a4paper, total={7in, 10in}]{geometry} \...
codebpr's user avatar
  • 185
1 vote
2 answers
42 views

Note under table incorrectly centered

I have the following problem(s). I have a sample table: Unfortunately, the text under the table is also always centered and is not left-aligned. What can be done about this? And is there a way to ...
Karl Seidl's user avatar
1 vote
1 answer
135 views

Using tblr with booktabs?

Is it possible to use tblr with booktabs? I seem to be getting error messages when I am trying to use it: \documentclass{article} \usepackage{xcolor} \usepackage{tabularray} \usepackage{booktabs} \...
mrCarnivore's user avatar
  • 1,505
0 votes
1 answer
43 views

Centre text between rows

How do I center text between two rows please? \documentclass{scrbook} \usepackage{mathpazo} %-- use Palatino font \usepackage{booktabs} \usepackage{tablefootnote,threeparttable} \usepackage{makecell}...
arkriger's user avatar
  • 133
0 votes
0 answers
42 views

how to add some space to a midrule spanning several columns

To be honest I do not really understand why the midrule spans across 6 columns but it does.. I am looking for a way to create two different midrules (one for voltage and one for wire feed speed, 3 ...
Paul Lara's user avatar
  • 717
3 votes
1 answer
62 views

How to change the trim width from booktabs for the full table at once?

I often end up adjusting all trim lengths of cmidrule in a table to the same non-default value. The only option I found in the booktabs documentation is to adjust every single l and r marker of every ...
MaxD's user avatar
  • 1,137
-2 votes
1 answer
61 views

Strange black bar in booktabs table doesn't go away [closed]

First of all, the following problem cannot be replicated on other machines. Creating a MWE solves the problem, but I have to solve it within the context of my thesis, which includes a preamble that is ...
Serendipity's user avatar
1 vote
2 answers
54 views

How to get wrapping in tables while using Siunitx?

Like the title suggests, I'd like to use the S[table-format = xyz] form in my tables, while having the longer headers be wrapped. \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \...
m0n74g3's user avatar
  • 77
0 votes
1 answer
47 views

Simplifying the Creation of Commented Ordered and Unordered Lists in LaTeX

I am currently trying to simplify the process of creating commented ordered and unordered lists in LaTeX. I have a method that achieves the desired visual result, but the syntax seems overly complex. ...
Joseph's user avatar
  • 123
0 votes
1 answer
60 views

Using \NewDocumentCommand to redefine a table rule [duplicate]

I was trying to redefine an old command \lightrule with the new syntax from xparse. When I try to use \newlightrule unexpectedly it displays Misplaced \noalign error. Minimal Working Example and ...
Emanuele Nardi's user avatar
3 votes
1 answer
171 views

Why is my number not showing up in scientific notation inside a 'S'-type column?

I am using the following code to create a table that contains some regression results: \documentclass[12pt]{report} \usepackage{amsmath} \usepackage{booktabs} \usepackage{siunitx} ...
andrés's user avatar
  • 43
2 votes
1 answer
137 views

Horizontal tabular borders and `\arrayrulecolor` in beamer

When I tried implementing this answer in a previous question, I discovered a problem involving horizontal tabular borders and \arrayrulecolor. \documentclass{beamer} \usepackage{booktabs} %\cmidrule \...
user338955's user avatar
8 votes
4 answers
338 views

Table with weird borders with the booktabs package

I'd like a table that looks like this in Beamer: But the best I can do is this: \documentclass{beamer} \usepackage{booktabs} \begin{document} \frame{ \begin{tabular}{|c|c||c|}\cmidrule{2-3}\noalign{\...
user338955's user avatar
1 vote
1 answer
32 views

How to vertically align tables with different row counts?

I obtained this code from a previous answer. However, when the number of rows in the two tables are different, the tables become misaligned. How can I align them at the top? I attempted using the ...
emnha's user avatar
  • 445
1 vote
3 answers
160 views

Multiple columns using Block and nicematrix package

I would like to write text into multiple columns using the nicematrix and booktabs packages. However, there is the unwanted spacing, circled in the picture. Is there any way to get rid of it so that ...
cmb2200's user avatar
  • 11
0 votes
2 answers
53 views

How can I make the table row and column widths adjustable?

How can I make the table row and column widths adjustable? \documentclass[journal]{IEEEtran} \usepackage{graphicx} \usepackage{booktabs} \usepackage{multirow} \usepackage{longtable} \usepackage{...
emnha's user avatar
  • 445
2 votes
2 answers
200 views

How to fit the contents of a table without using the tiny font?

I am trying the contents of a table using the esttab option of the STATA. In the first instance, the table was far too wide and the lines were not adding up. Based on the previous threads, I was able ...
Eric's user avatar
  • 59
0 votes
1 answer
26 views

Booktabs --- unwanted space below \cmidrule

I want to make a table with a horizontal line under Town, above A B C: I think \cmidrule{2-4} should work, but it puts a huge white space under the line. How can I have more normal spacing? \...
James's user avatar
  • 59
1 vote
1 answer
81 views

Equal spacing only between some columns of a table

I am trying to make this table look nicer, I've tried the >{\hsize=.85\hsize} trick, but can't get it last part to be short. I am almost sure there is more elegant solution. Basically I need the ...
G. Bay's user avatar
  • 2,047
2 votes
2 answers
64 views

Issue vertical align on table/tabularx

As you can see from the picture I'm having a few troubles centering some text inside specific cells (mostly \multirow cells). My intent is to have the highlighted texts both vertical and horizontal ...
Fabio's user avatar
  • 21
3 votes
1 answer
215 views

Calculating scheme for a particular solution of a linear differential equation (UCM)

The following is calculating scheme for a particular solution of a linear differential equation via the undetermined coefficient method. The result is quite okay, using the library tikzmark of TikZ. I ...
Black Mild's user avatar
  • 17.4k
1 vote
0 answers
38 views

Why does This table have vertical lines (booktabs, tabularx)

I would like to have this table just with horizontal lines (which was the case just using the table package). \begin{cframed}[gray!35] \vspace{-4mm} \begin{table}[H] \scriptsize \Tables ...
hendrik m's user avatar
1 vote
1 answer
26 views

Dates is not visible in Table

I am trying to make a table where I define my training and validation sets. To do this I want a multicolumn table, written like this: \documentclass{article} \usepackage{booktabs} \begin{document} \...
Simon Rydstedt's user avatar
0 votes
2 answers
44 views

Combine stackbox with multicolumn

I am trying to keep my multicolumn table as small as possible and wanted to have the first row stacked. However, when I try to use the \stackbox option the name gets continued on to the next one which ...
Georgie's user avatar
2 votes
3 answers
169 views

How improve vertical spacing between rows of table?

I built the following table through the help of this webtool but I'm not satisfied about the vertical spacing between the rows. Can you show how to improve it and reduce a little bit the size of the ...
g_don's user avatar
  • 779
0 votes
1 answer
39 views

Making booktabs multicolum/multirow fit a template; unexpected overflow spacing in one example, unexpected centering in another example

I have a table with multirows and multicolumns with a long column name that needs to be wrapped. However, the resulting table leaves an unwanted space: % \usepackage{amssymb} % \usepackage{array} % \...
a11's user avatar
  • 158
0 votes
2 answers
101 views

Booktabs multicolumn, vertical lines between columns

I'm still new to latex and having some trouble with my tables. I have to make a table in the format below (e.g., specific line thickeness, double lines below column headers, and vertical lines between ...
a11's user avatar
  • 158
0 votes
0 answers
19 views

How can I get the top row of my table in beamer to be repeated in each slide when the table is long and gets divided over more than 1 slides [duplicate]

I am using longtables along with booktab in my beamer slide and therefore trying to distribute the table over multiple slides using allowframebreaks command in the frame. The long table is coming ...
Priyam's user avatar
  • 49
1 vote
1 answer
67 views

Discontinuous vertical line in table in booktabs

I have the following table. How can I 1- have a continuous vertical line (rather than the discontinuous current one) 2- make the vertical line similar in size to the last bottom horizontal line (i.e. ...
Rudinberry's user avatar
2 votes
2 answers
512 views

How to read a large .csv file as table with bookstyle?

I need to insert large tables in the appendix of my MSc thesis and I want to read the data from .csv files without fill the .tex file where I write. I produce the tables with the help of ...
g_don's user avatar
  • 779
0 votes
1 answer
59 views

How to format a book-style table with multicolumns and \cline?

I read lots of similar question but I did not manage to fit to my case. I need to get a table with 2 multicolumns. Here is my code: \documentclass{article} \usepackage{siunitx} \usepackage{booktabs} \...
g_don's user avatar
  • 779
2 votes
1 answer
300 views

How to design a professional table by loading it from .csv file?

I found a similar question (useful_question) that I'm following to build my table but I'm not able to get the desired results, i.e. the following table but with the booktabs style (that I'm not able ...
g_don's user avatar
  • 779
2 votes
2 answers
93 views

lua code to print midrule in table

In my MWE below, I try to print a \midrule every line on my table (in my actual implementation, it may or may not depending on some code), but it will not compile. I've found that I can invoke \...
likethevegetable's user avatar
2 votes
3 answers
150 views

How to get vertical alignment in the header row of a table?

I created a table by using the website tablesgenerator but I'm not completely satisfied regarding the centering of the header row. Here is my code: \begin{table}[h] \centering \caption{Information ...
g_don's user avatar
  • 779
2 votes
1 answer
59 views

Unequal vertical spacing when using bmatrix inside a table

I have a table containing a column of bmatrix with siunitx units. I've noticed the vertical spacing of the first matrix is different to the others. Is it possible for all rows to be equally spaced ...
Crazymoomin's user avatar
1 vote
2 answers
105 views

How do I align these leftrightarrow in every columns?

How do I align these leftrightarrow in every columns? I'm going to put the leftrightarrow in every columns. \documentclass[journal]{IEEEtran} \usepackage{mathtools} \usepackage{tabularray} \...
emnha's user avatar
  • 445
0 votes
1 answer
160 views

Why does cellcolor not work here?

Why does cellcolor not work here? The code is from answer of my previous question here. I'm trying to color a cell of a table as the code here. \documentclass[journal]{IEEEtran} \usepackage{mathtools} ...
emnha's user avatar
  • 445
3 votes
3 answers
457 views

How can I create adjacency matrix of this format?

How can I create a table with empty corner and continous vertical lines like this? Here is what I have so far: \documentclass[journal]{IEEEtran} \usepackage{mathtools} \usepackage{booktabs} \begin{...
emnha's user avatar
  • 445
2 votes
3 answers
108 views

Can't format the table correctly (\hline and colored cells)

I've created this table using a table converter website online and then tweaking it until I got what I wanted. I am using overleaf to compile everything. \begin{table}[h!] \caption{Composition of the ...
Flor's user avatar
  • 31
3 votes
3 answers
199 views

How to align between text and math between two columns?

Relating to my previous question and the answer given by egreg. Now I would like to add one column. How can I add more space between these two columns and the text like this? Also if you please ...
emnha's user avatar
  • 445
4 votes
1 answer
126 views

How do I center align every corresponding elements in a table?

How do I center align every corresponding elements like this? Also if the second row is (y_1+z1 & y_2 & y_3 & y_4 & y_5 & y_6 & y_7+y_3) would you think that align the ...
emnha's user avatar
  • 445

1
2 3 4 5
10