Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [booktabs]

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

1
vote
2answers
42 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
51 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
24 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
36 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
86 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 ...
1
vote
1answer
33 views

Changing the column order breaks tabularx

Why does the following table breaks with TeX saying that ! Extra alignment tab has been changed to \cr. <recently read> \endtemplate l.9 \end{tabularx} ? If I change the column ...
1
vote
1answer
42 views

Booktabs help alignment

For some strange reason, the right column is left aligned in contrast with the other columns. I'm not seeing what I did wrong. This is due in 3 hours, but I haven't noticed it until now. Please help ...
0
votes
0answers
23 views

Glossaries-extra modification of sample list of acronyms

I would like to modify one of the sample List of Abbreviations in the following code: \documentclass [a4paper, 12pt, twoside] {article} \usepackage [czech] {babel} ...
0
votes
2answers
44 views

Using percentage in column width resulting in overfull table when getting at 100%

I define a columntype which wrap its contens automatically and needs an argument for its width. As I want that my tables are exactly starting at the left margin and ending at the right one I used some ...
6
votes
1answer
71 views

A way to create a clear layout for large tables

I know, that the question is somehow subjective, but this is my 2nd document writing in TeX. Therefore I've not so much input about the variety of commands and I would be very grateful for some ideas ...
4
votes
2answers
99 views

Set \bottomrule of two uneven tables to same height

I have two parallel tables not equal in height. I'd like to set \bottomrule of the shorter left table to the same height as the right one. Is this even possible without rearranging the rows? Using \...
2
votes
3answers
35 views

Vertical spacing with \cmidrule with datatool table

I would like to insert a cmidrule when I have an empty line in a table produced by the datatool package and also use \bottomrule. Both of these yield excess vertical space above the line: How do I ...
0
votes
2answers
76 views

the table showing only in half of the page

Problem with the table it shows only in half [![][1]][1] \documentclass[11pt, english, singlespacing, ]{MastersDoctoralThesis} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \renewcommand{...
0
votes
1answer
29 views

Vertical alignment of nested itemized lists in tabular

Why are A1, B1, and C1 not aligned? Shouldn't p align them on top? \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{adjustbox} \usepackage{enumitem} \usepackage{booktabs} \usepackage{...
0
votes
1answer
50 views

booktabs rotating table

\documentclass[a4paper,openany]{book} \usepackage{booktabs} \usepackage[counterclockwise]{rotating} \begin{document} \begin{sidewaystable} \begin{center} \begin{table} \begin{tabular}{@{}ccccccc@{}} ...
0
votes
0answers
12 views

Custom styling for printing glossary in document - textwidth for tabular style & print headers

I am using the tabular-style typesetting of glossaries as inspired by the accepted (and top-rated) answer to this question. I have some moderately long glossary entries, and I don't wish them to wrap....
6
votes
3answers
245 views

Number alignment and spacing in tables with parentheses, text, decimals, and integers

I am having a lot of trouble aligning numbers with different format and text within a table environment. After doing a lot of research, I only get as far as the following: The rows X to Z and Fstat ...
2
votes
0answers
50 views

specialrule with longtable and arydshln packages problem

When I use specialrule with longtable, there is a white vertical line in the last row. I have tested, if I don't use arydshln packages, it is good. (But I want to dashed line, so I need to add ...
0
votes
1answer
45 views

tophline/multirow is not recognize in latex

I am not able to figureout why this is not working \begin{table*} \caption{Pearson correlation between daily data.} \label{tab:corr} \begin{tabular}{l l c c} \tophline \...
0
votes
1answer
31 views

How to increase space above and below dashed line using arydshln package

I'm using the arydshln package to insert a dashed line between two lines of data, but when I look at the result of a large table in \scriptsize the line appears to be too close to the lower data line. ...
1
vote
2answers
56 views

Problem using multirow in two places

I'm trying to get two multirows separated by several columns, but it wants to add an extra row in the table. My code is: \documentclass[]{article} \usepackage{multirow,booktabs} \begin{document} \...
3
votes
1answer
95 views

Increase column spacing between some columns with siunitx

I want to increase the spacing between columns in two places. There should be some more space between the DIRINT and DISC columnset and between the DISC and Erbs columnset, to make the table more ...
4
votes
1answer
170 views

Nicely formatting booktab table with multiple columns

I have a pretty ugly table that I would like to format nicely. I have seen in LaTeX table cell with a diagonal line and 2 sub cells how I can include \slashbox and in Parametrize shading in table ...
3
votes
2answers
73 views

Change placement of multi-column header

Right now I have the following table: Which corresponds to this code: \documentclass[12pt, twoside]{scrartcl} \usepackage{float} \usepackage{subcaption} \usepackage{caption} \usepackage{booktabs} \...
5
votes
2answers
107 views

Midrule Not Working

Does anyone know why this isn't working? I'm trying to add horizontal lines to my graphs, and it's breaking at the \midrule command \documentclass{article} \usepackage{etoolbox} \usepackage{...
3
votes
3answers
145 views

Vertical align with TikZ and booktabs

I want to write one line of text in a booktabs table containing a TikZ drawing that is higher than the line-height. Per default the text is vertically aligned with the baseline of the TikZ drawing. I ...
2
votes
1answer
113 views

Stepped table in booktabs

I am looking to typeset the following table in booktabs: I am not sure how to get the steps highlighting the differences between the units in the image. The use of \cmidrule makes the horizontal ...
2
votes
1answer
78 views

rowcolor command from colortbl package leaves unwanted gaps in shading between columns

I would like to highlight the first two rows of my table with a custom shade of gray. For this, I thought of using the \rowcolor environment from the colortbl package. However, its usage seems to ...
0
votes
2answers
60 views

Vertical text in table with booktabs

I managed to create a table with booktabs package with this code : \begin{table}[!ht] \centering \begin{tabular}{l|lll} \toprule & Surveillance de & ...
4
votes
1answer
80 views

Why do the lines in this longtable misalign?

I run latexmk -pdfxe on this MWE \documentclass[landscape]{article} \pagestyle{plain} \usepackage[hmargin=1cm, vmargin=2cm]{geometry} \usepackage{longtable} \usepackage{booktabs} \usepackage{array} \...
2
votes
1answer
121 views

Set width of \cmidrule or \cline

I would like to prepare an income statement, so I found and modified a template for this on this site, giving the following MWE: \documentclass[a4paper,12pt]{article} \usepackage{textcomp} \...
5
votes
2answers
427 views

Black box on table

I'm having a really weird problem with a table. I have the following code for two different tables. Table 1's code is the following: \begin{table}[H] \centering \begin{tabular}{*3c}\toprule M\'aximo ...
3
votes
2answers
127 views

Remove extra space between \pm columns in tabular environment?

I keep getting excessive whitespace between columns in my graphs: \documentclass{article} \usepackage{array} \usepackage{siunitx} \usepackage{booktabs} \usepackage[flushleft]{threeparttable} \...
1
vote
2answers
62 views

Column alignment in multi index table not evenly distributed

I am trying to build a very simple multi-index table, yet I cannot get the columns of the lower index aligned properly. With the following code: \documentclass[12pt,a4paper]{article} \usepackage[...
2
votes
1answer
84 views

Vertical Spacing for Table with Equations [duplicate]

So I have a table with equations, below. It's a bit crunched up and I want to add vertical space in the rows. I'm using booktabs package for heavy lifting. \begin{table} \begin{tabular}{lcc} \...
0
votes
1answer
69 views

Coloring text in Arabtex (and booktabs) package

I am using arabtex package in a booktabs style table. I would like to highlight the initial, medial and final forms of the arabic letters with a color such as red or graying out the rest of the ...
0
votes
0answers
55 views

different table border style latex

I have a table in Microsoft office which is too complicated to do it again in Latex. I used this site to generate table because I don't know LaTeX well enough to do it in LaTeX. the result of the ...
0
votes
1answer
118 views

How to get Booktab's `\cmidrule` command to play nicely together with `@{\hskip 3em}`?

Consider the following example: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[h!] \centering \caption{Foo} \begin{tabular}{rr@{\hskip 3em}rr@{\hskip 6em}rr@{\...
3
votes
1answer
31 views

Tables: how to eliminate whitespace in cells? And how to center a cell vertically?

I did the table below (it is in Portuguese) but I could not eliminate some spaces and center 2 cells ... see the attached figure to understand. I need to save space on the text! Tanks for help! \...
2
votes
2answers
113 views

Need linebreaks in some columns of a wide table

I am trying to create linebreaks in some of the cells of my table, since I have long sentences and the table doesn't fit on an A4 page. How to let LaTeX choose the linebreaks? Here is my code \...
6
votes
2answers
225 views

How can I increase the space after a \crule in a booktabs table?

In the table created in the MWE below, I want the space between the crule and the third row to be slightly greater and the space between the text in the 2nd row and the crule to be slightly smaller. ...
3
votes
2answers
60 views

Why are horizontal lines misaligned when I use `\morecmidrules` in tables?

I am trying to draw a large table with two separate double lines. Even though separate, I expected them to be vertically aligned together. Here is the output I get: And my source code: \...
4
votes
1answer
98 views

How can I make a column that the number is counted automatically?

I have a booktabs (longtable) and I make a column Order. I have to input the number 1, 2, 3, ... by hand. How can I make a column that the numbers are counted automatically? My code is \documentclass[...
2
votes
1answer
132 views

Discontinuous vertical dash lines in tabularx, booktabs environment

I have a very large table includes results of 4 different methods, and my supervisor suggested me to use vertical lines to separate methods for readability. However, when I use vertical dashed lines ...
2
votes
3answers
74 views

Change configurations within a table

I am learning LaTeX while working on my lab report, which might sound stupid but I have to start somewhere before my thesis. Anyhow, I am trying to code the following type of table into my LaTeX ...
2
votes
6answers
597 views

Improve table layout

any ideas about how to improve this table layout? IMHO it looks horrible. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{booktabs} \usepackage{makecell} \usepackage{amsmath} \begin{...
2
votes
2answers
83 views

Avoiding dummy columns when using \cmidrule

I have to typeset a table that comprises three "main columns" A, B and C, where B and C contain two and three "sub-columns", respectively. This is my code: \documentclass{article} \usepackage{...
0
votes
2answers
452 views

Making a booktabs table

I don't really know how to make tables with booktabs and other posts on this don't seem to help me too much. I have to make a table similar to the one with the image below. How would I get on with ...
3
votes
1answer
163 views

Table using \multicolum and \multirow

I'm working on Latex to generate the following table, I want columns that have numbers to be right aligned and similar sized. Here is a minimal code example to start the discussion: \documentclass{...
2
votes
2answers
116 views

Columns in tables produced using booktabs

I'm trying to make a table using the booktabs package. Here's the code: \documentclass[11pt,amssymb]{amsart} \usepackage{booktabs} % Allows the use of \toprule, \midrule and \bottomrule in tables \...