The tables were compiling perfectly with TeX2011. With TeX2015, the message reads as
Here's a MWE code that shows the problem. Apparently, there's something wrong in the caption setup, but I don't see what. I've consulted the caption package documentation, and didn't found the mistake yet :Package caption Error: Can be used only in preamble.
Code: Select all
\documentclass[12pt,letterpaper,twoside]{book}
\usepackage{booktabs}
\usepackage[dvipsnames,table]{xcolor}
\usepackage{subfig}
\captionsetup[table]{tablename=Table,labelfont={bf,up}}
\begin{document}
\begin{table}
\centering
\begin{tabular}{cl*5{>{\centering\arraybackslash}p{1cm}}}
\arrayrulecolor{black}
\toprule[1.5pt]
\toprule[0.5pt]
$A$ & & $B$ & $C$ & $D$ & $E$ & $F$ \\
\midrule
1 & Word 1 : & $1$ & $0$ & $3$ & $1$ & $1$ \\[4pt]
2 & Word 2 : & $0$ & $1$ & $4$ & $1$ & $1$ \\[4pt]
3 & Word 3 : & $2$ & $0$ & $3$ & $4$ & $1$ \\[2pt]
\bottomrule[0.5pt]
\bottomrule[1.5pt]
\end{tabular}
\caption[Bla bla]{Bla bla bla.}
\end{table}
\end{document}
\captionsetup
line from the preamble, the error message is gone.So what is wrong here ? Why the error message ?