Graphics, Figures & TablesProblems with Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Ryan Henderson
Posts: 5
Joined: Sun Sep 09, 2012 4:25 pm

Problems with Table

Post by Ryan Henderson »

Hey everybody! I'm wondering if someone can help me out. I'm working on a table I'm using to make a catalogue list of my books. Here is what I've written so far:

Code: Select all

\documentclass[10pt,letterpaper,landscape]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=0.50in, right=0.50in, top=1.00in, bottom=1.00in]{geometry}
\usepackage{utopia}
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|}
\hline Author & Title & Publisher & Year & Pages & Read? \\ 
\hline Edwin A. Abbott & \textit{Flatland: A Romance of Many Dimensions} & & & & \Box \\ 
\hline K\={o}b\={o} Abe & \textit{The Woman in the Dunes} & & & & \Box \\
\hline Chinua Achebe & \textit{Things Fall Apart} & & & & \Box \\
\hline Chinua Achebe & \textit{A Man of the People} & & & & \Box \\
\hline Chinua Achebe and C.L. Innes, eds. & \textit{African Short Stories} & & & & \Box \\
\hline Douglas Adams & \textit{The Ultimate Hitchhikers Guide} & & & & \Box \\
\hline Henri Alain-Fournier & \textit{The Wanderer} & & & & \Box \\
\hline Mitch Albom & \textit{For One More Day} & & & & \Box \\
\hline Mitch Albom & \textit{The Five People You Meet in Heaven} & & & & \Box \\
\hline Brian W.\ Aldiss & \textit{Helliconia Spring} & & & & \Box \\
\hline Brian W.\ Aldiss & \textit{Helliconia Summer} & & & & \Box \\
\hline Brian W.\ Aldiss & \textit{Helliconia Winter} & & & & \Box \\
\hline Sherman Alexie & \textit{The Lone Ranger and Tonto Fist-fight in Heaven} & & & & \Box \\
\hline Kingsley Amis & \textit{Lucky Jim} & & & & \Box \\
\hline Mulk Raj Anand & \textit{Coolie} & & & & \Box \\
\hline Isaac Asimov & \textit{Foundation} & & & & \Box \\
\hline Isaac Asimov & \textit{I, Robot} & & & & \Box \\
\hline Isaac Asimov & \textit{Prelude to Foundation} & & & & \Box \\
\hline Isaac Asimov & \textit{Robot Visions} & & & & \Box \\
\hline Margaret Atwood & \textit{The Handmaid's Tale} & & & & \Box \\
\hline Margaret Atwood & \textit{Oryx and Crake} & & & & \Box \\
\hline Natalie Babbitt & \textit{Tuck Everlasting} & & & & \Box \\
\hline Richard Bach & \textit{Jonathan Livingston Seagull} & & & & \Box \\
\hline James Baldwin & \textit{Another Country} & & & & \Box \\
\hline J.G.\ Ballard & \textit{Concrete Island} & & & & \Box \\
\hline J.G.\ Ballard & \textit{Crash} & & & & \Box \\
\hline J.G.\ Ballard & \textit{Empire of the Sun} & & & & \Box \\
\hline J.G.\ Ballard & \textit{High-Rise} & & & & \Box \\
\hline J.G.\ Ballard & \textit{Millennium People} & & & & \Box \\
\hline Russell Banks & \textit{Continental Drift} & & & & \Box \\
\hline Julian Barnes & \textit{A History of the World in 10 1/2 Chapters} & & & & \Box \\
\hline Max Barry & \textit{Jennifer Government} & & & & \Box \\
\hline John Barth & \textit{The Floating Opera} & & & & \Box \\
\hline John Barth & \textit{Giles Goat-Boy} & & & & \Box \\
\hline John Barth & \textit{Lost in the Funhouse} & & & & \Box \\
\hline John Barth & \textit{The Sot-Weed Factor} & & & & \Box \\
\hline Thomas Bell & \textit{Out of This Furnace} & & & & \Box \\
\hline Edward Bellamy & \textit{Looking Backwards} & & & & \Box \\
\hline Saul Bellow & \textit{The Dean's December} & & & & \Box \\
\hline Saul Bellow & \textit{Henderson the Rain King} & & & & \Box \\
\hline Saul Bellow & \textit{Him with His Foot in His Mouth} & & & & \Box \\
\hline Saul Bellow & \textit{Mr.\ Sammler's Planet} & & & & \Box \\
\hline Saul Bellow & \textit{Mosby's Memoirs and Other Stories} & & & & \Box \\
\hline Thomas Berger & \textit{Little Big Man} & & & & \Box \\
\hline Alfred Bester & \textit{The Demolished Man} & & & & \Box \\
\hline Alfred Bester & \textit{The Stars My Destination} & & & & \Box \\
\hline Terry Bisson & \textit{Greetings and Other Stories} & & & & \Box \\
\hline Tadeusz Borowski & \textit{This Way for the Gas, Ladies and Gentlemen} & & & & \Box \\
\hline Christopher Boucher & \textit{How to Keep Your Volkswagen Alive} & & & & \Box \\
\hline Pierre Boulle & \textit{Planet of the Apes} & & & & \Box \\
\hline Paul Bowles & \textit{The Sheltering Sky} & & & & \Box \\
\hline John Boyne & \textit{The Boy in the Striped Pajamas} & & & & \Box \\
\hline Ray Bradbury & \textit{Dandelion Wine} & & & & \Box \\
\hline Ray Bradbury & \textit{Fahrenheit 451} & & & & \Box \\
\hline Ray Bradbury & \textit{The Illustrated Man} & & & & \Box \\
\hline Ray Bradbury & \textit{I Sing the Body Electric} & & & & \Box \\
\hline Ray Bradbury & \textit{The Martian Chronicles} & & & & \Box \\
\hline Ray Bradbury & \textit{The October Country} & & & & \Box \\
\hline Ray Bradbury & \textit{R Is for Rocket} & & & & \Box \\
\hline David Brin & \textit{The Postman} & & & & \Box \\
\hline Larry Brown & \textit{Facing the Music} & & & & \Box \\
\hline Lothar-Gunther Buchheim & \textit{Das Boot} & & & & \Box \\
\hline
\end{tabular} 
\end{document}
Okay, I know that this is a lot, but I put this much up to help illustrate my problem (I've also attached my .tex file to this post).

I'm trying to make the table in landscape format so that I can put it in a binder and keep it on my desk. The biggest problem that I'm having is that when I process the file in LaTeX or pdfLaTeX, the table is getting kicked to a second page, where it also extends past the bottom of the page; the table gets transposed over the page number at the bottom while continuing to run past the bottom of the page.

I would really appreciate any help. I have thousands of books, so this is a good way to keep track of everything.

Thanks guys!
Ryan
Attachments
fiction.tex
(4.6 KiB) Downloaded 358 times

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

justdeath
Posts: 69
Joined: Mon Sep 05, 2011 10:27 am

Problems with Table

Post by justdeath »

Hello there Ryan!

You have to manually break up the table. I don't know if there are any tools to do that automatically. You can also try sidewaystable.

Also, your code does not compile: \Box requires math environment.

Code: Select all

\documentclass[10pt,letterpaper,landscape]{article}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage[left=0.50in, right=0.50in, top=1.00in, bottom=1.00in]{geometry}
\usepackage{utopia}
% \usepackage[figuresright]{rotating}

\begin{document}

% \begin{sidewaystable}
\begin{tabular}{|p{7cm}|p{7cm}|p{2cm}|p{1cm}|p{1cm}|p{1cm}|}
\hline Author & Title & Publisher & Year & Pages & Read? \\ 
\hline Edwin A. Abbott & \textit{Flatland: A Romance of Many Dimensions} & & & & $\Box$ \\ 
\hline K\={o}b\={o} Abe & \textit{The Woman in the Dunes} & & & & $\Box$ \\
\hline Chinua Achebe & \textit{Things Fall Apart} & & & & $\Box$ \\
\hline Chinua Achebe & \textit{A Man of the People} & & & & $\Box$ \\
\hline Chinua Achebe and C.L. Innes, eds. & \textit{African Short Stories} & & & & $\Box$ \\
\hline Douglas Adams & \textit{The Ultimate Hitchhikers Guide} & & & & $\Box$ \\
\hline Henri Alain-Fournier & \textit{The Wanderer} & & & & $\Box$ \\
\hline Mitch Albom & \textit{For One More Day} & & & & $\Box$ \\
\hline Mitch Albom & \textit{The Five People You Meet in Heaven} & & & & $\Box$ \\
\hline Brian W.\ Aldiss & \textit{Helliconia Spring} & & & & $\Box$ \\
\hline Brian W.\ Aldiss & \textit{Helliconia Summer} & & & & $\Box$ \\
\hline Brian W.\ Aldiss & \textit{Helliconia Winter} & & & & $\Box$ \\
\hline Sherman Alexie & \textit{The Lone Ranger and Tonto Fist-fight in Heaven} & & & & $\Box$ \\
\hline Kingsley Amis & \textit{Lucky Jim} & & & & $\Box$ \\
\hline Mulk Raj Anand & \textit{Coolie} & & & & $\Box$ \\
\hline Isaac Asimov & \textit{Foundation} & & & & $\Box$ \\
\hline Isaac Asimov & \textit{I, Robot} & & & & $\Box$ \\
\hline Isaac Asimov & \textit{Prelude to Foundation} & & & & $\Box$ \\
\hline Isaac Asimov & \textit{Robot Visions} & & & & $\Box$ \\
\hline Margaret Atwood & \textit{The Handmaid's Tale} & & & & $\Box$ \\
\hline Margaret Atwood & \textit{Oryx and Crake} & & & & $\Box$ \\
\hline Natalie Babbitt & \textit{Tuck Everlasting} & & & & $\Box$ \\
\hline Richard Bach & \textit{Jonathan Livingston Seagull} & & & & $\Box$ \\
\hline James Baldwin & \textit{Another Country} & & & & $\Box$ \\
\hline J.G.\ Ballard & \textit{Concrete Island} & & & & $\Box$ \\
\hline J.G.\ Ballard & \textit{Crash} & & & & $\Box$ \\
\hline J.G.\ Ballard & \textit{Empire of the Sun} & & & & $\Box$ \\
\hline J.G.\ Ballard & \textit{High-Rise} & & & & $\Box$ \\
\hline J.G.\ Ballard & \textit{Millennium People} & & & & $\Box$ \\
\hline Russell Banks & \textit{Continental Drift} & & & & $\Box$ \\
\hline Julian Barnes & \textit{A History of the World in 10 1/2 Chapters} & & & & $\Box$ \\
\hline Max Barry & \textit{Jennifer Government} & & & & $\Box$ \\
\hline John Barth & \textit{The Floating Opera} & & & & $\Box$ \\
\hline John Barth & \textit{Giles Goat-Boy} & & & & $\Box$ \\
\hline John Barth & \textit{Lost in the Funhouse} & & & & $\Box$ \\
\hline John Barth & \textit{The Sot-Weed Factor} & & & & $\Box$ \\
\hline
\end{tabular}

\begin{tabular}{|p{7cm}|p{7cm}|p{2cm}|p{1cm}|p{1cm}|p{1cm}|}
\hline Thomas Bell & \textit{Out of This Furnace} & & & & $\Box$ \\
\hline Edward Bellamy & \textit{Looking Backwards} & & & & $\Box$ \\
\hline Saul Bellow & \textit{The Dean's December} & & & & $\Box$ \\
\hline Saul Bellow & \textit{Henderson the Rain King} & & & & $\Box$ \\
\hline Saul Bellow & \textit{Him with His Foot in His Mouth} & & & & $\Box$ \\
\hline Saul Bellow & \textit{Mr.\ Sammler's Planet} & & & & $\Box$ \\
\hline Saul Bellow & \textit{Mosby's Memoirs and Other Stories} & & & & $\Box$ \\
\hline Thomas Berger & \textit{Little Big Man} & & & & $\Box$ \\
\hline Alfred Bester & \textit{The Demolished Man} & & & & $\Box$ \\
\hline Alfred Bester & \textit{The Stars My Destination} & & & & $\Box$ \\
\hline Terry Bisson & \textit{Greetings and Other Stories} & & & & $\Box$ \\
\hline Tadeusz Borowski & \textit{This Way for the Gas, Ladies and Gentlemen} & & & & $\Box$ \\
\hline Christopher Boucher & \textit{How to Keep Your Volkswagen Alive} & & & & $\Box$ \\
\hline Pierre Boulle & \textit{Planet of the Apes} & & & & $\Box$ \\
\hline Paul Bowles & \textit{The Sheltering Sky} & & & & $\Box$ \\
\hline John Boyne & \textit{The Boy in the Striped Pajamas} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{Dandelion Wine} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{Fahrenheit 451} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{The Illustrated Man} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{I Sing the Body Electric} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{The Martian Chronicles} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{The October Country} & & & & $\Box$ \\
\hline Ray Bradbury & \textit{R Is for Rocket} & & & & $\Box$ \\
\hline David Brin & \textit{The Postman} & & & & $\Box$ \\
\hline Larry Brown & \textit{Facing the Music} & & & & $\Box$ \\
\hline Lothar-Gunther Buchheim & \textit{Das Boot} & & & & $\Box$ \\
\hline
\end{tabular}
% \end{sidewaystable}

\end{document}
jd
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Problems with Table

Post by kaiserkarl13 »

There are two tools that I know off the top of my head that do this automatically: longtable and supertabular. I have used the latter, and I expect it would provide the functionality you require with little extra effort.
Ryan Henderson
Posts: 5
Joined: Sun Sep 09, 2012 4:25 pm

Re: Problems with Table

Post by Ryan Henderson »

Okay, I'm still having a little trouble here. I tried the supertabular package, as kaiserkarl3 suggested. I think that this will work, but I'm having some trouble with the package options. Mostly with defining the header options.

Again, thanks to all for the assistance.

Ryan
kaiserkarl13
Posts: 707
Joined: Tue Mar 25, 2008 5:02 pm

Problems with Table

Post by kaiserkarl13 »

The header options are explained in the documentation for supertabular. In particular, you want to use \tablehead and/or \tablefirsthead to define the headers (repeated parts) of the table.
Post Reply