For my new research paper, I am having tough time in formatting a comparison table using LaTeX. I used the recent help given to me in preparing a table using multicolumn but specifically I find some extra space between the output of the code (enclosed).. There is extra space between C2 and C3 columns and I have no idea how to fix this problem. Also, I like to merge the three rows with System 1 into one row with three cases A, B and C, and similarly for the three rows with System 2. I understand that multirow is the command to be used, but I request you to kindly help me with it. In future, I shall format tables with the help I hope to get for the enclosed code.
Thank you for the great help!!
Best wishes, Sundar
\documentclass[11pt]{article}
\usepackage{float}
\usepackage{amssymb}
\usepackage{graphicx}
\usepackage{subfig}
\usepackage{array}
\usepackage{booktabs}
\usepackage{caption}%
\begin{document}
\begin{table}
\caption{Comparison Table}
\centering
\begin{tabular}{lcccccc}
\toprule
Name of the System & Case & \multicolumn{3}{c}{Lyapunov Exponents} & Maximum Value & Pascal Dimension \
\cmidrule{3-5}% added
& & $C1$ & $C2$ & $C3$ & & \
\midrule
System (1) & A & a1 & a2 & a3 & a1 & P1 \[1mm] \hline
System (1) & B & b1 & b2 & b3 & b1 & P2 \[1mm] \hline
System (1) & C & c1 & c2 & c3 & c1 & P3 \[1mm] \hline
System (2) & A & d1 & d2 & d3 & d1 & Q1 \[1mm] \hline
System (2) & B & e1 & e2 & e3 & e1 & Q2 \[1mm] \hline
System (2) & C & f1 & f2 & f3 & f1 & Q3 \[1mm] \hline
\bottomrule
\end{tabular}
\end{table}
\end{document}



tabularsystem actually exceeds\textwidth. – Mico Nov 26 '23 at 08:58