Graphics, Figures & TablesTable width trouble

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
akrish
Posts: 5
Joined: Tue Oct 13, 2009 3:46 pm

Table width trouble

Post by akrish »

Hi,

I am making a table with 6 columns. It's a longtable environment.

I would like the table to end with a vertical line before the right hand side edge of the page. But even though i specify the column widths of all the columns and specify that a vertical line be inserted at the end, the horizontal lines of the table always go to the edge of the page and no vertical line is visible.

here is my code:

Code: Select all


\begin{longtable}[l]{|p{1in}p{1.5in}p{1.5in}p{1in}p{1.5in}p{0.5in}|}
  \hline
   %whole bunch of data - does not require wrapping, multiple lines or multiple columns.
  \hline
\end{longtable}

Do you see any bugs or solutions? Thanks in advance!

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

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Re: Table width trouble

Post by gmedina »

Hi,

can you please post the actual table so that we can reproduce the problem mentioned and offer effective help?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply