I've been trying to type set a mark scheme using longtblr from tabulararray but I'm running into what I can only describe as a brick wall.
I want to force the page breaks to only happen at after the complete question and a line between sub parts
\documentclass{article} \usepackage{tabularray} \UseTblrLibrary{booktabs} \newcommand{\pbreak}{\nopagebreak\midrule} % Break between parts of a solution \newcommand{\sbreak}{\nopagebreak\midrule} % Breaks between 1a and 1b for example, not allow page breaks \newcommand{\qbreak}{\midrule} % Breaks between questions, allow page breaks \begin{document} \begin{longtblr}{ colspec={l c Q[l]}, width=\linewidth } \toprule Q & Part & Marks \\ \midrule 1 & a & comments \\ \sbreak 1 & b & more comments \\ \qbreak 2 & & question with multi line problems \\ \pbreak & & more working here as well \\ \qbreak 3 & & another question with multi line problems \\ \pbreak & & more working here as well \\ \bottomrule \end{longtblr} \end{document} I would expect this to look like:
================================================== Q Part Marks -------------------------------------------------- 1 a comments -------------------------------------------------- 1 b more comments -------------------------------------------------- 2 question with multi line problems more working here as well -------------------------------------------------- 3 another question with multi line problems more working here as well ================================================== But instead I get this which is nothing like what I would expect.

