A package providing some additional commands to enhance the quality of tables in LaTeX.
3
votes
2answers
52 views
Table layout: cells with short and long text
I've been fiddling with a table layout where some cells contain very little text while others may need multiple lines, and I can't seem to get it readable and nice-looking.
MWE:
...
1
vote
1answer
37 views
How to embed a minted environment inside a tabular environment?
I'm using packages minted and booktabs, and would like to put a minted environment within a tabular one. However, the following does not work:
\documentclass[11pt]{article}
\usepackage{minted}
...
7
votes
2answers
55 views
slovak babel vs. cmidrule
I tried to use the Slovak language with the booktabs package.
Let's see a couple of cases.
slovak is included in the options to babel
\usepackage[english,slovak]{babel}
or
...
2
votes
2answers
74 views
Table formatting
I use the following table:
\documentclass[a4paper,
12pt,
bibliography=totoc,
index=totoc,
abstracton,
...
3
votes
1answer
44 views
Using longtable with \cmidrule: page-breaking issues
Here's a (minimal?) working example that illustrates both the issues I am having:
\documentclass{article}
\usepackage{longtable,booktabs,lipsum,array}
\usepackage{pgfplots}
...
13
votes
1answer
122 views
\cmidrule with booktabs in beamer does not show up
I am trying to use a coloured \cmidrule in a table in beamer - however, it does not show up. I have read Strange disappearing colored rules in beamer which indicates that this is a bug and discusses ...
5
votes
1answer
102 views
How to trim the length of \toprule? [duplicate]
How to trim \toprule (from booktabs package)?
It is probably something basic I'm missing, but I need it and it's nowhere to be found.
1
vote
1answer
86 views
booktabs with custom column spacing
I'm trying to use the booktabs package, and I'm trying to make tables with "column groups" that are delimited by extra space. In the following, I am doing this using the @{} syntax in the tabular ...
3
votes
2answers
58 views
Table contents are not centring properly
I'm trying to make a table however the contents of certain columns aren't centred correctly.
I'm using the following in my preamble...
\documentclass[11pt,a4paper,twoside, twocolumn]{article}
...
4
votes
1answer
118 views
Equations inside tabular environment, no vertical spacing
I have a problem with the spacing of my equations. According to this http://tex.stackexchange.com/a/50348/15360 booktabs one should rarely have to regulate the spacing.
But the result of the code ...
3
votes
1answer
76 views
How can I use renewcommand for toprule of the booktabs package?
I have a LaTeX document and want to change the thickness of \toprule and \bottomrule to 1.5pt.
Is there a way to do this with the \renewcommand or do I have to change every \toprule to ...
1
vote
1answer
99 views
how to split the table heading in booktabs?
how to split the column headings? How do I get newline after some word? When I put \\, it changes the alignment badly.
This is my code:
\documentclass{article}
\usepackage{pgfplots}
...
0
votes
1answer
126 views
In a table how do I add vertical lines between each column?
I have this as my current table which is fine, but I would like there to be vertical lines too just to make it look that bit neater.
I'd also like horizontal lines between each row but this would ...
3
votes
1answer
186 views
Conflict between TikZ with decorations.text library, caption and booktabs packages and progressbar theme [duplicate]
Possible Duplicate:
No room for a new \dimen
I obtain an error when using simultaneously the above 4 elements. When removing one of them (which I do not wish), the output is fine.
...
3
votes
2answers
343 views
Problems with \toprule and \midrule in a table
Having the following siunitx table code in LyX, for each occurrence of \toprule and \midrule I obtain an error message:
The control sequence at the end of the top line of your error message
was ...
1
vote
1answer
138 views
Table without using booktabs
I would like to know how to create the following table without using the package booktabs. Is this even possible?
\begin{table*}\centering
\begin{tabular}{@{}rrrrcrrrcrrr@{}}\toprule
& ...
8
votes
1answer
210 views
Vertical table lines are discontinuous with booktabs
I created a table in LaTeX, but there are some problems with the borders. The borders remain open whereas I want them closed. Also, in the last row, I want the vertical line gone, ie I want just one ...
5
votes
3answers
170 views
slim braces in a table
We need to make clear that certain data is the same in several rows. An underbrace taken from math-mode does the job quite well, but is unfortunately way too prominent in the table, especially in ...
4
votes
1answer
111 views
Equivalent of \DTLiflastrow
With the datatool package there is a \DTLiffirstrow. I am looking for a similar command to detect the last row, \DTLiflastrow, but could not find one. I attempted to create my own but was not ...
5
votes
1answer
266 views
multirow and text wrapping
I have a problem using multirow along with text wrapping when spanning cell contains a lot of text. Here is my code:
\documentclass[a4paper,10pt]{article}
\usepackage[utf8]{inputenc}
...
4
votes
1answer
236 views
'longtable' and 'booktabs' not working on this example?
I am not even sure what is wrong here. I have a table I would like the caption to be at bottom, marked with (continued) from 2nd page onwards. I would like the table to break at certain places by ...
18
votes
6answers
532 views
How to increase row height while using booktabs?
I'm making a table using booktabs. One of the columns contains a series of fractions.
\documentclass[12pt, letterpaper]{article}
\usepackage{nag}
\usepackage[margin=1.0in]{geometry}
...
5
votes
3answers
403 views
Formatting table border and text alignment in LaTeX table
I have the following table in the .tex file:
\documentclass{article}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]
\centering
\caption{Distribution of Number of Injured ...
8
votes
2answers
747 views
\midrule dashed and colored in booktabs — two kinds of midrules in one booktab
Is it possible to make two \midrules in one booktab? The first one should be colored, the second one colored and dashed, as it is shown in the picture. Before each entry is a horizontal space - how to ...
2
votes
1answer
539 views
how to \multicolumn in booktabs?
Following is my code:
\documentclass[a4paper,10pt]{article}
%\documentclass[a4paper,10pt]{scrartcl}
\usepackage[utf8x]{inputenc}
\usepackage{booktabs}
\begin{document}
\begin{table}[htbp]
...
6
votes
3answers
818 views
Fill space with dots within table
I would like the whitespace between two items within a table to be filled with dots.
Please consider the following picture to get the idea.
So far I tried to achieve this output with the following ...
3
votes
1answer
831 views
Strange problem with `longtabu`
I would like to share with you a quite simple example LaTeX is not able to compile.
I use the longtabu environment provided by tabu package. I am using commands from booktabs as recommended in the ...
4
votes
2answers
818 views
Vertical alignment using multirow and booktabs
I'm trying to format correctly the following table:
\documentclass[a4paper,twoside]{report}
\usepackage{array,colortbl,multirow,multicol,booktabs,ctable}
...
4
votes
2answers
279 views
Conflict between `booktabs` and `arydshln` packages
Please see the MWE below and its result. I didn't use the arydshln package in the example, but I have to use it somewhere else in the same document. As you see, there is something wrong with the ...
4
votes
2answers
480 views
Longtable width exceeds page
I saw these topics and sure they help a lot,
Resize longtable to width of landscape page
How to fit landscape multi-page table to textwidth
But still it does not fix my problem for some reason. I ...
3
votes
1answer
267 views
colortbl stepping on midrules in booktabs
I'm using booktabs and colortbl. I'm get a very annoying problem of the color table overlapping a horizontal rule. Maybe pixel snapping problem or something, but I can't make it go away. And I ...
9
votes
1answer
287 views
Wrapping \cmidrule in a macro
In my earlier solution for Multivariate polynomial long division using LaTeX I had wrapped \cmidrule in a macro as its syntax alowing to shorten the end points was not standard:
...
1
vote
1answer
69 views
Table wrapper breaks when using svn-multi and booktabs
I have a bizarre problem with a customised table wrapper in conjunction with booktabs and svn-multi. The MWE below illustrates the issue.
The wrapper myTable works fine if:
either booktabs is not ...
2
votes
1answer
6k views
Error using \toprule \midrule from Booktabs package [closed]
I am trying to use the package booktabs to make my tables look nicer. However,
Latex gives me an error whenever I use \toprule \midrule or \bottomrule. Here is a simple
example I created:
...
0
votes
0answers
1k views
Pretty tables in LaTeX: booktabs & phantom [closed]
\documentclass{standalone}
\usepackage{booktabs}
\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}}
\begin{document}
\begin{table}
\centering
\ra{1.2}
\begin{tabular}{@{}rcrcrrrcrrr@{}}
...
8
votes
1answer
293 views
How can I make a table like the type in this image in LaTeX?
I'm trying to make a table like the one in following image in LaTeX
but I'm unsure how to go about it. I've been using the tabular environment from the booktabs package, but the following code ...
2
votes
1answer
323 views
Formatting raggedright in booktabs. Why am I getting a \noalign error?
I have a \sidewaystable that is also a \threeparttable. I'm trying to produce it using booktabs. In the shape columns there are words with more than 8 letters that TeX keeps hyphenating. The column ...
0
votes
0answers
133 views
Including longtable as subfigure [closed]
I have been using the package subfigure (not subfig) to include figures for quite some time now. Recently I have tried to put an image and a table (booktabs/longtable) together and it is not working. ...
2
votes
1answer
726 views
Format nomencl in table style
For my thesis I wwant to format the nomencl in the same style as the rest. Simply put this means I want the nomencl to appear as follows:
Symbol Quantity Unit
t Time s
rest ...
3
votes
2answers
1k views
how to vertically align text in multirow cell with tabularx with renewcommand?
Here I come again,
Following the indications on this url I managed to get almost exactly what I want. However the problem is that the first multirow cell (with text "5 and 6") is not vertically ...
7
votes
2answers
804 views
Longtable does not break correctly when used with \specialrule instead of \hline
I'm writing an application that generate latex code, therefore the solution must be the most generic possible to ensure that it will generate clean pdf all the time. I would like to let my users ...
6
votes
1answer
396 views
How to omit vertical realignment when using cmidrule in different colors?
My question is similar to the one here How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule? but can not be solved with the suggested answer (because the lines are ...
22
votes
3answers
4k views
Professional-looking tables with alternating row colors?
Both the Booktabs documentation and the Small Guide to Making Nice Tables provide some nice rules-of-thumb for making professional-looking tables (e.g., no double rules, no vertical rules, etc.)
Q: ...
4
votes
2answers
915 views
Vertical spacing in tables with math
How can I force LaTeX to vertically center math in a table taking into account subscripts, superscripts, etc? It appears from the output below that LaTeX vertically centered the $JV$ and added the ...
2
votes
2answers
655 views
booktabs and tiny horizontal space
In a regular table, I'm trying to remove the small horizontal space before the first column and after the last one as achieved with package booktabs with the option @{}. How can I do that? Please ...
3
votes
1answer
373 views
How do I eliminate the vertical realignment when using arrayrulecolor with cmidrule?
I'm using consecutive \cmidrule commands in conjunction with \arrayrulecolor to alternately hide and unhide horizontal rules in a table. However, when \arrayrulecolor is used with \cmidrule, some odd ...
6
votes
1answer
189 views
booktabs's horizontal rules aren't displayed with cifa document class
There seems to be a problem between the CIFA document class
and the booktabs package.
When I compile the following code, the horizontal lines are not displayed:
\documentclass{cifa}
...
1
vote
3answers
2k views
Booktabs and longtable - strange spaces between lines
I needed to make some horizontal table lines bold so I used booktabs package. However if I use \toprule command to make line bold I get strange outcome - there are some spaces between bold line and ...
4
votes
1answer
2k views
Vertical lines are being broken up (disrupted) by the horizontal booktabs lines
My vertical lines are being broken up (disrupted) by horizontal booktabs lines. How can I fix this?
It's well and good to say use \hline but I also a cmidrule that spans only the second two columns ...
4
votes
1answer
1k views
Big table with rotated column labels using booktabs
I'm trying to get a big table to fit into my document using the booktabs package, but it is too wide. An example of a couple of rows of the table is given below. I'm using the ...

