overleaf 6
\documentclass{article}
\usepackage{multirow}
\usepackage{caption}
\begin{document}
\title{LATEX TABLES}
\author{student}
\maketitle
\section{Introduction}
This topic will explain the steps to create the table and perform different functions in the table. Tables are an efficient way to represent the information and are often used in most documents or files.
\subsection{Create a table}
Creating tables in LaTeX is a little complicated compared to others, but the steps and the process to create a table from the basics will make it easier.
\begin{table}[h!]
\begin{center}
\begin{tabular}{|c||c||c|}
\hline
\multicolumn{3}{|c|}{Student Data} \\
\hline
Roll No & Name & Department \\
\hline
24MCA054 & Swetha & MCA \\
\hline
24MCA002 & Abarna & MCA \\
\hline
\multirow{3}{*}{24MCA004} & Anju & MCA \\
& Hervin & MCA \\
& Pavi & MCA \\
\hline
\end{tabular}
\caption{STUDENT INFORMATION}
\end{center}
\end{table}
\end{document}
Comments
Post a Comment