# Tag Info

6

I think you may have a slightly idiosyncratic setup of the table headers that's causing this problem behavior. With something like the code below, I do not get the undesirable page breaking problems you're encountering. Note that the modified code features an \hline statement at the end of both \endfirsthead and \endhead; in contrast, the actual rows of the ...

4

All \nopagebreak's are undesired: \documentclass{scrartcl} \usepackage{longtable} \usepackage{booktabs} \begin{document} \section{Table test} \begin{longtable}{llc} \hline & & \multicolumn{1}{c}{All} \\ \hline m & \rule{0pt}{1.7\normalbaselineskip}April & $1$ \\ & July & $1$ \\ & June & $1$ \\ l & ...

4

longtable boxes the last page (which stops your glue stretching). It probably shouldn't, this removes the offending box. \documentclass{article} \usepackage{lscape,longtable} \makeatletter \let\zzLT@output\LT@output \def\unboxlastpage#1\@colht\vbox{#1\@colht} \def\LT@output{\expandafter\unboxlastpage\zzLT@output} \makeatother \begin{document} ...

4

Breaking within a row would be really hard to specify (even if it didn't require re-writing most of longtable) consider that the cells may have text of different baselines, or images or nested tables, and you'd have to find a consistent place to break each column. If your real example is just one column then you don't need a table at all of course, and ...

4

This would be a perfect application of the standalone bundle. You can store your longtable table in (say), mytablefile.tex, and then input it into your main file using input. Here are two files that demonstrate the idea- note that mytablefile.tex uses the standalone documentclass while mainfile.tex uses standalone package. This is a very simple ...

4

If you don't want the extra padding, you could use this solution instead which makes use of longtable's caption facilities: \documentclass{article} \usepackage{longtable} \usepackage{polyglossia} \setdefaultlanguage{latvian} \begin{document} \begin{longtable}{ccccc} \caption{Virknes slēguma bezdimensionālie lielumi}\\ \hline ...

4

The form of the label string has no effect whatsoever: it is an arbitrary internal string for cross referencing. You need to increment a counter if you want to count something. \documentclass[a4paper]{article} \usepackage{longtable,array} \newcounter{ltrow} \begin{document} \setcounter{ltrow}{0} ...

3

If I correct for the omitted \\ after \caption. The problem is that LT caption is a \multicolumn and if a spanning cell is wider than the natural width of the cells it spans, TeX puts all the space in the final column. If you add extra padding, things work better. \begin{longtable}{@{\extracolsep{10pt}}ccccc@{}} Or perhaps better align on the ...

3

Please always post complete documents that show the problem. I had to guess to complete your fragment but I only get one heading, so presumably the problem is in the code you didn't show. \documentclass{article} \usepackage{longtable} \begin{document} \setlongtables \begin{longtable}{rr}\caption{Title} \tabularnewline \hline\hline ...

3

This isn't quite right but will get you started, please in future make a complete single document, as here. Note there were many errors in the use of | in \multicolumn, you should only put rules on the right, except for the first column. Also you need to not use l columns as they don't allow the cell contents to wrap. ...

3

you need to fix the width of your second multicolumn, if you set it to l it will take the natural width of the text. \documentclass[12pt]{article} \usepackage{longtable} \usepackage{multirow} \usepackage{lscape} \usepackage{pbox} \begin{document} \begin{center} \setlength{\tabcolsep}{2pt} \small ...

3

longtable has its own definition of \caption which makes using \captionof doubly difficult: Even if you circumvent the Misplaced \noalign, you'll notice that the floattype table is hardcoded... As \captionof will always call \caption it's a bit hard to patch it in a way which will work inside and outside of longtable without completely rewriting longtables ...

2

It appears that threeparttablex is only able to measure the natural width of the table, so the “\fill” components are not taken into account. But since you know the width, in that case, you can redefine \TPTminimum for the duration of the environment: \documentclass[11pt]{scrartcl} \usepackage[showframe]{geometry} ...

1

The effect is as a result of the default indentation of the document. Place \setlength{\parindent}{0pt} in the preamble if you want zero indentation or \noindent before each table to remove the indentation and the effect will be removed. \documentclass[ngerman]{scrartcl} \usepackage[german]{babel} \usepackage{booktabs, array} \usepackage{longtable} ...

1

I would change that second line of the table for \hline \multicolumn{3}{p{11.5cm+2\tabcolsep}}{\textbf{Descripci\'{o}n de la clase:} Esta clase ser\'{a} la encargada de realizar la comunicaci\'{o}n con Condor, estableciendo una conexi\'{o}n con el servicio web. Contiene m\'{e}todos para el establecimiento de la conexi\'{o}n, creaci\'{o}n de trabajos u ...

1

Here is an implementation using the S column construction from siunitx. \documentclass{article} \usepackage{longtable} \usepackage{booktabs} \usepackage[ locale = DE % comma instead of full stop as decimal separator ]{siunitx} \usepackage{polyglossia} \setdefaultlanguage{latvian} \newcommand*\mc[1]{\multicolumn{1}{c}{#1}} \begin{document} ...

1

You can use the ltxtable latexpackage This package is a wrapper to use tabularx (allow to not specify the length of a column - for you the 4th one -) and longtable By default the first line is repeted under all pages. the main problaim of this package is that the table need to be wrote in another file. But you can do a think like this : ...

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