I am trying to center a side longtable using \makebox[\textwidth]{ it worked for a normal table.
\documentclass[a4paper]{article}
\usepackage{array}
\usepackage{longtable}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\noindent\makebox[\textwidth]{
\begin{longtable}
{>{\centering\arraybackslash}m{0.55\textwidth} >{\centering\arraybackslash}m{0.55\textwidth}}
\lipsum[2] & \lipsum[3] \
\end{longtable}
}
\lipsum[4]
\end{document}
I use sharelatex and get the error Missing \endgroup inserted..
edit: I saw How to fit landscape multi-page table to textwidth but LTcapwidth didn't help


\centering(longtables are by default, so there is nothing to do in that case) – David Carlisle Jul 11 '18 at 11:51