Using width for caption introduces offset of said caption

by   Last Updated September 11, 2019 14:23 PM - source

I wanted to use


To adjust the width of my caption to the width of the table. However, it introduces a significant offset of the caption.

Without the setting above:

%% Sets page size and margins
%% set width of captions to width of table
  \caption{\label{tab:tab}Bliblablubb, why does this have an offset I wonder? Bliblablubb, why does thi
    \textbf{asdasd} & \textbf{cvbcvbce} & asdasdasdasds & sdsdsdsdsdsdsds& sdsdsdsdsdssd\\
         asdf           &            &    &      &   \\
                        &            &    &      &   \\
                        &            &    &      &   \\
                        &            &    &      &   \\   

Table and caption look like this:

No offset of caption but it is too wide

If I comment in the \usepackage[width=0.75\textwidth]{caption} line, it looks like this:

enter image description here

While the caption has the right width, it is significantly offset. I do not understand the reason for this.

Tags : captions

Related Questions

Caption figure in Latex

Updated March 28, 2015 14:07 PM

Specify Figure name color and slant

Updated April 14, 2015 22:10 PM

Many indexes on the same figure

Updated July 17, 2015 17:10 PM