This question already has an answer here:

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.


\begin{table}[!htbp] \centering 
    \caption{Chi-Square Test on Demographics} 
    \begin{tabular}{@{\extracolsep{5pt}} ccc} 
        \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] 

marked as duplicate by barbara beeton, Phelype Oleinik, Troy, CarLaTeX, Stefan Pinnow Apr 19 '18 at 19:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • 1
    Of course, there's no value in using \label{}, nor does report have an aspaper size (should probably be a4paper); just so you know... – Werner Apr 19 '18 at 16:33
  • If think this answer is what you need – BambOo Apr 19 '18 at 16:38
  • Thanks for your heads-up Werner. Do you happen to have a solution to my problem? I have other tables that have some value inside \label{} and their captions also don't align to the left of the document. – Michelle Apr 19 '18 at 16:39
  • If you want the caption on the left SIDE, then check out the sidecap package: mirror.hmc.edu/ctan/macros/latex/contrib/sidecap/sidecap.pdf – AML Apr 19 '18 at 16:41
  • Hi BambOo, thank you! The solution you pointed out worked! – Michelle Apr 19 '18 at 16:43

Load the caption package and the following \captionsetup code


enter image description here

  • Hi Myles, thank you. This worked! I assume this modifies the setup specifically for table captions? So, if I want captions for figure to behave differently it won't interfere right? – Michelle Apr 19 '18 at 16:47
  • Yes, to modify figure captions use \captionsetup[figure]. – Milo Apr 19 '18 at 16:49

Not the answer you're looking for? Browse other questions tagged or ask your own question.