Graphics, Figures & Tablesrotate long table and can't see a few columns

Information and discussion about graphics, figures & tables in LaTeX documents.
Locked
fm3c2007
Posts: 6
Joined: Sun Dec 18, 2011 8:29 pm

rotate long table and can't see a few columns

Post by fm3c2007 »

Hi All,

I'm new to LyX and I'm trying to create a long table with 37 columns and 2 rows. Just for the test i include a code example. I tried use longtable package, supertable and the long table option in the table settings. Neither work. Could someone help me. Thanks.

Code: Select all

\documentclass[english]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{rotating}

\makeatletter

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{multicol}
\usepackage{longtable}

\makeatother

\usepackage{babel}
\begin{document}
\begin{sideways}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline 
1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 0 & 11 & 12 & 13 & 14 & 15 & 16 & 17 & 18 & 19 & 20 & 21 & 22 & 23 & 24 & 25 & 26 & 27 & 28 & 29 & 30 & 31 & 32 & 33 & 34 & 35 & 36 & 37\tabularnewline
\hline 
\hline 
a & b & c & d & e & f & g & h & i & j & k & l & m & n  & o & p & q & r & s & t & u & v & w & x & y & z & aa & ab & ac & ad & ae & af & ad & ae & ag & ah & ai\tabularnewline
\hline 
\end{tabular}
\end{sideways}
\end{document}

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

rotate long table and can't see a few columns

Post by localghost »

No double posts, please.

View topic: longtable, rotating | Partial Table Disappence
Locked