Skip to content

How to use rowcount, rownum, colcount, and colnum variables in hooks #556

@kalekje

Description

@kalekje

I would like to use these variables to create a custom TableCommand. How do I access these variables? Please see MWE below.


\documentclass{scrartcl}
\usepackage{luacode}
\usepackage{tabularray}

\UseTblrLibrary{hook}



\AddToHook{tabularray/cell/before}{-}
\AddToHook{tabularray/cell/after}{-}

\begin{document}

\begin{tblr}{|l|l|l|}
  rownum, colnum & rownum, colnum & rownum, colnum\\
\end{tblr}

\end{document}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions