# Tag Info

5

It's a known problem: with \NewDocumentEnvironment{foo}, the macro \endfoo, that's internally used by LaTeX when \end{foo} is processed is “protected” and, because of this, LaTeX can't see that the alignment is to be ended until it has already started a new row. The situation is mostly similar to having \multicolumn not as the first item in a cell. What ...

4

The longtable environment is not capable of breaking a table inside a cell, and I doubt it will ever be. The true problem is that your table is semantically not a table, it is a list of lists. Therefore I would use one of the list environments: \documentclass{article} \begin{document} \begin{description} \item[Case 1.] 1, 286, 484, 507, 790, 920. ...

4

As clarified in comments the problem is unrelated to floating environments. \documentclass{article} \usepackage{longtable} \begin{document} \paragraph{zz} \begin{longtable}{| c | c | c | c |} \hline 1 & 5 & 6 & 7 \\ \hline 1 & 5 & 6 & 7 \\ \hline 1 & 5 & 6 & 7 \\ \hline % and so on, many rows ...

4

easiest os to force a break where you want a break \documentclass[12pt,a4paper]{article} \usepackage{longtable,booktabs} \begin{document} \begin{longtable}{c} bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla \\* bla ...

4

The problem is not confined to booktabs: Also with a standard \hline you would get a break. longtable redefines \hline so that it actually inserts two lines with a break point between them. This way a line at the bottom of a page is repeated on the top of the next page. You could define you a command which changes the penalty used by the \hline and the width ...

4

You are missing \\ after \caption{} also do not put longtable in a center environment. \documentclass{article} \usepackage{longtable} \usepackage{pdflscape} \usepackage{graphicx} \begin{document} \begin{longtable}{ccccccc|ccccccc} \caption{State Table for the proposed network% \label{table: state table proposed net.} }\\ \multicolumn{14}{c}{n=0} \\ ...

3

It's best (in any alignment) not to have columns that are always spanned. \documentclass[10pt]{report} \usepackage{longtable} \usepackage{tabu} \usepackage[letterpaper, top=0.5in, right=0.75in, bottom=0.5in, left=0.75in]{geometry} \begin{document} \begin{longtabu}{ X[4,l] X[2,r] X[1,c] X[2,r] X[1,c] } \textbf{Description} & ...

2

Here is a solution that consists in fixing experimentally the width of the caption. The default for \LTcaptionwidth is 4in, I use captionsetup inside the table, just before \caption. I also suppressed vertical lines, as it is bad typographical practice, and used booktabs. Here is the code: \documentclass[landscape]{article} \usepackage[utf8]{inputenc} ...

2

It was enough to replace the p specifier in \multicolumn to have both a simpler code and a solution to your problem. By the way, since you load longtable and tabularx, you might consider loading ltablex instead: it loads the former and extends the possibilities of longtable to the tabularx environment (essentially without changing its syntax). Also, you ...

2

For Unicode characters the routine to be used is more complex. This seems to work, at least for the characters you need. Please, don't use utf8x. \documentclass[6pt]{extarticle} %%%%%%%%%%%%%%%%%%%%%% % Package Inclusions % %%%%%%%%%%%%%%%%%%%%%% \usepackage{longtable, tabu} \usepackage{xparse} % used for \ExplSyntaxOn %used to print Spanish characters ...

1

The documentation (338 kb) says (p. 4, beginning of chapter 3) that one shall replace the \\ by \endhead resp. \endfirsthead. % arara: pdflatex \documentclass{scrartcl} \usepackage{longtable} \begin{document} \section{My awesome section} \vspace{175mm} With some really awesome Text ;) \begin{longtable}{|c|c|c|} \caption{The first table header}\\ ...

1

Thanks for posting the code of your longtable environment. It would appear that the main problem is that whereas you intend to have three columns (each allowing text to wrap), you're currently specifying a total of six columns, alternating l and p types. In addition to specifying just three columns (and removing the hard line breaks), I'd like to suggest ...

1

If only one column needs to break that can be on the main vertical list with the other columns treated as parboxes hung to the side: \documentclass {article} \usepackage [utf8] {inputenc} \usepackage [latin] {babel} \usepackage{lipsum} \newenvironment{foo}[3] {\list{}{\leftmargin6cm\rightmargin3cm \itemindent0cm \labelsep0pt \labelwidth0cm}% ...

1

For "continued from previous page" and the like, you can declare at the befginning of the longtable environment the contents of the first head (resp. general head) and the general foot (resp. the last foot). Here is how. I used the booktabs package, and replaced the vertical line that separates the two series of columns with a 2 em wide white space. I ...

1

A cell can not be distributed over two pages. Therefore, you will have to split this manually by putting the next-page-content into a new cell. Without a new \midrule, this will not differ from what you have desired. The \newpage in my MWE can be removed. It's just for demonstration purpose. % arara: pdflatex \documentclass{article} ...

1

There are some errors in your MWE, but using this works just fine for me: \documentclass{scrreprt} \usepackage{caption} \usepackage{longtable} \usepackage{hyperref} \usepackage{tocloft} \usepackage{kantlipsum} \begin{document} \tableofcontents \listoffigures \listoftables \newpage \kant \newpage \begin{longtable}[l]{lcr} \caption{table ...

1

Here is a solution that uses makecell, enumitem, ltablex that combines tabularx and longtable, and finally caption and babel (since it's written in French). I don't need multirow, since makecell has its own multirowcell command, with a simpler syntax and the possibility to use \\ inside a cell. Please note that the number of rows used by \multirowcell is ...

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