LaTeX forum ⇒ Community talkproblem with wide table

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

problem with wide table

Postby sharmin123 » Wed Jun 30, 2021 8:10 pm

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

User avatar
Ijon Tichy
Posts: 559
Joined: Mon Dec 24, 2018 10:12 am

Postby Ijon Tichy » Thu Jul 01, 2021 6:29 pm

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
begin{landscape}

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

Maybe this was only a copy&past mistake.


Return to “Community talk”

Who is online

Users browsing this forum: No registered users and 2 guests