Code: Select all
\documentclass[conference]{IEEEtran}
\usepackage{graphicx}
\usepackage{tabularx}
\usepackage{setspace}
\usepackage{hyperref}
\usepackage{float}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage[switch, modulo]{lineno} % line numbering
\usepackage{epstopdf} % figures eps
\usepackage{amsmath}
\begin{document}
\begin{table}
\scriptsize
\begin{tabular}{llllllll}\toprule
Bus & Voltage & Angle & \multicolumn{2}{c}{Load} & \multicolumn{2}{c}{Generation} & Injected \\ \cline{4-5} \cline{6-7}
No. & (p.u) & (deg) & MW & MVar & MW & MVar & MVar \\ \midrule
1 & 1.040 & 0.0 & 0 & 0 & 71.594 & 27.032 & 0 \\
2 & 1.025 & 9.279 & 0 & 0 & 163.0 & 6.657 & 0 \\
3 & 1.025 & 4.664 & 0 & 0 & 85.0 & -10.856 & 0 \\
4 & 1.026 & -2.217 & 0 & 0 & 0 & 0 & 0 \\
5 & 0.996 & -3.989 & 125 & 50 & 0 & 0 & 0 \\
6 & 1.013 & -3.688 & 90 & 30 & 0 & 0 & 0 \\
7 & 1.026 & 3.719 & 0 & 0 & 0 & 0 & 0 \\
8 & 1.016 & 0.727 & 100 & 35 & 0 & 0 & 0 \\
9 & 1.032 & 1.966 & 0 & 0 & 0 & 0 & 0 \\
Total & & & 315.0 & 115.0 & 319.954 & 22.833 & \\ \bottomrule
\end{tabular}
\caption {Load flow results}
\label{Load flow}
\end{table}
\end{document}
My output table is shown: I want to have a copy like in figure below, I did the same except the lines not separated between "Load" and "Generation" in
\toprule
, how I can make the line separated?
Other problem is the caption is more close to table, how I can make it little more down?