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
3 answers
43 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 ...
  • 11
0 votes
2 answers
39 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{...
  • 277
2 votes
2 answers
168 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 ...
  • 47
0 votes
1 answer
22 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? \...
  • 59
1 vote
1 answer
48 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 ...
  • 2,005
2 votes
2 answers
53 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 ...
  • 21
0 votes
0 answers
24 views

Table required for Elsevier Template with fancy style/formate

I need a table like a picture attached. My table code is as follows. \begin{table}[H] \centering \caption{FE power grid February results of leaf year 2016: comparative performance evaluation of the ...
3 votes
1 answer
147 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 ...
  • 16.3k
1 vote
0 answers
34 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 ...
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} \...
0 votes
2 answers
36 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 ...
2 votes
3 answers
91 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 ...
  • 745
0 votes
1 answer
32 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} % \...
  • 158
0 votes
2 answers
59 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 ...
  • 158
0 votes
0 answers
18 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 ...
  • 49
1 vote
1 answer
48 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. ...
2 votes
2 answers
247 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 ...
  • 745
0 votes
1 answer
40 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} \...
  • 745
2 votes
1 answer
151 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 ...
  • 745
2 votes
2 answers
71 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 \...
2 votes
3 answers
121 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 ...
  • 745
2 votes
1 answer
46 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 ...
1 vote
2 answers
87 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} \...
  • 277
0 votes
1 answer
90 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} ...
  • 277
3 votes
3 answers
255 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{...
  • 277
2 votes
3 answers
74 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 ...
  • 21
3 votes
3 answers
167 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 ...
  • 277
4 votes
1 answer
80 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 ...
  • 277
0 votes
2 answers
88 views

How to make beautiful vertical borders in tables

I want to print a table with vertical lines. This is what I currently have: % Preamble: \usepackage{multirow} % \usepackage{booktabs} \begin{table}[htbp] \begin{tabular}{|c|ccccccccc|} \toprule & &...
1 vote
2 answers
94 views

Table Background color with toprule

I want make a table with background color, when I am using \toprule,\midrule and \bottomrule I have a white space after the rule. I want to fill the color of rule below space. MWE is below \...
0 votes
1 answer
37 views

Why does setting fixed width not work in this case?

Why does this not work? I want to set each column to be 0.3\linewidth but it's giving an error saying "runaway argument" and no PDF. \documentclass{article} \usepackage[utf8]{inputenc} \...
  • 537
1 vote
0 answers
49 views

Blank space under first row in table [closed]

I am using the package booktabs to create a simple table in my document. Here is the code I use to generate my table: \begin{table}[h] \centering \caption{Test Tabelle} \begin{tabular}{lcc}...
0 votes
0 answers
26 views

All tables are centered but flushed to the right, cant center by any means

The issue at hand is, since I had to increase fontsize (that worked perfectly) but now my tables are centered but flushed to the right side of the page and the columns of the right side are out of ...
  • 13
1 vote
2 answers
109 views

Misplaced \omit for multicolumn in "if then else"-statement in tabular

Since my update to the latest LaTex Distribution I am running into an Misplaced \omit. }-Error. Here is my minimal working example: \documentclass[parskip=half+,11pt]{scrartcl} \usepackage[utf8]{...
  • 197
0 votes
1 answer
28 views

How Can I Repeat a Table Header if it Occupies Another Page

I created this table: \usepackage{tabularx, longtable, booktabs, xltabular, enumitem} \newlist{tabitemize}{itemize}{1} \setlist[tabitemize]{label=\textbullet, nosep, leftmargin=*, ...
  • 255
1 vote
0 answers
33 views

How Can I Make a Long Table Continue on the Next Page if it is Too Long

Here is a table I created in LaTeX using tabularx and booktabs: \usepackage{tabularx, booktabs, enumitem} \newlist{tabitemize}{itemize}{1} \setlist[tabitemize]{label=\textbullet, nosep, leftmargin=*, ...
  • 255
0 votes
1 answer
119 views

Booktabs and arydshln conflict

I'm learning how to do nice looking tables and I'm wondering why the below code produces an error "! Undefined control sequence. \adl@@cr ...tempdima \xdef \adl@rowsL {\adl@rowsL (\adl@colsL /\...
  • 241
1 vote
2 answers
51 views

Long table doesn't fit on page width - big left margin [closed]

I would like to gain more space for my table by removing the white space on the left but I'm not able to find a good solution. Anyone can help? If possible I would keep the cell and font size. \...
1 vote
1 answer
114 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
144 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:...
  • 41
-1 votes
1 answer
160 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 ...
  • 91
0 votes
1 answer
74 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 ...
  • 103
5 votes
4 answers
200 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
549 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
874 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
162 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} \...
  • 345
1 vote
0 answers
160 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 ...
  • 301
6 votes
2 answers
327 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 ...
  • 63
0 votes
3 answers
101 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
22 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{...
  • 1

1
2 3 4 5
10