New 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 ...


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} \...


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

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} ...


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 ...


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 ...


0

Inserting \pdfbookmark{<bookmark-name>}{<label-name>} before each row, I managed to get the respective .pdf bookmarks to them. They work as intended, only if the command is put in the right place (or else it doesn't appear in correct order) along with the correct label. I can't get the level=0 or 1 option to work, but all good things in due time, ...


0

With \protect\section everything seems alright`. If a link is needed, more has to be done, of course. \documentclass{article} \usepackage{longtable} \usepackage[bookmarksopen,bookmarksopenlevel=3]{hyperref} \usepackage{bookmark} \usepackage{blindtext} \begin{filecontents}{firstpart.tex} \blindtext[3] \end{filecontents} \begin{document} \tableofcontents \...


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|} \...


0

Here's a corrected version of a minimised example. You do not want curly brackets around the variables representing the arguments e.g. #2 not {#2}. You need these to be expanded here! \documentclass{article} \usepackage{longtable} \setcounter{LTchunksize}{1000} %local variables for the \TestProc macro command \newcounter{TestProcItemCounter} \newcounter{...


0

Interesting. This account has not enough credit to add a comment or response, I have to post new answer. This concerns the patch proposed by Ken Shan in 2003, at http://www.latex-project.org/cgi-bin/ltxbugs2html?pr=tools/3512 Before I posted today, I had tried to apply the patch and it came up with some rejected hunks. After @Andrew Swann suggested I try ...


1

Maybe this is what you want? I used ltablex, which brings the functionalities of longtable to tabularx: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsfonts} \usepackage[capposition=top]{floatrow} \usepackage{amsmath} \usepackage[nohead]{geometry} \usepackage[singlespacing]{setspace} \usepackage[bottom]{footmisc} \usepackage{graphicx} \...


2

You can change the goal height of the tabular before the problematic line. This will force an earlier page break: \documentclass[a4paper,12pt]{book} \usepackage{helvet} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[francais]{babel} \usepackage{supertabular} \usepackage{lipsum} \begin{document} \newcounter{MyCounter} \lipsum[1] ...



Top 50 recent answers are included