I would like to align the caption of my table to the left of the entire document. I checked for some similar questions but those were asking to align caption to the left of the table.
Here's an MWE. The code for the table was generated automatically via an R package. I'm new to latex and can only suspect that it's something in the table's code. Please have a look and help me out!
Thank you.
\documentclass[aspaper,12pt,titlepage,oneside]{report}
\usepackage[a4paper,left=40mm,right=25mm,bottom=25mm,top=25mm]{geometry}
\usepackage{titlesec}
\begin{document}
\chapter{Chapter!}
\begin{table}[!htbp] \centering
\caption{Chi-Square Test on Demographics}
\label{}
\begin{tabular}{@{\extracolsep{5pt}} ccc}
\\[-1.8ex]\hline
\hline \\[-1.8ex]
variable & stat & pValue \\
\hline \\[-1.8ex]
Gender & $0$ & $1$ \\
Level of Education & $5.658$ & $0.129$ \\
Forecast Expertise & $0$ & $1$ \\
Forecast Education Type & $1.380$ & $0.710$ \\
Use of Calculator & $0.573$ & $0.449$ \\
\hline \\[-1.8ex]
\end{tabular}
\end{table}
\end{document}

\label{}, nor doesreporthave anaspapersize (should probably bea4paper); just so you know... – Werner Apr 19 '18 at 16:33sidecappackage: http://mirror.hmc.edu/ctan/macros/latex/contrib/sidecap/sidecap.pdf – AML Apr 19 '18 at 16:41