Skip to content

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

Closed

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}

Activity

  1. locked and limited conversation to collaborators on Dec 20, 2024
  2. converted this issue into a discussion #557 on Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions