I'm getting a to-me strange behavior when using scrartcl
and subcaption
. In particular, numbering is doubled for each table with the default option captions=tableheading
. Here's an image (code at the end) with captions=tablesignature
, notice how the counter only increase by one if the caption is below the table (I'm not suggesting any causality here):
Here's the output when I switch to captions=tableheading
:
I looked through the manuals of KOMA-Script
, caption
and subcaption
but I didn't find anything that would suggest this behavior. Is it a feature? It's appreciate any hint on why this occur.
Here's the source
% bug(?), default setting for captions
\documentclass[captions=tablesignature]{scrartcl} %% same with scrreprt
% \documentclass[captions=tableheading]{scrartcl} % no bug
\usepackage{subcaption}
\setkomafont{caption}{\LARGE}
\begin{document}
\begin{table}
\caption{table one\label{tab:ind}}
\begin{subtable}[t]{.45\linewidth}
\caption{expenses}
\centering
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gnus & 3000\\
\hline
\textsc{(i)} & gnash & 146000\\
\hline
\end{tabular}
\end{subtable}
\qquad
\begin{subtable}[t]{.45\linewidth}
\caption{income}
\centering
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gnog & 100000\\
\hline
\textsc{(ii)} & gnus & 100000\\
\hline
\end{tabular}
\end{subtable}
\end{table}
\begin{table}
%% \caption{table two\label{tab:ind2}}
\begin{subtable}[t]{.45\linewidth}
\caption{expenses}
\centering
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gnus & 3000\\
\hline
\textsc{(i)} & gnash & 146000\\
\hline
\end{tabular}
\end{subtable}
\qquad
\begin{subtable}[t]{.45\linewidth}
\caption{income}
\centering
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gnog & 100000\\
\hline
\textsc{(ii)} & gnus & 100000\\
\hline
\end{tabular}
\end{subtable}
%% could also use \captionbelow
\caption{table two\label{tab:ind2}}
\end{table}
\begin{table}
\caption{table three}
\begin{subtable}[t]{.45\linewidth}
\caption{expenses}
\centering
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gnog & 370000\\
\hline
\textsc{(iii)} & gug & 552000\\
\hline
\end{tabular}
\end{subtable}
\qquad
\begin{subtable}[t]{.45\linewidth}
\caption{income\label{tab:ind3}}
\begin{tabular}{llr}
\hline
& Konto & \textsc{dkk}\\
\hline
& gmag & 100000\\
& glog & 218000\\
\hline
\textsc{(iv)} & gnus & 318000\\
\hline
\end{tabular}
\end{subtable}
\end{table}
\end{document}
cat-version: 3.3 (2013-02-03)
and for KOMA-Scriptcat-version: 3.11b
. Now that you point it out there is a newer version of caption on CTAN which I haven't tried since TeX Live 2012 froze and TeX Live 2013 isn't released. IS that the version you're using? – Rasmus May 22 '13 at 10:54