I am using the following:

justification=centering, labelsep=period,
singlelinecheck=off, font=bf]{caption}

however, then using sidewaystable I am getting a centered:

          Table I. My Caption is here behind the numbering

but when using tablenormal, I get centered:

                 Table I
  My Caption is here below the numbering

How can I make my sidewaystable behave like the normal tablesetup?

Just fyi, the above caption setup is used for my figures:

Figure 1. Some short caption (which shows in the list of figures). HERE HERE some longer 
description which do not pop up in the list of figures.

edit: adding a screenshot: Sidewaystable without new line, normal table line break

edit2: I include everything I have in the preamble and the way I do the tables. I hope I captured everything that might cause the issue (and sorry for the long code)

\usepackage{etex} %Because of many packages --> Extended TeX.
\usepackage[left=4cm, right=3cm, top=3cm, bottom=3cm]{geometry} %Helps to structure the paper layout.
\usepackage[Lenny]{fncychap} %Design of the thesis.
\usepackage[utf8]{inputenc} %Due to vowels.
\usepackage[british]{babel} %Define the language style.
\usepackage{dsfont} %Nice style for the indicator function.
\usepackage{fancyhdr} %To customize the headers and footers.
\usepackage{booktabs} %In case you need \cmidrule or \addlinespace in tables.
\usepackage[hang,bottom,stable,multiple]{footmisc} %Style of footnotes.
\usepackage{appendix} %For the \appendixpage command.
%Load some mathematical packages.
\usepackage[sort,round]{natbib} %For the bibliography.
\usepackage{etoolbox} %To remove the page number on \appendixpage.
\usepackage{amsthm} %For theorems, definitions etc.
\usepackage{thmtools} %For theorems, definitions etc.
\usepackage{setspace} %Use double spacing.
\usepackage{lipsum} %For the \lipsum command to generate a text.
\usepackage{datetime} %For the specification of the date.
%\usepackage{tocloft} %The ToC, LoF and LoT each appear not necessarily on a new page.
%\usepackage{mcode} %To implement a Matlab code.
\usepackage[margin=0pt, font=small, labelfont=bf, labelsep=endash]{caption} %Customize the captions.
\usepackage{chngcntr} %To use counterwithout.
\usepackage{epstopdf} %For inserting .eps files into the document.
\usepackage{hyperref} %Must be loaded at the end.
\usepackage{xparse} %Load for \NewDocumentCommand command.
\usepackage{cleveref} %For the command \cref, load after hyperref.
\usepackage{arydshln} %Due to the capability to draw horizontal/vertical dash-lines.
\usepackage{array,hhline} %To create tables and matrices.
\usepackage{rotating} %To rotate a table.
\usepackage{tabularx} %An extended version of tabular.
\usepackage{pdflscape, longtable}

\usepackage[justification=centering, labelsep=period,
singlelinecheck=off, font=bf]{caption}




%Setup of the reference links.

%Define some reasonable margins.

\bibliographystyle{abbrvnat} %Reference style.
\allowdisplaybreaks[1] %Page breaks of equations are allowed, but avoided if possible. 2-4 more relaxed.

%New command for the HSG logo.

%New command for the differential d to have an ordinary d.

%Remove page number on \appendixpage. Use the package 'etoolbox'.

%Declare Definitions, Theorems etc.
\declaretheorem[style=definition,qed=$\blacktriangleleft$, numberwithin=section]{remark} %additional options; numberwithin=,..., see 'Thmtools' Users’ Guide

%%%%%%%%%% Journal of Finance %%%%%%%%%%

%%%%%%%%%% Footnote Issue %%%%%%%%%%

% Footnotes
\setlength{\myFootnoteLabel}{1.2em}% <-- can be changed to any valid value
    \noindent\makebox[\myFootnoteLabel][r]{\@makefnmark\ }%

%%%%%%%%%% End: Footnotes Issue %%%%%%%%%%

% we need a period (.) after sectioning numbers, but not in cites thereto.
\renewcommand{\@seccntformat}[1]{{\csname the#1\endcsname}.\hspace{0.5em}}

    %\sbox\@tempboxa{\footnotesize{\textbf{#1.}} footnotesize#2}%
    %\sbox\@tempboxa{\textbf{#1.} footnotesize#2}%
    \footnotesize\textbf{#1.} \footnotesize#2
    \ifdim \wd\@tempboxa >\hsize
    \textbf{#1. #2}\par
    \global \@minipagefalse


    \vskip\abovecaptionskip %Same size for Numbering and Caption of Tables
    % \sbox\@tempboxa{\textbf{#1.} #2}%
    % \global \@minipagefalse
    % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%



%%%%%%%%%% End: Journal of Finance%%%%%%%%%%

\captionsetup[figure]{justification = justified}
\captionsetup[subfigure]{margin={0cm, 1cm}, font=md, justification = justified}


%Readjust the numbering.

%\setlength{\parindent}{0cm} %Uncomment this if you don't want to have indents.


%Special header and footer style for the executive summary and Task Assignment section.

%Customize headers and footers.
%\fancyfoot[L]{[ Your Name ]}
%\fancyfoot[R]{[ Running Master Thesis Title ]}

%Define the signature line with dots.
\NewDocumentCommand \dotbox {o O{.5\linewidth} m O{3ex} O{\linewidth}}


        \caption{Summary Statistics of the Short Leg of the Pairs Trading Strategy}

    \setlength\tabcolsep{0.1pt}  % default value: 6.0pt

    \caption{Performance Measures } \label{tab:PerfMeas}

            { @{\extracolsep{\fill}} l *{8}{d{-2.4}} }

  • 1
    I cannot reproduce your problem. Please give us an example document which shows it, enabling us to help you. BTW: labelsep=newline,labelsep=period is identical with labelsep=period so you should not get a newline as separator at all.
    – user2574
    May 20, 2018 at 5:29
  • thank you, @AxelSommerfeldt: I added a screenshot. It's a large file, I wouldn't what to and want not to take out. The preamble is a collection of what I've added in there via the internet, unfortunately not very structured.
    – eternity1
    May 20, 2018 at 5:35
  • We need an example document which shows the problem, otherwise I don't see a way helping you. minimalbeispiel.de/mini-en.html
    – user2574
    May 20, 2018 at 10:46

1 Answer 1


You redefine \@makecaption (which typesets captions) for table captions, but not for sidewaystable captions:

    \vskip\abovecaptionskip %Same size for Numbering and Caption of Tables
    % \sbox\@tempboxa{\textbf{#1.} #2}%
    % \global \@minipagefalse
    % \hb@xt@\hsize{\hfil\box\@tempboxa\hfil}%


Since you use your own code for table captions, this code will be used for table captions and the one from the caption package will be used for sidewaystable captions. And especially they look different because of this.

I recommended either using the caption package (and simple remove your own definitions of \@makecaption), or using your own caption code (and drop the usage of the caption package), but not a mixture of both. (Same for figures since you use your very own code for figure captions as well.)

  • thank you very much for this, @Axel Sommerfeldt. I tried to redefine \@makecpationfor the sidewaytable. It pops up an error. \renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@float{sidewaystable}}. What do I need to change?
    – eternity1
    May 20, 2018 at 19:54
  • 1
    @eternity1 \renewcommand{\sidewaystable}{\let\@makecaption\@maketblcaption\@rotfloat{table}}
    – user2574
    May 21, 2018 at 10:26
  • Thank you very much @Axel Sommerfeldt: That's the solution!
    – eternity1
    May 22, 2018 at 0:53

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .