Skip to main content
edited the code
Source Link
Amar
  • 986
  • 1
  • 7
  • 29

A slightly modified longtable, booktabs, & multirow -based solution:

\documentclass[11pt,a4paper]{article} \usepackage{multirow} \usepackage{booktabs} % To nicely typeset tabular material \usepackage{longtable} % For multipage tables! \begin{document} % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{longtable}{ccccc} \caption[Trial]{Trial\label{tab:addlabel}}\\ % \toprule Hello & How & Are & You \\ \midrule \multirow{2}[4]{*}{1} & 2 & \multirow{2}[4]{*}{4} & \multirow{2}[4]{*}{5} \\ \cmidrule{2-2} \multicolumn{1}{c}{} & 3 & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\ \midrule 6 & 7 & 8 & 9 \\ \bottomrule \end{longtable} \end{document}

It looks like this:

enter image description here

A slightly modified longtable, booktabs, & multirow -based solution:

\documentclass[11pt,a4paper]{article} \usepackage{multirow} \usepackage{booktabs} % To nicely typeset tabular material \usepackage{longtable} % For multipage tables! \begin{document} % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{longtable}{ccccc} \caption[Trial]{Trial\label{tab:addlabel}}\\ % \toprule Hello & How & Are & You \\ \midrule \multirow{2}[4]{*}{1} & 2 & \multirow{2}[4]{*}{4} & \multirow{2}[4]{*}{5} \\ \cmidrule{2-2} \multicolumn{1}{c}{} & 3 & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\ \midrule 6 & 7 & 8 & 9 \\ \bottomrule \end{longtable} \end{document}

It looks like this:

enter image description here

A slightly modified longtable, booktabs, & multirow -based solution:

\documentclass[11pt,a4paper]{article} \usepackage{multirow} \usepackage{booktabs} % To nicely typeset tabular material \usepackage{longtable} % For multipage tables! \begin{document} % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{longtable}{ccccc} \caption[Trial]{Trial\label{tab:addlabel}}\\ % \toprule Hello & How & Are & You \\ \midrule \multirow{2}[4]{*}{1} & 2 & \multirow{2}[4]{*}{4} & \multirow{2}[4]{*}{5} \\ \cmidrule{2-2} & 3 & & \\ \midrule 6 & 7 & 8 & 9 \\ \bottomrule \end{longtable} \end{document}

It looks like this:

enter image description here

Source Link
Amar
  • 986
  • 1
  • 7
  • 29

A slightly modified longtable, booktabs, & multirow -based solution:

\documentclass[11pt,a4paper]{article} \usepackage{multirow} \usepackage{booktabs} % To nicely typeset tabular material \usepackage{longtable} % For multipage tables! \begin{document} % Table generated by Excel2LaTeX from sheet 'Sheet1' \begin{longtable}{ccccc} \caption[Trial]{Trial\label{tab:addlabel}}\\ % \toprule Hello & How & Are & You \\ \midrule \multirow{2}[4]{*}{1} & 2 & \multirow{2}[4]{*}{4} & \multirow{2}[4]{*}{5} \\ \cmidrule{2-2} \multicolumn{1}{c}{} & 3 & \multicolumn{1}{c}{} & \multicolumn{1}{c}{} \\ \midrule 6 & 7 & 8 & 9 \\ \bottomrule \end{longtable} \end{document}

It looks like this:

enter image description here