Graphics, Figures & TablesMissing vertical line in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
mape2k
Posts: 9
Joined: Sat Jul 31, 2010 9:38 am

Missing vertical line in table

Post by mape2k »

Hello!

I have been working a while with LateX now and I love it! I came across one problem though.

I want to create this table:
capture.png
capture.png (72.93 KiB) Viewed 11386 times
Everything works except that one missing vertical line in row 1! I already tried to search for the error and read multiple tutorials but none seem to help me :(

Here is the code for the table:

Code: Select all

\begin{table}[H]
\begin{center}
\begin{tabularx}{0.85\textwidth}{ |X|X|X|X| }
\hline
OpAmp & OpAmp-Output & Output voltage [mv] &Mean STD [$\mu V$]  \\
\hline
\multirow{4}[4]{*}{1} &A& 301.972  & \multirow{4}[4]{*}{521.7875} \\
	& 	B 	& 	304.959  \\
	&	C	&	301.172  \\
	&	D	&	305.863  \\
	\hline
\multirow{4}{*}{2} &A& 301.758 & \multirow{4}[4]{*}{521.7875} \\
	& 	B 	& 	306.230 &\\
	&	C	&	300.732 &\\
	&	D	&	300.243 &\\
	\hline
\multirow{4}{*}{3} &A& 303.297& \multirow{4}[4]{*}{521.7875} \\
	& 	B 	& 	302.068 &\\
	&	C	&	300.140 &\\
	&	D	&	303.602 &\\
	\hline
\multirow{4}{*}{4} &A& 302.953& \multirow{4}[4]{*}{521.7875} \\
	& 	B 	& 	303.153&\\
	&	C	&	302.910&\\
	&	D	&	302.952&\\	
\hline
\end{tabularx}
\end{center}
\label{relchan}
\end{table}
Thanks in advance for your assistance!!


Edit by localghost: No external links! Attachments go onto the forum server.
Last edited by mape2k on Sat Jul 31, 2010 11:11 am, edited 1 time in total.

Recommended reading 2024:

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

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

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

Missing vertical line in table

Post by localghost »

Please always post a full minimal example to make the problem comprehensible for everyone.

You just forgot to specify the fourth column in the lines two to four of the table body.


Best regards and welcome to the board
Thorsten
mape2k
Posts: 9
Joined: Sat Jul 31, 2010 9:38 am

Re: Missing vertical line in table

Post by mape2k »

Problem solved! Thank you for the quick reply and sorry for not using a minimal example!
yago
Posts: 29
Joined: Sat Dec 13, 2008 6:40 pm

Missing vertical line in table

Post by yago »

I don't like the vertical lines in tables, and I think that in your table the data aspect is best centered, but below you have a code for this table.

Code: Select all

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

\makeatletter
\providecommand{\tabularnewline}{\\}
\usepackage{multirow}
\makeatother

\begin{document}
\renewcommand{\arraystretch}{1.2}
\begin{tabular}{|l|l|l|l|}
\hline
OpAmp & OpAmp-Output & Output voltage $\left[\mathrm{mV}\right]$ & Mean STD $\left[\mu V\right]$\tabularnewline
\hline
\multirow{4}{*}{1} & A & 301.972 & \multirow{4}{*}{521.7875}\tabularnewline
& B & 304.959 & \tabularnewline
& C & 301.172 & \tabularnewline
& D & 305.863 & \tabularnewline
\hline
\multirow{4}{*}{2} & A & 301.758 & \multirow{4}{*}{521.7875}\tabularnewline
& B & 306.230 & \tabularnewline
& C & 300.732 & \tabularnewline
& D & 300.243 & \tabularnewline
\hline
\multirow{4}{*}{3} & A & 303.297 & \multirow{4}{*}{521.7875}\tabularnewline
& B & 302.068 & \tabularnewline
& C & 300.140 & \tabularnewline
& D & 303.602 & \tabularnewline
\hline
\multirow{4}{*}{4} & A & 302.953 & \multirow{4}{*}{521.7875}\tabularnewline
& B & 303.153 & \tabularnewline
& C & 302.910 & \tabularnewline
& D & 302.952 & \tabularnewline
\hline
\end{tabular}
\end{document}
Post Reply