4
votes
1answer
49 views

equal column spacing in longtable

Does anyone know how to get equal spacing between columns in longtable? My code is attached below. Thanks. Franz \documentclass[12pt,a4paper]{article} \usepackage[latin1]{inputenc} ...
1
vote
1answer
79 views

Is it possible to change the spacing between particular columns of a table?

I am struggling to make a longtable fit on A4 pages in portrait mode. The problem is that the table is too wide. I am not allowed to use smaller fonts (that would solve my problem but it's not an ...
6
votes
1answer
115 views

How do I remove the space before the first item and after the last item of an enumerate list inside a longtable?

I have several longtables in one document and they all have a fairly big gap before the first item and after the last item of every enumerate-list. Does anyone know how to get rid of that? ...
3
votes
1answer
75 views

Spacing text in table cells

How do I to space these two cells on this way? And not on this way: Code: \begingroup \setlength{\LTleft}{-20cm plus -1fill} \setlength{\LTright}{\LTleft} ...
4
votes
2answers
110 views

Table and Longtable environments reproduce different spacing in LOT

I have been using the table and longtable commands quite a lot for my thesis, and I've observed they reproduce different spaces in the list of tables. Here is the MWE: ...
3
votes
3answers
74 views

Unwanted extra gap in longtable

I have finally faced a problem when all googling, this forum and any wittiness could not help me out. I have been working in a \longtable environment when in seemingly the most simple table I have ...
4
votes
0answers
95 views

longtable package: Stretch height of last row on page

Consider the following code \documentclass[a4paper]{article} \usepackage{longtable} \usepackage{lipsum} \begin{document} \begin{longtable}{|p{5cm}|} \hline \lipsum[5] \\\hline ...
4
votes
3answers
1k views

Removing extra space after itemize environment in longtable in memoir

I have a macro that creates itemize environment in it. The issue is that I have extra space after the itemize environment when used in longtable. How to remove the space? \documentclass{memoir} ...
4
votes
1answer
92 views

How to control the spaces before and after itemize(listing) environment inserted in a table?

I have a macro that inserts itemize environment in a longtable. The issue is that I have big spaces between top and bottom of the itemize environment. How can I control the spaces? ...
0
votes
1answer
316 views

Column Spacing using esttab & longtable

I am outputting regression results from Stata to Latex. The problem is that, no matter how many columns I have, the spacing between the last column and the rest of the table is wider than other ...
1
vote
1answer
928 views

Adding row spacing to a longtable?

I want to add some extra spacing between the rows of my longtable - but not for every table of the entire document, just one of them. I've tried to use the \\[dist] mechanism, but with surprising (at ...
4
votes
2answers
1k views

Longtable with multicolumn and parbox spacing issues

I've been trying to build a "complex" table of a certain size but I still have some problems with the spacing. As you can see in the attached pictures, some lines overlap the table row dividers, other ...
6
votes
1answer
209 views

Strange vertical space before the caption of a longtable with KOMA-Script classes when xcolor is loaded

When using one of the main KOMA-Script classes — scrartcl, scrreprt, scrbook but not scrlttr2 —, the vertical position of the caption in a longtable environment changes when one loads or unloads the ...
8
votes
1answer
460 views

Vertical spaces above and below longtabu

This is, in a way, a follow-up-question to New table-environment, spaces and enclosing { } in a new environment, which has already been answered conveniently by @egreg. Please compile this MWE to ...
6
votes
1answer
118 views

How to remove the white space on the top of the following table?

How to remove the white space on the top of the following table? \documentclass[preview,border=0pt,varwidth]{standalone} \usepackage[table]{xcolor} \usepackage{array} \usepackage{longtable} ...
2
votes
1answer
680 views

How to adjust space between columns in longtable environment?

In the regular tabular environment, we can use \setlength{\tabcolsep} to specify the size of the space between the columns, but this doesn't work in longtable. Is there a similar command? ...
1
vote
1answer
157 views

Table column spacing / headings

I don't seem to be able to reduce the space between columns with \setlength\tabcolsep; it looks like siunitx package does not go along with tabcolsep. Further, I'd like to centre the subheadings of ...
8
votes
1answer
686 views

Unable to Remove Vertical Space Before and After Lists within longtable

All the tricks to remove vertical space before and after itemize lists (using enumitem) seem to work well in table/tabular environments, but not in longtable. The following MWE illustrates the ...
6
votes
2answers
2k views

Vertical aligning text and vertical height of rows in longtable environment

I have now been working on fixing this problem for some time and I have read through some forums on the Internet and tried different things, but I can't solve this problem. I am looking to have some ...
7
votes
1answer
591 views

Vertical line in longtable

I would like my vertical line to be slightly detached from the horizontal lines. I am using \usepackage{longtable}. \footnotesize \begin{longtable}{r | p{10cm}} \caption{My caption 1\label{1}}\\ ...
4
votes
1answer
145 views

Setting vertical spacing between different document elements at the same time

I have the following problem. Let's define three types of document elements: Titles, Paragraphs and Longtables. The problem is to setup vertical spaces between them independently. For example, let's ...
11
votes
2answers
3k views

How to add vertical space struts after hline?

I know the table trick of adding "struts" in the first line after and the last line before a \hline. I use it throughout my document, and it looks good that way. However, now I am working within a ...
6
votes
1answer
632 views

Overfull warning when using longtable

I am getting overfull warning (Overfull \hbox (17.10379pt too wide) in alignment) when using longtable enviroment (See MWE below) The warnings are on \begin{longtable} and \end* lines. The pdf ...
12
votes
2answers
1k views

vspace before itemize in a Table cell, tabular vs longtable

In the following MWE, one sees the difference between tabular and longtable, with respect to the vertical space before an itemize, inside a cell : \documentclass[12pt]{article} ...
2
votes
0answers
413 views

Caption spacing in longtable package [closed]

I am using a style file that sets a particular spacing for the List of Figures (LoF) and List of Tables (LoT) in my Table of Contents. However, I am using longtable for all my tables, and it is ...
4
votes
1answer
694 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 ...
1
vote
1answer
387 views

Custom (or any) environment inside tabular adds unwanted vspace

I wanted to define my own version of a verbatim-like environment, that has some less line spacing and uses alltt instead of verbatim, so what I can use \(\cdots\) inside. What I tried was: ...
3
votes
3answers
2k views

Longtables and caption: spacing problem

I have been using the \longtable environment and I have an issue with the captions. All captions appear at the bottom of each part of the table, which is the result I wanted. However, there is a quite ...
12
votes
1answer
2k views

How to remove top and bottom whitespace of longtable?

I am using longtable instead of tabular environment and noticed that it puts some additional whitespace at the top and at the bottom of the table. Is there some way to remove it (something less hacky ...