Jouke <[email protected]> writes:

> I'm trying to use reftex with the longtblr environment from the
> tabularray package.  Tables are defined as
>
> \begin{longtblr}
>   [label={"some label"},caption={"some caption"}]
>   {colspec={ccc}}
>   a&b&c\\
> \end{longtblr}
>
> so there is no \label{} in the definition. I've tried to play around
> with reftex-label-alist but to no avail. Can sombody please point me
> in the right direction (if this is even possible).

I presume you're using RefTeX and AUCTeX.  In that case, AUCTeX has some
code to plug tabularray into RefTeX[1].  It should work OOTB if you have
set `TeX-parse-self' to t, otherwise hit 'C-c C-n' in your .tex file.
I tried it with this small file:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{tabularray}
\begin{document}

\begin{longtblr}[%
  caption={some caption},%
  label={some_label}
  ]{colspec={ccc}}
  a&b&c\\
\end{longtblr}
\end{document}

%%% Local Variables:
%%% mode: LaTeX
%%% TeX-master: t
%%% End:
--8<---------------cut here---------------end--------------->8---

and this is what I see when trying to reference a label:
Best, Arash

Footnotes:
[1]  
https://cgit.git.savannah.gnu.org/cgit/auctex.git/tree/style/tabularray.el#n420

Reply via email to