Skip to main content
27 votes

Vertical table lines are discontinuous with booktabs

As @Puck says in his answer, and as Brandon Kuczenski comments, the responses here are not constructive, neither the question is answered. The way to use vertical lines with booktabs (despite it is ...
user215982's user avatar
26 votes

Increasing the space between two rows?

You can use \addlinespace from booktabs: \documentclass[a4paper]{article} %% Language and font encodings \usepackage[english]{babel} \usepackage[utf8x]{inputenc} \usepackage{booktabs} %% Sets page ...
Bernard's user avatar
  • 273k
15 votes

Increasing the space between two rows?

Modify arraystretch: \documentclass{article} \usepackage{booktabs} \begin{document} { % begin box to localize effect of arraystretch change \renewcommand{\arraystretch}{3.0} \begin{table} \...
Homer White's user avatar
14 votes
Accepted

Increasing the space between two rows?

Here I show 3 ways: the optional argument to \\[] Add blank lines manually Add a custom strut to lines where needed. Approach 1 will not work following a \modrule. \documentclass[a4paper]{article} ...
Steven B. Segletes's user avatar
12 votes
Accepted

Why is it so difficult to generate a \midrule dashed in LaTeX?

The following implements a new "draw type", equating (somewhat) \cdashlinelr to \cmidrule(lr) the regular vertical spacing: \documentclass{article} \usepackage{booktabs,arydshln} \makeatletter \def\...
Werner's user avatar
  • 607k
12 votes

Improve table layout

Some suggestions: Fewer, but better spaced horizontal lines No vertical lines. None! Use an array environment instead of a tabular environment. Use \si for the units Use S column type for the ...
Mico's user avatar
  • 514k
11 votes

Proper centering with cmidrule and multi- row and column

I had this same problem, and wasn't satisfied with having to guess at the bigstruts argument to \multirow, so I came up with this: \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \...
dsedivec's user avatar
  • 1,173
11 votes

Vertical table lines are discontinuous with booktabs

booktabs also offers the specialrule like so: \specialrule{\cmidrulewidth}{0pt}{0pt} which will produce a horizontal line with no spacing and the vertical lines will cross it neatly.
Risadinha's user avatar
  • 233
11 votes

Partial \bottomrule

Let's assume your tabular-like environment has 5 columns and that the "partial bottomrule" should span columns 2-4, with trimming on the left and the right. The following directives should work for ...
Mico's user avatar
  • 514k
10 votes
Accepted

Algorithm / algorithmicx horizontal lines in booktabs style

Nice idea! We can create a new float style by modifying ruled: \documentclass{scrreprt} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage{algorithm} \usepackage{...
egreg's user avatar
  • 1.1m
8 votes
Accepted

How to manually make tables using booktabs

The main problem with the table is that you are not using the booktabs rules, but instead a mixture of standard tabular rules (\hline and \cline) and booktabs rules (\toprule). Replacing these rules ...
Alan Munn's user avatar
  • 220k
8 votes

How to manually make tables using booktabs

First all your rules should be done with booktabs, as it adds some padding to your table rules (table rows in basic latex of often much too tight). Second, table captions should be above tables, as ...
Bernard's user avatar
  • 273k
8 votes
Accepted

How to make these two tables look better?

I propose this: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{nccmath} \usepackage{booktabs, siunitx} \begin{document} \begin{table}[!h] \centering $ \begin{matrix} \toprule ...
Bernard's user avatar
  • 273k
8 votes

Improve table layout

Here's one version (without vertical rules although you like them). Further improvements: typesetting units with siunitx (you can use it's options to change appearance) aligning the columns left ...
TeXnician's user avatar
  • 33.7k
8 votes
Accepted

Improve table layout

Here are some more improvements and simplification of the table code. For a caption width equal to the table width, the simplest is to use the threeparttable environment, which measures this width. ...
Bernard's user avatar
  • 273k
8 votes
Accepted

xltabular breaking booktabs

This bug is confirmed in booktabs.sty version 1.6180339 from 2019/10/08, I don't know whether it is present in earlier versions. I reported the bug to the maintainer of booktabs. In the meantime, it ...
Skillmon's user avatar
  • 61.6k
8 votes
Accepted

Booktabs table lines not showing

The standard classes, say, article uses size10.clo to define the font sizes. Here is the start of this file: \renewcommand\normalsize{% \@setfontsize\normalsize\@xpt\@xiipt \abovedisplayskip 10\...
daleif's user avatar
  • 55.2k
8 votes
Accepted

Table with weird borders with the booktabs package

A solution with the tabularray package: \documentclass{beamer} \usepackage{tabularray} \begin{document} \frame{ \begin{tblr}{ colspec = { *{3}{c }}, hline{1} = {1}{2-3}{}, ...
Jasper Habicht's user avatar
8 votes
Accepted

Horizontal tabular borders and `\arrayrulecolor` in beamer

See this nice answer for a solution. The problem is that beamer redefines the macro \reset@color which is used to change the color for rules when using hhline together with colortbl. It is redefined, ...
Jasper Habicht's user avatar
7 votes
Accepted

Can you get a table to auto format numbers to show thousand separators?

A version using package siunitx: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{siunitx} \sisetup{group-separator={,}} \begin{document} \...
Heiko Oberdiek's user avatar
7 votes
Accepted

midrule and toprule in table too long

You shouldn't use the m type just for vertically centering the images. \documentclass{article} \usepackage{graphicx} \usepackage[export]{adjustbox} \usepackage{booktabs} \begin{document} \begin{...
egreg's user avatar
  • 1.1m
7 votes
Accepted

Vertical align with TikZ and booktabs

You can vertically center any picture without guessing values by a simple macro: \newcommand{\ctikz}[1]{$\vcenter{\hbox{#1}}$}. Just use \ctikz{<your picture>}. Also, no need for manual \vspace{...
AboAmmar's user avatar
  • 46.7k
7 votes
Accepted

Nicely formatting booktab table with multiple columns

I doubt that making a table look gaudy -- say, by assigning dominant, bright colors to the table cells -- actually makes the table more readable, as opposed to just making it stand out visually. ...
Mico's user avatar
  • 514k
7 votes
Accepted

Uneven column widths when using a long multi-column header

I suggest two kinds of solutions. The first one with \makecell which puts the multicolumn header on many lines; the second one with tabularx which equally distributes the spaces among the last 3 ...
CarLaTeX's user avatar
  • 64.7k
7 votes
Accepted

Ideas for a better style for this table?

IMNSHO, the table would look better if (a) the data columns all had the same width and (b) were spaced a bit more closely. This may be achieved by, e.g., switching from the c to the w column type type ...
Mico's user avatar
  • 514k
7 votes

Ideas for a better style for this table?

So, I took the answer by @leandriis as a foundation. Used booktabs, removed most of the lines. I kept both lines at the first line and column to underline that first column is similar to the first ...
Oleg Lobachev's user avatar
7 votes
Accepted

Misplaced \noalign because \input before booktabs rule

Your issue is the same as here and similar to this one. Newer \input adds unexpandable tokens in the way of \noalign (from \bottomrule), then when the \noalign is seen it is too late and you get the ...
Phelype Oleinik's user avatar
7 votes
Accepted

Word Wrap in Table Cell in BOOKTABS Tables

The problem is not with you using booktabs but that you have not specified how you want the columns to be set. Use p{width} for a column with multiple text lines. % booktabsprob.tex SE 640799 \...
Peter Wilson's user avatar
  • 28.3k
7 votes
Accepted

is there a way to produce a similar table in LaTeX?

Here's my attempt using the tabularray package, which I recommend for any complex tables. It comes pretty close; though following your lead I used cyan rows rather than gray. (Muted a little as yours ...
frabjous's user avatar
  • 41.7k

Only top scored, non community-wiki answers of a minimum length are eligible