Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [booktabs]

A package providing some additional commands to enhance the quality of tables in LaTeX.

Filter by
Sorted by
Tagged with
0
votes
2answers
23 views

Remove multicolumn from Tabular

I'm trying to remove the first column (RoE) in this example: \documentclass[11pt]{article} \usepackage{multirow} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \begin{table}[htbp] \...
1
vote
0answers
27 views

Centering table cells about decimal point with bold and asterisk, for dynamically generated tables

I am using PdfLaTeX (MiKTeX) called via R-Brew to dynamically populate and generate a LaTeX table. Use of R tables does not support all of the statistics, and is not flexible enough for the tables I ...
1
vote
1answer
17 views

Moving column to left

I found this superb example in the latex wikibook. \usepackage{booktabs} \begin{tabular}{llr} \toprule \multicolumn{2}{c}{Item} \\ \cmidrule(r){1-2} Animal & Description & Price (\$) \\ ...
0
votes
0answers
32 views

cmidrule narrower

While we inserting \cmidrule width or color in tables second \cmidrule get narrower, please how to fix, please find MWE file: \documentclass{book} \usepackage{ragged2e} \usepackage{dcolumn,booktabs,...
1
vote
2answers
56 views

Symmetrical table, is booktabs recommended?

I have the following table, used with booktabs. I call it "symmetric" as three states of two variables are compared, but it does not matter if a variable is written along the rows or along the ...
2
votes
2answers
60 views

modifying default tabular behaviour

I basically do all my tables the same way: Is it possible to make tabular automate the \toprule, \midrule, \bottomrule and \hdashlines? \documentclass{article} \usepackage{booktabs,array,arydshln} \...
2
votes
1answer
34 views

Table with two tabulars of different width

I have a table which consists of two parts (tabulars). It looks similar to the excerpt attached below. Now what I would like to do is format the second part (tabular) of the table nicely. That means: ...
0
votes
1answer
28 views

Making spacing after rule at top of page in booktabs longtable consisting with that after other rules in the same table

Appropriately placed, the longtable package code \midrule\endhead places a horizontal rule before the first row on each page after the first produced by a longtable environment. The below simple code ...
3
votes
4answers
281 views

Table alignment (make the content centre)

I want to make the content center, i have out of idea what else I can change. \documentclass[12pt,oneside]{book} \usepackage{showframe} \renewcommand\ShowFrameLinethickness{0.15pt} \renewcommand*\...
0
votes
1answer
86 views

How to create table with booktabs package?

I would like to create the following tables with the booktabs package but I am not quite sure how to do that and Any help is greatly appreciated!
2
votes
2answers
66 views

Colored tables with booktabs, makecell and cellspace

While experimenting with different table-packages, I realised, that each package basically stands for itself and often lacks in compatibility with other great packages. So I tried to create a table ...
0
votes
2answers
37 views

gap between toprule and vertical lines in tabular

In this MWE \documentclass[]{article} \usepackage{amsmath} \usepackage{booktabs}%added 8/16/2019 \setlength\heavyrulewidth{0.5ex} \begin{document} \small \begin{tabular}[c]{|p{1.5in}|p{...
0
votes
1answer
61 views

Fix errors for a specific table

I have a table with this MWE. \documentclass[a4paper,12pt]{article} \usepackage{amsmath,amssymb} \usepackage{booktabs,makecell} \begin{document} \begin{table}[htb] \captionsetup{justification=...
3
votes
3answers
184 views

Continuous vertical line using booktabs in tabularx table?

How can we draw a continuous vertical line using booktabs in table? What is the simplest method to maximise the width of a table? There are lots of methods, very confusing. \documentclass{article} \...
1
vote
2answers
66 views

Grouping rows of a table with brackets (to shrink table size)

I have a table using rules from booktabs. However, I have vertical space constraints and don't want to use subcaption with their subtable. I also have horizontal space constraints, so the column for ...
0
votes
3answers
93 views

Tabularx and itemize missing item

when I do this : \begin{tabularx}{\textwidth}{|p{5cm}|p{5cm}|} \toprule \textbf{KPI} & \textbf{Description} \endhead \toprule \rowcolor{darkgrey} \textbf{The percentage of health and safety ...
1
vote
1answer
47 views

Using booktabs with newcommand

I'm relatively new to defining commands and environments. I'm trying to make several tables (all of which follow a template), and thought that defining myself a new command would simplify the code. ...
1
vote
1answer
39 views

Formatting a table with shortened midrules and centred headings

I have the following table and I am trying to align the 2016 and 2017 values. At the moment the code creates a straight line joining the 2016 and 2017 values. I am trying to get it to look like the "...
1
vote
1answer
29 views

How to assign merged cells to the right colunm?

I've been trying to make a table using the \booktabs pagackage and following this model with some tweaks. However, the merged cells end up in the wrong column, namely the first column and not the ...
2
votes
2answers
89 views

Fill between \toprule and \midrule

I've already tried one approach for this and had issues (Clear rowcolor at midrule) and now I've started having more. So instead of trying to fix that approach I thought it could be worth seeing what ...
0
votes
2answers
42 views

How to center the contents of the first column?

How to center only the contents of the first column, without centering anything else, including the header of the first column? \documentclass{article} \usepackage{booktabs} \usepackage{array} \begin{...
0
votes
0answers
21 views

cmidrule overlap [duplicate]

I notice when I have a \cdmidrule command on neighboring columns \cmidrule{5-6} \cmidrule{7-8} that it produces a single straight line between columns 5 and 8. Whereas what I want (for visual ...
0
votes
2answers
49 views

How to get continuous vertical line without breaking inside array environment?

I am facing a problem in the following code, i found that there is a breaking in two vertical lines as shown in red mark when i used the command \cmidrule[1pt](r{-1.0em}){1-4} inside array environment,...
1
vote
1answer
52 views

vertical border in longtable + booktabs + repeating table header

This seems to be a bug in booktabs + longtable when there are repeating header rows. I got an error report on this from the r package kableExtra. https://github.com/haozhu233/kableExtra/issues/377 ...
2
votes
2answers
93 views

Equally distributed table columns

I am trying to make simple table with some numerical data. I used package booktabs and overall the table looks very good, but in my opinion it would be better to have columns equally width according ...
3
votes
2answers
96 views

Uneven column widths when using a long multi-column header

I have the following MWE, but I have a problem with the alignment of the last column (under the multicolumn) \documentclass{report} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{...
0
votes
3answers
84 views

Cell background color longer than midrule (or hline) in table

I have a small problem in my table editing using booktabs and colors. The main problem is the background color of a cell is longer than the midrule, which is not a huge problem but it is quite ...
1
vote
1answer
26 views

Color alternating groups of rows except the last row in table

I'm coloring alternating groups (5 rows) in a table. I want to do this for the 40 data rows. I don't want to color the last row in the table that's a quality control checklist. More or less I want ...
1
vote
1answer
48 views

Multirow not working properly in combination with booktabs

I am creating a table using booktabs, but I also need multirow in specific places, in combination with long paragraphs of text. If I use multirow normally, there is no way to break the text: \...
0
votes
1answer
120 views

Color alternating groups (5) of rows in Table gray and white

I am trying to color every other grouping of 5 rows light gray, starting with the first 5 rows. I have attempted to use the solution posted here Does something like \rowcolors exist for groups of rows?...
4
votes
2answers
84 views

Multi-header column alignment with booktabs

After looking at multiple tex.stackexchange questions, I'm still having trouble getting the alignment of multiple columns right. Here's my code \documentclass[a4paper]{article} \usepackage[T1]{...
3
votes
2answers
211 views

custom \midrule length

I just want a simple \midrule that doesn't span the entire page or cell. For instance, with \rule, you can specify dimensions like: \rule[0.2cm]{100pt}{0.5pt} That's as close as I can get it, but ...
3
votes
2answers
109 views

Control width of columns in a tabular environment

I would like the pieces of texts in the right column to be closer to the pieces of text in the left column. At the same time, I want the table to accommodate long pieces of text nicely, as it does now....
0
votes
1answer
34 views

How to align table contents by decimal point?

I've searched online and on this forum. I haven't found an appropriate solution to my issue. I am trying to align the numbers in my table with their decimal point. I'm not exactly sure how to go about ...
1
vote
1answer
62 views

Baum Welch algorithm description

I am trying to replicate this table, on the Baum Welch algorithm, for Hidden Markov Models. I can not put expressions in the center, I'm trying with \ begin {align *} ... \ end {align *}, but the ...
4
votes
2answers
208 views

Align column in table on Plus/minus symbol with values of varying length and align header of first column with data?

I would like the data in the "Confidence Limit" column to align on the plus/minus symbol. Here is a link to a similar but different question Aligning +- sign in table. However, the values in my data ...
2
votes
3answers
239 views

Tables with lots of text

I have really limited LaTeX skills. Trying to make a table that looks like this, but couldn't figure out how: Attempting to use booktabs for horizontal lines, tabu for dealing with column widths (I ...
2
votes
1answer
72 views

How do I use \includegraphics with booktabs?

I'm making a reference document for my students regarding the 14 Bravais lattices. I've gotten this table to work but it is messy. Does anyone have suggestions on how to clean it up? (I've added ...
4
votes
2answers
172 views

Decimal alignment in a table with math mode

After reading some answers on the site, I'm trying to use dcolumn pacakge in order to add horizontal alignment to my tables. Unfortunately without success so far. I'm writing as a part of a group so I ...
1
vote
0answers
87 views

Control space before and after specific cmidrule in tabular [closed]

I would like the space after the \cmidrules to be reduced. However, belowrulesep affects all the rules. \documentclass{article} \usepackage{booktabs} \usepackage{multirow} \usepackage{siunitx} \...
1
vote
1answer
252 views

Vertical lines will not connect completely

The vertical line between 8 and comment will are not completely connected top. \begin{table}[H] \centering \begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|} \hline \multirow{2}{*}{No.} & \multirow{2}{*}{...
1
vote
1answer
79 views

Grouping table rows while having page breaks in a long table in Latex

I have a long table spread over a few pages, made of groups of rows. I use the packages longtable, booktabs, multirow and multicol, and have read their documentation, but could not find answers to my ...
0
votes
2answers
60 views

How to fit a content in a column of LaTeX table?

I am trying to create a table in LaTeX. However content of my column is exceeding the width and intruding in the other column. Please help me to solve this problem. Code is pasted below.Screenshot of ...
1
vote
3answers
148 views

How to improve this table?

I'm looking for ideas to improve the layout of the following table. Is there a better way to separate ABC Metrics and XYZ Metrics (other than using separate table for each metric)? Should I convert ...
4
votes
1answer
87 views

A midrule line under each column, separated by white space

How can we draw a horizontal line in a table with white space between each column? A MWE, using booktabs's \midrule and \cmidrule: \documentclass[11pt,twoside,a4paper]{article} \usepackage{booktabs}...
1
vote
2answers
78 views

Problem with setting up vertical lines in booktabs tables

As pointed out here it is important to use \multicolumn{3}{|l|}{} in the following line of multicolumn. Nevertheless I am struggling around with the same issue (unconnected vertical lines) and ...
5
votes
1answer
164 views

Hangindent and justfied multiline text in single cell of table

I have quite a lot of text that I want to format in a readable manner in a single cell of a table, so I want to use hangindents. But in addition to that I want to make the text justified, but this is ...
1
vote
1answer
137 views

glossary in long-booktabs style has no bottomrule in minipage

I want to put a longbooktabs glossary in a minipage environment, but when I do that it curiously loses the bottomrule. Is there anything I can do about that? As Nicola Talbot commented it suffices to ...
4
votes
1answer
81 views

Wrapping text in a multirow, 90 degree oriented cell

I have the following MWE \documentclass[letterpaper,12pt,oneside,onecolumn,draft,openany]{report} \usepackage{caption} \usepackage{wrapfig, subcaption, siunitx, booktabs, multirow} \usepackage{...
6
votes
1answer
268 views

Align numbers in table with scientific notation and minus sign

I would like the numbers to be aligned by multiplication signs on this table. I have tried to use the option table-format in what it looks like the right way to me, but actually I haven't found any ...