Cells of tables are not breakable across pages. Perhaps you can teach the autocreation process to make single cells instead:
\documentclass{article}
\usepackage{longtable}
\begin{document}
\begin{longtable}{|p{0.2\textwidth}|p{0.7\textwidth}|}
Text & Steps \\ \hline
& 1.step \tabularnewline
& 2.step \tabularnewline
& 3.step \tabularnewline
& 4.step \tabularnewline
& 5.step \tabularnewline
& 6.step \tabularnewline
& 7.step \tabularnewline
& ................. \tabularnewline
& 57.step \tabularnewline
& 58.step \tabularnewline
& 59.step \tabularnewline
& 60.step \tabularnewline
& 61.step \tabularnewline
& 62.step \tabularnewline
& 63.step \tabularnewline
& 64.step \tabularnewline
& 65.step \tabularnewline
& 66.step \tabularnewline
& 67.step \\ \hline
\end{longtable}
\end{document}
Perhaps this is, what the OP requests, but I could not test any feature, since the example by the OP is fragmented. I changed to tcolorbox
with no rounded corners and switched off the box rules. In order to demonstrate the colorbox at all, I used a yellow background colour.
\documentclass[12pt,a4paper]{article}
\usepackage{longtable}
\setlength{\LTpre}{0pt}
\setlength{\LTpost}{-6pt}
\usepackage{array}
\usepackage[applemac]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[UKenglish]{babel}
\usepackage[UKenglish]{isodate}
\usepackage{geometry}
\usepackage{booktabs}
\usepackage{array}
\usepackage{lscape}
\usepackage{siunitx}
\usepackage{parskip}
\usepackage{xcolor}
\usepackage{tcolorbox}%
\definecolor{lightgray}{gray}{0.98}
\usepackage[skip=2pt,font=scriptsize]{caption}
\newcommand{\oneS}{\ensuremath{{}^{\textstyle *}}}
\newcommand{\twoS}{\ensuremath{{}^{\textstyle **}}}
\tcbuselibrary{breakable}
\begin{document}%
\newgeometry{left=1.5cm,right=1.5cm,top=1.8cm,bottom=1.8cm}
\begin{landscape}
\scriptsize
\thispagestyle{empty}
\scriptsize
%\begingroup\setlength{\fboxsep}{0pt} >>> NOT WORKING returns "Missing \endgroup inserted" error
%\colorbox{lightgray}{
\begin{tcolorbox}[boxrule=0pt,colback=yellow,oversize=1cm,arc=0mm,auto outer arc, breakable]
\begin{longtable}{%
l S[table-format=-1.4] S[table-format=-1.4] S[table-format=-3.2] S[table-format=-5.2]
S[table-format= 7.2] S[table-format=-3.2] S[table-format=-3.2] S[table-format=-3.2]
S[table-format=-3.2] @{\hspace{0.8cm}} r r r r }
\caption{Summary statistics} \label{fig:sumstat} \\
\toprule
{Future i.e. underlying asset} & \multicolumn{5}{l}{Daily returns on long-only
positions} & \multicolumn{4}{l}{Ljung-Box } & \multicolumn{2}{l}{Avg. vol. (\$ mil.)}
& \multicolumn{2}{l}{Avg. open interest} \\
\cmidrule(r){2-6} \cmidrule(r){7-10} \cmidrule(r){11-12} \cmidrule(r){13-14}
& {Mean (\%)} & {Std. (\%)} & {Skew. (\%)} & {Kurt. (\%)} & {Jarque-Bera} & {(5)} &
{(20)} & {(60)} & {(120)} & {2000} & {2014} & {2000} & {2014} \\
\midrule
\endfirsthead
\toprule
{Future i.e. underlying asset} & \multicolumn{5}{l}{Daily returns on long-only
positions} & \multicolumn{4}{l}{Ljung-Box } & \multicolumn{2}{l}{Avg. vol. (\$ mil.)}
& \multicolumn{2}{l}{Avg. open interest} \\
\cmidrule(r){2-6} \cmidrule(r){7-10} \cmidrule(r){11-12} \cmidrule(r){13-14}
& {Mean (\%)} & {Std. (\%)} & {Skew. (\%)} & {Kurt. (\%)} & {Jarque-Bera} & {(5)}
& {(20)} & {(60)} & {(120)} & {2000} & {2014} & {2000} & {2014} \\
\midrule
\endhead
\bottomrule \multicolumn{14}{r}{\emph{Continued on next page}}
\endfoot
\bottomrule
\endlastfoot
Frozen Concentrated Orange Juice & -0.0184 & 1.8845 & -8.68 & 764.51
\twoS & 3170.82 \twoS & 20.61 \twoS & 43.77 \twoS & 98.60 \twoS
& 150.82 \oneS & 43 & 37 & 25727 & 16991 \\
\end{longtable}
\end{tcolorbox}%
% }\endgroup >>> NOT WORKING returns "Missing \endgroup inserted"error
\thispagestyle{empty}
\end{landscape}
\restoregeometry
\end{document}%
The screen shot shows a version, where I copied the last table line to blow up the table for next page, but for sake of shortness, I do not post this repetion in this example here.
Edit -- Update
As the OP requested:
A more tight colorbox around the table, with a grey background colour, in order to keep the post small, I will only give the change -- replace this in my above example.
In the preamble use
\usepackage{caption}
At the relevant place just before \begin{longtable}
use for the tightest tcolorbox
around the table itself.
\captionof{table}{Summary statistics} \label{fig:sumstat}
\begin{tcolorbox}[left=2pt,top=0pt,boxrule=0pt,bottom=0pt,boxsep=0pt,colback=gray,arc=0mm,auto outer arc, breakable]
Best Answer
When you say you tried
\begin{longtable}
, did you also put\usepackage{longtable}
in your preamble? What was the error it gave?With
\usepackage{longtable}
in the preamble it gives the expected output, something likeA |C |E
B |D |
and no errors.