I use the gb4e package to make numbered examples. I'm wanting to include a tabular environment within the example, where the example number is aligned with the first row of the table. If I use a regular tabular environment or tabularray's tblr environment, this works fine, and looks like this:
However, if I try to change it to a longtblr environment to allow the table to break across pages, the first row is below the example number:
I've tried changing the alignment option to things other than [t], and set all the tblr template parameters to empty or 0 that might affect the spacing, such as presep or headsep, but nothing seems to get rid of the space. How do I make a longtblr environment look like example (1) rather than example (2)?
Here you can find a minimal working example that creates both environments:
\documentclass{article}
\usepackage{tabularray}
\usepackage{gb4e}
\noautomath
\NewTblrTheme{example}{
\SetTblrTemplate{caption}{empty}
\SetTblrTemplate{contfoot}{empty}
\SetTblrTemplate{conthead}{empty}
\SetTblrTemplate{head}{empty}
\SetTblrTemplate{foot}{empty}
\SetTblrTemplate{headsep}{0}
\SetTblrTemplate{presep}{0}
\SetTblrTemplate{footsep}{0}
\SetTblrTemplate{postsep}{0}
\SetTblrTemplate{remark}{empty}
\SetTblrTemplate{note}{empty}
}
\NewTblrEnviron{exetblr}
\SetTblrOuter[exetblr]{
theme=example,
l,
long
}
\begin{document}
\begin{exe}
\ex
\begin{tblr}[t]{l l }
test & test \\
test & test \\
test & test \\
\end{tblr}
\end{exe}
\begin{exe}
\ex
\begin{exetblr}[t]{l l}
test & test \\
test & test \\
test & test \\
\end{exetblr}
\end{exe}
\end{document}
Thanks for the help!


tblrislong, the package leaves horizontal mode to get the current page total. it also inserts first positive then negative skip. so it is no longer on the current line at all.