# Tag Info

## Hot answers tagged longtable

7

As mentioned in comment, your tables are to wide (even if you use \tiny font size) that they can be put in parallel in your document. A reasonable solution is merging them into one table as follows: As you can see, I prefer tables with only necessary horizontal rules, for which I use rules from the booktabs package and for numbers the S column types: \...

5

You could use adjustbox but I advise you not to put them side-by-side, think of your long-sighted readers. \documentclass[11pt,a4paper,openright,titlepage,oneside]{book} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{boxedminipage} \usepackage{geometry} %\usepackage{theorem} you also add new theorem \usepackage{fancybox} \...

3

Here is a code with normal size, and  \displaystyle fractions. I loaded the cellspace package to add some vertical padding to the cells: \documentclass[a4]{article}% \usepackage{geometry} \usepackage{graphicx} \usepackage{array, cellspace} \setlength{\cellspacetoplimit}{2pt} \setlength{\cellspacebottomlimit}{2pt} \usepackage{longtable} \begin{document} \...

3

You can make these fit using \tiny: \documentclass[11pt,a4paper,openright,titlepage,oneside]{book} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage{boxedminipage} \usepackage{geometry} \usepackage{fancybox} \usepackage{fancyhdr} \usepackage{ifthen} \usepackage{url} \usepackage{afterpage} \usepackage{color} \usepackage{colortbl} \usepackage{...

2

This is unrelated to longtable or landscape, you are simply forcing the empty page style by definining \clearpage. As well as forcing an empty page style you are adding four space tokens every \clearpage \clearpage is used in multiple places, including \end{document} so your definition would force the last page of most documents to have an empty page style....

2

Here is away to do it with a simpler code: I use the xltabular environment, which brings the functionalities of longtable to tabularx, so the longtable does not overflows into the margin. I added cellspace , which defines a minimal vertical padding in cells of columns with specifier prefixed with the letter S(or C if you load siunitx). \documentclass{...

1

I suggest setting the tabular using booktabs rules and nested tabular instead of multirow. Also, I use \parbox inside the cells to break the lines. If you have an updated array package, you can use fixed width columns to easily line up complicated multispanning rows: \documentclass{article} \usepackage{longtable, booktabs, array} \title{Test} \begin{...

1


1

You would think that adding some glue before the longtable would take care of it, but that doesn't work. Not sure why this splits off two lines instead of one, but it probably has something to do with widows or orphans. \documentclass[12pt,letterpaper,notitlepage,oneside]{article} \usepackage{array} \usepackage{longtable} \usepackage{showframe} \begin{...

1

With small reformatting of the your table it can be fit in portrait page orientation and using normal font size. For example, remove column, which all cells have the same value and its purpose explain in table caption, use abbreviation for columns' headers and in legend added to caption explain their meaning: \documentclass[11pt]{report} \usepackage{...

1

I also manage to find a possible solution using longtable. However, as well known, coloured cells do not work well together with vertical and horizontal rules neither in longtable nor in tabular, so I did not even try. It is unnecessary to ha bot coloured rows and horizontal rules in a table. Since your tabular shall be read from left to right, you can also ...

1

multirow is a layer on top of a number of rows, so each underlying row is a perfect place for longtable to put a page break. This is documented in the manual section 3.6: It is possible to use \multirow in a longtable environment (as well as in its descendent longtabu). However, care must be taken that the longtable doesn’t break the multirow entry ...

1

revtex appears to have disabled the standard \onecolumn command but provides \onecolumngrid \documentclass[aps,prl,twocolumn, preprintnumbers, amsmath,amssymb,showkeys,floatfix,nofootinbib,reprint]{revtex4-1} \usepackage[toc,page]{appendix} \usepackage{xurl} \usepackage{graphicx} \usepackage[outdir=./]{epstopdf} \usepackage{siunitx} \usepackage{booktabs} \...

1

Something like this? Considering comments below your question, MWE with your table can be as follows: \documentclass[ngerman]{article} \usepackage{babel} \usepackage{ragged2e} \usepackage{booktabs, makecell, xltabular} \setcellgapes{3pt} \newcolumntype{L}{>{\RaggedRight\hspace{0pt}}X} \usepackage[skip=1ex]{caption} \usepackage{lipsum} \begin{...

1

Here is a solution using longtable and enumitem. In addition, I have defined a column that get rid of the space above the itemise environment by injecting a \@minipagetrue and align the cells at the top base line by enclosing the itemize environment in a \parbox. As a bonus(?), I could remove the \thead-commands and all \multicolumns: Example 1 \...

1

I propose this solution, based on a redefinition of tabularx, the xltabular package, which brings the functionalities of longtable totabularx, andenumitem`. It is far from perfect, athe first two column heads are not vertically aligned, for a reason I don't see. \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{geometry} \usepackage{booktabs} \...

1


1

With a little work, you can fit it on one page (portrait). I would replace all the zeros with blanks and the ones with something more distinctive. \documentclass{article} \usepackage{longtable} \usepackage{adjustbox} \usepackage{tikz} \usetikzlibrary{trees} \usepackage{amsmath} \usepackage{mathtools} \usepackage{caption} \usepackage{graphicx} \usepackage{...

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