summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/tabularray/tabularray.tex
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2024-02-17 03:01:13 +0000
committerNorbert Preining <norbert@preining.info>2024-02-17 03:01:13 +0000
commit8886ad587a305595ce543a74b0fc779f0732a6e9 (patch)
tree25f6e576a52343cad4a3b56b2f669e09432211b8 /macros/latex/contrib/tabularray/tabularray.tex
parenta6e02d45ad0d10cfc3256fc91abe80d6228325a4 (diff)
CTAN sync 202402170301
Diffstat (limited to 'macros/latex/contrib/tabularray/tabularray.tex')
-rw-r--r--macros/latex/contrib/tabularray/tabularray.tex29
1 files changed, 24 insertions, 5 deletions
diff --git a/macros/latex/contrib/tabularray/tabularray.tex b/macros/latex/contrib/tabularray/tabularray.tex
index 3c050a4537..3a1404310f 100644
--- a/macros/latex/contrib/tabularray/tabularray.tex
+++ b/macros/latex/contrib/tabularray/tabularray.tex
@@ -1,7 +1,7 @@
% -*- coding: utf-8 -*-
% !TEX program = lualatex
\documentclass[oneside]{book}
-\newcommand*{\myversion}{2023A}
+\newcommand*{\myversion}{2024A}
\newcommand*{\mylpad}[1]{\ifnum#1<10 0\the#1\else\the#1\fi}
\usepackage[a4paper,margin=2.5cm]{geometry}
@@ -1570,6 +1570,7 @@ there are several other outer specifications which are described in Table~\ref{k
\K{long} & change the table to a long table & \None \\
\K{tall} & change the table to a tall table & \None \\
\K{expand} & you need this key to use verb commands & \None \\
+ \K{expand+} & like \K{expand} but appends to previous values & \None \\
\end{spectblr}
\subsection{Set Baseline in Another Way}
@@ -1607,19 +1608,27 @@ In contrast to traditional \verb!tabular! environment, \verb!tabularray! environ
need to see every \verb!&! and \verb!\\! when splitting the table body with \verb!l3regex!.
And you can not put cell text inside any table command defined with \verb!\NewTableCommand!.
But you could use outer key \verb!expand! to make \verb!tabularray! expand
-every occurrence of a specified macro \underline{once} before splitting the table body.
+every occurrence of any of the specified macros \underline{once} and \underline{in the given oder} before splitting the table body.
Note that you \underline{can not} expand a command defined with \verb!\NewDocumentCommand!.
+You can also use \verb!expand+! if you still want to keep the macros in the current \verb!expand! setting.
To expand a command without optional argument, you can define it with \verb!\newcommand!.
\begin{demohigh}
-\newcommand*\tblrbody{
- \hline
+\newcommand*\tblrrowa{
20 & 30 & 40 \\
+}
+\newcommand*\tblrrowb{
50 & 60 & 70 \\
+}
+\newcommand*\tblrbody{
+ \hline
+ \tblrrowa
+ \tblrrowb
\hline
}
-\begin{tblr}[expand=\tblrbody]{ccc}
+\SetTblrOuter{expand=\tblrbody\tblrrowa}
+\begin{tblr}[expand+=\tblrrowb]{ccc}
\hline
AA & BB & CC \\
\tblrbody
@@ -2865,6 +2874,16 @@ We can also use color series of \verb!xcolor! package to color table rows:
\end{tblr}
\end{demohigh}
+\section{Library \texttt{hook}}
+
+This library is experimental, please see\\
+\url{https://github.com/lvjr/tabularray/wiki/HooksAndVariables}.
+
+\section{Library \texttt{html}}
+
+This library is experimental, please see\\
+\url{https://github.com/lvjr/tabularray/wiki/HooksAndVariables}.
+
\section{Library \texttt{nameref}}
From version 2022D, you can load \verb!nameref! library