Hot answers tagged

4

For some strange reason floatrow sets \LTleft and \LTright to 0pt breaking longtable's default positioning, you could set them back, or simpler just use \begin{longtable}[c]{rr} to force longtable to centre. this is sort of mentioned in the floatrow manual Alignment Settings for longtable. The floatrow expands some settings of table lay- out to ...


3

A single table environment cannot be broken across pages. Here, I merely remove the table and tabular environments, and move the \caption inside the longtable, followed by a \\. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage{longtable} \usepackage{tabularx} \usepackage{booktabs} \begin{document} \vspace*{8cm} \centering \vspace*{1cm} \...


3

Do take some time to master the structure (and syntax) of longtable environments: Don't use tabular environments inside a longtable environment. Really: don't do it. Don't use center environments inside a longtable environment -- it's automatically centered (assuming it's not wider than \linewidth by design or accident...) The full width of your tabular is ...


2

The problem is in the continued caption, which is too wide; the excess always goes to the last column. \documentclass[paper=a4, fontsize=11pt]{scrartcl} \usepackage[english]{babel} \usepackage{siunitx} \usepackage{longtable} \usepackage{booktabs} \textheight=8\baselineskip % just for the example \begin{document} \begin{longtable}{ l *{2}{S[table-...


2

If you add \addtolength\textheight{-30\baselineskip} You see the cause of the space on page 2 You need to shorten the heading or spread it over two lines so that it does not force the last column to be too wide. Perhaps \multicolumn{5}{c}% {\tablename\ \thetable\ -- \textit{Univariate Item Descriptives}} \\ \multicolumn{5}{r}% {(\textit{Continued ...


2

TeX warns you Overfull \hbox (24.0pt too wide) in alignment at lines 30--34 each column has \tabcolsep padding (6pt) on either side so with two columns your table is 24pt wider than the page. \documentclass[a4paper,12pt]{book} \overfullrule=2cm \usepackage[utf8]{inputenc} \usepackage{graphicx} \usepackage{booktabs} \usepackage{longtable} \usepackage{...


1

If you are feeling brave you can defer a longtable until the next natural pagebreak using \afterpage \documentclass{article} \usepackage{threeparttable} \usepackage{dcolumn} \usepackage{longtable} \usepackage{threeparttablex} \usepackage{lipsum} \usepackage{afterpage} \begin{document} \lipsum[2-4] \afterpage{\clearpage \begin{ThreePartTable} \...


1

David Carlisle had the right solution. \addtocounter{table}{-1} before the longtable and \refstepcounter{table}\label{mylabel} worked perfectly.


1

Based on David Carlisle comment and its answer in another post (http://tex.stackexchange.com/a/93810/44284) I succeed, the code is given below. However, I finally follow David recommendation "to refactor the table into smaller chunks based on semantically meaningful divisions", it seems more appropriate. %% Credit : David Carlisle \documentclass{article} ...


1

You have several misplaced &: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[french]{babel} \usepackage{multirow,graphicx} \begin{document} \begin{table}[htbp!] \centering \caption{\textit{R├ęsultats global}} \label{tableau4} \resizebox{0.5\columnwidth}{!}{% \begin{tabular}{|c|c|c|c|c|c|} \...



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