Graphics, Figures & Tablesnewbie issue with table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
suluclac
Posts: 8
Joined: Sat Jan 24, 2009 7:00 am

newbie issue with table

Post by suluclac »

Nothing fancy here. When I compile the following there is a missing vertical line at the top right of the table. I can't figure out what I'm missing. Any help would be great!!!

Code: Select all

\begin{tabular}{|p{1.2in}|p{0.6in}|p{0.6in}|p{0.6in}|p{0.6in}|}
\hline
Photometer & \multicolumn{4}{c}{Light Sources Intensity}\\
Position & \multicolumn{4}{c}{} \\ \cline{2-5}
=\verb+____________+ & 100\% & 75\% & 50\% & 25\% \\
\hline
Position 1 & & & & \\
\hline
Position 2 & & & & \\
\hline
Position 3 & & & & \\
\hline
Average Position of Point Source & & & & \\
\hline
Distance from Photometer & & & & \\
\hline
Calculated Intensity & & & & \\
\hline
\% diff & & & & \\
\hline
\end{tabular}

Recommended reading 2024:

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

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

suluclac
Posts: 8
Joined: Sat Jan 24, 2009 7:00 am

Re: newbie issue with table

Post by suluclac »

well, i used \vline to force it to work. This just seems like a hack though and would like to know why the code above is not acceptable.
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

newbie issue with table

Post by gmedina »

I'll just give you a hint. Compare the corresponding two lines of your code with theses ones, that take care of your problem:

Code: Select all

    Photometer & \multicolumn{4}{c|}{Light Sources Intensity}\\
    Position & \multicolumn{4}{c|}{} \\ \cline{2-5}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
suluclac
Posts: 8
Joined: Sat Jan 24, 2009 7:00 am

Re: newbie issue with table

Post by suluclac »

Doh! Don't I feel retarded.
Thanks!
Post Reply