Community talkproblem with wide table

General discussion about this LaTeX community.
Please no LaTeX topics here! Just community topics!
Post Reply
sharmin123
Posts: 1
Joined: Wed Jun 30, 2021 8:02 pm

problem with wide table

Post by sharmin123 »

Hi
I am trying to make a very wide table that spans in two pages in latex. Due to its wideness, I rotated the table 90 degree. However, the table content in the next page is not visible. Can any one please help me?
the code is :

Code: Select all

\documentclass[review]{elsarticle}

\usepackage{lineno,hyperref}
\usepackage{tabularx}
\usepackage{adjustbox}
\usepackage{longtable}
\usepackage{rotating}
\usepackage{lscape}
\usepackage{supertabular}
%\usepackage{pdflscape}
\usepackage{ltxtable}

\modulolinenumbers[5]
\begin{document}

begin{landscape}
\begin{longtable}[c]{llllllllllll}
    \begin{tabular} {|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|p{2cm}|}%  {|c|c|c|c|c|c|c|c|c|c|c|c|}  
    \hline
  	physical object and extracted data	& milling machine tool	&shop floor&Production Service Systems in petrochemical industry &injection manufacturing lines &  additive manufacturing system &  heat and power (CHP) systems &	3D printer & assembly process & manufacturing cell & CNC  machine & production  line\\
    \hline
   \end{tabular}  
\end{longtable}
\end{landscape}

\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

problem with wide table

Post by Ijon Tichy »

First of all: For LaTeX questions you should not use LaTeX Community → Community talk but, e.g., LaTeXGraphics, Figures & Tables. The description of Community talk explicitly explains this:
General discussion about this LaTeX community.
Please no LaTeX topics here! Just community topics!
Your table is too wide even for the landscape page and longtable does not break tables horizontal but only vertical between table rows. Tables that are too wide, have to be splitted manually in several tables.

Note: The line

Code: Select all

begin{landscape}
of your example is wrong and should be:

Code: Select all

\begin{landscape}
Maybe this was only a copy&past mistake.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply