Tuesday, April 17, 2018

How to add table on Latex

you can use this code for add table in latex

 \begin{table}[H]  
\caption{\textbf{Table caption}}  
\label{tb:sampletable}    
\begin{center}   
\begin{tabular}{|c|c|c|c|}   
\hline \textbf{Col 1} & \textbf{Col 2} & \textbf{Col 3} & \textbf{Col4}    \\    
\hline  data 1        & data 2         & data 3         & data 4           \\    
\hline  data 1        & data 2         & data 3         & data 4           \\    
\hline  data 1        & data 2         & data 3         & data 4           \\     
\hline   \end{tabular}    \end{center} \end{table}  



No comments:

Post a Comment