### Themes and Styles for tabularray Tables Source: https://context7.com/texackers/tabularray/llms.txt Explains how to define and apply custom themes using \NewTblrTheme and customize template styles with \SetTblrStyle for consistent table formatting. Includes an example of customizing continuation text. ```latex % Define a custom theme \NewTblrTheme{professional}{ \SetTblrStyle{firsthead}{font=\bfseries\large} \SetTblrStyle{firstfoot}{fg=gray5} \SetTblrStyle{middlefoot}{\itshape} \SetTblrStyle{caption-tag}{fg=blue3, font=\bfseries} \SetTblrStyle{caption-sep}{fg=blue3} } % Apply theme to a long table \begin{longtblr}[ theme = professional, caption = {Professional Table}, label = {tbl:pro}, ]{ colspec = {lXr}, rowhead = 1, } \toprule ID & Description & Value \\ \midrule 1 & First item & 100 \\ 2 & Second item & 200 \\ \bottomrule \end{longtblr} % Customize continuation text templates \DeclareTblrTemplate{contfoot-text}{custom}{Table continues on next page...} \SetTblrTemplate{contfoot-text}{custom} ``` -------------------------------- ### Compile Test Files Source: https://github.com/texackers/tabularray/blob/main/CONTRIBUTING.md Execute this command after editing the source code to compile and check the test files. Ensure l3build and ppmcheckpdf are installed. ```bash l3build check ``` -------------------------------- ### Configure Inner Specifications for Table Formatting Source: https://context7.com/texackers/tabularray/llms.txt Provides a comprehensive example of inner specifications controlling column and row formatting, global spacing, span algorithms, line styling, and cell/row/column styling. These are placed in the mandatory argument of the \texttt{tblr} environment. ```latex \begin{tblr}{ % Column and row specifications colspec = {lcr}, rowspec = {|Q[t]|Q[m]|Q[b]|}, width = \linewidth, % Global spacing rowsep = 4pt, colsep = 8pt, rulesep = 2pt, stretch = 1.2, % Span algorithms hspan = even, % default, even, or minimal vspan = even, % default or even % Table baseline baseline = m, % t, T, m, b, B, or row number % Line styling hlines, vlines, hline{1,Z} = {2pt}, vline{1} = {dashed}, % Cell, row, column styling cells = {c}, rows = {bg=white}, columns = {font=\sffamily}, row{1} = {bg=blue7, fg=white}, column{1} = {l, wd=3cm}, cell{2}{3} = {r=2,c=2}{c, bg=red7}, } % Table content here \end{tblr} ``` -------------------------------- ### Blank Page After Section Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects an issue causing a blank page when a `\section` command starts at the top of a page. ```latex Fix blank page after `\section` starts at the top of a page (#42) ``` -------------------------------- ### Custom Environments and Column Types in tabularray Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates creating reusable table environments with \NewTblrEnviron, \SetTblrInner, and \SetTblrOuter. Also shows defining custom column types using \NewTblrColumnType. ```latex % Define a custom table environment \NewTblrEnviron{mytblr} \SetTblrInner[mytblr]{ hlines = {gray5}, vlines = {gray5}, row{1} = {bg=blue7, fg=white, font=\bfseries}, row{2-Z} = {bg=blue9}, } \SetTblrOuter[mytblr]{ long, label = none, } % Use the custom environment \begin{mytblr}{XXX} Header 1 & Header 2 & Header 3 \\ Data A & Data B & Data C \\ Data D & Data E & Data F \\ \end{mytblr} % Define custom column types \NewTblrColumnType{Y}[1][]{Q[co=1,c,#1]} \NewTblrColumnType{Z}[1][6em]{Q[c,wd=#1]} % Use custom column types \begin{tblr}{|Y|Y|Z[8em]|} \hline Centered X & Centered X & Fixed 8em \\ \hline \end{tblr} ``` -------------------------------- ### Basic and Styled `tblr` Environment Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates the basic `tblr` environment with automatic spacing and a styled version using key-value specifications for column types, width, and row-specific formatting. ```latex % Basic table with automatic spacing \begin{tblr}{lccr} \hline Alpha & Beta & Gamma & Delta \\ \hline Epsilon & Zeta & Eta & Theta \\ \hline Iota & Kappa & Lambda & Mu \\ \hline \end{tblr} ``` ```latex % Table with key-value styling \begin{tblr}{ colspec = {|X[2,l]|X[3,l]|X[-1,r]|X[r]|}, width = 0.8\linewidth, hlines, row{1} = {bg=azure3, fg=white, font=\bfseries}, row{odd} = {bg=azure8}, } Header 1 & Header 2 & Header 3 & Header 4 \\ Alpha & Beta & Gamma & Delta \\ Epsilon & Zeta & Eta & Theta \\ \end{tblr} ``` -------------------------------- ### Hlines and Vlines Configuration Source: https://context7.com/texackers/tabularray/llms.txt Shows how to configure horizontal and vertical lines using the `hlines` and `vlines` options for global styling, and selective styling for specific lines. ```latex % Using hlines and vlines options \begin{tblr}{ hlines = {1pt, blue3}, vlines = {red3, dashed}, } Alpha & Beta & Gamma \\ Epsilon & Zeta & Eta \\ \end{tblr} ``` ```latex % Selective line styling \begin{tblr}{ hline{1,Z} = {2pt, purple3}, hline{2} = {1pt, solid}, hline{3-Y} = {dashed}, vline{1,5} = {3-4}{dotted}, } Alpha & Beta & Gamma & Delta \\ Epsilon & Zeta & Eta & Theta \\ Iota & Kappa & Lambda & Mu \\ Nu & Xi & Omicron & Pi \\ \end{tblr} ``` ```latex % Traditional commands with options \begin{tblr}{llll} \hline[2pt,blue5] Alpha & Beta & Gamma & Delta \\ \hline[dashed] Epsilon & Zeta & Eta & Theta \\ \cline[dotted]{1-3} Iota & Kappa & Lambda & Mu \\ \hline[2pt,blue5] \end{tblr} ``` -------------------------------- ### Run Benchmark Script Source: https://github.com/texackers/tabularray/blob/main/benchmarks/README.md Execute the benchmark script with a specified TeX Live version. The output is saved to a file named `output-.txt`. ```bash lua benchmark.lua ``` -------------------------------- ### Cell/Row/Column Options Source: https://github.com/texackers/tabularray/wiki/ChangeLog Utilize `preto`, `appto`, and `cmd` options for cells, rows, or columns to prepend, append, or execute commands within these scopes. ```latex cells={preto=\ttfamily, appto=\large} ``` ```latex rows={cmd=\hline} ``` ```latex columns={cmd=\bfseries} ``` -------------------------------- ### Row and Column Styling Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates styling specific rows and columns using `row{i}` and `column{j}` keys for background, foreground, font, width, and alignment. ```latex % Row styling with colors and fonts \begin{tblr}{ hlines = {1pt, white}, row{1} = {bg=azure3, fg=white, font=\bfseries\sffamily}, row{odd} = {bg=azure8}, row{even} = {bg=gray8}, } Header 1 & Header 2 & Header 3 \\ Alpha & Beta & Gamma \\ Delta & Epsilon & Zeta \\ Eta & Theta & Iota \\ \end{tblr} ``` ```latex % Column styling with width and alignment \begin{tblr}{ colspec = {Q[l]Q[c]Q[r]}, column{1} = {bg=purple7, wd=3cm}, column{2} = {bg=yellow7}, column{3} = {bg=olive7, font=\itshape}, } Left & Center & Right \\ Alpha & Beta & Gamma \\ Epsilon & Zeta & Eta \\ \end{tblr} ``` ```latex % Math mode columns $\begin{tblr}{ column{1} = {mode=text}, column{3} = {mode=dmath}, } \hline Text & \frac{1}{2} & \frac{1}{2} \\ More & \frac{3}{4} & \frac{3}{4} \\ \hline \end{tblr}$ ``` -------------------------------- ### Avoid Warnings Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes a problem that caused 'need 0.0pt more!' warnings during compilation, leading to cleaner build logs. ```latex % No specific code example, but a fix applied to the package internals. ``` -------------------------------- ### Extendable X Columns in tabularray Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates the use of 'X' column types for automatic width expansion with configurable coefficients for proportional distribution. Negative coefficients can be used to set minimum widths. ```latex % Basic X columns with coefficients \begin{tblr}{|X[2,l]|X[3,l]|X[1,r]|X[r]|} \hline Coefficient 2 & Coefficient 3 & Coefficient 1 & Default (1) \\ \hline \end{tblr} % Setting table width with X columns \begin{tblr}{ width = 0.85\linewidth, colspec = {|X[l]|X[c]|X[r]|}, hlines, } Left aligned & Centered & Right aligned \\ Alpha Beta & Gamma & Delta Epsilon \\ \end{tblr} % Negative coefficients for minimum width \begin{tblr}{|X[2,l]|X[3,l]|X[-1,r]|X[r]|} \hline Wide & Wider & Narrow & Normal \\ \hline \end{tblr} ``` -------------------------------- ### Define New Table Environment Source: https://github.com/texackers/tabularray/wiki/ChangeLog Create custom `tblr` environments with `\NewTblrEnviron`, allowing for specialized table types tailored to specific needs. ```latex \NewTblrEnviron{env_name}[options]{...} ``` -------------------------------- ### Template Management Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides commands to define, set, use, and expand table templates, offering granular control over table structure and appearance. ```latex \DefTblrTemplate{name}{key}{content} ``` ```latex \SetTblrTemplate{name}{key}{content} ``` ```latex \UseTblrTemplate{name}{key} ``` ```latex \ExpTblrTemplate{name}{key} ``` -------------------------------- ### Compare Test Output Checksums Source: https://github.com/texackers/tabularray/blob/main/CONTRIBUTING.md Run this command after compiling test files to compare the MD5 checksums of the generated test outputs. This helps ensure code changes have not altered expected results. ```bash texlua buildend.lua ``` -------------------------------- ### Define and Use Functional Library for Dynamic Row Generation Source: https://context7.com/texackers/tabularray/llms.txt Shows how to define a function \makeRow to dynamically generate table rows and use it within a table specification with the \texttt{evaluate} option. Ensure \IgnoreSpacesOn and \IgnoreSpacesOff are used around function definitions. ```latex % Generate table content dynamically \IgnoreSpacesOn \prgNewFunction \makeRow {mm} { \prgReturn {#1 & #2 \\} } \IgnoreSpacesOff \begin{tblr}[evaluate=\makeRow]{hlines} Header & Value \\ \makeRow{Alpha}{100} \makeRow{Beta}{200} \makeRow{Gamma}{300} \end{tblr} ``` -------------------------------- ### Configure Outer Specifications for Table-Level Settings Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates outer specifications for table-level settings such as long table behavior, captions, notes, and macro expansion. These are placed in the optional argument of the \texttt{tblr} environment. ```latex \begin{tblr}[ % Table type long, % or tall for tall tables % Baseline (alternative location) baseline = T, % Caption and label caption = {Table Caption Text}, entry = {Short caption for LoT}, label = {tbl:example}, % Spacing around table presep = 12pt, postsep = 12pt, headsep = 6pt, footsep = 6pt, % Theme theme = mytheme, % Footnotes and remarks note{a} = {First note text.}, note{*} = {Starred note.}, remark{Note} = {General remark text.}, remark{Source} = {Data source information.}, % Macro expansion expand = \myMacro, expand+ = \anotherMacro, ]{colspec} % Table content \end{tblr} ``` -------------------------------- ### Caption and Capcont Templates Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides simple templates for table captions and continuation captions (`capcont`). ```latex Add simple template for caption and capcont (#70) ``` -------------------------------- ### Use Table Libraries Source: https://github.com/texackers/tabularray/wiki/ChangeLog Load external libraries like `booktabs`, `diagbox`, and `siunitx` using `\UseTblrLibrary` to extend tabularray's functionality. ```latex \UseTblrLibrary{booktabs, siunitx} ``` -------------------------------- ### Amsmath Library Array Environments Source: https://github.com/texackers/tabularray/wiki/ChangeLog Defines array-like environments such as `+array`, `+cases`, and `+pmatrix` using the `amsmath` library. ```latex Define `+array`, `+cases`, `+pmatrix` etc with `amsmath` library (#87) ``` -------------------------------- ### Generate Manual TeX File Source: https://github.com/texackers/tabularray/blob/main/CONTRIBUTING.md Run this command after editing subfiles in the manual folder to regenerate the main manual TeX file. ```bash texlua manual.lua ``` -------------------------------- ### New Border Interfaces Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces `hborder` and `vborder` interfaces for more granular control over horizontal and vertical borders. ```latex Add new interfaces `hborder` and `vborder` (#183) ``` -------------------------------- ### Long Tables with longtblr Source: https://context7.com/texackers/tabularray/llms.txt Illustrates creating tables that span multiple pages using the 'longtblr' environment. Supports headers, footers, captions, footnotes, and continuation text with various styling options. ```latex \begin{longtblr}[ caption = {A Long Table Example}, label = {tbl:long}, note{a} = {First footnote.}, note{b} = {Second footnote.}, remark{Note} = {General notes about the table.}, ]{ colspec = {XXX}, width = 0.9\linewidth, rowhead = 1, rowfoot = 1, row{1} = {bg=purple7, fg=white, font=\bfseries}, row{Z} = {bg=blue7, fg=white}, row{odd} = {bg=gray9}, row{even} = {bg=brown9}, } \hline Header A & Header B & Header C \\ \hline Data 1 & Data 2\TblrNote{a} & Data 3 \\ \hline Data 4 & Data 5\TblrNote{b} & Data 6 \\ \hline % ... more rows ... Footer A & Footer B & Footer C \\ \hline \end{longtblr} ``` -------------------------------- ### Normalize New/Def Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog Standardizes the behavior of `\NewSomeThing` and `\DefSomeThing` commands for better consistency. ```latex Normalize `\NewSomeThing` and `\DefSomeThing` commands (#115) ``` -------------------------------- ### Support \verb Command Source: https://github.com/texackers/tabularray/wiki/ChangeLog Enable support for the \verb command within tabularray tables using the 'verb' option. This allows for verbatim text display. ```latex \SetTblrStyle[options]{verb} ``` -------------------------------- ### Set Inner Specifications Source: https://github.com/texackers/tabularray/wiki/ChangeLog Replace `\SetTblrDefault` with `\SetTblrInner` for setting inner specifications of tables, offering a more consistent API for internal configurations. ```latex \SetTblrInner[tblr]{key=value} ``` -------------------------------- ### Counter Library for LaTeX Counters Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces the `counter` library, enabling manipulation and usage of LaTeX counters within tables. ```latex Add `counter` library for manipulating LaTeX counters (#89) ``` -------------------------------- ### Long Table Environment Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces the `longtblr` environment for creating tables that span multiple pages, with full support for headers, footers, and captions. ```latex \begin{longtblr}{...} ... \end{longtblr} ``` -------------------------------- ### Booktabs Library for Publication-Quality Tables Source: https://context7.com/texackers/tabularray/llms.txt Shows how to use the 'booktabs' library for professional table rules including \toprule, \midrule, \bottomrule, and \cmidrule. Supports trimming rules for better visual appearance. ```latex \UseTblrLibrary{booktabs} % Basic booktabs style \begin{tblr}{llll} \toprule Alpha & Beta & Gamma & Delta \\ \midrule Epsilon & Zeta & Eta & Theta \\ Iota & Kappa & Lambda & Mu \\ \bottomrule \end{tblr} % With customized rules and cmidrule trimming \begin{booktabs}{ colspec = lcccc, cell{1}{1} = {r=2}{}, cell{1}{2,4} = {c=2}{}, } \toprule Sample & Group I & & Group II & \\ \cmidrule[lr]{2-3} \cmidrule[lr]{4-5} & A & B & C & D \\ \midrule S1 & 5 & 6 & 7 & 8 \\ S2 & 6 & 7 & 8 & 5 \\ \bottomrule \end{booktabs} ``` -------------------------------- ### Restore Table Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog Ensures table commands are correctly restored before building cells, preventing potential conflicts. ```latex Restore table commands before building cells (#31) ``` -------------------------------- ### Linewidth Graphics in X Columns Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes a bug where `\linewidth` graphics were not included correctly in `X` columns. ```latex Fix bug in including `\linewidth` graphics in `X` columns (#80) ``` -------------------------------- ### Input External File Content into Table Source: https://context7.com/texackers/tabularray/llms.txt Illustrates using the \texttt{evaluate=\fileInput} option to include content from an external file (e.g., data.tmp) directly into a table. This is useful for populating tables with data from separate sources. ```latex % Input external file content \begin{tblr}[evaluate=\fileInput]{hlines} Manual Row & 1 \\ \fileInput{data.tmp} Manual Row & 2 \\ \end{tblr} ``` -------------------------------- ### Table Commands for CSV Simple Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides table commands compatible with T-F-S/csvsimple, enabling easier integration of CSV data into tables. ```latex \csvTblr{file.csv} ``` -------------------------------- ### Set Outer Specifications Source: https://github.com/texackers/tabularray/wiki/ChangeLog Configure outer specifications of tables using `\SetTblrOuter`, controlling aspects like borders and spacing that affect the table's external appearance. ```latex \SetTblrOuter[tblr]{key=value} ``` -------------------------------- ### Define New Table Theme Source: https://github.com/texackers/tabularray/wiki/ChangeLog Create new themes for long tables using `\NewTblrTheme`, promoting reusability and consistency in table design across documents. ```latex \NewTblrTheme{theme_name}{...} ``` -------------------------------- ### Set Table Style Source: https://github.com/texackers/tabularray/wiki/ChangeLog Use `\SetTblrStyle` for setting table properties like color, font, alignment, and indentation, enabling comprehensive style customization. ```latex \SetTblrStyle{color=blue, font=\bfseries, ...} ``` -------------------------------- ### Add FG and Font Options Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces `fg` (foreground color) and `font` options for further customization of table elements' appearance. ```latex fg=red, font=\itshape ``` -------------------------------- ### Functional Programming Library Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces a functional programming library for advanced table manipulation. Use `evaluate` for file input and table building, and `process` for cell operations and conditional styling. ```latex \cellGetText \cellSetText \cellSetStyle \rowSetStyle \columnSetStyle ``` -------------------------------- ### Booktabs Enhancements Source: https://github.com/texackers/tabularray/wiki/ChangeLog Introduces `\morecmidrules`, `\specialrule`, and `\addlinespace` commands for enhanced control over table rules, mimicking `booktabs` functionality. ```latex Add `\morecmidrules`, `\specialrule` and `\addlinespace` for booktabs ``` -------------------------------- ### Default Justification Source: https://github.com/texackers/tabularray/wiki/ChangeLog Justification is now the default behavior for table cells, heads, and foots, simplifying table layout. ```latex Make justifying the default in table cells (#69) ``` ```latex Make justifying the default in table head/foot (#174) ``` -------------------------------- ### Rollback to Previous Version Source: https://github.com/texackers/tabularray/wiki/ChangeLog Allows users to revert to a specific older version of the tabularray package. Use this when compatibility with older projects is required. ```latex \usepackage{tabularray}[=v2021] ``` -------------------------------- ### Cell Spanning with `\SetCell` Source: https://context7.com/texackers/tabularray/llms.txt Illustrates the use of the `\SetCell` command for creating multicolumn, multirow, and combined multirow/multicolumn cells with integrated styling. ```latex % Multicolumn cell \begin{tblr}{|c|c|c|c|c|} \hline \SetCell[c=2]{c} 2 Columns & & \SetCell[c=3]{c} 3 Columns & & \\ \hline A & B & C & D & E \\ \hline \end{tblr} ``` ```latex % Multirow cell \begin{tblr}{|l|l|l|} \hline \SetCell[r=3]{m,1.5cm} Multirow & Alpha & One \\ & Beta & Two \\ & Gamma & Three \\ \hline \end{tblr} ``` ```latex % Combined multirow and multicolumn with styling \begin{tblr}{|c|c|c|c|} \hline \SetCell[r=2,c=2]{c,bg=blue7,fg=white} 2x2 Cell & & Data1 & Data2 \\ \hline & & Data3 & Data4 \\ \hline Normal & Normal & Normal & Normal \\ \hline \end{tblr} ``` -------------------------------- ### Define and Use Functional Library for Conditional Styling Source: https://context7.com/texackers/tabularray/llms.txt Demonstrates defining a new function \pageColor to apply conditional styling based on page number and using it within table row specifications. Ensure \IgnoreSpacesOn and \IgnoreSpacesOff are used around function definitions. ```latex \UseTblrLibrary{functional} % Conditional styling based on page number \IgnoreSpacesOn \prgNewFunction \pageColor {mm} { \intIfOddTF{\value{page}}{\prgReturn{#1}}{\prgReturn{#2}} } \IgnoreSpacesOff \begin{tblr}{ row{1} = {bg=\pageColor{red7}{blue7}}, row{2} = {bg=\pageColor{green7}{teal7}}, } Alpha & Beta & Gamma \\ Epsilon & Zeta & Eta \\ \end{tblr} ``` -------------------------------- ### Nesting in Align Environment Source: https://github.com/texackers/tabularray/wiki/ChangeLog Ensures that `tabularray` tables are correctly nested within the `align` environment. ```latex Make `tabularray` correctly nest in `align` environment (#143) ``` -------------------------------- ### Document SetTblrTracing Source: https://github.com/texackers/tabularray/wiki/ChangeLog Documents the `\SetTblrTracing` command, which is used for debugging and tracing table construction processes. ```latex \SetTblrTracing{true} ``` -------------------------------- ### Caption Variations Source: https://github.com/texackers/tabularray/wiki/ChangeLog Implement \caption[]{text} and \caption*{text} for flexible captioning of tables, including starred versions for unnumbered captions. ```latex \caption[]{Table Caption} ``` ```latex \caption*{Unnumbered Table Caption} ``` -------------------------------- ### Tabularray and Shortverb '|' Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes a bug that occurred when using `tabularray` with the `shortverb` package and the `|` character. ```latex Fix bug with tabularray and shortverb `|` (#58) ``` -------------------------------- ### Special Break Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog Implement \*, \nopagebreak, and \pagebreak commands for fine-grained control over page breaks within tables. ```latex \nopagebreak ``` ```latex \pagebreak ``` -------------------------------- ### Trim Options for \cmidrule Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides `trimming` options for the `\cmidrule` command, similar to `booktabs`. ```latex Add trim options for `\cmidrule` command (#41) ``` -------------------------------- ### Cell Mode Option Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `mode` option can now be applied to cells, columns, and rows for fine-grained control over their behavior and appearance. ```latex Add `mode` option for cells/columns/rows (#45) ``` -------------------------------- ### Removed Multicolumn/Row Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `\multicolumn` and `\multirow` commands have been removed from the core package. ```latex Remove `\multicolumn` and `\multirow` commands (#28) ``` -------------------------------- ### Varwidth Library for Enumerate Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `varwidth` library allows using `enumerate` environments within cell text, enabling numbered lists inside cells. ```latex Add `varwidth` library for using enumerate inside cell text (#36) ``` -------------------------------- ### Table Templates Source: https://github.com/texackers/tabularray/wiki/ChangeLog Defines templates for caption, continuation text, and table footnotes, allowing for consistent and customizable table elements. ```latex \DefTblrTemplate{caption}{default}{...} ``` ```latex \DefTblrTemplate{cont}{default}{...} ``` ```latex \DefTblrTemplate{footnote}{default}{...} ``` -------------------------------- ### Removed First/Last Hline Commands Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `\firsthline` and `\lasthline` commands have been removed. ```latex Remove `\firsthline` and `\lasthline` commands (#72) ``` -------------------------------- ### Conditional Head/Foot Separators Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `headsep` and `footsep` options are only added if the table head or foot is not empty, preventing unnecessary spacing. ```latex Don't add `headsep`/`footsep` if table head/foot is empty (#86) ``` -------------------------------- ### Distribute Span Sizes Evenly Source: https://github.com/texackers/tabularray/wiki/ChangeLog Add options for distributing span sizes evenly across columns or rows, ensuring balanced table dimensions. ```latex span=even ``` -------------------------------- ### Counter Library Cell Widths Source: https://github.com/texackers/tabularray/wiki/ChangeLog Addresses incorrect cell width calculations that occurred when using the `counter` library. ```latex Fix wrong cell widths caused by `counter` library (#162) ``` -------------------------------- ### Float Tall Tables Source: https://github.com/texackers/tabularray/wiki/ChangeLog Implement floatable tall tables, allowing tables to behave like floats and be positioned more flexibly within the document. ```latex \begin{table}[htbp] \begin{talltblr}{...} ... \end{talltblr} \end{table} ``` -------------------------------- ### Child Selectors with X, Y, Z Source: https://github.com/texackers/tabularray/wiki/ChangeLog Utilize 'X', 'Y', and 'Z' for the last three child elements in child selectors, simplifying selection of elements in complex structures. ```latex \SetTblrStyle{child=X}{...} ``` -------------------------------- ### Pagebreak/Nopagebreak Argument Source: https://github.com/texackers/tabularray/wiki/ChangeLog Allows `\pagebreak` and `\nopagebreak` commands to accept an optional argument for finer control over page breaking. ```latex Make `\pagebreak` and `\nopagebreak` accept an optional argument (#259) ``` -------------------------------- ### Long and Tall Tables Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides `longtabs` and `talltabs` environments within the `booktabs` library for handling tables that span multiple pages or are exceptionally tall. ```latex Add `longtabs` and `talltabs` environments in `booktabs` library (#170) ``` -------------------------------- ### Restore Paragraph Parameters Source: https://github.com/texackers/tabularray/wiki/ChangeLog Paragraph parameters are now correctly restored in table heads and foots, preventing style conflicts. ```latex Restore paragraph parameters in table head/foot (#181) ``` -------------------------------- ### Siunitx Library Guard Option Source: https://github.com/texackers/tabularray/wiki/ChangeLog Adds the `guard` option to the `siunitx` library for enhanced control over number formatting and alignment. ```latex Add `guard` option in `siunitx` library (#175) ``` -------------------------------- ### Blank Page in Long Tables Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes blank pages that occurred in long tables when using the `\newpage` command. ```latex Fix blank page in long tables when using `\newpage` command (#39) ``` -------------------------------- ### Modify Foreground Color Settings Source: https://github.com/texackers/tabularray/wiki/ChangeLog Allows modification of foreground color (`fg`) settings for enhanced styling. ```latex Allow to modify `fg` settings (#62) ``` -------------------------------- ### Minimal Hspan Widths Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects cell widths when using the `hspan=minimal` option. ```latex Fix wrong span widths with `hspan=minimal` option (#71) ``` -------------------------------- ### Crossing and Trimming Options Source: https://github.com/texackers/tabularray/wiki/ChangeLog Adds `crossing` and `trimming` options for `hlines` and `vlines`, allowing for more precise control over line rendering. ```latex Add crossing and trimming options for hlines and vlines (#55) ``` -------------------------------- ### Caption Tag Template Source: https://github.com/texackers/tabularray/wiki/ChangeLog Uses `\tablename` in the `caption-tag` template for correct table naming conventions. ```latex Use `\tablename` in `caption-tag` templates (#103) ``` -------------------------------- ### Fix Border Size Calculation Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects the calculation of border sizes to ensure accurate rendering. ```latex Fix wrong calculation of border sizes (#260) ``` -------------------------------- ### Modify Command Settings Source: https://github.com/texackers/tabularray/wiki/ChangeLog Enables modification of command (`cmd`) settings, providing flexibility in how commands are interpreted within the table. ```latex Allow to modify `cmd` settings (#57) ``` -------------------------------- ### Baseline Alignment Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `baseline` key allows aligning the entire table to a specific row's baseline, ensuring consistent vertical positioning. ```latex Add `baseline` key for aligning table at any row (#72) ``` -------------------------------- ### Row and Column Counters Source: https://github.com/texackers/tabularray/wiki/ChangeLog Provides access to current row/column numbers and total counts using `\therownum`, `\thecolnum`, `\therowcount`, and `\thecolcount`. ```latex Add missing `\therownum`, `\thecolnum`, `\therowcount`, `\thecolcount` (#129) ``` -------------------------------- ### Enumerate Cell Widths with Hyperref Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes cell width issues that arose when using enumerate lists inside cells, particularly when the `hyperref` package was also loaded. ```latex Fix wrong widths of enumerate cells caused by `hyperref` (#196) ``` -------------------------------- ### Expand Macro Occurrence Source: https://github.com/texackers/tabularray/wiki/ChangeLog Use this to expand every occurrence of a specified macro once. This functionality is useful for controlling macro expansion behavior. ```latex \ExplTblrMacro{macro} ``` -------------------------------- ### TblrNote Overlap Source: https://github.com/texackers/tabularray/wiki/ChangeLog The ` extTblrNote` command now overlaps to the right side by default, improving its placement in relation to table content. ```latex Make \TblrNote overlap to the right side by default (#198) ``` -------------------------------- ### Optional Argument for Odd/Even Selectors Source: https://github.com/texackers/tabularray/wiki/ChangeLog Adds an optional argument to the `odd` and `even` selectors, providing more flexibility in styling specific rows or columns. ```latex Add an optional argument to `odd` and `even` selectors (#105) ``` -------------------------------- ### Fix Relax After Break Source: https://github.com/texackers/tabularray/wiki/ChangeLog Addresses an issue with `\relax` appearing after `\` or `\hline`, ensuring correct table construction and avoiding warnings. ```latex \\ \relax ``` ```latex \hline \relax ``` -------------------------------- ### Counter Library Math Mode Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects the behavior of counters within math mode when using the `counter` library. ```latex Fix wrong counters in math mode for `counter` library (#154) ``` -------------------------------- ### Missing Hlines in Subtables Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects the issue where the first and last horizontal lines were missing in subtables. ```latex Fix missing first and last hlines in subtables (#227) ``` -------------------------------- ### Caption Lot Template Source: https://github.com/texackers/tabularray/wiki/ChangeLog Uses `\thetable` in the `caption-lot` template for correct table numbering in lists of tables. ```latex Use `\thetable` in `caption-lot` template (#126) ``` -------------------------------- ### Vertical Space Below Booktabs Rules Source: https://github.com/texackers/tabularray/wiki/ChangeLog Adds vertical spacing above and below rules when using `booktabs` library styles. ```latex Add vertical spaces below and above booktabs rules (#79) ``` -------------------------------- ### siunitx Column Type Source: https://github.com/texackers/tabularray/wiki/ChangeLog Implement the 's' column type for seamless integration with the siunitx library, facilitating the typesetting of numbers and units. ```latex colspec={s} ``` -------------------------------- ### Pagebreak Option for Hborder Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `hborder` interface now accepts a `pagebreak` option with values `yes`, `no`, or `auto` to control page breaks related to horizontal borders. ```latex Add `pagebreak=yes/no/auto` options to `hborder` (#165) ``` -------------------------------- ### Share Row/Column Counters Source: https://github.com/texackers/tabularray/wiki/ChangeLog Enables sharing of `rownum` and `colnum` counters between different parts of the document or related packages. ```latex Share `rownum` and `colnum` counters (#269, davidcarlisle/dpctex#33) ``` -------------------------------- ### Font Boldmath Cell Widths Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects cell width calculations when the `font=\boldmath` option is used. ```latex Fix wrong cell widths when using `font=\boldmath` option (#137) ``` -------------------------------- ### Borders Around Colored Cells Source: https://github.com/texackers/tabularray/wiki/ChangeLog Resolves an issue where borders around colored cells were not visible in Adobe Acrobat. ```latex Fix disappeared borders around colored cells in Adobe Acrobat (#76) ``` -------------------------------- ### Change pdfborder Setting Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `pdfborder` setting is now modified only within the `tblr` environment, preventing global style changes. ```latex Change pdfborder setting only inside `tblr` environment (#33) ``` -------------------------------- ### Page Breaks in Long Tables with Parskip Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes incorrect page breaks in long tables when a positive `\parskip` is set. ```latex Fix wrong page breaks of long tables with positive `\parskip` (#203) ``` -------------------------------- ### Missing Last Row Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes an issue where the last row of a table was sometimes omitted. ```latex Fix missing last row (#114) ``` -------------------------------- ### Avoid Struts Before/After Cell Text Source: https://github.com/texackers/tabularray/wiki/ChangeLog Prevents the addition of unnecessary vertical struts before and after cell text, leading to tighter layouts. ```latex Avoid adding struts before and after cell text (#265) ``` -------------------------------- ### Lost Lines in PDF Readers Source: https://github.com/texackers/tabularray/wiki/ChangeLog Addresses an issue where lines in long tables might disappear when viewed in certain PDF readers. ```latex Fix lost lines in some long tables in PDF readers (#88) ``` -------------------------------- ### Change Rulesep Source: https://github.com/texackers/tabularray/wiki/ChangeLog Allows modification of `rulesep`, providing control over the separation between rules (lines) in the table. ```latex rulesep=1pt ``` -------------------------------- ### Cell Text Spacing Source: https://github.com/texackers/tabularray/wiki/ChangeLog Control spacing around cell text using `\leftsep`, `\rightsep`, `\abovesep`, and `\belowsep` for precise layout adjustments. ```latex \abovesep=2pt\relax ``` ```latex \belowsep=2pt\relax ``` ```latex \leftsep=2pt\relax ``` ```latex \rightsep=2pt\relax ``` -------------------------------- ### Verb Option Error Fix Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects an error that occurred when using the `verb` option in table cells. ```latex Fix an error caused by `verb` option (#112) ``` -------------------------------- ### Multiline Nonnumeric Cells in Siunitx Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes issues with multiline non-numeric cells when using the `S` column type from the `siunitx` package. ```latex Fix multiline nonnumeric cells in `siunitx`'s `S` columns (#90) ``` -------------------------------- ### Apostrophe in Math Mode Source: https://github.com/texackers/tabularray/wiki/ChangeLog Resolves an issue with the `@` symbol in math mode within table cells. ```latex Fix `@` expression in math mode (#138) ``` -------------------------------- ### Fix Font Option for Multiline Cells Source: https://github.com/texackers/tabularray/wiki/ChangeLog Corrects the font option behavior for multiline cells, ensuring consistent typography within cells containing multiple lines of text. ```latex font=\small ``` -------------------------------- ### Extra Space in Multiline Cells Source: https://github.com/texackers/tabularray/wiki/ChangeLog Removes extra space that appeared at the end of multiline cells. ```latex Fix bug with extra space at the end of a multiline cell (#48) ``` -------------------------------- ### Extra Line Breaks with CJK Punctuation Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes extra line breaks that occurred when cells began or ended with CJK punctuation marks. ```latex Fix extra line breaks when cells begin or end with CJK punctuations (#145, #257) ``` -------------------------------- ### Vlines Crossing Double Hlines Source: https://github.com/texackers/tabularray/wiki/ChangeLog Fixes the rendering of vertical lines that cross double horizontal lines, especially when cells span rows or columns. ```latex Fix vlines that cross double hlines caused by span cells (#141) ``` -------------------------------- ### Remove Vertical Space Around Lists Source: https://github.com/texackers/tabularray/wiki/ChangeLog The `stretch=-1` option removes extra vertical space that might appear around list environments within table cells. ```latex Add `stretch=-1` option for removing vertical space around lists (#99) ``` -------------------------------- ### Remove Paragraph Tokens Source: https://github.com/texackers/tabularray/wiki/ChangeLog Paragraph tokens are removed from the beginning and end of cell text to ensure cleaner formatting. ```latex Remove `\par` tokens at the beginning and at the end of cell text (#32) ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.