Graphics, Figures & TablesMultiple Column Problem in Table

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Multiple Column Problem in Table

Post by sabahmed »

Hi,
I am trying to make a table for the very first time in latex....its toooooo hactic just want to cry... spend many hours but couldnt solve one of my problem. the table i have made so far is :

Code: Select all

\documentclass[12pt,a4paper,fullpage]{report}

\usepackage{multirow}


\usepackage{tabularx}


\begin{document}
\begin{tabular}{|c|c|c|c|c|}
\hline
\multicolumn{2}{|c|}{\textbf{Multi-bit Watermark I}}
& \multicolumn{2}{|c|}{\textbf{Multi-bit Watermark II}} \\  \hline
\cline{4-4}
$A_W$ & $b_i$ & $A_W$ & $b_i$\\ \hline



\end{tabular}


\end{document} 
now i want to modify is as under: two more columns adjacent to

Code: Select all

$A_W$ & $b_i$ & $A_W$ & $b_i$
but not under columns Multi-bit Watermark I and Multi-bit Watermark II...i couldnt know how can i add image hope u will get to know what i want

Recommended reading 2024:

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

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

sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Multiple Column Problem in Table

Post by sabahmed »

Hello latex,
i have solved the problem as in the following code but still i want to add a vertical line between id and AO i.e. diffrentiate id and AO with a column...changing

Code: Select all

\begin{tabular}{|cc|c|c|c|c|c|}
causes to draw a line from top but i want to begin column where id and AO col begins

Code: Select all

\documentclass[12pt,a4paper,fullpage]{report}
\usepackage{multirow}
\usepackage{tabularx}

\begin{document}


\begin{tabular}{|cc|c|c|c|c|c|}
%\cline{1-6} 
\hline 
  & & \multicolumn{2}{|c|}{Multi-bit Watermark-I}  
 & \multicolumn{2}{|c|}{Multi-bit Watermark-II} \\ \hline %\cline{3-4}
  id  &  AO  
& Aw & bi & 
 Aw & bi 
\\ \hline
179  & 14.23 &
14.23 & - &
14.23 & - \\ \hline



\end{tabular}


\end{document} 
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Re: Multiple Column Problem in Table

Post by sabahmed »

i also want to know how to convert excel table into latex....as i am making a long table containing decimal values can any one please suggest me some good ideas
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Re: Multiple Column Problem in Table

Post by sabahmed »

Hello latex
can anyone plzease help me to solve my problem
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Re: Multiple Column Problem in Table

Post by sabahmed »

hello latex
please reply to my queries :(
maxmax
Posts: 29
Joined: Sat Sep 03, 2011 11:19 am

Re: Multiple Column Problem in Table

Post by maxmax »

You can find many solutions with google on how to convert tables from excel to latex.
sabahmed
Posts: 36
Joined: Thu Aug 04, 2011 8:55 pm

Multiple Column Problem in Table

Post by sabahmed »

sabahmed wrote:Hello latex,
i have solved the problem as in the following code but still i want to add a vertical line between id and AO i.e. diffrentiate id and AO with a column...changing

Code: Select all

\begin{tabular}{|cc|c|c|c|c|c|}
causes to draw a line from top but i want to begin column where id and AO col begins

Code: Select all

\documentclass[12pt,a4paper,fullpage]{report}
\usepackage{multirow}
\usepackage{tabularx}

\begin{document}


\begin{tabular}{|cc|c|c|c|c|c|}
%\cline{1-6} 
\hline 
  & & \multicolumn{2}{|c|}{Multi-bit Watermark-I}  
 & \multicolumn{2}{|c|}{Multi-bit Watermark-II} \\ \hline %\cline{3-4}
  id  &  AO  
& Aw & bi & 
 Aw & bi 
\\ \hline
179  & 14.23 &
14.23 & - &
14.23 & - \\ \hline



\end{tabular}


\end{document} 
i want to solve my this problem...
Post Reply