Skip to main content

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
1 vote
2 answers
100 views

Siunitx: spread table content accross page

I create a table where numbers are included, and since the numbers were not aligned properly with each other vertically, I decided to the sunitx package to tidy up the numbers. This is the code I used:...
Saïd Maanan's user avatar
1 vote
2 answers
53 views

Coloring behind \cmidrule

I want the heading of my table to be a single uniform color. However because of \cmidrule there is a weird white line in between rows. Currently, my code is as follows: \bgroup \begin{landscape} \...
Nelson Parrança's user avatar
4 votes
2 answers
136 views

Formatting errors when creating a table

this is my first question, so please bare with me. I am new to Latex and are using it to create a investigation I have conducted on Snells law. I need assistance with creating a results table. I am ...
user avatar
0 votes
0 answers
25 views

Create multirows based on CSV content

I have the following Latex code: \documentclass{article} \usepackage{csvsimple} \usepackage{multirow} \usepackage{booktabs} \usepackage{rotating} \begin{document} \begin{sidewaystable} \...
nflgreaternba's user avatar
2 votes
1 answer
36 views

How to use bold horizontal and vertical lines in a specific row of table?

I need a Table as shown in the attached image file. Could you help me to generate this table according to the image file. Thank you in advance. \documentclass[]{article} %\usepackage{booktabs} \begin{...
relinquere's user avatar
0 votes
2 answers
44 views

pnas-new template: extra large space after bottomrule?

I am using the pnas-new template in Overleaf (https://www.overleaf.com/latex/templates/tagged/pnas-official), in particular the template for research report. I notice that when adding a line of text (...
Matifou's user avatar
  • 742
2 votes
0 answers
45 views

How to export (and import) latex tables to Illustrator?

I have been working on the figures of my research paper. I have used Latex to create visually and aesthetically pleasing tables. They look quite good, however, I couldn't find a good way to upload ...
Yonca's user avatar
  • 21
1 vote
1 answer
55 views

How can I set the spacing below a cmidrule equal to that above?

I'd like the spacing below the rules in my tables to equal the spacing above. By default, the below-spacing is smaller. First: How can I find the spacing I need to add, without trial-and-error adding ...
Anna's user avatar
  • 837
2 votes
2 answers
109 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 ...
Mr42's user avatar
  • 23
2 votes
2 answers
87 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
196 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
131 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
94 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
370 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
  • 399
1 vote
1 answer
40 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
57 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
50 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
216 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
  • 199
1 vote
2 answers
43 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
2 votes
1 answer
265 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,515
0 votes
1 answer
44 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
3 votes
1 answer
65 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,157
-2 votes
1 answer
65 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
63 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
68 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
80 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
197 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
147 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
352 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
34 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
4 answers
227 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
58 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
218 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
29 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
123 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,111
2 votes
2 answers
65 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
245 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.9k
1 vote
0 answers
39 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
27 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
217 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
  • 809
0 votes
1 answer
43 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
114 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
21 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
104 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
613 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
  • 809
0 votes
1 answer
81 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
  • 809
2 votes
1 answer
355 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
  • 809
2 votes
2 answers
97 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
3 votes
4 answers
184 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
  • 809

1
2 3 4 5
10