Skip to content

Row specification in longtblr are not repeated on all pages #572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
celdorwow opened this issue Jan 4, 2025 · 0 comments
Open

Row specification in longtblr are not repeated on all pages #572

celdorwow opened this issue Jan 4, 2025 · 0 comments

Comments

@celdorwow
Copy link

Hello,

I have a long table created in longtblr env., which is working all right but I 'd have a small issue.

Currently, rowhead works such that row specifications as well as its content are repeated across multiple pages. If I set row{2} = {abovesep=3pt}, however, only the second row on the first page is affected. Nothing happens on on consecutive pages.

Here's the MWE, where I specify spacing for the first row (header), the second row, and the last row.
As can be seen, the first row header works all right, but only the second row on the first page gets affected by abovesep=3pt as well as only the last row on the last page get affected by belowsep=3pt.
I'd like these specs to be repeated on every page, as well.

Is it possible? Frankly, I don't know if it's more a feature request or a bug.

Cheers!

\documentclass[twocolumn]{article}
\usepackage[svgnames]{xcolor}
\usepackage{tabularray}
\usepackage{kantlipsum}

\UseTblrLibrary{booktabs,siunitx}

\title{Longtable}
\author{First Last}
\date{}


\begin{document}
\maketitle

\kant[1]\kant[2]\kant[3]

\begin{longtblr}[
  caption = {Table caption}
  ]{
  width=0.75\linewidth,
  rowhead = 1,
  colspec = {Q[l] X[c] Q[c,si={table-format=3.3}]},
  rows = {rowsep=0pt},
  row{1} = {rowsep=3pt},
  row{2} = {abovesep=3pt},
  row{Z} = {belowsep=3pt},
  hline{1,2,Z} = {wd=\heavyrulewidth},
  }
  {{{Numbers}}} & {{{Week}}} & {{{Values}}} \\
  One   & Monday    & 123.4 \\
  Two   & Tuesday   & 56.78 \\
  Three & Wednesday & 9.012 \\
  Four  & Thursday  & 345.6 \\
  Five  & Friday    & 78.9  \\
  Six   & Saturday  & 123.4 \\
  Seven & Sunday    & 56.78 \\
  Eight & Monday    & 9.012 \\
  Nine  & Tuesday   & 345.6 \\
  Ten   & Wednesday & 78.9  \\
  One   & Thursday  & 123.4 \\
  Two   & Friday    & 56.78 \\
  Three & Saturday  & 9.012 \\
  Four  & Sunday    & 345.6 \\
  Five  & Monday    & 78.9  \\
  Six   & Tuesday   & 123.4 \\
  Seven & Wednesday & 56.78 \\
  Eight & Thursday  & 9.012 \\
  Nine  & Friday    & 345.6 \\
  Ten   & Saturday  & 78.9  \\
  One   & Sunday    & 123.4 \\
  Two   & Monday    & 56.78 \\
  Three & Tuesday   & 9.012 \\
  Four  & Wednesday & 345.6 \\
  Five  & Thursday  & 78.9  \\
  Six   & Friday    & 123.4 \\
  Seven & Saturday  & 56.78 \\
  Eight & Sunday    & 9.012 \\
  Nine  & Monday    & 345.6 \\
  Ten   & Tuesday   & 78.9  \\
  One   & Wednesday & 123.4 \\
  Two   & Thursday  & 56.78 \\
  Three & Friday    & 9.012 \\
  Four  & Saturday  & 345.6 \\
  Five  & Sunday    & 78.9  \\
  Six   & Monday    & 123.4 \\
  Seven & Tuesday   & 56.78 \\
  Eight & Wednesday & 9.012 \\
  Nine  & Thursday  & 345.6 \\
  Ten   & Friday    & 78.9  \\
  One   & Saturday  & 123.4 \\
  Two   & Sunday    & 56.78 \\
  Three & Monday    & 9.012 \\
  Four  & Tuesday   & 345.6 \\
  Five  & Wednesday & 78.9  \\
  Six   & Thursday  & 123.4 \\
  Seven & Friday    & 56.78 \\
  Eight & Saturday  & 9.012 \\
  Nine  & Sunday    & 345.6 \\
  Ten   & Monday    & 78.9  \\
  One   & Tuesday   & 123.4 \\
  Two   & Wednesday & 56.78 \\
  Three & Thursday  & 9.012 \\
  Four  & Friday    & 345.6 \\
  Five  & Saturday  & 78.9  \\
  Six   & Sunday    & 123.4 \\
  Seven & Monday    & 56.78 \\
  Eight & Tuesday   & 9.012 \\
  Nine  & Wednesday & 345.6 \\
  Ten   & Thursday  & 78.9  \\
  One   & Friday    & 123.4 \\
  Two   & Saturday  & 56.78 \\
  Three & Sunday    & 9.012 \\
  Four  & Monday    & 345.6 \\
  Five  & Tuesday   & 78.9  \\
  Six   & Wednesday & 123.4 \\
  Seven & Thursday  & 56.78 \\
  Eight & Friday    & 9.012 \\
  Nine  & Saturday  & 345.6 \\
  Ten   & Sunday    & 78.9  \\
  One   & Monday    & 123.4 \\
  Two   & Tuesday   & 56.78 \\
  Three & Wednesday & 9.012 \\
  Four  & Thursday  & 345.6 \\
  Five  & Friday    & 78.9  \\
  Six   & Saturday  & 123.4 \\
  Seven & Sunday    & 56.78 \\
  Eight & Monday    & 9.012 \\
  Nine  & Tuesday   & 345.6 \\
  Ten   & Wednesday & 78.9  \\
\end{longtblr}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant