I try to left align the caption to my table. When I use the according code it is indeed left-aligned but is more left than the table. How could I fix this?
Thanks a lot,
Julia
this is my code:
\documentclass{article}
\usepackage[utf8]{inputenc,caption}
\usepackage{booktabs}
\usepackage{siunitx}
\captionsetup{labelfont=bf,
justification=raggedright,
singlelinecheck=false}
\begin{document}
\begin{table}[htbp]
\centering
\caption{Percentage of Missing Values in the Analysis Variables}
\begin{tabular}{lS}
\textbf{Variable} & {Percent missing}\\
\toprule
\textbf{x} & 9.37 \\
\textbf{Lxon} & 0.94 \\
\textbf{x} & 0 \\
\textbf{x} & 0.04 \\
\textbf{x} & 0.34 \\
\textbf{Exl} & 7.93 \\
\textbf{Rxe} & 15.32 \\
\textbf{Sxm} & 8.69 \\
\textbf{Txal} & 4.43 \\
\textbf{x} & 1.33 \\
\textbf{Nxnces} & 0.9 \\
\textbf{xs} & 1.12 \\
\textbf{Fxans} & 0 \\
\textbf{xxation} & 2.4 \\
\textbf{Cxon} & 0.58 \\
\textbf{xg} & 0 \\
\textbf{x x} & 0.22 \\
\textbf{x to x from x o. x} & 1.03 \\
\textbf{x to x} & 0.76 \\
\textbf{x} & 0.99 \\
\textbf{x} & 0.09 \\
\textbf{x} & 0.83 \\
\bottomrule
\end{tabular}%
\label{tab:addlabel}%
\end{table}%
\end{document}
singlelinecheck=false
to what you want?