Captions – How to Omit Caption of Continued Table on Second Page Using Tabularray

captionstabularray

In my MWE I can omit the caption of the table when it starts. but as soon as it breaks over to the next page I get the caption.

I want to have no caption at all.

\documentclass{scrartcl}

\usepackage{lipsum}
\usepackage{tabularray}

\begin{document}
\begin{tblr}[%
  label=none,
  entry=none,
  long
  ]{rowhead=1,
    colspec={X}}
  My text\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
\end{tblr}
\end{document}

enter image description here

Best Answer

You can use \DefTblrTemplate{middlehead,lasthead}{default}{} and \DefTblrTemplate{firstfoot,middlefoot}{default}{} to hide caption and foot.

\documentclass{scrartcl}

\usepackage{lipsum}
\usepackage{tabularray}

\begin{document}
\DefTblrTemplate{middlehead,lasthead}{default}{}
\DefTblrTemplate{firstfoot,middlefoot}{default}{}
\begin{tblr}[%
  label=none,
  entry=none,
  long
  ]{rowhead=1,
    colspec={X}}
  My text\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
  \lipsum[1]\\
\end{tblr}
\end{document}

enter image description here

Related Question