Is there a way to use the caption style defined in the caption package for a longtblr?
To format table captions, I am using the caption package as follows:
\usepackage[
hypcap=true,
format=hang,
font={footnotesize, sf},
labelfont={bf},
margin=0cm,
aboveskip=8pt,
singlelinecheck=off,
]{caption}
This works well for small tables (without page breaks / page continuation):
\begin{table}[!htbp]
\captionsetup{type=table}
\caption{A small table}
\begin{tblr}{l X[r] X[r] X[r]}
a & b & c & d \\
a & b & c & d \\
a & b & c & d \\
\end{tblr}
\end{table}
However, the style is not used in my long table. I had a look into the tabularray documentation (Section 4.2.1), but all I was able to find, is related to the caption contents, not its style. According to the caption documentation (Introduction), caption does not deal with caption contents, but caption style only:
Please note that the caption package is only controlling the look & feel of the captions.
Is there a way to combine the longtblr environment with the caption style defined with the caption package?
The MWE is as follows:
\documentclass{article}
\usepackage{tabularray}
\usepackage[
hypcap=true,
format=hang,
font={footnotesize, sf},
labelfont={bf},
margin=0cm,
aboveskip=8pt,
singlelinecheck=off,
]{caption}
\begin{document}
\begin{table}[!htbp]
\captionsetup{type=table}
\caption{A small table}
\begin{tblr}{l X[r] X[r] X[r]}
a & b & c & d\
a & b & c & d\
a & b & c & d \
\end{tblr}
\end{table}
\begin{longtblr}[
caption = A long table,
]{
colspec = {l X X},
rowhead = 1, rowfoot = 0,
}
Head & Head & Head \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
Alpha & Beta & Gamma \
Epsilon & Zeta & Eta \
Iota & Kappa & Lambda \
Nu & Xi & Omicron \
Rho & Sigma & Tau \
Phi & Chi & Psi \
\end{longtblr}
\end{document}