├── .gitattributes ├── .github ├── ISSUE_TEMPLATE │ └── bug-report-or-feature-request.md └── workflows │ ├── benchmark.yml │ ├── latex-package.txt │ ├── regression.yml │ └── texlive-package.txt ├── CHANGELOG.md ├── CONTRIBUTING.md ├── README.md ├── benchmarks ├── README.md ├── benchmark.lua └── tblrbenchmark.tex ├── build.lua ├── confighook.lua ├── manual.lua ├── manual ├── manual-0.tex ├── manual-1.tex ├── manual-2.tex ├── manual-3.tex ├── manual-4.tex ├── manual-5.tex ├── manual-6.tex ├── manual-7.tex ├── manual-8.tex ├── manual-9.tex ├── manual.sty └── manual.tex ├── tabularray.sty ├── tabularray.tex ├── testfiles ├── README.md ├── cell-001.md5 ├── cell-001.png ├── cell-001.tex ├── cell-001.tlg ├── cell-002.md5 ├── cell-002.png ├── cell-002.tex ├── cell-002.tlg ├── cell-003.md5 ├── cell-003.png ├── cell-003.tex ├── cell-003.tlg ├── cell-004.md5 ├── cell-004.png ├── cell-004.tex ├── cell-004.tlg ├── cell-005.md5 ├── cell-005.png ├── cell-005.tex ├── cell-005.tlg ├── cell-006.md5 ├── cell-006.png ├── cell-006.tex ├── cell-006.tlg ├── cell-007.md5 ├── cell-007.png ├── cell-007.tex ├── cell-007.tlg ├── cell-008.md5 ├── cell-008.png ├── cell-008.tex ├── cell-008.tlg ├── cell-009.md5 ├── cell-009.png ├── cell-009.tex ├── cell-009.tlg ├── cell-010.md5 ├── cell-010.png ├── cell-010.tex ├── cell-010.tlg ├── cell-011.md5 ├── cell-011.png ├── cell-011.tex ├── cell-011.tlg ├── color-001.md5 ├── color-001.png ├── color-001.tex ├── color-001.tlg ├── color-002.md5 ├── color-002.png ├── color-002.tex ├── color-002.tlg ├── color-003.md5 ├── color-003.png ├── color-003.tex ├── color-003.tlg ├── color-004.md5 ├── color-004.png ├── color-004.tex ├── color-004.tlg ├── color-005.md5 ├── color-005.png ├── color-005.tex ├── color-005.tlg ├── extra-001.md5 ├── extra-001.png ├── extra-001.tex ├── extra-001.tlg ├── extra-002.md5 ├── extra-002.png ├── extra-002.tex ├── extra-002.tlg ├── extra-003.md5 ├── extra-003.png ├── extra-003.tex ├── extra-003.tlg ├── extra-004.md5 ├── extra-004.png ├── extra-004.tex ├── extra-004.tlg ├── extra-005.md5 ├── extra-005.png ├── extra-005.tex ├── extra-005.tlg ├── hvline-001.md5 ├── hvline-001.png ├── hvline-001.tex ├── hvline-001.tlg ├── hvline-002.md5 ├── hvline-002.png ├── hvline-002.tex ├── hvline-002.tlg ├── hvline-003.md5 ├── hvline-003.png ├── hvline-003.tex ├── hvline-003.tlg ├── hvline-004.md5 ├── hvline-004.png ├── hvline-004.tex ├── hvline-004.tlg ├── hvline-005.md5 ├── hvline-005.png ├── hvline-005.tex ├── hvline-005.tlg ├── library-001.md5 ├── library-001.png ├── library-001.tex ├── library-001.tlg ├── library-002.md5 ├── library-002.png ├── library-002.tex ├── library-002.tlg ├── library-003.md5 ├── library-003.png ├── library-003.tex ├── library-003.tlg ├── library-004.md5 ├── library-004.png ├── library-004.tex ├── library-004.tlg ├── library-005.md5 ├── library-005.png ├── library-005.tex ├── library-005.tlg ├── library-006.md5 ├── library-006.png ├── library-006.tex ├── library-006.tlg ├── library-007.md5 ├── library-007.png ├── library-007.tex ├── library-007.tlg ├── library-008.md5 ├── library-008.png ├── library-008.tex ├── library-008.tlg ├── library-009.md5 ├── library-009.png ├── library-009.tex ├── library-009.tlg ├── library-010.md5 ├── library-010.png ├── library-010.tex ├── library-010.tlg ├── library-011.md5 ├── library-011.png ├── library-011.tex ├── library-011.tlg ├── library-012.md5 ├── library-012.png ├── library-012.tex ├── library-012.tlg ├── library-013.md5 ├── library-013.png ├── library-013.tex ├── library-013.tlg ├── library-014.md5 ├── library-014.png ├── library-014.tex ├── library-014.tlg ├── library-015.md5 ├── library-015.png ├── library-015.tex ├── library-015.tlg ├── library-016.md5 ├── library-016.png ├── library-016.tex ├── library-016.tlg ├── library-017.md5 ├── library-017.png ├── library-017.tex ├── library-017.tlg ├── library-018.md5 ├── library-018.png ├── library-018.tex ├── library-018.tlg ├── library-019.md5 ├── library-019.png ├── library-019.tex ├── library-019.tlg ├── library-020.md5 ├── library-020.png ├── library-020.tex ├── library-020.tlg ├── library-021.md5 ├── library-021.png ├── library-021.tex ├── library-021.tlg ├── library-022-1.md5 ├── library-022-1.png ├── library-022-2.md5 ├── library-022-2.png ├── library-022-3.md5 ├── library-022-3.png ├── library-022-4.md5 ├── library-022-4.png ├── library-022.tex ├── library-022.tlg ├── long-001-1.md5 ├── long-001-1.png ├── long-001-2.md5 ├── long-001-2.png ├── long-001-3.md5 ├── long-001-3.png ├── long-001-4.md5 ├── long-001-4.png ├── long-001.tex ├── long-001.tlg ├── long-002-1.md5 ├── long-002-1.png ├── long-002-2.md5 ├── long-002-2.png ├── long-002-3.md5 ├── long-002-3.png ├── long-002-4.md5 ├── long-002-4.png ├── long-002.tex ├── long-002.tlg ├── long-003-1.md5 ├── long-003-1.png ├── long-003-2.md5 ├── long-003-2.png ├── long-003-3.md5 ├── long-003-3.png ├── long-003-4.md5 ├── long-003-4.png ├── long-003.tex ├── long-003.tlg ├── long-004.md5 ├── long-004.png ├── long-004.tex ├── long-004.tlg ├── long-005-1.md5 ├── long-005-1.png ├── long-005-2.md5 ├── long-005-2.png ├── long-005.tex ├── long-005.tlg ├── long-006-1.md5 ├── long-006-1.png ├── long-006-2.md5 ├── long-006-2.png ├── long-006.tex ├── long-006.tlg ├── long-007-1.md5 ├── long-007-1.png ├── long-007-2.md5 ├── long-007-2.png ├── long-007-3.md5 ├── long-007-3.png ├── long-007-4.md5 ├── long-007-4.png ├── long-007.tex ├── long-007.tlg ├── long-008.md5 ├── long-008.png ├── long-008.tex ├── long-008.tlg ├── long-009-1.md5 ├── long-009-1.png ├── long-009-2.md5 ├── long-009-2.png ├── long-009.tex ├── long-009.tlg ├── long-010-1.md5 ├── long-010-1.png ├── long-010-2.md5 ├── long-010-2.png ├── long-010.tex ├── long-010.tlg ├── long-011-1.md5 ├── long-011-1.png ├── long-011-2.md5 ├── long-011-2.png ├── long-011-3.md5 ├── long-011-3.png ├── long-011-4.md5 ├── long-011-4.png ├── long-011.tex ├── long-011.tlg ├── regression-test.cfg ├── rowcol-001.md5 ├── rowcol-001.png ├── rowcol-001.tex ├── rowcol-001.tlg ├── rowcol-002.md5 ├── rowcol-002.png ├── rowcol-002.tex ├── rowcol-002.tlg ├── rowcol-003.md5 ├── rowcol-003.png ├── rowcol-003.tex ├── rowcol-003.tlg ├── rowcol-004.md5 ├── rowcol-004.png ├── rowcol-004.tex ├── rowcol-004.tlg ├── rowcol-005.md5 ├── rowcol-005.png ├── rowcol-005.tex ├── rowcol-005.tlg ├── supporthook │ └── regression-test.cfg ├── table-001.md5 ├── table-001.png ├── table-001.tex ├── table-001.tlg ├── table-002.md5 ├── table-002.png ├── table-002.tex ├── table-002.tlg ├── table-003.md5 ├── table-003.png ├── table-003.tex ├── table-003.tlg ├── table-004.md5 ├── table-004.png ├── table-004.tex ├── table-004.tlg ├── table-005.md5 ├── table-005.png ├── table-005.tex ├── table-005.tlg ├── table-006.md5 ├── table-006.png ├── table-006.tex ├── table-006.tlg ├── table-007.md5 ├── table-007.png ├── table-007.tex ├── table-007.tlg ├── table-008.md5 ├── table-008.png ├── table-008.tex ├── table-008.tlg ├── table-009.md5 ├── table-009.png ├── table-009.tex ├── table-009.tlg ├── table-010.md5 ├── table-010.png ├── table-010.tex ├── table-010.tlg ├── table-011.md5 ├── table-011.png ├── table-011.tex ├── table-011.tlg ├── table-012.md5 ├── table-012.png ├── table-012.tex ├── table-012.tlg ├── table-013.md5 ├── table-013.png ├── table-013.tex ├── table-013.tlg ├── table-014.md5 ├── table-014.png ├── table-014.tex └── table-014.tlg └── trial ├── lwarp ├── lwarp-tabularray.sty ├── test-lwarp-01.html └── test-lwarp-01.tex ├── tagpdf ├── tagpdf-tabularray.sty ├── test-tagpdf-01.htm └── test-tagpdf-01.tex └── tex4ht ├── README.txt ├── tabularray-4ht.tex ├── tabularray.4ht ├── test-tex4ht-01.html ├── test-tex4ht-01.tex ├── test-tex4ht-02.html ├── test-tex4ht-02.tex └── tex-to-4ht.lua /.gitattributes: -------------------------------------------------------------------------------- 1 | *.tlg text !eol -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report-or-feature-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report or feature request 3 | about: Report a bug or suggest an idea 4 | title: '' 5 | labels: '' 6 | assignees: '' 7 | 8 | --- 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /.github/workflows/benchmark.yml: -------------------------------------------------------------------------------- 1 | name: Run benchmark tests in TeX Live 2 | 3 | on: push 4 | 5 | jobs: 6 | run-ubuntu: 7 | runs-on: ubuntu-latest 8 | strategy: 9 | matrix: 10 | version: [2022, 2023, 2024] 11 | steps: 12 | - uses: actions/checkout@v4 13 | - name: Install TeX Live 14 | uses: teatimeguest/setup-texlive-action@v3 15 | with: 16 | version: ${{matrix.version}} 17 | package-file: .github/workflows/texlive-package.txt 18 | packages: tabularray 19 | update-all-packages: true 20 | - name: Run benchmark tests for tabularray package 21 | run: | 22 | cd benchmarks 23 | texlua benchmark.lua ${{matrix.version}} 24 | - name: Store benchmark result 25 | uses: benchmark-action/github-action-benchmark@v1 26 | with: 27 | name: Tabularray Benchmark in TeX Live ${{matrix.version}} 28 | tool: "customSmallerIsBetter" 29 | output-file-path: benchmarks/output-${{matrix.version}}.txt 30 | benchmark-data-dir-path: benchmark/${{matrix.version}} 31 | github-token: ${{secrets.GITHUB_TOKEN}} 32 | auto-push: true 33 | -------------------------------------------------------------------------------- /.github/workflows/latex-package.txt: -------------------------------------------------------------------------------- 1 | # these packages are collected from tabularray.sty and its test files 2 | # to update all needed texlive packages from this file 3 | # run `texfindpkg -i latex-package.txt -o texlive-package.txt` 4 | 5 | -f # the following are latex packages 6 | amsfonts 7 | amsmath 8 | array 9 | blindtext 10 | booktabs 11 | diagbox 12 | enumitem 13 | environ 14 | epstopdf-base 15 | etoolbox 16 | float 17 | functional 18 | geometry 19 | hyperref 20 | l3benchmark 21 | l3kernel 22 | lmodern 23 | mathtools 24 | multirow 25 | nameref 26 | ninecolors 27 | pict2e 28 | shortvrb 29 | siunitx 30 | tabularx 31 | tikz 32 | varwidth 33 | xcolor 34 | xparse 35 | zref 36 | 37 | -p # the following are texlive packages 38 | cm-super # for type1ec and for \textbullet in itemize in table-011 for ppmcheckpdf 39 | ec 40 | l3build 41 | latex-bin # depends on latex 42 | luatex 43 | pdftex 44 | #ppmcheckpdf # not in texlive 2022 45 | type1cm 46 | xetex 47 | -------------------------------------------------------------------------------- /.github/workflows/regression.yml: -------------------------------------------------------------------------------- 1 | name: Run regression tests in TeX Live 2 | 3 | on: [push, pull_request] 4 | 5 | jobs: 6 | build-ubuntu: 7 | runs-on: ubuntu-latest 8 | steps: 9 | - uses: actions/checkout@v4 10 | - name: Install TeX Live 11 | uses: teatimeguest/setup-texlive-action@v3 12 | with: 13 | package-file: .github/workflows/texlive-package.txt 14 | packages: ppmcheckpdf 15 | update-all-packages: true 16 | - name: Test tabularray with l3build 17 | run: | 18 | l3build check --debug --halt-on-error --show-log-on-error 19 | - name: Install pdftoppm 20 | run: 21 | sudo apt-get install poppler-utils 22 | - name: Test tabularray with ppmcheckpdf 23 | run: | 24 | ppmcheckpdf check 25 | build-windows: 26 | runs-on: windows-latest 27 | steps: 28 | - uses: actions/checkout@v4 29 | - name: Install TeX Live 30 | uses: teatimeguest/setup-texlive-action@v3 31 | with: 32 | package-file: .github/workflows/texlive-package.txt 33 | packages: ppmcheckpdf 34 | update-all-packages: true 35 | - name: Test tabularray with l3build 36 | run: | 37 | l3build check --debug --halt-on-error --show-log-on-error 38 | - name: Install pdftoppm 39 | run: | 40 | tlmgr install wintools.windows 41 | - name: Test tabularray with ppmcheckpdf 42 | run: | 43 | ppmcheckpdf check 44 | - name: Upload png and md5 45 | uses: actions/upload-artifact@v4 46 | with: 47 | name: png-and-md5 48 | path: | 49 | testfiles/*.png 50 | testfiles/*.md5 51 | -------------------------------------------------------------------------------- /.github/workflows/texlive-package.txt: -------------------------------------------------------------------------------- 1 | amsfonts 2 | amsmath 3 | atveryend 4 | auxhook 5 | bigintcalc 6 | blindtext 7 | booktabs 8 | cm-super 9 | colortbl 10 | diagbox 11 | ec 12 | enumitem 13 | environ 14 | epstopdf-pkg 15 | etoolbox 16 | everyshi 17 | float 18 | fp 19 | functional 20 | geometry 21 | graphics 22 | hyperref 23 | iftex 24 | infwarerr 25 | kvoptions 26 | kvsetkeys 27 | l3build 28 | l3experimental 29 | l3packages 30 | latex 31 | latex-bin 32 | lm 33 | ltxcmds 34 | luatex 35 | mathtools 36 | multirow 37 | ninecolors 38 | pdfescape 39 | pdftex 40 | pdftexcmds 41 | pgf 42 | pict2e 43 | refcount 44 | rerunfilecheck 45 | siunitx 46 | stringenc 47 | tools 48 | translations 49 | trimspaces 50 | type1cm 51 | uniquecounter 52 | url 53 | varwidth 54 | xcolor 55 | xetex 56 | zref -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | 2 | Contribution to the Manual 3 | -------------------------- 4 | 5 | - You need to compile the manual files with LuaLaTeX, 6 | because it is rather slow to compile them with XeLaTeX or PDFLaTeX. 7 | 8 | - The manual `tabularray.tex` is split into subfiles and put in manual folder. 9 | You can compile each subfile and see the output. 10 | 11 | - After editing subfiles in manual folder, 12 | you need to run `texlua manual.lua` to generate `tabularray.tex` from subfiles. 13 | 14 | - Now you can create a pull request for your contribution. 15 | 16 | 17 | Contribution to the Code 18 | ------------------------ 19 | 20 | - You need to install `l3build` and `ppmcheckpdf` packages into your TeX distribution first. 21 | 22 | - After editing the source code, run `l3build check` to compile test files. 23 | 24 | - Then run `texlua buildend.lua` to compare MD5 checksums for test outputs. 25 | 26 | -------------------------------------------------------------------------------- /benchmarks/README.md: -------------------------------------------------------------------------------- 1 | The `benchmark.lua` script compares running time between `tabularray` package in the repository and `tabularray` package in some TeX Live distribution. 2 | And `benchmark.yml` publishes every benchmark result to `gh-pages` branch, so that you can view them in the following URLs: 3 | 4 | + for texlive 2022: https://lvjr.github.io/tabularray/benchmark/2022 5 | + for texlive 2023: https://lvjr.github.io/tabularray/benchmark/2023 6 | + for texlive 2024: https://lvjr.github.io/tabularray/benchmark/2024 7 | 8 | The `benchmark.lua` script accepts an argument `` (texlive version) , and writes benchmark data to `output-.txt` file. -------------------------------------------------------------------------------- /build.lua: -------------------------------------------------------------------------------- 1 | 2 | module = "tabularray" 3 | 4 | sourcefiles = {"tabularray.sty"} 5 | 6 | -- all files that match checksuppfiles in the supportdir are moved to build/test folder 7 | supportdir = "./testfiles" 8 | checksuppfiles = {"regression-test.cfg"} 9 | 10 | -- we need to check test files with different regression-test.cfg files 11 | checkconfigs = {"build", "confighook"} 12 | 13 | checkengines = {"xetex","pdftex"} 14 | checkruns = 2 15 | 16 | lvtext = ".tex" 17 | 18 | kpse.set_program_name ("kpsewhich") 19 | if not release_date then 20 | dofile ( kpse.lookup ("l3build.lua")) 21 | end 22 | -------------------------------------------------------------------------------- /confighook.lua: -------------------------------------------------------------------------------- 1 | 2 | -- tests for hook library 3 | 4 | supportdir = "./testfiles/supporthook" 5 | checksuppfiles = {"regression-test.cfg"} 6 | -------------------------------------------------------------------------------- /manual.lua: -------------------------------------------------------------------------------- 1 | 2 | local path = "manual/" 3 | 4 | local function ReadFile(input) 5 | local f = io.open(input, "rb") 6 | if f == nil then 7 | print("Error in reading " .. input) 8 | return 9 | end 10 | local text = f:read("*all") 11 | f:close() 12 | return text 13 | end 14 | 15 | local function WriteFile(output, text) 16 | f = io.open(output, "wb") 17 | f:write(text) 18 | f:close() 19 | end 20 | 21 | local function MakeManual() 22 | local style = ReadFile(path .. "manual.sty"):gsub("^%%.-\n%%.-\n", "") 23 | --print(style) 24 | local main = ReadFile(path .. "manual.tex") 25 | local head = main:match("(.-\\documentclass.-)\n") 26 | local body = main:match("\\begin{document}\n(.+)\\end{document}\n") 27 | --print(head, body) 28 | local text = "" 29 | body = body:gsub("(\\input{(.-)})", function(line, name) 30 | --print(line, name) 31 | local subtex = ReadFile(path .. name .. ".tex") 32 | --print(subtex) 33 | local subbody = subtex:match("\\begin{document}\n(.-)\n\\end{document}\n") 34 | text = text .. subbody 35 | end) 36 | text = head .. style .. "\n\\begin{document}\n" .. text .. "\n\\end{document}\n" 37 | text = text:gsub("\r\n", "\n"):gsub("\r", "\n") 38 | WriteFile("tabularray.tex", text) 39 | end 40 | 41 | MakeManual() 42 | -------------------------------------------------------------------------------- /manual/manual-9.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | % !TEX program = lualatex 3 | \documentclass[oneside]{book} 4 | 5 | \input{manual.sty} 6 | \CodeHigh{lite} 7 | \setcounter{chapter}{8} 8 | 9 | \begin{document} 10 | 11 | \chapter{The Source Code} 12 | 13 | %\CodeHigh{lite} 14 | \dochighinput[language=latex/latex3]{tabularray.sty} 15 | 16 | \end{document} 17 | -------------------------------------------------------------------------------- /manual/manual.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | % !TEX program = lualatex 3 | \documentclass[oneside]{book} 4 | 5 | \usepackage{docmute} 6 | 7 | \input{manual.sty} 8 | %\CodeHigh{lite} 9 | \renewcommand\dochighinput[2][]{} 10 | 11 | \begin{document} 12 | 13 | \input{manual-0} 14 | 15 | \input{manual-1} 16 | 17 | \input{manual-2} 18 | 19 | \input{manual-3} 20 | 21 | \input{manual-4} 22 | 23 | \input{manual-5} 24 | 25 | \input{manual-6} 26 | 27 | \input{manual-7} 28 | 29 | \input{manual-8} 30 | 31 | \input{manual-9} 32 | 33 | \end{document} 34 | -------------------------------------------------------------------------------- /testfiles/cell-001.md5: -------------------------------------------------------------------------------- 1 | 69ce7cb11ea2ca4f7b8d3e1016a39cc0 -------------------------------------------------------------------------------- /testfiles/cell-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-001.png -------------------------------------------------------------------------------- /testfiles/cell-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{normal cells: t cells} 11 | \SetTblrDefault{rows={rowsep=0pt}} 12 | \begin{tabular}{|l|c|r|} 13 | \hline 14 | One & Two & Three \\ 15 | \hline 16 | Alpha & Beta & Gamma \\ 17 | \hline 18 | \end{tabular} 19 | \qquad 20 | \begin{tblr}{|l|c|r|} 21 | \hline 22 | One & Two & Three \\ 23 | \hline 24 | Alpha & Beta & Gamma \\ 25 | \hline 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \bigskip\hrule\bigskip 30 | 31 | %% One line t/m/b cells should be the same 32 | \BEGINTEST{normal cells: t/m/b cells with strut} 33 | \SetTblrDefault{rows={rowsep=0pt}} 34 | \begin{tabular}{|p{1cm}|m{1cm}|b{2cm}|} 35 | \hline 36 | Alpha & Beta & Gamma \\ 37 | \hline 38 | \end{tabular} 39 | \qquad 40 | \begin{tblr}{|t{1cm}|m{1cm}|b{2cm}|} 41 | \hline 42 | Alpha & Beta & Gamma \\ 43 | \hline 44 | \end{tblr} 45 | \ENDTEST 46 | 47 | \bigskip 48 | 49 | %% One line t/m/b cells should be the same 50 | %% But tabular environment failed for it 51 | \BEGINTEST{normal cells: t/m/b cells without strut} 52 | \def\arraystretch{0} 53 | \SetTblrDefault{rows={rowsep=0pt},stretch=0} 54 | \begin{tabular}{|p{1cm}|m{1cm}|b{2cm}|} 55 | \hline 56 | Alpha & Beta & Gamma \\ 57 | \hline 58 | \end{tabular} 59 | \qquad 60 | \begin{tblr}{|t{1cm}|m{1cm}|b{2cm}|} 61 | \hline 62 | Alpha & Beta & Gamma \\ 63 | \hline 64 | \end{tblr} 65 | \ENDTEST 66 | 67 | \bigskip\hrule\bigskip 68 | 69 | %% h and t cells could align with t/m/b cells with strut 70 | \BEGINTEST{normal cells: h/t/m/b/f cells with strut} 71 | \begin{tblr}{|Q[h]|Q[t]|Q[m]|Q[b]|Q[f]|} 72 | \hline 73 | head & top & middle & bottom & foot \\ 74 | \hline 75 | oooo & top & middle & bottom & foot \\ 76 | \hline 77 | head & top & middle & bottom & oooo \\ 78 | \hline 79 | oooo & top & middle & bottom & oooo \\ 80 | \hline 81 | \end{tblr} 82 | \ENDTEST 83 | 84 | \bigskip 85 | 86 | %% h and t cells may not align with t/m/b cells without strut 87 | \BEGINTEST{normal cells: h/t/m/b/f cells without strut} 88 | \SetTblrDefault{stretch=0} 89 | \begin{tblr}{|Q[h]|Q[t]|Q[m]|Q[b]|Q[f]|} 90 | \hline 91 | head & top & middle & bottom & foot \\ 92 | \hline 93 | oooo & top & middle & bottom & foot \\ 94 | \hline 95 | head & top & middle & bottom & oooo \\ 96 | \hline 97 | oooo & top & middle & bottom & oooo \\ 98 | \hline 99 | \end{tblr} 100 | \ENDTEST 101 | 102 | \end{document} 103 | -------------------------------------------------------------------------------- /testfiles/cell-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: normal cells: t cells 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: normal cells: t/m/b cells with strut 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: normal cells: t/m/b cells without strut 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: normal cells: h/t/m/b/f cells with strut 17 | ============================================================ 18 | ============================================================ 19 | ============================================================ 20 | TEST 5: normal cells: h/t/m/b/f cells without strut 21 | ============================================================ 22 | ============================================================ 23 | [1 24 | ] (cell-001.aux) 25 | -------------------------------------------------------------------------------- /testfiles/cell-002.md5: -------------------------------------------------------------------------------- 1 | a3dd8de3a75ebdd3447de05326ca0c8d -------------------------------------------------------------------------------- /testfiles/cell-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-002.png -------------------------------------------------------------------------------- /testfiles/cell-002.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{multiline cells: t/m/b cells} 11 | \begin{tblr}{|l|t{2cm}|m{2cm}|b{2cm}|} 12 | \hline 13 | text & \SetCell{b,r}{alpha\\alpha} & {beta\\beta\\beta} & {gamma\\gamma} \\ 14 | \hline 15 | text & {delta\\delta} & {epsilon\\epsilon\\epsilon} & \SetCell{t,c}{zeta\\zeta} \\ 16 | \hline 17 | text & {eta\\eta} & {theta\\theta\\theta} & {iota\\iota} \\ 18 | \hline 19 | \end{tblr} 20 | \ENDTEST 21 | 22 | \bigskip\hrule\bigskip 23 | 24 | \BEGINTEST{multiline cells: h/m/f cells} 25 | \begin{tblr}{|l|h{2cm}|m{2cm}|f{2cm}|} 26 | \hline 27 | text & \SetCell{f,r}{alpha\\alpha} & {beta\\beta\\beta} & {gamma\\gamma} \\ 28 | \hline 29 | text & {delta\\delta} & {epsilon\\epsilon\\epsilon} & \SetCell{h,c}{zeta\\zeta} \\ 30 | \hline 31 | text & {eta\\eta} & {theta\\theta\\theta} & {iota\\iota} \\ 32 | \hline 33 | \end{tblr} 34 | \ENDTEST 35 | 36 | \bigskip\hrule\bigskip 37 | 38 | \BEGINTEST{multiline cells: h/t/m/b/f cells} 39 | \SetTblrDefault{rows={rowsep=0pt}} 40 | \begin{tblr}{|Q[h,4em]|Q[t,4em]|Q[m,4em]|Q[b,4em]|Q[f,4em]|} 41 | \hline 42 | {row\\head} & {top\\line} & {row\\middle} & {bottom\\line} & {row\\foot} \\ 43 | \hline 44 | {row\\head} & {top\\line} & {row\\middle\\row\\middle\\row} & {bottom\\line} & {row\\foot} \\ 45 | \hline 46 | \end{tblr} 47 | \ENDTEST 48 | 49 | \end{document} 50 | -------------------------------------------------------------------------------- /testfiles/cell-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multiline cells: t/m/b cells 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multiline cells: h/m/f cells 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: multiline cells: h/t/m/b/f cells 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (cell-002.aux) 17 | -------------------------------------------------------------------------------- /testfiles/cell-003.md5: -------------------------------------------------------------------------------- 1 | 94d7db0a43b6a2a14d43d8ba0a07f357 -------------------------------------------------------------------------------- /testfiles/cell-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-003.png -------------------------------------------------------------------------------- /testfiles/cell-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{break lines in parbox cells} 11 | \begin{tabular}{|p{2cm}|b{2cm}|m{2cm}|b{2cm}|p{2cm}|r|} 12 | \hline 13 | 111 \newline 111 & 222Big \newline Big & 333 \newline Small & 14 | ooo \newline Med & 555 \newline fox & 666 \\ 15 | \hline 16 | 111 \newline Big \newline 1xx & 222 \newline Big & 333 \newline Small & 17 | 444 \newline Med & 555 \newline fox & 66666 \\ 18 | \hline 19 | \end{tabular} 20 | \par\bigskip 21 | \SetTblrDefault{rows={rowsep=0pt}} 22 | \begin{tblr}{|Q[p,wd=2cm]|b{2cm}|m{2cm}|Q[b,wd=2cm]|p{2cm}|r|} 23 | \hline 24 | {111 \\ 111} & 222Big \newline Big & 333 \newline Small & 25 | ooo \newline Med & 555 \newline fox & 666 \\ 26 | \hline 27 | {111 \\ Big \\ 1xx} & 222 \newline Big & 333 \newline Small & 28 | 444 \newline Med & 555 \newline fox & 66666 \\ 29 | \hline 30 | \end{tblr} 31 | \ENDTEST 32 | 33 | \end{document} 34 | -------------------------------------------------------------------------------- /testfiles/cell-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: break lines in parbox cells 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (cell-003.aux) 9 | -------------------------------------------------------------------------------- /testfiles/cell-004.md5: -------------------------------------------------------------------------------- 1 | f943d788f0ac9c6b440d75b31c2c3fc6 -------------------------------------------------------------------------------- /testfiles/cell-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-004.png -------------------------------------------------------------------------------- /testfiles/cell-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{auto break lines by \\} 11 | % horizontal alignments are obeyed 12 | \begin{tblr}{|l|c|r|} 13 | \hline 14 | Left & {Centerrrr \\ Center \\ C} & {Righttttt \\ Right} \\ 15 | \hline 16 | {Left \\ Lefttt} & {Centerrrrr \\ C \\ Center} & Righttt \\ 17 | \hline 18 | \end{tblr} 19 | \ENDTEST 20 | 21 | %\bigskip\hrule\bigskip 22 | % 23 | %\BEGINTEST{should not break well for these cells} 24 | %\begin{tblr}{ll} 25 | %\hline 26 | % {111 \\ Inside} Outside & Outside {Inside \\ 222 \\ Inside} \\ 27 | %\hline 28 | %\end{tblr} 29 | %\ENDTEST 30 | % 31 | %\bigskip\hrule\bigskip 32 | % 33 | %%% TO DO or WON'T DO? 34 | %\BEGINTEST{auto break lines by \newline} 35 | %\begin{tblr}{|l|c|r|} 36 | %\hline 37 | % Left & Centerrrr \newline Center \newline C & Righttttt \newline Right \\ 38 | %\hline 39 | % Left \newline Lefttt & Centerrrrr \newline C \newline Center & Righttt \\ 40 | %\hline 41 | %\end{tblr} 42 | %\ENDTEST 43 | 44 | \bigskip\hrule\bigskip 45 | 46 | \BEGINTEST{auto break lines by \\ with font option} 47 | \begin{tblr}{ 48 | colspec = {|l|l|l|}, cell{1}{2} = {font=\small}, cell{1}{3} = {font=\bfseries}, 49 | } 50 | {text \\ in \\ multiple \\ lines} 51 | & {text \\ in \\ multiple \\ lines} 52 | & {text \\ in \\ multiple \\ lines} 53 | \end{tblr} 54 | \ENDTEST 55 | 56 | \end{document} 57 | -------------------------------------------------------------------------------- /testfiles/cell-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: auto break lines by \\ 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: auto break lines by \\ with font option 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (cell-004.aux) 13 | -------------------------------------------------------------------------------- /testfiles/cell-005.md5: -------------------------------------------------------------------------------- 1 | ca1202ef9f687b517c2f4ed868860251 -------------------------------------------------------------------------------- /testfiles/cell-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-005.png -------------------------------------------------------------------------------- /testfiles/cell-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{test \multicolumn cells} 11 | \begin{tabular}{|r|p{2cm}|c|p{2cm}|} 12 | \hline 13 | Alpha & \raggedleft Right & \multicolumn{2}{l|}{Gamma Gamma Gamma} \\ 14 | \hline 15 | Epsilon & \raggedleft Righttttt & Eta & \centering\arraybackslash Centering \\ 16 | \hline 17 | \multicolumn{2}{|l|}{Iota Iota Iota Iota Iota} & Lambda & \centering\arraybackslash Center \\ 18 | \hline 19 | \end{tabular} 20 | \par\bigskip 21 | \SetTblrDefault{rows={rowsep=0pt}} 22 | \begin{tblr}{|r|Q[p,r,2cm]|c|Q[p,c,2cm]|} 23 | \hline 24 | Alpha & Right & \SetCell[c=2]{}Gamma Gamma Gamma & ? \\ 25 | \hline 26 | Epsilon & Righttttt & Eta & Centering \\ 27 | \hline 28 | \SetCell[c=2]{}Iota Iota Iota Iota Iota & ? & Lambda & Center \\ 29 | \hline 30 | \end{tblr} 31 | \ENDTEST 32 | 33 | \bigskip\hrule\bigskip 34 | 35 | %% Issue #15 36 | \BEGINTEST{testing fix-width columns with all cells spanned} 37 | \noindent 38 | \begin{tblr}{width=\textwidth,colsep=2pt,colspec={|*{16}{X[c]|}}} 39 | \hline 40 | \SetCell[c=4]{r} 4 & & & 41 | & \SetCell[c=4]{r} 8 & & & 42 | & \SetCell[c=4]{r} 12 & & & 43 | & \SetCell[c=4]{r} 16 & & & \\ 44 | \hline 45 | B/R 46 | & \SetCell[c=5]{c} Msg-Type & & & & 47 | & \SetCell[c=5]{c} Src-Addr & & & & 48 | & \SetCell[c=5]{c} Dest-Addr & & & & \\ 49 | \hline 50 | \SetCell[c=16]{c} Fletcher-16 Checksum & & & & & & & & & & & & & & & \\ 51 | \hline 52 | \SetCell[c=8]{c} Payload-Length in Bits & & & & & & & 53 | & \SetCell[c=8]{c} Payload max. 28 Byte & & & & & & & \\ 54 | \hline 55 | \end{tblr} 56 | \ENDTEST 57 | 58 | \end{document} 59 | -------------------------------------------------------------------------------- /testfiles/cell-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: test \multicolumn cells 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing fix-width columns with all cells spanned 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (cell-005.aux) 13 | -------------------------------------------------------------------------------- /testfiles/cell-006.md5: -------------------------------------------------------------------------------- 1 | 9abd0c84f58fb54f2f0c5bc0b1f0cc42 -------------------------------------------------------------------------------- /testfiles/cell-006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-006.png -------------------------------------------------------------------------------- /testfiles/cell-006.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multicolumn: compute span widths from column widths 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multicolumn: compute column widths from span widths 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: multicolumn: distribute span sizes evenly to columns 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (cell-006.aux) 17 | -------------------------------------------------------------------------------- /testfiles/cell-007.md5: -------------------------------------------------------------------------------- 1 | 3ccfeb015336f162f77fb5313e70e907 -------------------------------------------------------------------------------- /testfiles/cell-007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-007.png -------------------------------------------------------------------------------- /testfiles/cell-007.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{multirow} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{test multirow cells} 13 | \begin{tabular}{|l|l|l|l|} 14 | \hline 15 | \multirow{4}{1.5cm}{Multirow Cell One} 16 | & Alpha & 17 | \multirow{4}{1.5cm}{Multirow Cell Two} & Alpha \\ 18 | & Beta & & Beta \\ 19 | & Gamma & & Gamma \\ 20 | & Delta & & Delta \\ 21 | \hline 22 | \end{tabular} 23 | \SetTblrInner{rows={rowsep=0pt}} 24 | \begin{tblr}{|l|l|l|l|} 25 | \hline 26 | \SetCell[r=4]{1.5cm} Multirow Cell One 27 | & Alpha & 28 | \SetCell[r=4]{1.5cm} Multirow Cell Two & Alpha \\ 29 | & Beta & & Beta \\ 30 | & Gamma & & Gamma \\ 31 | & Delta & & Delta \\ 32 | \hline 33 | \end{tblr} 34 | \ENDTEST 35 | 36 | \bigskip\hrule\bigskip 37 | 38 | \BEGINTEST{test multirow cells with double hlines}%#141 39 | \begin{tblr}{colspec={llll}, hlines, vlines, hline{2}={2}{-}{solid}} 40 | A & \SetCell[c=2]{c} B & C & D \\ 41 | E & F & G & H 42 | \end{tblr} 43 | \qquad 44 | \begin{tblr}{colspec={c|c|c},hlines} 45 | \hline 46 | A & B & C \\ 47 | \SetCell[r=2]{c} A & B1 & C1 \\ 48 | & B2 & C2 \\ 49 | \hline 50 | \end{tblr} 51 | \ENDTEST 52 | 53 | \end{document} 54 | -------------------------------------------------------------------------------- /testfiles/cell-007.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: test multirow cells 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: test multirow cells with double hlines 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (cell-007.aux) 13 | -------------------------------------------------------------------------------- /testfiles/cell-008.md5: -------------------------------------------------------------------------------- 1 | 939f36bdd1d15c8e5e6b2e633f9e3d0e -------------------------------------------------------------------------------- /testfiles/cell-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-008.png -------------------------------------------------------------------------------- /testfiles/cell-008.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multirow: legacy 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multirow: modern 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: multirow: modern with vspan=even 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (cell-008.aux) 17 | -------------------------------------------------------------------------------- /testfiles/cell-009.md5: -------------------------------------------------------------------------------- 1 | 6c1d2d058e0110dfa35c40f813f2ac43 -------------------------------------------------------------------------------- /testfiles/cell-009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-009.png -------------------------------------------------------------------------------- /testfiles/cell-009.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{multirow} 6 | 7 | \ExplSyntaxOn 8 | \let \replicate = \prg_replicate:nn 9 | \ExplSyntaxOff 10 | 11 | \begin{document} 12 | 13 | \hrule\bigskip 14 | 15 | tabular \par 16 | 17 | \bigskip 18 | 19 | \begin{tabular}{|c|c|c|c|c|} 20 | \hline 21 | \multirow{2}{*}{Multirow} 22 | & \multicolumn{2}{c|}{Multicolumn} 23 | & \multicolumn{2}{c|}{\multirow{2}{*}{Multirow and Multicolumn}} \\ 24 | \hline 25 | & column-2 & column-3 & \multicolumn{2}{c|}{} \\ 26 | \hline 27 | cell-1 & cell-2 & cell-3 & cell-4 & cell-5 \\ 28 | \hline 29 | \end{tabular} 30 | 31 | \bigskip 32 | 33 | \begin{tabular}{|c|c|c|c|c|} 34 | \hline 35 | \multirow{2}{*}{Multirow} 36 | & \multicolumn{2}{c|}{Multicolumn} 37 | & \multicolumn{2}{c|}{\multirow{2}{*}{Multirow and Multicolumn}} \\ 38 | \cline{2-3} 39 | & column-2 & column-3 & \multicolumn{2}{c|}{} \\ 40 | \hline 41 | cell-1 & cell-2 & cell-3 & cell-4 & cell-5 \\ 42 | \hline 43 | \end{tabular} 44 | 45 | \bigskip 46 | 47 | tabularray \par 48 | 49 | \bigskip 50 | 51 | \START 52 | 53 | \BEGINTEST{multirow and multicolumn: \cline} 54 | \begin{tblr}{|c|c|c|c|c|} 55 | \hline 56 | \SetCell[r=2]{c} Multirow 57 | & \SetCell[c=2]{c} Multicolumn 58 | & & \SetCell[r=2,c=2]{c} Multirow and Multicolumn \\ 59 | \cline{2-3} 60 | ??? & column-2 & column-3 & ??? \\ 61 | \hline 62 | cell-1 & cell-2 & cell-3 & cell-4 & cell-5 \\ 63 | \hline 64 | \end{tblr} 65 | \ENDTEST 66 | 67 | \bigskip 68 | 69 | \BEGINTEST{multirow and multicolumn: \hline} 70 | \begin{tblr}{|c|c|c|c|c|} 71 | \hline 72 | \SetCell[r=2]{c} Multirow 73 | & \SetCell[c=2]{c} Multicolumn 74 | & & \SetCell[r=2,c=2]{c} Multirow and Multicolumn \\ 75 | \hline 76 | ??? & column-2 & column-3 & ??? \\ 77 | \hline 78 | cell-1 & cell-2 & cell-3 & cell-4 & cell-5 \\ 79 | \hline 80 | \end{tblr} 81 | \ENDTEST 82 | 83 | \end{document} 84 | -------------------------------------------------------------------------------- /testfiles/cell-009.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multirow and multicolumn: \cline 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multirow and multicolumn: \hline 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (cell-009.aux) 13 | -------------------------------------------------------------------------------- /testfiles/cell-010.md5: -------------------------------------------------------------------------------- 1 | 29ac6d5a8e3de67c9e64193bcfabda59 -------------------------------------------------------------------------------- /testfiles/cell-010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-010.png -------------------------------------------------------------------------------- /testfiles/cell-010.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \ExplSyntaxOn 6 | \let \replicate = \prg_replicate:nn 7 | \ExplSyntaxOff 8 | 9 | \begin{document} 10 | 11 | \hrule\bigskip 12 | 13 | \START 14 | 15 | \BEGINTEST{testing cmd option} 16 | \begin{tblr}{ 17 | column{3} = {cmd=\fbox}, 18 | row{2} = {cmd=\underline}, 19 | cell{1}{3} = {cmd=}, 20 | } 21 | \hline 22 | Alpha & Beta & Gamma \\ 23 | Epsilon & Zeta & Eta \\ 24 | Iota & Kappa & Lambda \\ 25 | Nu & Xi & Omicron \\ 26 | \hline 27 | \end{tblr} 28 | \ENDTEST 29 | 30 | \end{document} 31 | -------------------------------------------------------------------------------- /testfiles/cell-010.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing cmd option 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (cell-010.aux) 9 | -------------------------------------------------------------------------------- /testfiles/cell-011.md5: -------------------------------------------------------------------------------- 1 | 74941bca6c9c21fcbc6498241d7fcc4d -------------------------------------------------------------------------------- /testfiles/cell-011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/cell-011.png -------------------------------------------------------------------------------- /testfiles/cell-011.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \SetTblrInner{rowsep=0pt} 6 | 7 | \begin{document} 8 | 9 | \hrule\bigskip 10 | 11 | \START 12 | 13 | \BEGINTEST{testing new implementation for stretch option #265} 14 | \begin{tabular}{|p{4cm}|l|} 15 | \hline 16 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & t \\ 17 | \hline 18 | \end{tabular} 19 | \begin{tblr}{|p{4cm}|l|} 20 | \hline 21 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & t \\ 22 | \hline 23 | \end{tblr} 24 | \par\smallskip 25 | \begin{tabular}{|b{4cm}|l|} 26 | \hline 27 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & b \\ 28 | \hline 29 | \end{tabular} 30 | \begin{tblr}{|b{4cm}|l|} 31 | \hline 32 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & b \\ 33 | \hline 34 | \end{tblr} 35 | \par\smallskip 36 | \begin{tabular}{|m{4cm}|l|} 37 | \hline 38 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & m \\ 39 | \hline 40 | \end{tabular} 41 | \begin{tblr}{|m{4cm}|l|} 42 | \hline 43 | pgrs pgrs pgrs pgrs pgrs pgrs. the quick brown fox jumps over the lazy dog. abcd abcd abcd. & m \\ 44 | \hline 45 | \end{tblr} 46 | \ENDTEST 47 | 48 | \end{document} 49 | -------------------------------------------------------------------------------- /testfiles/cell-011.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing new implementation for stretch option ##265 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (cell-011.aux) 9 | -------------------------------------------------------------------------------- /testfiles/color-001.md5: -------------------------------------------------------------------------------- 1 | b065e8d55ce6c2b6dd21f9bc18147f31 -------------------------------------------------------------------------------- /testfiles/color-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/color-001.png -------------------------------------------------------------------------------- /testfiles/color-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | \UseTblrLibrary{varwidth} 7 | \SetTblrInner[tblr]{measure=hbox} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\medskip 13 | 14 | \BEGINTEST{cell background} 15 | \begin{tblr}[b]{|l|[dotted]|[2pt]c|r|[solid]|[dashed]|} 16 | \hline 17 | \SetCell{b,r,orange}Onej & Two & Three \\ 18 | \hline\hline\hline 19 | Four & \SetCell{teal}Five & Six \\ 20 | \hline\hline 21 | \SetCell{lime}Seven & Eight & Nine \\ 22 | \hline 23 | \end{tblr} 24 | \qquad 25 | \begin{tblr}[b]{|Q[h,l]|[dotted]|[2pt]Q[h,c]|Q[h,r]|[solid]|[dashed]|} 26 | \hline 27 | \SetCell{f,r,orange}Onej & Two & Three \\ 28 | \hline\hline\hline 29 | Four & \SetCell{teal}Five & Six \\ 30 | \hline\hline 31 | \SetCell{lime}Seven & Eight & Nine \\ 32 | \hline 33 | \end{tblr} 34 | \ENDTEST 35 | 36 | \medskip\hrule\medskip 37 | 38 | %% Issue #2: Setting fonts? 39 | \BEGINTEST{cell foreground and font with measure=hbox} 40 | \begin{tblr}{ 41 | colspec = {lcr}, 42 | row{odd} = {bg=azure9}, 43 | row{1} = {c,bg=azure3,fg=white,font=\sffamily}, 44 | measure = hbox, 45 | } 46 | Alpha & Beta & Gamma \\ 47 | Delta & Epsilon & Zeta \\ 48 | Eta & Theta & Iota \\ 49 | Kappa & Lambda & Mu \\ 50 | Nu Xi Omicron & Pi Rho Sigma & Tau Upsilon Phi \\ 51 | \end{tblr} 52 | \ENDTEST 53 | 54 | \bigskip 55 | 56 | %% Issue #36: \color inside varwidth 57 | \BEGINTEST{cell foreground and font with measure=vbox} 58 | \begin{tblr}{ 59 | colspec = {lcr}, 60 | row{odd} = {bg=azure9}, 61 | row{1} = {c,bg=azure3,fg=white,font=\sffamily}, 62 | measure = vbox, 63 | } 64 | Alpha & Beta & Gamma \\ 65 | Delta & Epsilon & Zeta \\ 66 | Eta & Theta & Iota \\ 67 | Kappa & Lambda & Mu \\ 68 | Nu Xi Omicron & Pi Rho Sigma & Tau Upsilon Phi \\ 69 | \end{tblr} 70 | \ENDTEST 71 | 72 | \medskip\hrule\medskip 73 | 74 | %% Issue #62: make fg option revisable 75 | \BEGINTEST{overwrite cell foreground} 76 | \begin{tblr}{ 77 | hlines, vlines, 78 | cells = {fg=white,bg=gray5}, 79 | cell{2}{2} = {fg=green8,bg=blue2}, 80 | } 81 | A & B \\ 82 | C & D \\ 83 | \end{tblr} 84 | \ENDTEST 85 | 86 | \end{document} 87 | -------------------------------------------------------------------------------- /testfiles/color-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: cell background 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: cell foreground and font with measure=hbox 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: cell foreground and font with measure=vbox 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: overwrite cell foreground 17 | ============================================================ 18 | ============================================================ 19 | [1 20 | ] (color-001.aux) 21 | -------------------------------------------------------------------------------- /testfiles/color-002.md5: -------------------------------------------------------------------------------- 1 | f6550591d5c6af94c85141c92c228f93 -------------------------------------------------------------------------------- /testfiles/color-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/color-002.png -------------------------------------------------------------------------------- /testfiles/color-002.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \hrule 10 | 11 | \START 12 | 13 | \bigskip 14 | 15 | \BEGINTEST{column background and row background: legacy} 16 | \begin{tblr}[b]{ 17 | width=0.7\linewidth, 18 | colspec={|Q[l,wd=0.14\linewidth]||Q[c,2.5,teal7]|Q[r,0.1\linewidth]| 19 | |[dash=dashed]|Q[azure7,r]|X[-2,c]|Q[l,1.5cm]|} 20 | } 21 | \hline 22 | One & Two & Three & Onej & Two & \SetColumn{bg=red7}Three \\ 23 | \cline[dotted]{1-3} 24 | \SetRow{r,brown7} 25 | One & Two & Three & Onej & Two & Three \\ 26 | \hline\cline[dashed]{4-6} 27 | One & Two & Three & Onej & Two & Three \\ 28 | \hline\cline[dashed]{1}\cline[dotted]{3,4}\hline 29 | \SetRow{r,yellow7} 30 | Four & Five & Six & Four & Five & Six \\ 31 | \cline{2-3,5}\hline 32 | Seven & Eight & Nine & Seven & Eight & Nine \\ 33 | \hline\hline 34 | \SetRow{c,purple7} 35 | Seven & Eight & Nine & Seven & Eight & Nine \\ 36 | \hline\hline 37 | Seven & Eight & Nine & Seven & Eight & Nine \\ 38 | \hline\hline 39 | \end{tblr} 40 | \ENDTEST 41 | 42 | \bigskip 43 | 44 | \BEGINTEST{column background and row background: modern} 45 | \begin{tblr}[b]{ 46 | width=0.7\linewidth, 47 | colspec={|Q[h,l,wd=0.14\linewidth]||Q[h,c,2.5,teal7]|Q[h,r,0.1\linewidth]| 48 | |[dashed]|Q[azure7,h,r]|X[-2,h,c]|Q[h,l,1.5cm]|} 49 | } 50 | \hline 51 | One & Two & Three & Onej & Two & \SetColumn{bg=red7}Three \\ 52 | \cline[dotted]{1-3} 53 | \SetRow{r,brown7} 54 | One & Two & Three & Onej & Two & Three \\ 55 | \hline\cline[dashed]{4-6} 56 | One & Two & Three & Onej & Two & Three \\ 57 | \hline\cline[dashed]{1}\cline[dotted]{3,4}\hline 58 | \SetRow{r,yellow7} 59 | Four & Five & Six & Four & Five & Six \\ 60 | \cline{2-3,5}\hline 61 | Seven & Eight & Nine & Seven & Eight & Nine \\ 62 | \hline\hline 63 | \SetRow{c,purple7} 64 | Seven & Eight & Nine & Seven & Eight & Nine \\ 65 | \hline\hline 66 | Seven & Eight & Nine & Seven & Eight & Nine \\ 67 | \hline\hline 68 | \end{tblr} 69 | \ENDTEST 70 | 71 | \end{document} 72 | -------------------------------------------------------------------------------- /testfiles/color-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: column background and row background: legacy 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: column background and row background: modern 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (color-002.aux) 13 | -------------------------------------------------------------------------------- /testfiles/color-003.md5: -------------------------------------------------------------------------------- 1 | 61dbc6ea65c6d92df01f3a43aa0188d4 -------------------------------------------------------------------------------- /testfiles/color-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/color-003.png -------------------------------------------------------------------------------- /testfiles/color-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \hrule 10 | 11 | \START 12 | 13 | \bigskip 14 | 15 | \BEGINTEST{multicolumn: compute column widths from span widths} 16 | TB\begin{tblr}{|l|l|l|Q[t,l]|l|} 17 | \hline 18 | 11111111 & 222222 & 333big333 & 4444 \\ 19 | \hline 20 | \SetCell[c=2]{teal7}12 12 12 12 12 12 12 12 12 12 & 222 & 333 & 444 \\ 21 | \hline 22 | \SetCell[c=3]{red7}13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 & 222 & 333 & 444 \\ 23 | \hline 24 | 111 & \SetCell[c=2]{blue7}23 23 23 23 23 23 23 23 & 333 & 444 \\ 25 | \hline 26 | \SetCell[c=4]{brown7}14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 & 222 & 333 & 444 \\ 27 | \hline 28 | 111 & \SetCell[c=3]{cyan7}24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 & 333 & 444 \\ 29 | \hline 30 | 111 & 222 & \SetCell[c=2]{yellow7}34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 & 444 \\ 31 | \hline 32 | \end{tblr}LR 33 | \ENDTEST 34 | 35 | \bigskip 36 | 37 | \BEGINTEST{multicolumn: compute span widths from column widths} 38 | TB\begin{tblr}{hspan=minimal,colspec={|l|l|l|Q[t,l]|l|}} 39 | \hline 40 | 11111111 & 222222 & 333big333 & 4444 \\ 41 | \hline 42 | \SetCell[c=2]{teal7}12 12 12 12 12 12 12 12 12 12 & 222 & 333 & 444 \\ 43 | \hline 44 | \SetCell[c=3]{red7}13 13 13 13 13 13 13 13 13 13 13 13 13 13 13 & 222 & 333 & 444 \\ 45 | \hline 46 | 111 & \SetCell[c=2]{blue7}23 23 23 23 23 23 23 23 & 333 & 444 \\ 47 | \hline 48 | \SetCell[c=4]{brown7}14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 & 222 & 333 & 444 \\ 49 | \hline 50 | 111 & \SetCell[c=3]{cyan7}24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 24 & 333 & 444 \\ 51 | \hline 52 | 111 & 222 & \SetCell[c=2]{yellow7}34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 & 444 \\ 53 | \hline 54 | \end{tblr}LR 55 | \ENDTEST 56 | 57 | \end{document} 58 | -------------------------------------------------------------------------------- /testfiles/color-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multicolumn: compute column widths from span widths 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multicolumn: compute span widths from column widths 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (color-003.aux) 13 | -------------------------------------------------------------------------------- /testfiles/color-004.md5: -------------------------------------------------------------------------------- 1 | fc47e7f30d961c4b9c34047abffa1d67 -------------------------------------------------------------------------------- /testfiles/color-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/color-004.png -------------------------------------------------------------------------------- /testfiles/color-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \hrule 10 | 11 | \START 12 | 13 | \SetTblrInner{stretch=0,cells={l}} 14 | 15 | \bigskip 16 | 17 | \BEGINTEST{multirow background: legacy} 18 | \begin{tblr}{|t{4em}|b{4em}|m{4em}|m{4em}|b{4em}|t{4em}|} 19 | \hline 20 | \SetCell[r=2]{b,brown7} b 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 & 21 | \SetCell{t,blue7} base top base top & 22 | \SetCell{azure7} middle & 23 | \SetCell[r=3]{t,red7} t 13 13 & 24 | \SetCell{azure7} base bot base bot & 25 | \SetCell[r=4]{t,red7} t 14 14 \\ 26 | \cline{2-3}\cline{5-5} 27 | \SetCell{azure7} 12 12 12 12 12 & 28 | \SetCell[r=2]{t,red7} t 23 23 & 29 | \SetCell{b,blue7} base bot base bot & & 30 | \SetCell[r=3]{b,brown7} b 24 24 & \\ 31 | \cline{1-1}\cline{3-3} 32 | \SetCell{azure7} base top base top & & 33 | \SetCell[r=2]{m,brown7} m 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 & & & \\ 34 | \cline{1-2}\cline{4-4} 35 | \SetCell{blue7} base top base top & 36 | \SetCell{b,azure7} base bot base bot & & 37 | \SetCell{m,azure7} middle & & \\ 38 | \hline 39 | \end{tblr} 40 | \ENDTEST 41 | 42 | \bigskip 43 | 44 | \BEGINTEST{multirow background: modern} 45 | \begin{tblr}{|h{4em}|f{4em}|m{4em}|m{4em}|f{4em}|h{4em}|} 46 | \hline 47 | \SetCell[r=2]{f,brown7} f 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 12 & 48 | \SetCell{h,blue7} row head row head & 49 | \SetCell{azure7} middle & 50 | \SetCell[r=3]{h,red7} h 13 13 & 51 | \SetCell{azure7} row foot row foot & 52 | \SetCell[r=4]{h,red7} h 14 14 \\ 53 | \cline{2-3}\cline{5-5} 54 | 12 12 12 12 12 & 55 | \SetCell[r=2]{h,red7} h 23 23 & 56 | \SetCell{f,blue7} row foot row foot & & 57 | \SetCell[r=3]{f,brown7} f 24 24 & \\ 58 | \cline{1-1}\cline{3-3} 59 | \SetCell{azure7} row head row head & & 60 | \SetCell[r=2]{m,brown7} m 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 34 & & & \\ 61 | \cline{1-2}\cline{4-4} 62 | \SetCell{blue7} row head row head & 63 | \SetCell{f,azure7} row foot row foot & & 64 | \SetCell{m,azure7} middle & & \\ 65 | \hline 66 | \end{tblr} 67 | 68 | \ENDTEST 69 | 70 | \end{document} 71 | -------------------------------------------------------------------------------- /testfiles/color-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multirow background: legacy 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multirow background: modern 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (color-004.aux) 13 | -------------------------------------------------------------------------------- /testfiles/color-005.md5: -------------------------------------------------------------------------------- 1 | cdb16347e94e025943b86a8165a8fecc -------------------------------------------------------------------------------- /testfiles/color-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/color-005.png -------------------------------------------------------------------------------- /testfiles/color-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \begin{document} 8 | 9 | \hrule\bigskip 10 | 11 | \START 12 | 13 | \BEGINTEST{multirow and multicolumn: \cline} 14 | \begin{tblr}{|c|c|c|c|c|} 15 | \hline 16 | \SetRow{red7}\SetCell[r=2]{c} Multirow 17 | & \SetCell[c=2]{c} Multicolumn 18 | & & \SetCell[r=2,c=2]{c} Multirow and Multicolumn \\ 19 | \cline{2-3} 20 | ??? & column-2 & column-3 & ??? \\ 21 | \hline 22 | cell-1 & cell-2 & cell-3 & cell-4 & cell-5 \\ 23 | \hline 24 | \end{tblr} 25 | \ENDTEST 26 | 27 | \BEGINTEST{multirow and multicolumn: \hline} 28 | \bigskip 29 | \begin{tblr}{ 30 | cell{2-3}{-}={yellow7}, 31 | cell{-}{3-4}={purple7}, 32 | cell{2}{3}={c=2,r=2}{teal7}, 33 | } 34 | \hline 35 | one & two & three & alpha & beta & gamma \\ 36 | \hline 37 | four & five & six six six six six six & delta & epsilon & zeta \\ 38 | \hline 39 | seven & eight & nine & eta & theta & iota \\ 40 | \hline 41 | ten & eleven & twelve & kappa & lambda & mu \\ 42 | \hline 43 | \end{tblr} 44 | \ENDTEST 45 | 46 | \end{document} 47 | -------------------------------------------------------------------------------- /testfiles/color-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: multirow and multicolumn: \cline 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: multirow and multicolumn: \hline 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (color-005.aux) 13 | -------------------------------------------------------------------------------- /testfiles/extra-001.md5: -------------------------------------------------------------------------------- 1 | 7f2e25c0ceb83d7a987ea490f709d954 -------------------------------------------------------------------------------- /testfiles/extra-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/extra-001.png -------------------------------------------------------------------------------- /testfiles/extra-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{environ} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{testing expand option} 13 | \def\tblrrowa{ 14 | 20 & 30 & 40 \\ } 15 | \def\tblrrowb{ 16 | 50 & 60 & 70 \\ } 17 | \def\tblrbody{ 18 | \hline 19 | \tblrrowa 20 | \tblrrowb 21 | \hline 22 | } 23 | \SetTblrOuter{expand=\tblrbody\tblrrowa} 24 | \begin{tblr}[expand+=\tblrrowb]{ccc} 25 | \hline 26 | AA & BB & CC \\ 27 | \tblrbody 28 | DD & EE & FF \\ 29 | \tblrbody 30 | GG & HH & II \\ 31 | \hline 32 | \end{tblr} 33 | \ENDTEST 34 | 35 | \bigskip\hrule\bigskip 36 | 37 | \BEGINTEST{testing \NewEnviron} 38 | \NewEnviron{fancytblr}[1]{ 39 | Before Text 40 | \begin{tblr}[expand=\BODY]{#1} 41 | \BODY 42 | \end{tblr} 43 | After Text 44 | } 45 | \begin{fancytblr}{hlines} 46 | One & Two & Three \\ 47 | Four & Five & Six \\ 48 | Seven & Eight & Nine \\ 49 | \end{fancytblr} 50 | \ENDTEST 51 | 52 | \end{document} 53 | -------------------------------------------------------------------------------- /testfiles/extra-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing expand option 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing \NewEnviron 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (extra-001.aux) 13 | -------------------------------------------------------------------------------- /testfiles/extra-002.md5: -------------------------------------------------------------------------------- 1 | 8d5666c4c023be5c759f4b7bd946b687 -------------------------------------------------------------------------------- /testfiles/extra-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/extra-002.png -------------------------------------------------------------------------------- /testfiles/extra-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: even, odd and every selectors with options 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: named indexes U-Z 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: every selector with negative start and end indexes 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: name indexes U-Z ensured positive 17 | ============================================================ 18 | ============================================================ 19 | [1 20 | ] (extra-002.aux) 21 | -------------------------------------------------------------------------------- /testfiles/extra-003.md5: -------------------------------------------------------------------------------- 1 | b0aab0b5bb0513a1494fbe28af58bc53 -------------------------------------------------------------------------------- /testfiles/extra-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/extra-003.png -------------------------------------------------------------------------------- /testfiles/extra-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \setlength{\parindent}{0pt} 6 | 7 | \ExplSyntaxOn 8 | \NewChildSelector{two}[2][1]{\clist_set:Nn \lTblrChildClist {#1,#2}} 9 | \NewChildSelector{three}[3][1]{\clist_set:Nn \lTblrChildClist {#1,#2,#3}} 10 | \ExplSyntaxOff 11 | 12 | \begin{document} 13 | 14 | \hrule\bigskip 15 | 16 | \START 17 | 18 | \BEGINTEST{child selector: mixing with child indexes} % issue #577 19 | \begin{tblr}{ 20 | hlines, hline{three[7]{3}{5},8} = {wd=2pt}, 21 | row{1,two[2]{4},9} = {ht=2em} 22 | } 23 | 1 & 2 & 3 \\ 24 | 4 & 5 & 6 \\ 25 | 7 & 8 & 9 \\ 26 | 1 & 2 & 3 \\ 27 | 4 & 5 & 6 \\ 28 | 7 & 8 & 9 \\ 29 | 1 & 2 & 3 \\ 30 | 4 & 5 & 6 \\ 31 | 7 & 8 & 9 \\ 32 | \end{tblr} 33 | \ENDTEST 34 | 35 | \end{document} 36 | -------------------------------------------------------------------------------- /testfiles/extra-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: child selector: mixing with child indexes 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (extra-003.aux) 9 | -------------------------------------------------------------------------------- /testfiles/extra-004.md5: -------------------------------------------------------------------------------- 1 | 56cdb2678a12bef07c4c6db38545f0d6 -------------------------------------------------------------------------------- /testfiles/extra-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/extra-004.png -------------------------------------------------------------------------------- /testfiles/extra-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \setlength{\parindent}{0pt} 8 | 9 | \ExplSyntaxOn 10 | \NewTblrChildIndexer{Hello} 11 | { 12 | \tl_set:Nn \lTblrChildIndexTl {{5}{5}} 13 | } 14 | \NewTblrChildSelector{world} 15 | { 16 | \clist_set:Nn \lTblrChildClist {{1}{2},{2}{1},{3}{4},{4}{3}} 17 | } 18 | \ExplSyntaxOff 19 | 20 | \begin{document} 21 | 22 | \hrule\bigskip 23 | 24 | \START 25 | 26 | \BEGINTEST{child tuples: diagonal selection} % issue #381 27 | \begin{tblr}{ 28 | hline{1,Z}, 29 | cell{{2}{4},{7}{3}} = {bg=blue7}, 30 | cell{{1}{1}-{4}{4},{5}{8}-{8}{5}} = {bg=red7}, 31 | cell{{4}{3}-{1}{1},{6}{5}-{4}{8}} = {bg=green7}, 32 | } 33 | 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 34 | 2 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 35 | 3 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 36 | 4 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 37 | 5 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 38 | 6 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 39 | 7 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 40 | 8 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 41 | \end{tblr} 42 | \ENDTEST 43 | 44 | \bigskip\hrule\bigskip 45 | 46 | \BEGINTEST{child tuples: indexers and selectors} % issue #381 47 | \begin{tblr}{ 48 | hline{1,Z}, 49 | cell{{7}{6},Hello,{8}{7},world,{6}{8}} = {bg=yellow7}, 50 | } 51 | 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 52 | 2 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 53 | 3 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 54 | 4 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 55 | 5 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 56 | 6 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 57 | 7 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 58 | 8 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 59 | \end{tblr} 60 | \ENDTEST 61 | 62 | \end{document} 63 | -------------------------------------------------------------------------------- /testfiles/extra-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: child tuples: diagonal selection 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: child tuples: indexers and selectors 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (extra-004.aux) 13 | -------------------------------------------------------------------------------- /testfiles/extra-005.md5: -------------------------------------------------------------------------------- 1 | db63722e6e172737e75f8ca0bf7693fd -------------------------------------------------------------------------------- /testfiles/extra-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/extra-005.png -------------------------------------------------------------------------------- /testfiles/extra-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \hrule\bigskip 12 | 13 | \START 14 | 15 | \BEGINTEST{child ids and child classes} % issue #381 16 | 17 | \begin{tblr}{ 18 | hline{1,Z}, 19 | cell{Foo,foo,Qux,qux} = {cmd=\fbox}, 20 | row{Barh,barh,Quxh,quxh} = {bg=azure7}, 21 | column{Bazv,bazv,Quxv,quxv} = {fg=red3} 22 | } 23 | 1 & 2 & 3 & \SetChild{id=Foo} 4 & 5 & 6 & 7 & 8 \\ 24 | 2 & 2 & \SetChild{idh=Bar} 3 & 4 & 5 & 6 & 7 & 8 \\ 25 | 3 & \SetChild{idv=Baz} 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 26 | \SetChild{id*=Qux} 4 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 27 | 5 & 2 & 3 & 4 & \SetChild{class=foo}5 & 6 & 7 & 8 \\ 28 | 6 & 2 & 3 & 4 & 5 & \SetChild{classh=bar}6 & 7 & 8 \\ 29 | 7 & 2 & 3 & 4 & 5 & 6 & \SetChild{classv=baz}7 & 8 \\ 30 | 8 & 2 & 3 & 4 & 5 & 6 & 7 & \SetChild{class*=qux} 8 \\ 31 | \end{tblr} 32 | \ENDTEST 33 | 34 | \bigskip\hrule\bigskip 35 | 36 | \BEGINTEST{duplicate child ids} % issue #381 37 | \begin{tblr}{ 38 | hline{1,Z}, 39 | cell{Foo,Qux} = {cmd=\fbox}, 40 | row{Barh,Quxh} = {bg=azure7}, 41 | column{Bazv,Quxv} = {fg=red3} 42 | } 43 | 1 & 2 & 3 & \SetChild{id=Foo} 4 & 5 & 6 & 7 & 8 \\ 44 | 2 & 2 & \SetChild{idh=Bar} 3 & 4 & 5 & 6 & 7 & 8 \\ 45 | 3 & \SetChild{idv=Baz} 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 46 | \SetChild{id*=Qux} 4 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 47 | 5 & 2 & 3 & 4 & \SetChild{id*=Foo}5 & 6 & 7 & 8 \\ 48 | 6 & 2 & 3 & 4 & 5 & \SetChild{idh=Bar}6 & 7 & 8 \\ 49 | 7 & 2 & 3 & 4 & 5 & 6 & \SetChild{idv=Baz}7 & 8 \\ 50 | 8 & 2 & 3 & 4 & 5 & 6 & 7 & \SetChild{id=Qux} 8 \\ 51 | \end{tblr} 52 | \ENDTEST 53 | 54 | \bigskip\hrule\bigskip 55 | 56 | \BEGINTEST{duplicate child classes} % issue #381 57 | \begin{tblr}{ 58 | hline{1,Z}, 59 | cell{foo,qux} = {cmd=\fbox}, 60 | row{barh,quxh} = {bg=azure7}, 61 | column{bazv,quxv} = {fg=red3} 62 | } 63 | 1 & 2 & 3 & \SetChild{class*=foo} 4 & 5 & 6 & 7 & 8 \\ 64 | 2 & 2 & \SetChild{classh=bar} 3 & 4 & 5 & 6 & 7 & 8 \\ 65 | 3 & \SetChild{classv=baz} 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 66 | \SetChild{class=qux} 4 & 2 & 3 & 4 & 5 & 6 & 7 & 8 \\ 67 | 5 & 2 & 3 & 4 & \SetChild{class=foo}5 & 6 & 7 & 8 \\ 68 | 6 & 2 & 3 & 4 & 5 & \SetChild{classh=bar}6 & 7 & 8 \\ 69 | 7 & 2 & 3 & 4 & 5 & 6 & \SetChild{classv=baz}7 & 8 \\ 70 | 8 & 2 & 3 & 4 & 5 & 6 & 7 & \SetChild{class*=qux} 8 \\ 71 | \end{tblr} 72 | \ENDTEST 73 | 74 | \end{document} 75 | -------------------------------------------------------------------------------- /testfiles/extra-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: child ids and child classes 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: duplicate child ids 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: duplicate child classes 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (extra-005.aux) 17 | -------------------------------------------------------------------------------- /testfiles/hvline-001.md5: -------------------------------------------------------------------------------- 1 | 707be55c9f63935017fdf54be5015705 -------------------------------------------------------------------------------- /testfiles/hvline-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/hvline-001.png -------------------------------------------------------------------------------- /testfiles/hvline-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | 9 | \hrule\bigskip 10 | 11 | \BEGINTEST{hline and vline} 12 | \begin{tblr}{|l|[dotted]|[2pt]c|r|[solid]|[dashed]|} 13 | \hline 14 | One & Two & Three \\ 15 | \hline\hline[dotted]\hline 16 | Four & Five & Six \\ 17 | \hline[dashed]\hline[1pt] 18 | Seven & Eight & Nine \\ 19 | \hline 20 | \end{tblr} 21 | \ENDTEST 22 | 23 | \bigskip\hrule\bigskip 24 | 25 | \BEGINTEST{hline and vline segments of different widths #260} 26 | \begin{tblr}{ 27 | hlines, vlines, 28 | hline{2} = {1}{1}{4pt}, 29 | hline{2} = {2}{1}{2pt}, 30 | hline{2} = {1}{2}{2pt}, 31 | hline{2} = {2}{2}{4pt}, 32 | } 33 | Alpha & Beta \\ 34 | Epsilon & Zeta \\ 35 | \end{tblr} 36 | \begin{tblr}{ 37 | hlines, vlines, 38 | vline{2} = {1}{1}{4pt}, 39 | vline{2} = {2}{1}{2pt}, 40 | vline{2} = {1}{2}{2pt}, 41 | vline{2} = {2}{2}{4pt}, 42 | } 43 | Alpha & Beta \\ 44 | Epsilon & Zeta \\ 45 | \end{tblr} 46 | \ENDTEST 47 | 48 | \end{document} 49 | -------------------------------------------------------------------------------- /testfiles/hvline-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: hline and vline 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: hline and vline segments of different widths ##260 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (hvline-001.aux) 13 | -------------------------------------------------------------------------------- /testfiles/hvline-002.md5: -------------------------------------------------------------------------------- 1 | 1d77b0df29c7d5839b131f04dc5e0189 -------------------------------------------------------------------------------- /testfiles/hvline-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/hvline-002.png -------------------------------------------------------------------------------- /testfiles/hvline-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: hlines and vlines 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: hlines and vlines 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: hlines and vlines 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: hlines and vlines 17 | ============================================================ 18 | ============================================================ 19 | [1 20 | ] (hvline-002.aux) 21 | -------------------------------------------------------------------------------- /testfiles/hvline-003.md5: -------------------------------------------------------------------------------- 1 | 874c0d93faf7e1b940b1c450d0d36d3b -------------------------------------------------------------------------------- /testfiles/hvline-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/hvline-003.png -------------------------------------------------------------------------------- /testfiles/hvline-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing leftpos and rightpos 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing abovepos and belowpos 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: vline positions when belowpos=0 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (hvline-003.aux) 17 | -------------------------------------------------------------------------------- /testfiles/hvline-004.md5: -------------------------------------------------------------------------------- 1 | e1c300e619803038d1f20340e4780598 -------------------------------------------------------------------------------- /testfiles/hvline-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/hvline-004.png -------------------------------------------------------------------------------- /testfiles/hvline-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \setlength\parindent{0pt} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{empty text} 13 | \begin{tblr}{ 14 | hlines, 15 | vlines, 16 | hline{1}={text={}}, 17 | vline{1}={text={}}, 18 | } 19 | a 20 | \end{tblr} 21 | \ENDTEST 22 | 23 | \bigskip\hrule\bigskip 24 | 25 | % issue #303 26 | \BEGINTEST{fragile text} 27 | \begin{tblr}{ 28 | hlines, 29 | vlines, 30 | hline{1}={text={\def\x{}\rlap{--h--}}}, 31 | vline{1}={text={\textbf{v}}}, 32 | } 33 | a 34 | \end{tblr} 35 | \ENDTEST 36 | 37 | \end{document} 38 | -------------------------------------------------------------------------------- /testfiles/hvline-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: empty text 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: fragile text 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (hvline-004.aux) 13 | -------------------------------------------------------------------------------- /testfiles/hvline-005.md5: -------------------------------------------------------------------------------- 1 | d0317c2476652da6068a9117ce1b92d2 -------------------------------------------------------------------------------- /testfiles/hvline-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/hvline-005.png -------------------------------------------------------------------------------- /testfiles/hvline-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{ninecolors} 6 | 7 | \setlength\parindent{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{empty text} 15 | \setlength\lTblrDefaultHruleWidthDim{3pt}% 16 | \setlength\lTblrDefaultVruleWidthDim{2pt}% 17 | \renewcommand\lTblrDefaultHruleColorTl{blue3}% 18 | \renewcommand\lTblrDefaultVruleColorTl{red3}% 19 | \begin{tblr}{ 20 | hlines, hline{2} = {wd=1pt, fg=cyan3}, 21 | vlines, vline{2} = {wd=1pt, fg=green3} 22 | } 23 | Alpha & Beta & Gamma \\ 24 | Epsilon & Zeta & Eta \\ 25 | Iota & Kappa & Lambda \\ 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/hvline-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: empty text 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (hvline-005.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-001.md5: -------------------------------------------------------------------------------- 1 | a334284baa2ae4053fe538c95b16e479 -------------------------------------------------------------------------------- /testfiles/library-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-001.png -------------------------------------------------------------------------------- /testfiles/library-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{booktabs} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{booktabs: testing} 13 | \begin{tabular}{llll} 14 | \toprule 15 | Alpha & Beta & Gamma & Delta \\ 16 | \midrule 17 | Epsilon & Zeta & Eta & Theta \\ 18 | Iota & Kappa & Lambda & Mu \\ 19 | Nu & Xi & Omicron & Pi \\ 20 | \bottomrule 21 | \end{tabular} 22 | \qquad 23 | %\SetTblrDefault{rowsep=2pt}% 24 | \begin{tblr}{llll} 25 | \toprule 26 | Alpha & Beta & Gamma & Delta \\ 27 | \midrule 28 | Epsilon & Zeta & Eta & Theta \\ 29 | Iota & Kappa & Lambda & Mu \\ 30 | Nu & Xi & Omicron & Pi \\ 31 | \bottomrule 32 | \end{tblr} 33 | \ENDTEST 34 | 35 | \bigskip\hrule\bigskip 36 | 37 | \BEGINTEST{talltabs: testing}% #170 38 | \begin{talltabs}[ 39 | caption = {Talltabs Title}, 40 | note{a} = {This is the first table note.}, 41 | note{b} = {This is the second table note.}, 42 | ]{llll} 43 | \toprule 44 | Alpha & Beta & Gamma & Delta \\ 45 | \midrule 46 | Epsilon & Zeta & Eta\TblrNote{b} & Theta \\ 47 | Iota & Kappa & Lambda & Mu \\ 48 | Nu\TblrNote{a} & Xi & Omicron & Pi \\ 49 | \bottomrule 50 | \end{talltabs} 51 | \ENDTEST 52 | 53 | \end{document} 54 | -------------------------------------------------------------------------------- /testfiles/library-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: booktabs: testing 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: talltabs: testing 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (library-001.aux) 13 | -------------------------------------------------------------------------------- /testfiles/library-002.md5: -------------------------------------------------------------------------------- 1 | ba34fe1c23f7c8120ca5bf5a1536f51b -------------------------------------------------------------------------------- /testfiles/library-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-002.png -------------------------------------------------------------------------------- /testfiles/library-002.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{diagbox} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{diagbox: one diagonal line} 13 | \begin{tabular}{|l|l|l|l|} 14 | \hline 15 | \diagbox{Aa}{Pp} & Beta & Gamma & Delta \\ 16 | \hline 17 | Epsilon & Zeta & Eta & Theta \\ 18 | \hline 19 | Iota & Kappa & Lambda & Mu \\ 20 | \hline 21 | \end{tabular} 22 | \qquad 23 | \begin{tblr}{hlines,vlines,row{1}={abovesep=3pt,belowsep=5pt},column{1}={leftsep=2pt,rightsep=4pt}} 24 | \diagbox{Aa}{Pp} & Beta & Gamma & Delta \\ 25 | Epsilon & Zeta & Eta & Theta \\ 26 | Iota & Kappa & Lambda & Mu \\ 27 | \end{tblr} 28 | \ENDTEST 29 | 30 | \bigskip\hrule\bigskip 31 | 32 | \BEGINTEST{diagbox: two diagonal lines} 33 | \begin{tabular}{|l|l|l|l|} 34 | \hline 35 | \diagbox{Aa}{Pp}{Hh} & Beta & Gamma & Delta \\ 36 | \hline 37 | Epsilon & Zeta & Eta & Theta \\ 38 | \hline 39 | Iota & Kappa & Lambda & Mu \\ 40 | \hline 41 | \end{tabular} 42 | \qquad 43 | \begin{tblr}{hlines,vlines,row{1}={abovesep=5pt,belowsep=3pt},column{1}={leftsep=4pt,rightsep=2pt}} 44 | \diagboxthree{Aa}{Pp}{Hh} & Beta & Gamma & Delta \\ 45 | Epsilon & Zeta & Eta & Theta \\ 46 | Iota & Kappa & Lambda & Mu \\ 47 | \end{tblr} 48 | \ENDTEST 49 | 50 | \bigskip\hrule\bigskip 51 | 52 | %% by default \tabcolsep=6pt, \arraycolsep=5pt 53 | \BEGINTEST{diagbox: math mode} 54 | {\let\tabcolsep=\arraycolsep 55 | $\begin{array}{|c|cc|} 56 | \hline 57 | \hbox{\diagbox{$X_1$}{$X_2$}} & 0 & 1 \\ 58 | \hline 59 | 0 & 0.1 & 0.2 \\ 60 | 1 & 0.3 & 0.4 \\ 61 | \hline 62 | \end{array}$}% 63 | \qquad 64 | \SetTblrDefault{rowsep=0pt,colsep=5pt}% 65 | $\begin{tblr}{|c|cc|} 66 | \hline 67 | \diagbox{X_1}{X_2} & 0 & 1 \\ 68 | \hline 69 | 0 & 0.1 & 0.2 \\ 70 | 1 & 0.3 & 0.4 \\ 71 | \hline 72 | \end{tblr}$ 73 | \ENDTEST 74 | 75 | \end{document} 76 | -------------------------------------------------------------------------------- /testfiles/library-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: diagbox: one diagonal line 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: diagbox: two diagonal lines 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: diagbox: math mode 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (library-002.aux) 17 | -------------------------------------------------------------------------------- /testfiles/library-003.md5: -------------------------------------------------------------------------------- 1 | 39d7354b33b1ee0348040afb05f238bf -------------------------------------------------------------------------------- /testfiles/library-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-003.png -------------------------------------------------------------------------------- /testfiles/library-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{xcolor} 6 | \UseTblrLibrary{siunitx} 7 | 8 | \begin{document} 9 | 10 | \START 11 | \hrule\bigskip 12 | 13 | \BEGINTEST{siunitx: testing} 14 | \begin{tabular}{|S[table-format=2.1]|S[table-format = 2.2]|S[table-format=2.3]|} 15 | \hline 16 | {Head} & {Head} & {Head} \\ 17 | \hline 18 | 11 & 11 & 11 \\ 19 | \hline 20 | 2.1 & 2.2 & 2.3 \\ 21 | \hline 22 | 33.11 & 33.22 & 33.33 \\ 23 | \hline 24 | \end{tabular} 25 | \par 26 | \begin{tblr}{ 27 | hlines, vlines, 28 | colspec={S[table-format=2.1] S[table-format = 2.2] S[table-format=2.3]} 29 | } 30 | {{{Head}}} & {{{Head}}} & {{{Head}}} \\ 31 | 11 & 11 & 11 \\ 32 | 2.1 & 2.2 & 2.3 \\ 33 | 33.11 & 33.22 & 33.33 \\ 34 | \end{tblr} 35 | \par 36 | \begin{tblr}{ 37 | hlines, vlines, 38 | colspec={Q[si={table-format=2.1},purple7] 39 | Q[si={table-format = 2.2},teal7] 40 | Q[si={table-format=2.3},blue7]}, 41 | } 42 | {{{Head}}} & {{{Head}}} & {{{Head}}} \\ 43 | 11 & 11 & 11 \\ 44 | 2.1 & 2.2 & 2.3 \\ 45 | 33.11 & 33.22 & 33.33 \\ 46 | \end{tblr} 47 | \ENDTEST 48 | 49 | \end{document} 50 | -------------------------------------------------------------------------------- /testfiles/library-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: siunitx: testing 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-003.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-004.md5: -------------------------------------------------------------------------------- 1 | 898a94b53f1834ce1bdf1f974a4fe805 -------------------------------------------------------------------------------- /testfiles/library-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-004.png -------------------------------------------------------------------------------- /testfiles/library-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: siunitx: table-alignment-mode=format 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: siunitx: table-alignment-mode=none 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: siunitx: table-alignment-mode=marker 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (library-004.aux) 17 | -------------------------------------------------------------------------------- /testfiles/library-005.md5: -------------------------------------------------------------------------------- 1 | 521cb42882536d3d98b13592fb294a20 -------------------------------------------------------------------------------- /testfiles/library-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-005.png -------------------------------------------------------------------------------- /testfiles/library-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: booktabs library: testing trim option 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: booktabs library: testing bootabs environment 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: booktabs library: testing extra commands 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (library-005.aux) 17 | -------------------------------------------------------------------------------- /testfiles/library-006.md5: -------------------------------------------------------------------------------- 1 | a7f67cb632dc889d00e5b386ea51c72c -------------------------------------------------------------------------------- /testfiles/library-006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-006.png -------------------------------------------------------------------------------- /testfiles/library-006.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{counter} 6 | \SetTblrInner{rowsep=0pt} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \newcounter{mycnt} 15 | 16 | \BEGINTEST{counter library: text mode} 17 | \setcounter{mycnt}{4}% 18 | \begin{tabular}{|l|l|} 19 | \hline 20 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 21 | \hline 22 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 23 | \hline 24 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 25 | \hline 26 | \end{tabular} 27 | \quad\setcounter{mycnt}{4}% 28 | \begin{tblr}{cells={l},hlines,vlines} 29 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 30 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 31 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 32 | \end{tblr} 33 | \ENDTEST 34 | 35 | \bigskip\hrule\bigskip 36 | 37 | \BEGINTEST{counter library: math mode} 38 | \setcounter{mycnt}{4}% 39 | $\begin{array}{|l|l|} 40 | \hline 41 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 42 | \hline 43 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 44 | \hline 45 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 46 | \hline 47 | \end{array}$ 48 | \quad\setcounter{mycnt}{4}% 49 | $\begin{tblr}{cells={l},hlines,vlines} 50 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 51 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 52 | \stepcounter{mycnt}\arabic{mycnt} & \stepcounter{mycnt}\arabic{mycnt} \\ 53 | \end{tblr}$ 54 | \ENDTEST 55 | 56 | \end{document} 57 | -------------------------------------------------------------------------------- /testfiles/library-006.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | \c@mycnt=\count... 4 | ============================================================ 5 | TEST 1: counter library: text mode 6 | ============================================================ 7 | ============================================================ 8 | ============================================================ 9 | TEST 2: counter library: math mode 10 | ============================================================ 11 | ============================================================ 12 | [1 13 | ] (library-006.aux) 14 | -------------------------------------------------------------------------------- /testfiles/library-007.md5: -------------------------------------------------------------------------------- 1 | a27772459999f50829fe1c018c403d52 -------------------------------------------------------------------------------- /testfiles/library-007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-007.png -------------------------------------------------------------------------------- /testfiles/library-007.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{siunitx} 6 | \setlength{\parindent}{0pt} 7 | 8 | \begin{document} 9 | 10 | \START 11 | \hrule\bigskip 12 | 13 | \BEGINTEST{siunitx library: testing s column} 14 | \begin{tblr}{s} 15 | \hline 16 | \m \\ 17 | \hline 18 | \m\squared \\ 19 | \hline 20 | \end{tblr} 21 | \ENDTEST 22 | 23 | \end{document} 24 | -------------------------------------------------------------------------------- /testfiles/library-007.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: siunitx library: testing s column 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-007.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-008.md5: -------------------------------------------------------------------------------- 1 | f3ccd96cecf02d6216f92e2465419cf3 -------------------------------------------------------------------------------- /testfiles/library-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-008.png -------------------------------------------------------------------------------- /testfiles/library-008.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{amsmath} 6 | \SetTblrInner[+array]{rowsep=0pt} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{amsmath library: testing} 15 | $\begin{array}{rrr} 16 | 1 & 23 \\ 17 | 45 & 678 \\ 18 | \end{array}$ 19 | $\begin{matrix} 20 | 1 & 23 \\ 21 | 45 & 678 \\ 22 | \end{matrix}$ 23 | $\begin{bmatrix} 24 | 1 & 23 \\ 25 | 45 & 678 \\ 26 | \end{bmatrix}$ 27 | $\begin{Bmatrix} 28 | 1 & 23 \\ 29 | 45 & 678 \\ 30 | \end{Bmatrix}$ 31 | $\begin{pmatrix} 32 | 1 & 23 \\ 33 | 45 & 678 \\ 34 | \end{pmatrix}$ 35 | $\begin{vmatrix} 36 | 1 & 23 \\ 37 | 45 & 678 \\ 38 | \end{vmatrix}$ 39 | $\begin{Vmatrix} 40 | 1 & 23 \\ 41 | 45 & 678 \\ 42 | \end{Vmatrix}$ 43 | $\begin{cases} 44 | 1 \\ 45 | 45 \\ 46 | \end{cases}$ 47 | $\begin{cases} 48 | 1 & 23 \\ 49 | 45 & 678 \\ 50 | \end{cases}$ 51 | 52 | \bigskip 53 | 54 | $\begin{+array}{rrr} 55 | 1 & 23 \\ 56 | 45 & 678 \\ 57 | \end{+array}$ 58 | $\begin{+matrix} 59 | 1 & 23 \\ 60 | 45 & 678 \\ 61 | \end{+matrix}$ 62 | $\begin{+bmatrix} 63 | 1 & 23 \\ 64 | 45 & 678 \\ 65 | \end{+bmatrix}$ 66 | $\begin{+Bmatrix} 67 | 1 & 23 \\ 68 | 45 & 678 \\ 69 | \end{+Bmatrix}$ 70 | $\begin{+pmatrix} 71 | 1 & 23 \\ 72 | 45 & 678 \\ 73 | \end{+pmatrix}$ 74 | $\begin{+vmatrix} 75 | 1 & 23 \\ 76 | 45 & 678 \\ 77 | \end{+vmatrix}$ 78 | $\begin{+Vmatrix} 79 | 1 & 23 \\ 80 | 45 & 678 \\ 81 | \end{+Vmatrix}$ 82 | $\begin{+cases} 83 | 1 \\ 84 | 45 \\ 85 | \end{+cases}$ 86 | $\begin{+cases} 87 | 1 & 23 \\ 88 | 45 & 678 \\ 89 | \end{+cases}$ 90 | \ENDTEST 91 | 92 | \end{document} 93 | -------------------------------------------------------------------------------- /testfiles/library-008.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: amsmath library: testing 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-008.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-009.md5: -------------------------------------------------------------------------------- 1 | f23841ca6a0364d309db07201c782f48 -------------------------------------------------------------------------------- /testfiles/library-009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-009.png -------------------------------------------------------------------------------- /testfiles/library-009.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{siunitx} 6 | \setlength{\parindent}{0pt} 7 | 8 | \begin{document} 9 | 10 | \START 11 | \hrule\bigskip 12 | 13 | \BEGINTEST{siunitx: testing multiline cells}%#90 14 | \centering 15 | \begin{tblr}{colspec=lSS,hlines,vlines} 16 | {two line \\ column header} & {column header} & {two line \\ column header} \\ 17 | \end{tblr} 18 | \ENDTEST 19 | 20 | \bigskip\hrule\bigskip 21 | 22 | \BEGINTEST{testing multiline cells with three pairs of braces}%#90 23 | \centering 24 | \begin{tblr}{hlines,vlines} 25 | {one line cell} & {two line \\ text} \\ 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/library-009.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: siunitx: testing multiline cells 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing multiline cells with three pairs of braces 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (library-009.aux) 13 | -------------------------------------------------------------------------------- /testfiles/library-010.md5: -------------------------------------------------------------------------------- 1 | dfcc70f6898cf3f376ef58ea01e99a09 -------------------------------------------------------------------------------- /testfiles/library-010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-010.png -------------------------------------------------------------------------------- /testfiles/library-010.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: functional: calculate the sums of column cells 5 | ============================================================ 6 | \g__fun_argtype_index_6_int=\count... 7 | ============================================================ 8 | ============================================================ 9 | TEST 2: functional: color background of cells according to its content 10 | ============================================================ 11 | ============================================================ 12 | ============================================================ 13 | TEST 3: functional: color table rows with a color series 14 | ============================================================ 15 | ============================================================ 16 | ============================================================ 17 | TEST 4: functional: evaluate every occurrence of a function 18 | ============================================================ 19 | ============================================================ 20 | ============================================================ 21 | TEST 5: functional: input files inside tabularray tables 22 | ============================================================ 23 | (test1.tmp) (test2.tmp) 24 | ============================================================ 25 | [1 26 | ] (library-010.aux) 27 | -------------------------------------------------------------------------------- /testfiles/library-011.md5: -------------------------------------------------------------------------------- 1 | c9204433fbf8afb80ff7484cdc4b6245 -------------------------------------------------------------------------------- /testfiles/library-011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-011.png -------------------------------------------------------------------------------- /testfiles/library-011.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{siunitx} 6 | \setlength{\parindent}{0pt} 7 | 8 | \begin{document} 9 | 10 | \START 11 | \hrule\bigskip 12 | 13 | \BEGINTEST{siunitx: testing guard option} % issue #175 14 | \begin{tblr}{ 15 | colspec = {S[table-format=3.1]*{4}{S[table-format=2.1]}}, 16 | row{2} = {mode=math}, 17 | row{1-2} = {guard}, 18 | } 19 | \hline 20 | & Technetium & & Molybdan & \\ 21 | \hline 22 | \lambda\,/\,\unit{\nm} & \phi_1 & \phi_2 & \phi_1 & \phi_2 \\ 23 | \hline 24 | 663,0 & 12,1 & 14,4 & 13,1 & 16,9 \\ 25 | 670,0 & 10,9 & 12,9 & 11,8 & 15,7 \\ 26 | 678,0 & 9,1 & 11,4 & 10,3 & 14,6 \\ 27 | 684,0 & 8,2 & 10,2 & 9,5 & 13,5 \\ 28 | \hline 29 | \end{tblr} 30 | \ENDTEST 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/library-011.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: siunitx: testing guard option 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-011.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-012.md5: -------------------------------------------------------------------------------- 1 | 953dbb0891800bf6b995c7d9ed2442c1 -------------------------------------------------------------------------------- /testfiles/library-012.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-012.png -------------------------------------------------------------------------------- /testfiles/library-012.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{nameref} 6 | \setlength{\parindent}{0pt} 7 | 8 | \begin{document} 9 | 10 | \START 11 | \hrule\bigskip 12 | 13 | \BEGINTEST{nameref: testing} % issue #236 and #256 14 | Refer to Table \ref{tblr:mylongtblr1}: \nameref{tblr:mylongtblr1}.\par 15 | Refer to Table \ref{tblr:mylongtblr2}: \nameref{tblr:mylongtblr2}.\par 16 | Refer to Table \ref{tblr:mylongtblr3}: \nameref{tblr:mylongtblr3}. 17 | 18 | \begin{longtblr}[ 19 | caption = {My longtblr long caption one}, 20 | entry = {My longtblr entry}, 21 | label = {tblr:mylongtblr1}, 22 | ]{ 23 | colspec = {Q[10em]Q[10em]}, hlines 24 | } 25 | A & B \\ 26 | C & D \\ 27 | \end{longtblr} 28 | 29 | \begin{longtblr}[ 30 | caption = {My longtblr long caption two}, 31 | label = {tblr:mylongtblr2}, 32 | ]{ 33 | colspec = {Q[10em]Q[10em]}, hlines 34 | } 35 | A & B \\ 36 | C & D \\ 37 | \end{longtblr} 38 | 39 | \begin{longtblr}[ 40 | caption = {My longtblr long caption three}, 41 | entry = none, 42 | label = {tblr:mylongtblr3}, 43 | ]{ 44 | colspec = {Q[10em]Q[10em]}, hlines 45 | } 46 | A & B \\ 47 | C & D \\ 48 | \end{longtblr} 49 | \ENDTEST 50 | 51 | \end{document} 52 | -------------------------------------------------------------------------------- /testfiles/library-012.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: nameref: testing 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-012.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-013.md5: -------------------------------------------------------------------------------- 1 | 9b8b62126e79419593e42f1f00e6607b -------------------------------------------------------------------------------- /testfiles/library-013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-013.png -------------------------------------------------------------------------------- /testfiles/library-013.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{zref} 6 | \setlength{\parindent}{0pt} 7 | 8 | \renewcommand\thetable{\arabic{section}.\arabic{subsection}.\arabic{table}} 9 | 10 | \makeatletter 11 | \zref@newprop{table}{\arabic{table}} 12 | \zref@newprop{section}{\arabic{section}} 13 | \zref@newprop{subsection}{\arabic{subsection}} 14 | \zref@addprop{main}{table} 15 | \zref@addprop{main}{section} 16 | \zref@addprop{main}{subsection} 17 | \makeatother 18 | 19 | \begin{document} 20 | 21 | \START 22 | \hrule\bigskip 23 | 24 | \BEGINTEST{zref: testing} % issue #202 and #256 25 | \begin{longtblr}[caption=First,label=tab1]{*{4}{Q[2cm]}} 26 | \hline 27 | Alpha & Beta & Gamma & Delta \\ 28 | \hline 29 | Epsilon & Zeta & Eta & Theta \\ 30 | \hline 31 | Iota & Kappa & Lambda & Mu \\ 32 | \hline 33 | \end{longtblr} 34 | 35 | \section{Section 1} 36 | 37 | \begin{longtblr}[caption=Second,label=tab2]{*{4}{Q[2cm]}} 38 | \hline 39 | Alpha & Beta & Gamma & Delta \\ 40 | \hline 41 | Epsilon & Zeta & Eta & Theta \\ 42 | \hline 43 | Iota & Kappa & Lambda & Mu \\ 44 | \hline 45 | \end{longtblr} 46 | 47 | \subsection{Subsection 1} 48 | 49 | \begin{longtblr}[caption=Third,label=tab3]{*{4}{Q[2cm]}} 50 | \hline 51 | Alpha & Beta & Gamma & Delta \\ 52 | \hline 53 | Epsilon & Zeta & Eta & Theta \\ 54 | \hline 55 | Iota & Kappa & Lambda & Mu \\ 56 | \hline 57 | \end{longtblr} 58 | 59 | Default: \zref{tab1}, \zref{tab2}, \zref{tab3}. 60 | 61 | Default: \zref[default]{tab1}, \zref[default]{tab2}, \zref[default]{tab3}. 62 | 63 | Page: \zref[page]{tab1}, \zref[page]{tab2}, \zref[page]{tab3}. 64 | 65 | Table: \zref[table]{tab1}, \zref[table]{tab2}, \zref[table]{tab3}. 66 | 67 | Section: \zref[section]{tab1}, \zref[section]{tab2}, \zref[section]{tab3}. 68 | 69 | Subsection: \zref[subsection]{tab1}, \zref[subsection]{tab2}, \zref[subsection]{tab3}. 70 | \ENDTEST 71 | 72 | \end{document} 73 | -------------------------------------------------------------------------------- /testfiles/library-013.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: zref: testing 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-013.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-014.md5: -------------------------------------------------------------------------------- 1 | a9dac7e6c9bf2790046e32aacc3cd498 -------------------------------------------------------------------------------- /testfiles/library-014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-014.png -------------------------------------------------------------------------------- /testfiles/library-014.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{delarray} 6 | \UseTblrLibrary{amsmath} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{testing delimiters} % issue #300 15 | Hello$\begin{tblr}{} 16 | alpha & beta \\ 17 | delta & gamma \\ 18 | \end{tblr}$World 19 | \qquad 20 | Hello$\begin{tblr}{ 21 | delimiter = {left=[,right=]} 22 | } 23 | alpha & beta \\ 24 | delta & gamma \\ 25 | \end{tblr}$World 26 | \ENDTEST 27 | 28 | \bigskip\hrule\bigskip 29 | 30 | \BEGINTEST{testing +bmatrix} % issue #300 31 | \setlength\arraycolsep{0pt} 32 | \begin{tabular}{llllll} 33 | a & 34 | $\begin{array}[t]\lbrack{c}\rbrack 35 | x \\ y \\ z 36 | \end{array}$ & 37 | b & 38 | $\begin{array}[b]\lbrack{c}\rbrack 39 | x \\ y \\ z 40 | \end{array}$ & 41 | c & 42 | $\begin{array}[c]\lbrack{c}\rbrack 43 | x \\ y \\ z 44 | \end{array}$ 45 | \end{tabular} 46 | \qquad 47 | \begin{tblr}{llllll} 48 | a & 49 | $\begin{+bmatrix}[baseline=t] 50 | x \\ y \\ z 51 | \end{+bmatrix}$ & 52 | b & 53 | $\begin{+bmatrix}[baseline=b] 54 | x \\ y \\ z 55 | \end{+bmatrix}$ & 56 | c & 57 | $\begin{+bmatrix}[baseline=m] 58 | x \\ y \\ z 59 | \end{+bmatrix}$ 60 | \end{tblr} 61 | \ENDTEST 62 | 63 | \end{document} 64 | -------------------------------------------------------------------------------- /testfiles/library-014.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing delimiters 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing +bmatrix 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (library-014.aux) 13 | -------------------------------------------------------------------------------- /testfiles/library-015.md5: -------------------------------------------------------------------------------- 1 | 9e53c2185c82bb6072ff3e6555a82568 -------------------------------------------------------------------------------- /testfiles/library-015.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-015.png -------------------------------------------------------------------------------- /testfiles/library-015.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{siunitx} 6 | \UseTblrLibrary{siunitx} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{load the same library twice} % issue #364 15 | \begin{tblr}{ 16 | hlines, vlines, colspec={SSS} 17 | } 18 | 11 & 11 & 11 \\ 19 | 2.1 & 2.2 & 2.3 \\ 20 | 33.11 & 33.22 & 33.33 \\ 21 | \end{tblr} 22 | \ENDTEST 23 | 24 | \end{document} 25 | -------------------------------------------------------------------------------- /testfiles/library-015.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: load the same library twice 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-015.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-016.md5: -------------------------------------------------------------------------------- 1 | 29b845eca3ed46030db02cc2c2c42c26 -------------------------------------------------------------------------------- /testfiles/library-016.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-016.png -------------------------------------------------------------------------------- /testfiles/library-016.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: tikz: normal cells in a short table without a name 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: tikz: normal cells in a tall table without a name 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: tikz: normal cells in a short table with a name 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: tikz: normal cells in a tall table with a name 17 | ============================================================ 18 | ============================================================ 19 | [1 20 | ] (library-016.aux) 21 | -------------------------------------------------------------------------------- /testfiles/library-017.md5: -------------------------------------------------------------------------------- 1 | a992fc12f8b5126a643a47bee9bdb751 -------------------------------------------------------------------------------- /testfiles/library-017.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-017.png -------------------------------------------------------------------------------- /testfiles/library-017.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{tikz} 6 | \usetikzlibrary{patterns} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{tikz: multispan cells in a short table} 15 | \begin{tblrtikzbelow} 16 | \fill[pattern color=lightgray,pattern=bricks] 17 | (table.north east) rectangle (table.south west); 18 | \end{tblrtikzbelow}% 19 | \begin{tblrtikzabove} 20 | \begin{scope}[blend mode=darken] 21 | \fill[yellow7] (1-1.north west) rectangle (1-1.south east); 22 | \fill[red7] (1-3.north west) rectangle (1-3.south east); 23 | \fill[blue7] (2-2.north west) rectangle (2-2.south east); 24 | \fill[azure7] (3-5.north west) rectangle (3-5.south east); 25 | \end{scope} 26 | \end{tblrtikzabove}% 27 | \begin{tblr}{ 28 | hlines, vlines, 29 | colspec={ l l l l }, 30 | hline{1} = {2pt}, 31 | vline{1} = {1}{2pt}, 32 | vline{2} = {2}{-}{1pt}, 33 | hline{Z} = {2pt}, 34 | cell{1}{1} = {r=2}{c}, 35 | cell{1}{3} = {c=3}{c}, 36 | cell{2}{2} = {r=2, c=2}{c} 37 | } 38 | 1 & 2 & 3 & & \\ 39 | & foo bar & & 4 & 5 \\ 40 | 6 & & & 7 & 8 41 | \end{tblr} 42 | \ENDTEST 43 | 44 | \bigskip\hrule\bigskip 45 | 46 | \BEGINTEST{tikz: multispan cells in a tall table} 47 | \begin{table}[htp] 48 | \begin{tblrtikzbelow} 49 | \fill[pattern color=lightgray,pattern=checkerboard] 50 | (table.north east) rectangle (table.south west); 51 | \end{tblrtikzbelow}% 52 | \begin{tblrtikzabove} 53 | \begin{scope}[blend mode=multiply] 54 | \fill[yellow7] (1-1.north west) rectangle (1-1.south east); 55 | \fill[red7] (1-2.north west) rectangle (1-2.south east); 56 | \fill[blue7] (1-4.north west) rectangle (1-4.south east); 57 | \fill[green7] (3-3.north west) rectangle (3-3.south east); 58 | \fill[azure7] (3-5.north west) rectangle (3-5.south east); 59 | \end{scope} 60 | \end{tblrtikzabove}% 61 | \begin{talltblr}[caption=Tall]{|c|c|c|[2pt]|c|c|} 62 | \hline 63 | \SetCell[r=2]{c} 2 Rows 64 | & \SetCell[c=2]{c} 2 Columns 65 | & & \SetCell[r=2,c=2]{c} 2 Rows 2 Columns & \\ 66 | \hline 67 | & 2-2 & 2-3 & & \\ 68 | \hline\hline[1pt] 69 | 3-1 & 3-2 & 3-3 & 3-4 & 3-5 \\ 70 | \cline[2pt]{1-2} 71 | \cline[1pt]{3} 72 | \cline[3pt]{4-5} 73 | \end{talltblr} 74 | \end{table} 75 | \ENDTEST 76 | 77 | \end{document} 78 | -------------------------------------------------------------------------------- /testfiles/library-017.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: tikz: multispan cells in a short table 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: tikz: multispan cells in a tall table 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (library-017.aux) 13 | -------------------------------------------------------------------------------- /testfiles/library-018.md5: -------------------------------------------------------------------------------- 1 | 288b1b3dfb40ca6ae502e30bc1ba0558 -------------------------------------------------------------------------------- /testfiles/library-018.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-018.png -------------------------------------------------------------------------------- /testfiles/library-018.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \UseTblrLibrary{tikz} 6 | \usetikzlibrary{patterns} 7 | \setlength{\parindent}{0pt} 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{tikz corner nodes: normal cells in a short table} 15 | \begin{tblrtikzabove} 16 | \draw[color=white,thick] 17 | (h1-|v1) -- (h1-|v2) -- (h2-|v2) 18 | -- (h2-|v3) -- (h3-|v3) -- (h3-|v4) 19 | -- (h4-|v4) -- (h4-|v5) -- (h2-|v5) 20 | -- (h2-|v6) -- (h1-|v6); 21 | \end{tblrtikzabove}% 22 | \begin{tblr}{hlines={wd=4pt},vlines={wd=3pt}} 23 | 1-1 & 1-2 & 1-3 & 1-4 & 1-5 \\ 24 | 2-1 & 2-2 & 2-3 & 2-4 & 2-5 \\ 25 | 3-1 & 3-2 & 3-3 & 3-4 & 3-5 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \bigskip\hrule\bigskip 30 | 31 | \BEGINTEST{tikz corner nodes: multispan cells in a tall table} 32 | \begin{tblrtikzabove} 33 | \draw[color=purple3] 34 | (h1-|v1) -- (h1-|v2) -- (h2-|v2) -- (h2-|v3) -- (h3-|v3) -- (h3-|v4) 35 | -- (h4-|v4) -- (h4-|v5) -- (h2-|v5) -- (h2-|v6) -- (h1-|v6); 36 | \end{tblrtikzabove}% 37 | \begin{talltblr}[ 38 | caption={I am tall} 39 | ]{ 40 | hlines, vlines, 41 | colspec={ l l l l }, 42 | hline{1} = {2pt}, 43 | vline{1} = {1}{2pt}, 44 | vline{2} = {2}{-}{1pt}, 45 | hline{Z} = {2pt}, 46 | cell{1}{1} = {r=2}{c}, 47 | cell{1}{3} = {c=3}{c}, 48 | cell{2}{2} = {r=2, c=2}{c} 49 | } 50 | 1 & 2 & 3 & & \\ 51 | & foo bar & & 4 & 5 \\ 52 | 6 & & & 7 & 8 %\\ 53 | \end{talltblr} 54 | \ENDTEST 55 | 56 | \end{document} 57 | -------------------------------------------------------------------------------- /testfiles/library-018.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: tikz corner nodes: normal cells in a short table 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: tikz corner nodes: multispan cells in a tall table 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (library-018.aux) 13 | -------------------------------------------------------------------------------- /testfiles/library-019.md5: -------------------------------------------------------------------------------- 1 | c7645a949679537a860c7958294ac338 -------------------------------------------------------------------------------- /testfiles/library-019.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-019.png -------------------------------------------------------------------------------- /testfiles/library-019.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \setlength{\parindent}{0pt} 6 | 7 | \begin{filecontents*}[overwrite]{tblrlibfoo.sty} 8 | \NewTblrTableCommand\FooBar{\SetCell{cmd=\fbox}} 9 | \end{filecontents*} 10 | \UseTblrLibrary{siunitx} 11 | \UseTblrLibrary{foo} 12 | \UseTblrLibrary{siunitx} 13 | \UseTblrLibrary{foo} 14 | \UseTblrLibrary{siunitx} 15 | 16 | \begin{document} 17 | 18 | \START 19 | \hrule\bigskip 20 | 21 | \BEGINTEST{load libraries in external files} 22 | \begin{tblr}{lll} 23 | Alpha & Beta & Gamma \\ 24 | Epsilon & \FooBar Zeta & Eta \\ 25 | Iota & Kappa & Lambda \\ 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/library-019.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: load libraries in external files 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-019.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-020.md5: -------------------------------------------------------------------------------- 1 | 5319b2027bad2d66d18115ed76be9dc1 -------------------------------------------------------------------------------- /testfiles/library-020.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-020.png -------------------------------------------------------------------------------- /testfiles/library-020.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{ninecolors} 6 | \UseTblrLibrary{functional} 7 | 8 | \setlength{\parindent}{0pt} 9 | 10 | \begin{document} 11 | 12 | \START 13 | \hrule\bigskip 14 | 15 | \BEGINTEST{functional: evaluate inner specifications} 16 | \begin{tblr}{ 17 | hlines, 18 | row{2} = {bg=\intIfOddTF{\value{page}}{\prgReturn{red7}}{\prgReturn{blue7}}}, 19 | } 20 | Alpha & Beta & Gamma \\ 21 | Epsilon & Zeta & Eta \\ 22 | Iota & Kappa & Lambda \\ 23 | \end{tblr} 24 | \begin{tblr}[evaluate=all]{hlines} 25 | Alpha & Beta & Gamma \\ 26 | \SetRow{bg=\intIfOddTF{\value{page}}{\prgReturn{red7}}{\prgReturn{blue7}}} 27 | Epsilon & Zeta & Eta \\ 28 | Iota & Kappa & Lambda \\ 29 | \end{tblr} 30 | \ENDTEST 31 | 32 | \bigskip\hrule\bigskip 33 | 34 | \BEGINTEST{functional: use \funColor function} 35 | \begin{tblr}{ 36 | hlines, 37 | row{2} = {bg=\funColor{rgb}{0,1,1}}, 38 | } 39 | Alpha & Beta & Gamma \\ 40 | Epsilon & Zeta & Eta \\ 41 | Iota & Kappa & Lambda \\ 42 | \end{tblr} 43 | \begin{tblr}{ 44 | hlines, 45 | row{2} = {bg=\funColor{RGB}{100,255,100}}, 46 | } 47 | Alpha & Beta & Gamma \\ 48 | Epsilon & Zeta & Eta \\ 49 | Iota & Kappa & Lambda \\ 50 | \end{tblr}\newline 51 | \begin{tblr}{ 52 | hlines, 53 | row{2} = {bg=\funColor{HTML}{FF0077}}, 54 | } 55 | Alpha & Beta & Gamma \\ 56 | Epsilon & Zeta & Eta \\ 57 | Iota & Kappa & Lambda \\ 58 | \end{tblr} 59 | \begin{tblr}[evaluate=all]{hlines} 60 | Alpha & Beta & Gamma \\ 61 | \SetRow{bg=\funColor{cmyk}{0,0.5,1,0}} 62 | Epsilon & Zeta & Eta \\ 63 | Iota & Kappa & Lambda \\ 64 | \end{tblr} 65 | \ENDTEST 66 | 67 | \end{document} 68 | -------------------------------------------------------------------------------- /testfiles/library-020.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: functional: evaluate inner specifications 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: functional: use \funColor function 9 | ============================================================ 10 | \g__fun_argtype_index_6_int=\count... 11 | ============================================================ 12 | [1 13 | ] (library-020.aux) 14 | -------------------------------------------------------------------------------- /testfiles/library-021.md5: -------------------------------------------------------------------------------- 1 | 5eac34ca3febf1b6aef65a9e6b5da506 -------------------------------------------------------------------------------- /testfiles/library-021.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-021.png -------------------------------------------------------------------------------- /testfiles/library-021.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | \geometry{a6paper,margin=15mm} 5 | 6 | \UseTblrLibrary{tikz} 7 | \usetikzlibrary{patterns} 8 | \setlength{\parindent}{0pt} 9 | 10 | \begin{document} 11 | 12 | \START 13 | \hrule\bigskip 14 | 15 | \BEGINTEST{longtblr tikz: one page} 16 | \begin{tblrtikzbelow} 17 | \fill[pattern color=lightgray,pattern=crosshatch] 18 | (table.north east) rectangle (table.south west); 19 | \fill[yellow7] (3-1.north west) rectangle (3-1.south east); 20 | \fill[red7] (3-3.north west) rectangle (3-3.south east); 21 | \fill[purple7] (3-5.north west) rectangle (3-5.south east); 22 | \fill[teal7] (4-2.north west) rectangle (4-2.south east); 23 | \fill[brown7] (4-4.north west) rectangle (4-4.south east); 24 | \end{tblrtikzbelow}% 25 | \begin{tblrtikzabove} 26 | \draw[brown7,ultra thick] (7-2.north west) -- (7-2.south east) 27 | (7-2.south west) -- (7-2.north east); 28 | \draw[yellow7,ultra thick] (7-4.north west) -- (7-4.south east) 29 | (7-4.south west) -- (7-4.north east); 30 | \draw[purple7,ultra thick] (8-1.north west) -- (8-1.south east) 31 | (8-1.south west) -- (8-1.north east); 32 | \draw[cyan3,ultra thick] (8-3.north west) -- (8-3.south east) 33 | (8-3.south west) -- (8-3.north east); 34 | \draw[teal7,ultra thick] (8-5.north west) -- (8-5.south east) 35 | (8-5.south west) -- (8-5.north east); 36 | \draw[color=white,thick] 37 | (h5-|v1) -- (h5-|v2) -- (h6-|v2) 38 | -- (h6-|v3) -- (h7-|v3) -- (h7-|v4) 39 | -- (h5-|v4) -- (h5-|v5) -- (h6-|v5) 40 | -- (h6-|v6) -- (h5-|v6); 41 | \end{tblrtikzabove}% 42 | \begin{longtblr}[ 43 | caption = Long Table Tikz 44 | ]{hlines={wd=4pt},vlines={wd=3pt},colspec={XXXXX}} 45 | 1-1 & 1-2 & 1-3 & 1-4 & 1-5 \\ 46 | 2-1 & 2-2 & 2-3 & 2-4 & 2-5 \\ 47 | 3-1 & 3-2 & 3-3 & 3-4 & 3-5 \\ 48 | 4-1 & 4-2 & 4-3 & 4-4 & 4-5 \\ 49 | 5-1 & 5-2 & 5-3 & 5-4 & 5-5 \\ 50 | 6-1 & 6-2 & 6-3 & 6-4 & 6-5 \\ 51 | 7-1 & 7-2 & 7-3 & 7-4 & 7-5 \\ 52 | 8-1 & 8-2 & 8-3 & 8-4 & 8-5 \\ 53 | 9-1 & 9-2 & 9-3 & 9-4 & 9-5 \\ 54 | \end{longtblr} 55 | \ENDTEST 56 | 57 | \end{document} 58 | -------------------------------------------------------------------------------- /testfiles/library-021.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: longtblr tikz: one page 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (library-021.aux) 9 | -------------------------------------------------------------------------------- /testfiles/library-022-1.md5: -------------------------------------------------------------------------------- 1 | 9642d4f34899c61ae40b246d029a77d7 -------------------------------------------------------------------------------- /testfiles/library-022-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-022-1.png -------------------------------------------------------------------------------- /testfiles/library-022-2.md5: -------------------------------------------------------------------------------- 1 | 7b7df50f9e6b22feed0c65014d98a668 -------------------------------------------------------------------------------- /testfiles/library-022-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-022-2.png -------------------------------------------------------------------------------- /testfiles/library-022-3.md5: -------------------------------------------------------------------------------- 1 | ddae3a4aff7e0f754fae345244366b47 -------------------------------------------------------------------------------- /testfiles/library-022-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-022-3.png -------------------------------------------------------------------------------- /testfiles/library-022-4.md5: -------------------------------------------------------------------------------- 1 | b73d7d3e6d65e87f0455174408f0a669 -------------------------------------------------------------------------------- /testfiles/library-022-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/library-022-4.png -------------------------------------------------------------------------------- /testfiles/library-022.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: longtblr tikz: multiple pages 5 | ============================================================ 6 | [1 7 | ] 8 | [2] 9 | [3] 10 | ============================================================ 11 | [4] (library-022.aux) 12 | LaTeX Warning: There were multiply-defined labels. 13 | -------------------------------------------------------------------------------- /testfiles/long-001-1.md5: -------------------------------------------------------------------------------- 1 | 8158f810d732fe30558dda82c58c064c -------------------------------------------------------------------------------- /testfiles/long-001-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-001-1.png -------------------------------------------------------------------------------- /testfiles/long-001-2.md5: -------------------------------------------------------------------------------- 1 | 294f9106d1c6baaf5cdddb68cc89c763 -------------------------------------------------------------------------------- /testfiles/long-001-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-001-2.png -------------------------------------------------------------------------------- /testfiles/long-001-3.md5: -------------------------------------------------------------------------------- 1 | 4fce53f5c8faee47c7615802078f67f6 -------------------------------------------------------------------------------- /testfiles/long-001-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-001-3.png -------------------------------------------------------------------------------- /testfiles/long-001-4.md5: -------------------------------------------------------------------------------- 1 | b2e5c1a0308f91be6961bfa44ae42359 -------------------------------------------------------------------------------- /testfiles/long-001-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-001-4.png -------------------------------------------------------------------------------- /testfiles/long-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing long table 5 | ============================================================ 6 | [1 7 | ] 8 | [2] 9 | ============================================================ 10 | [3] 11 | [4] (long-001.aux) 12 | Package rerunfilecheck Info: File `long-001.out' has not changed. 13 | (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0. 14 | -------------------------------------------------------------------------------- /testfiles/long-002-1.md5: -------------------------------------------------------------------------------- 1 | fafc249c912156bec81f1d755666f5b3 -------------------------------------------------------------------------------- /testfiles/long-002-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-002-1.png -------------------------------------------------------------------------------- /testfiles/long-002-2.md5: -------------------------------------------------------------------------------- 1 | 8f14b0e6d80d86e6fc1efa415b598a4f -------------------------------------------------------------------------------- /testfiles/long-002-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-002-2.png -------------------------------------------------------------------------------- /testfiles/long-002-3.md5: -------------------------------------------------------------------------------- 1 | 0f03d6ffb91e90b2f7953255112dd1ea -------------------------------------------------------------------------------- /testfiles/long-002-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-002-3.png -------------------------------------------------------------------------------- /testfiles/long-002-4.md5: -------------------------------------------------------------------------------- 1 | b1081bb9d1e5c595308d4a059630350a -------------------------------------------------------------------------------- /testfiles/long-002-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-002-4.png -------------------------------------------------------------------------------- /testfiles/long-002.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=10mm} 6 | 7 | \usepackage{blindtext} 8 | \usepackage{lmodern} % avoid using ec font 9 | 10 | \begin{document} 11 | 12 | % Issue #38: [longtblr] parts of the table missing (blank page instead) 13 | 14 | \START 15 | \BEGINTEST{testing long table with single row pages} 16 | \begin{longtblr}[ 17 | caption = {Table Caption}, 18 | ]{ 19 | colspec = {lX}, hlines, 20 | } 21 | Alpha & Beta \\ 22 | Epsilon & \begin{minipage}[t]{0.8\linewidth}\blindenumerate[12]\end{minipage} \\ 23 | Iota & \begin{minipage}[t]{0.8\linewidth}\blindenumerate[12]\end{minipage} \\ 24 | Nu & Xi \\ 25 | Rho & \begin{minipage}[t]{0.8\linewidth}\blindenumerate[12]\end{minipage} \\ 26 | Phi & \begin{minipage}[t]{0.8\linewidth}\blindenumerate[12]\end{minipage} \\ 27 | \end{longtblr} 28 | Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text. 29 | %\listoftables 30 | \ENDTEST 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/long-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing long table with single row pages 5 | ============================================================ 6 | [1 7 | ] 8 | [2] 9 | [3] 10 | ============================================================ 11 | [4] (long-002.aux) 12 | -------------------------------------------------------------------------------- /testfiles/long-003-1.md5: -------------------------------------------------------------------------------- 1 | da3fb3ff6e4333587bb70b7f71f13e5f -------------------------------------------------------------------------------- /testfiles/long-003-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-003-1.png -------------------------------------------------------------------------------- /testfiles/long-003-2.md5: -------------------------------------------------------------------------------- 1 | bdf04d506c8c5c244b91d4dae573a08e -------------------------------------------------------------------------------- /testfiles/long-003-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-003-2.png -------------------------------------------------------------------------------- /testfiles/long-003-3.md5: -------------------------------------------------------------------------------- 1 | b24f4a68ec61374da5b6f6921d538433 -------------------------------------------------------------------------------- /testfiles/long-003-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-003-3.png -------------------------------------------------------------------------------- /testfiles/long-003-4.md5: -------------------------------------------------------------------------------- 1 | 6b3ad3d81ee3c133b227fe79bc8c3092 -------------------------------------------------------------------------------- /testfiles/long-003-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-003-4.png -------------------------------------------------------------------------------- /testfiles/long-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: long table: pagebreak and nopagebreak 5 | ============================================================ 6 | [1 7 | ] 8 | [2] 9 | [3] 10 | ============================================================ 11 | [4] (long-003.aux) 12 | Package rerunfilecheck Info: File `long-003.out' has not changed. 13 | (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0. 14 | -------------------------------------------------------------------------------- /testfiles/long-004.md5: -------------------------------------------------------------------------------- 1 | 97f38b5216c4bc3349607323bede251a -------------------------------------------------------------------------------- /testfiles/long-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-004.png -------------------------------------------------------------------------------- /testfiles/long-004.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass{article} 3 | 4 | \input{regression-test} 5 | 6 | \usepackage{hyperref} 7 | \hypersetup{colorlinks} 8 | 9 | \begin{document} 10 | 11 | \START 12 | 13 | \BEGINTEST{tall table: inline} 14 | \noindent TEXT 15 | \begin{talltblr}[ 16 | caption = {First Long Long Long Long Tabular}, 17 | entry = {First Short Caption}, 18 | label = {tblr:first}, 19 | note{a} = {It is the first footnote.}, 20 | remark{Note} = {Some general note. Some general note. Some general note.}, 21 | ]{ 22 | colspec = {XXX[r]}, width = 0.5\linewidth, hlines, 23 | } 24 | Alpha & Beta & Gamma \\ 25 | Epsilon & Zeta & Eta\TblrNote{a} \\ 26 | Iota & Kappa & Lambda \\ 27 | \end{talltblr} 28 | TEXT 29 | \ENDTEST 30 | 31 | \BEGINTEST{tall table: float} 32 | \begin{table}[!htbp] 33 | \centering 34 | \begin{tblr}[ 35 | tall, 36 | caption = {Second Long Long Long Long Tabular}, 37 | entry = none, 38 | label = none, 39 | note{$\dag$} = {It is the second long long long long long long footnote.}, 40 | remark{Source} = {Made up by myself. Made up by myself. Made up by myself.}, 41 | ]{ 42 | colspec = {XXX[r]}, width = 0.5\linewidth, hlines, 43 | } 44 | Alpha & Beta & Gamma \\ 45 | Epsilon & Zeta & Eta \\ 46 | Iota & Kapp & Lambdaa\TblrNote{$\dag$} \\ 47 | \end{tblr} 48 | \end{table} 49 | \ENDTEST 50 | 51 | \renewcommand\TblrOverlap[1]{#1} 52 | 53 | \BEGINTEST{tall table: inline} 54 | \noindent TEXT 55 | \begin{talltblr}[ 56 | caption = {Third Long Long Long Long Tabular}, 57 | entry = none, 58 | note{a} = {It is the first footnote.}, 59 | remark{Note} = {Some general note. Some general note. Some general note.}, 60 | ]{ 61 | colspec = {XXX[r]}, width = 0.5\linewidth, hlines, 62 | } 63 | Alpha & Beta & Gamma \\ 64 | Epsilon & Zeta & Eta\TblrNote{a} \\ 65 | Iota & Kappa & Lambda \\ 66 | \end{talltblr} 67 | TEXT 68 | \ENDTEST 69 | 70 | \BEGINTEST{tall table: float} 71 | \begin{table}[!htbp] 72 | \centering 73 | \begin{tblr}[ 74 | tall, 75 | caption = {Fourth Long Long Long Long Tabular}, 76 | entry = {Fourth Short Caption}, 77 | label = {tblr:fourth}, 78 | note{$\dag$} = {It is the second long long long long long long footnote.}, 79 | remark{Source} = {Made up by myself. Made up by myself. Made up by myself.}, 80 | ]{ 81 | colspec = {XXX[r]}, width = 0.5\linewidth, hlines, 82 | } 83 | Alpha & Beta & Gamma \\ 84 | Epsilon & Zeta & Eta \\ 85 | Iota & Kapp & Lambdaa\TblrNote{$\dag$} \\ 86 | \end{tblr} 87 | \end{table} 88 | \ENDTEST 89 | 90 | %\listoftables 91 | 92 | \end{document} 93 | -------------------------------------------------------------------------------- /testfiles/long-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: tall table: inline 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: tall table: float 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: tall table: inline 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: tall table: float 17 | ============================================================ 18 | ============================================================ 19 | [1 20 | ] (long-004.aux) 21 | Package rerunfilecheck Info: File `long-004.out' has not changed. 22 | (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0. 23 | -------------------------------------------------------------------------------- /testfiles/long-005-1.md5: -------------------------------------------------------------------------------- 1 | 225d8dc9665f16c3665f6ab149f70e9e -------------------------------------------------------------------------------- /testfiles/long-005-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-005-1.png -------------------------------------------------------------------------------- /testfiles/long-005-2.md5: -------------------------------------------------------------------------------- 1 | ddc878dd78eac73414b1552e9fed6298 -------------------------------------------------------------------------------- /testfiles/long-005-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-005-2.png -------------------------------------------------------------------------------- /testfiles/long-005.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{#39: blank page when using \newpage} 12 | Text\par\vspace{1.5cm} 13 | 14 | \begin{longtblr}[ 15 | caption = {Long Tabular} 16 | ]{ 17 | colspec = {X[l]X[l]X[l]}, hlines, 18 | } 19 | Alpha & Beta & Gamma \\ 20 | Epsilon & Zeta & Eta \\ 21 | Iota & Kappa & Lambda \\ 22 | Nu & Xi & Omicron \\ 23 | Rho & Sigma & Tau \\ 24 | Phi & Chi & Psi \\ 25 | Alpha & Beta & Gamma \\ 26 | Epsilon & Zeta & Eta \\ 27 | Iota & Kappa & Lambda \\ 28 | Nu & Xi & Omicron \\ 29 | Rho & Sigma & Tau \\ 30 | Phi & Chi & Psi \\ 31 | \end{longtblr} 32 | 33 | \newpage 34 | 35 | Line after \verb+\newpage+. 36 | \ENDTEST 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /testfiles/long-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: ##39: blank page when using \newpage 5 | ============================================================ 6 | [1 7 | ] 8 | ============================================================ 9 | [2] (long-005.aux) 10 | -------------------------------------------------------------------------------- /testfiles/long-006-1.md5: -------------------------------------------------------------------------------- 1 | aa4896cda554f919a39bec4bfaf14ae2 -------------------------------------------------------------------------------- /testfiles/long-006-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-006-1.png -------------------------------------------------------------------------------- /testfiles/long-006-2.md5: -------------------------------------------------------------------------------- 1 | 20bd0610219c46a4b7d33f59999f8a11 -------------------------------------------------------------------------------- /testfiles/long-006-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-006-2.png -------------------------------------------------------------------------------- /testfiles/long-006.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{#42: blank page after \section starts at the top of a page} 12 | Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text\par 13 | 14 | \vspace{9cm} 15 | \section{First Section} 16 | 17 | \begin{longtblr}[ 18 | caption = {Long Tabular} 19 | ]{ 20 | colspec = {X[l]X[l]X[l]}, hlines, 21 | } 22 | Alpha & Beta & Gamma \\ 23 | Epsilon & Zeta & Eta \\ 24 | Iota & Kappa & Lambda \\ 25 | Nu & Xi & Omicron \\ 26 | Rho & Sigma & Tau \\ 27 | Phi & Chi & Psi \\ 28 | \end{longtblr} 29 | \ENDTEST 30 | 31 | \end{document} 32 | -------------------------------------------------------------------------------- /testfiles/long-006.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: ##42: blank page after \section starts at the top of a page 5 | ============================================================ 6 | [1 7 | ] 8 | ============================================================ 9 | [2] (long-006.aux) 10 | -------------------------------------------------------------------------------- /testfiles/long-007-1.md5: -------------------------------------------------------------------------------- 1 | d17df14fadc930592bbd138d4b6a7886 -------------------------------------------------------------------------------- /testfiles/long-007-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-007-1.png -------------------------------------------------------------------------------- /testfiles/long-007-2.md5: -------------------------------------------------------------------------------- 1 | 839ad5fa7e131dcdc595ca958e99c65e -------------------------------------------------------------------------------- /testfiles/long-007-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-007-2.png -------------------------------------------------------------------------------- /testfiles/long-007-3.md5: -------------------------------------------------------------------------------- 1 | 9a09bff94ff72e8bd015cda7b7793362 -------------------------------------------------------------------------------- /testfiles/long-007-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-007-3.png -------------------------------------------------------------------------------- /testfiles/long-007-4.md5: -------------------------------------------------------------------------------- 1 | 56d4d0f6d49bd54c1d214dbfb6cc3062 -------------------------------------------------------------------------------- /testfiles/long-007-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-007-4.png -------------------------------------------------------------------------------- /testfiles/long-007.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \usepackage{xcolor} 8 | 9 | \begin{document} 10 | 11 | \START 12 | 13 | \BEGINTEST{#165: pagebreak option} 14 | Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text. 15 | \begin{longtblr}[ 16 | caption = {Talks}, 17 | ]{ 18 | colspec = {lll}, 19 | rowhead = 1, 20 | row{odd} = {gray8}, 21 | row{1} = {brown8}, 22 | hborder{odd} = {pagebreak=no}, 23 | hborder{28} = {pagebreak=no}, 24 | } 25 | Head &Head &Head \\ 26 | Talk A&Place A&Date A\\ 27 | Talk B&Place B&Date B\\ 28 | Talk C&Place C&Date C\\ 29 | Talk D&Place D&Date D\\ 30 | Talk E&Place E&Date E\\ 31 | Talk F&Place F&Date F\\ 32 | Talk A&Place A&Date A\\ 33 | Talk B&Place B&Date B\\ 34 | Talk C&Place C&Date C\\ 35 | Talk D&Place D&Date D\\ 36 | Talk E&Place E&Date E\\ 37 | Talk F&Place F&Date F\\ 38 | Talk A&Place A&Date A\\ 39 | Talk B&Place B&Date B\\ 40 | Talk C&Place C&Date C\\ 41 | Talk D&Place D&Date D\\ 42 | Talk E&Place E&Date E\\ 43 | Talk F&Place F&Date F\\ 44 | Talk A&Place A&Date A\\ 45 | Talk B&Place B&Date B\\ 46 | Talk C&Place C&Date C\\ 47 | Talk D&Place D&Date D\\ 48 | Talk E&Place E&Date E\\ 49 | Talk F&Place F&Date F\\ 50 | Talk A&Place A&Date A\\ 51 | Talk B&Place B&Date B\\ 52 | \hborder{pagebreak=auto} % overwrite pagebreak=no before 53 | Talk C&Place C&Date C\\ 54 | Talk D&Place D&Date D\\ 55 | Talk E&Place E&Date E\\ 56 | Talk F&Place F&Date F\\ 57 | Talk A&Place A&Date A\\ 58 | Talk B&Place B&Date B\\ 59 | Talk C&Place C&Date C\\ 60 | Talk D&Place D&Date D\\ 61 | Talk E&Place E&Date E\\ 62 | Talk F&Place F&Date F\\ 63 | Talk A&Place A&Date A\\ 64 | Talk B&Place B&Date B\\ 65 | Talk C&Place C&Date C\\ 66 | \hborder{pagebreak} % overwrite pagebreak=no before 67 | Talk D&Place D&Date D\\ 68 | Talk E&Place E&Date E\\ 69 | Talk F&Place F&Date F\\ 70 | %\hborder{pagebreak} 71 | Talk A&Place A&Date A\\ 72 | Talk B&Place B&Date B\\ 73 | Talk C&Place C&Date C\\ 74 | Talk D&Place D&Date D\\ 75 | Talk E&Place E&Date E\\ 76 | Talk F&Place F&Date F\\ 77 | \end{longtblr} 78 | Text Text Text Text Text Text Text Text Text Text Text Text Text Text Text. 79 | \ENDTEST 80 | 81 | \end{document} 82 | -------------------------------------------------------------------------------- /testfiles/long-007.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: ##165: pagebreak option 5 | ============================================================ 6 | [1 7 | ] 8 | [2] 9 | [3] 10 | ============================================================ 11 | [4] (long-007.aux) 12 | -------------------------------------------------------------------------------- /testfiles/long-008.md5: -------------------------------------------------------------------------------- 1 | 1b087450afa786dd534c183712b7e0a1 -------------------------------------------------------------------------------- /testfiles/long-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-008.png -------------------------------------------------------------------------------- /testfiles/long-008.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{testing first and last hlines in subtables} % issue #227 12 | \begin{longtblr}{colspec={XXX},vlines,hlines} 13 | \begin{tblr}{ 14 | colspec={cc}, 15 | vlines, 16 | hlines 17 | } 18 | a & b \\ 19 | c & d \\ 20 | \end{tblr} 21 | & B & C \\ 22 | \end{longtblr} 23 | \ENDTEST 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /testfiles/long-008.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing first and last hlines in subtables 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (long-008.aux) 9 | -------------------------------------------------------------------------------- /testfiles/long-009-1.md5: -------------------------------------------------------------------------------- 1 | 9240eb95b775dac0d6be948cfa3cac42 -------------------------------------------------------------------------------- /testfiles/long-009-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-009-1.png -------------------------------------------------------------------------------- /testfiles/long-009-2.md5: -------------------------------------------------------------------------------- 1 | 2b0c82f940eabfccc6628fec540f81fb -------------------------------------------------------------------------------- /testfiles/long-009-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-009-2.png -------------------------------------------------------------------------------- /testfiles/long-009.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{testing positive parskip} % issue #203 12 | \setlength{\parskip}{6cm} 13 | A 14 | 15 | B 16 | 17 | \begin{longtblr}{colspec={XXXX}, hlines, vlines} 18 | 1 & 1 & 1 & 1 \\ 19 | 2 & 2 & 2 & 2 \\ 20 | 3 & 3 & 3 & 3 \\ 21 | 4 & 4 & 4 & 4 \\ 22 | 5 & 5 & 5 & 5 \\ 23 | 6 & 6 & 6 & 6 \\ 24 | 7 & 7 & 7 & 7 \\ 25 | 8 & 8 & 8 & 8 \\ 26 | 9 & 9 & 9 & 9 \\ 27 | \end{longtblr} 28 | \ENDTEST 29 | 30 | \end{document} 31 | -------------------------------------------------------------------------------- /testfiles/long-009.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing positive parskip 5 | ============================================================ 6 | [1 7 | ] 8 | ============================================================ 9 | [2] (long-009.aux) 10 | -------------------------------------------------------------------------------- /testfiles/long-010-1.md5: -------------------------------------------------------------------------------- 1 | 4c19d021e4e015d887c88915e5f15c3c -------------------------------------------------------------------------------- /testfiles/long-010-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-010-1.png -------------------------------------------------------------------------------- /testfiles/long-010-2.md5: -------------------------------------------------------------------------------- 1 | 13a86155b880bd9d74ab313604564832 -------------------------------------------------------------------------------- /testfiles/long-010-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-010-2.png -------------------------------------------------------------------------------- /testfiles/long-010.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{testing `label=none`} % issue #335 12 | \begin{longtblr}[label=none, caption=Title]{colspec={XXXX}, rowhead=1, hlines} 13 | 1 & 1 & 1 & 1 \\ 14 | 2 & 2 & 2 & 2 \\ 15 | 3 & 3 & 3 & 3 \\ \pagebreak 16 | 4 & 4 & 4 & 4 \\ 17 | 5 & 5 & 5 & 5 18 | \end{longtblr} 19 | \ENDTEST 20 | 21 | \end{document} 22 | -------------------------------------------------------------------------------- /testfiles/long-010.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing `label=none` 5 | ============================================================ 6 | [1 7 | ] 8 | ============================================================ 9 | [2] (long-010.aux) 10 | -------------------------------------------------------------------------------- /testfiles/long-011-1.md5: -------------------------------------------------------------------------------- 1 | 41f816cec9652f12af54c0fe5a1e16ad -------------------------------------------------------------------------------- /testfiles/long-011-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-011-1.png -------------------------------------------------------------------------------- /testfiles/long-011-2.md5: -------------------------------------------------------------------------------- 1 | 0e4a23b7439e6216c056d0372379109e -------------------------------------------------------------------------------- /testfiles/long-011-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-011-2.png -------------------------------------------------------------------------------- /testfiles/long-011-3.md5: -------------------------------------------------------------------------------- 1 | 34243cf0ec9e0ee74b4f5761d37654a4 -------------------------------------------------------------------------------- /testfiles/long-011-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-011-3.png -------------------------------------------------------------------------------- /testfiles/long-011-4.md5: -------------------------------------------------------------------------------- 1 | 731c487a88fbe7c789179977e33441ed -------------------------------------------------------------------------------- /testfiles/long-011-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/long-011-4.png -------------------------------------------------------------------------------- /testfiles/long-011.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | \documentclass[12pt]{article} 3 | 4 | \input{regression-test} 5 | \geometry{a6paper,margin=15mm} 6 | 7 | \begin{document} 8 | 9 | \START 10 | 11 | \BEGINTEST{forbid page breaks in the middle of multirow cells} % issue #442 12 | \begin{longtblr}[caption=Title]{ 13 | hlines, 14 | colspec = {Q[1cm]Q[1cm]Q[1cm]Q[1cm]}, 15 | rows = {ht=1.2cm}, 16 | cell{6}{1} = {r=3}{} 17 | } 18 | 1 & 1 & 1 & 1 \\ 19 | 2 & 2 & 2 & 2 \\ 20 | 3 & 3 & 3 & 3 \\ 21 | 4 & 4 & 4 & 4 \\ 22 | 5 & 5 & 5 & 5 \\ 23 | 6 & 6 & 6 & 6 \\ 24 | 7 & 7 & 7 & 7 \\ 25 | 8 & 8 & 8 & 8 \\ 26 | 9 & 9 & 9 & 9 \\ 27 | 0 & 0 & 0 & 0 28 | \end{longtblr} 29 | \ENDTEST 30 | 31 | \UseName{bool_set_true:N}\lTblrCellBreakBool 32 | \newpage 33 | 34 | \BEGINTEST{allow page breaks in the middle of multirow cells} % issue #442 35 | \begin{longtblr}[caption=Title]{ 36 | hlines, 37 | colspec = {Q[1cm]Q[1cm]Q[1cm]Q[1cm]}, 38 | rows = {ht=1.2cm}, 39 | cell{6}{1} = {r=3}{} 40 | } 41 | 1 & 1 & 1 & 1 \\ 42 | 2 & 2 & 2 & 2 \\ 43 | 3 & 3 & 3 & 3 \\ 44 | 4 & 4 & 4 & 4 \\ 45 | 5 & 5 & 5 & 5 \\ 46 | 6 & 6 & 6 & 6 \\ 47 | 7 & 7 & 7 & 7 \\ 48 | 8 & 8 & 8 & 8 \\ 49 | 9 & 9 & 9 & 9 \\ 50 | 0 & 0 & 0 & 0 51 | \end{longtblr} 52 | \ENDTEST 53 | 54 | \end{document} 55 | -------------------------------------------------------------------------------- /testfiles/long-011.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: forbid page breaks in the middle of multirow cells 5 | ============================================================ 6 | [1 7 | ] 8 | ============================================================ 9 | [2] 10 | ============================================================ 11 | TEST 2: allow page breaks in the middle of multirow cells 12 | ============================================================ 13 | [3] 14 | ============================================================ 15 | [4] (long-011.aux) 16 | -------------------------------------------------------------------------------- /testfiles/regression-test.cfg: -------------------------------------------------------------------------------- 1 | 2 | %% this file will be loaded by regression-test.tex 3 | 4 | \usepackage[b5paper,margin=1cm]{geometry} 5 | \pagestyle{empty} 6 | 7 | % avoid font size substitution messages from "LaTeX Font Info" 8 | \usepackage{type1cm,type1ec} 9 | 10 | \usepackage{tabularray} 11 | \usepackage{array} 12 | -------------------------------------------------------------------------------- /testfiles/rowcol-001.md5: -------------------------------------------------------------------------------- 1 | 65417b9a7721f56c835bee9be5b91a4b -------------------------------------------------------------------------------- /testfiles/rowcol-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/rowcol-001.png -------------------------------------------------------------------------------- /testfiles/rowcol-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | % See issue #58 6 | \usepackage{shortvrb} 7 | \MakeShortVerb| 8 | 9 | \begin{document} 10 | 11 | \START 12 | \hrule\bigskip 13 | 14 | \BEGINTEST{testing decimal numbers} 15 | \SetTblrDefault{rows={rowsep=0pt}} 16 | a\begin{tabular}{|r@{.}ll|} 17 | \hline 18 | 11 & 222 & Three \\ 19 | 444 & 5g & Six \\ 20 | \hline 21 | 7 & 88 & Nine \\ 22 | \hline 23 | \end{tabular}b 24 | \qquad 25 | a\begin{tblr}{|r@{.}ll|} 26 | \hline 27 | 11 & 222 & Three \\ 28 | 444 & 5g & Six \\ 29 | \hline 30 | 7 & 88 & Nine \\ 31 | \hline 32 | \end{tblr}b 33 | \ENDTEST 34 | 35 | \bigskip\hrule\bigskip 36 | 37 | \BEGINTEST{testing @ expression in math mode}% see #138 38 | $\begin{array}{r @{{}={}} l} 39 | 1 & 1 40 | \end{array}$ 41 | \quad 42 | $\begin{tblr}{r @{{}={}} l} 43 | 1 & 1 44 | \end{tblr}$ 45 | \qquad 46 | $\begin{array}{r @{${}={}$} l} 47 | 1 & 1 48 | \end{array}$ 49 | \quad 50 | $\begin{tblr}{r @{${}={}$} l} 51 | 1 & 1 52 | \end{tblr}$ 53 | \qquad 54 | $\begin{array}{r @{\rightarrow} l} 55 | 1 & 1 56 | \end{array}$ 57 | \quad 58 | $\begin{tblr}{r @{\rightarrow} l} 59 | 1 & 1 60 | \end{tblr}$ 61 | \ENDTEST 62 | 63 | \bigskip\hrule\bigskip 64 | 65 | \BEGINTEST{testing !, < and > specifiers} 66 | \begin{tblr}{ 67 | colspec={ll>{\sffamily}l!{:}>[0pt]{$}l<{$}l>{\bfseries}l}, 68 | rowspec={>{\large}QQ<[0pt]{2}!{\dotfill}>{\footnotesize}QQ<{4}}, 69 | } 70 | Alpha & Beta & Gamma & Delta & Epsilon & Zeta \\ 71 | Eta & Theta & Iota & Kappa & Lambda & Mu \\ 72 | Nu & Xi & Omicron & Pi & Rho & Sigma \\ 73 | Tau & Upsilon & Phi & Chi & Psi & Omega \\ 74 | \end{tblr} 75 | \ENDTEST 76 | 77 | \end{document} 78 | -------------------------------------------------------------------------------- /testfiles/rowcol-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing decimal numbers 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing @ expression in math mode 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: testing !, < and > specifiers 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (rowcol-001.aux) 17 | -------------------------------------------------------------------------------- /testfiles/rowcol-002.md5: -------------------------------------------------------------------------------- 1 | 5e385a2cb0d7d1199010af34f877328a -------------------------------------------------------------------------------- /testfiles/rowcol-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/rowcol-002.png -------------------------------------------------------------------------------- /testfiles/rowcol-002.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{testing rowsep} 11 | A\begin{tblr}{|l|c|r|} 12 | \hline 13 | One & Two & Three \\ 14 | \hline 15 | \SetRow{rowsep=1em} 16 | One & Two & Three \\ 17 | \hline 18 | Four & Five & Six \\ 19 | \hline 20 | \SetRow{belowsep=1em} 21 | Four & Five & Six \\ 22 | \hline 23 | Seven & Eight & Nine \\ 24 | \hline 25 | \SetRow{rowsep+=1em} 26 | Seven & Eight & Nine \\ 27 | \hline 28 | \end{tblr}B 29 | \ENDTEST 30 | 31 | \bigskip\hrule\bigskip 32 | 33 | \BEGINTEST{testing colsep} 34 | A\begin{tblr}{|l|c|r|l|c|r|} 35 | \hline 36 | \SetColumn{colsep=2em} 37 | One & Two & Three & \SetColumn{colsep+=-4pt} 38 | One & Two & Three \\ 39 | \hline 40 | Four & Five & Six & Four & Five & Six\\ 41 | \hline 42 | Seven & Eight & Nine & Seven & Eight & Nine \\ 43 | \hline 44 | \end{tblr}B 45 | \ENDTEST 46 | 47 | \end{document} 48 | -------------------------------------------------------------------------------- /testfiles/rowcol-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing rowsep 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing colsep 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (rowcol-002.aux) 13 | -------------------------------------------------------------------------------- /testfiles/rowcol-003.md5: -------------------------------------------------------------------------------- 1 | 21fa5018b348dd42f0949c835d0d70fb -------------------------------------------------------------------------------- /testfiles/rowcol-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/rowcol-003.png -------------------------------------------------------------------------------- /testfiles/rowcol-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{testing \\*[dimen]} 11 | \SetTblrDefault{rowsep=0pt} 12 | A\begin{tabular}{|l|c|r|} 13 | \hline 14 | One & Two & Three \\ [4pt] 15 | \hline 16 | One & Two & Three \\ [4pt] 17 | \hline 18 | Four & Five & Six \\ 19 | \hline 20 | Four & Five & Six \\ * 21 | \hline 22 | Seven & Eight & Nine \\ *[1em] 23 | \hline 24 | Seven & Eight & Nine \\ * [1em] 25 | \hline 26 | \end{tabular}B 27 | \qquad 28 | A\begin{tblr}{|l|c|r|} 29 | %\hline 30 | One & Two & Three \\ [4pt] 31 | %\hline %error from v2025A 32 | One & Two & Three \\ [4pt] 33 | %\hline %error from v2025A 34 | Four & Five & Six \\ 35 | %\hline 36 | Four & Five & Six \\ * 37 | %\hline %error from v2025A 38 | Seven & Eight & Nine \\ *[1em] 39 | %\hline %error from v2025A 40 | Seven & Eight & Nine \\ * [1em] 41 | %\hline %error from v2025A 42 | \end{tblr}B 43 | \ENDTEST 44 | 45 | \bigskip\hrule\bigskip 46 | 47 | %% Issue 20: \relax after \\ or \hline creates column bunching 48 | \BEGINTEST{testing \\\relax and \hline\relax} 49 | \SetTblrDefault{rowsep=0pt} 50 | $\begin{array}{c|cccc} 51 | \times & [1] & [2] & [3] & [4] \\ 52 | \hline\relax 53 | [1] & [1] & [2] & [3] & [4] \\\relax 54 | [2] & [2] & [4] & [1] & [3] \\ \relax 55 | [3] & [3] & [1] & [4] & [2] \\ \relax 56 | [4] & [4] & [3] & [2] & [1] 57 | \end{array}$ 58 | \qquad 59 | $\begin{tblr}{c|cccc} 60 | \times & [1] & [2] & [3] & [4] \\ 61 | \hline\relax 62 | [1] & [1] & [2] & [3] & [4] \\\relax 63 | [2] & [2] & [4] & [1] & [3] \\ \relax 64 | [3] & [3] & [1] & [4] & [2] \\ \relax 65 | [4] & [4] & [3] & [2] & [1] 66 | \end{tblr}$ 67 | \ENDTEST 68 | 69 | \end{document} 70 | -------------------------------------------------------------------------------- /testfiles/rowcol-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing \\*[dimen] 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing \\\relax and \hline \relax 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (rowcol-003.aux) 13 | -------------------------------------------------------------------------------- /testfiles/rowcol-004.md5: -------------------------------------------------------------------------------- 1 | 8d35139e7a05955576d0f91f328d6fde -------------------------------------------------------------------------------- /testfiles/rowcol-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/rowcol-004.png -------------------------------------------------------------------------------- /testfiles/rowcol-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \ExplSyntaxOn 6 | \let \replicate = \prg_replicate:nn 7 | \ExplSyntaxOff 8 | 9 | \begin{document} 10 | 11 | \hrule 12 | 13 | \START 14 | 15 | \vspace{2em} 16 | 17 | %% 固定列的宽度太大,表格宽度不够 18 | \BEGINTEST{normal columns with large widths} 19 | \begin{tblr}{width=300pt,colspec=|l|Q[-1]|Q[-2]|Q[-5]|Q[-2]|l|Q[2]|Q[3]|l|} 20 | \hline 21 | \replicate{6}{\rule{10pt}{2pt}\hfil} & \rule{6pt}{2pt} & \rule{10pt}{2pt} & 22 | \rule{6pt}{2pt} & \rule{10pt}{2pt} & \replicate{7}{\rule{10pt}{2pt}\hfil} & 23 | \rule{10pt}{2pt} & \rule{6pt}{2pt} & \replicate{8}{\rule{10pt}{2pt}\hfil} \\ 24 | \hline 25 | \end{tblr} 26 | \ENDTEST 27 | 28 | \vspace{2em} 29 | 30 | %% X 列的系数有正有负 31 | \BEGINTEST{extendable columns with positive and negative coefficients} 32 | \begin{tblr}{width=300pt,colspec=|l|Q[-1]|Q[-2]|Q[-5]|Q[-2]|l|Q[2]|Q[3.0]|l|} 33 | \hline 34 | \rule{6pt}{2pt} & \rule{10pt}{2pt} & \replicate{30}{\rule{10pt}{2pt}\hfil} & 35 | \replicate{8}{\rule{10pt}{2pt}\hfil} & \replicate{8}{\rule{10pt}{2pt}\hfil} & 36 | \rule{6pt}{2pt} & Hello & World & \rule{6pt}{2pt} \\ 37 | \hline 38 | \end{tblr} 39 | \ENDTEST 40 | 41 | \vspace{2em} 42 | %% X 列的系数全是负数,且有饱满列 43 | \BEGINTEST{extendable columns with only negative coefficients} 44 | \begin{tblr}{width=300pt,colspec=|l|Q[-1]|Q[-2]|Q[-5]|Q[-2]|l|Q[-2]|Q[-3]|l|} 45 | \hline 46 | \rule{6pt}{2pt} & \rule{10pt}{2pt} & \replicate{30}{\rule{10pt}{2pt}\hfil} & 47 | \replicate{8}{\rule{10pt}{2pt}\hfil} & \replicate{8}{\rule{10pt}{2pt}\hfil} & 48 | \rule{6pt}{2pt} & Hello & World & \rule{6pt}{2pt} \\ 49 | \hline 50 | \end{tblr} 51 | \ENDTEST 52 | 53 | \vspace{2em} 54 | 55 | %% X 列的系数全是负数,且无饱满列 56 | \BEGINTEST{extendable underfull columns with only negative coefficients} 57 | \begin{tblr}{width=300pt,colspec=|l|Q[-1]|Q[-2]|Q[-5]|Q[-2]|l|Q[-2]|Q[-3]|l|} 58 | \hline 59 | \rule{6pt}{2pt} & \rule{10pt}{2pt} & \replicate{3}{\rule{10pt}{2pt}\hfil} & 60 | \replicate{4}{\rule{10pt}{2pt}\hfil} & \replicate{2}{\rule{10pt}{2pt}\hfil} & 61 | \rule{6pt}{2pt} & \rule{10pt}{2pt} & \rule{10pt}{2pt} & \rule{6pt}{2pt} \\ 62 | \hline 63 | \end{tblr} 64 | \ENDTEST 65 | 66 | \end{document} 67 | -------------------------------------------------------------------------------- /testfiles/rowcol-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: normal columns with large widths 5 | ============================================================ 6 | Package tabularray Warning: Table width is too small, need 21.99994pt more! 7 | ============================================================ 8 | ============================================================ 9 | TEST 2: extendable columns with positive and negative coefficients 10 | ============================================================ 11 | ============================================================ 12 | ============================================================ 13 | TEST 3: extendable columns with only negative coefficients 14 | ============================================================ 15 | ============================================================ 16 | ============================================================ 17 | TEST 4: extendable underfull columns with only negative coefficients 18 | ============================================================ 19 | ============================================================ 20 | [1 21 | ] (rowcol-004.aux) 22 | -------------------------------------------------------------------------------- /testfiles/rowcol-005.md5: -------------------------------------------------------------------------------- 1 | 7f281b037eb6e784f7ba7e8a8ede8916 -------------------------------------------------------------------------------- /testfiles/rowcol-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/rowcol-005.png -------------------------------------------------------------------------------- /testfiles/rowcol-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \hrule\bigskip 8 | \START 9 | 10 | \BEGINTEST{X-column errors from \hfuzz=\maxdimen setting} % issue #445 11 | \hfuzz=\maxdimen 12 | \noindent 13 | \begin{tblr}{lX[-1]X} 14 | Alpha & Beta & Gamma \\ 15 | Epsilon & Zeta & Eta \\ 16 | Iota & Kappa & Lambda \\ 17 | \end{tblr} 18 | \ENDTEST 19 | 20 | \end{document} 21 | -------------------------------------------------------------------------------- /testfiles/rowcol-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: X-column errors from \hfuzz =\maxdimen setting 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (rowcol-005.aux) 9 | -------------------------------------------------------------------------------- /testfiles/supporthook/regression-test.cfg: -------------------------------------------------------------------------------- 1 | 2 | %% this file will be loaded by regression-test.tex 3 | 4 | \usepackage[b5paper,margin=1cm]{geometry} 5 | \pagestyle{empty} 6 | 7 | % avoid font size substitution messages from "LaTeX Font Info" 8 | \usepackage{type1cm,type1ec} 9 | 10 | \usepackage{tabularray} 11 | \usepackage{array} 12 | 13 | \UseTblrLibrary{hook} 14 | \ExplSyntaxOn 15 | \cs_new_protected:Npn \__tblr_temp_hook_for_measure_vstore_testing: 16 | { 17 | \tl_set:Nn \l__tblr_inner_spec_measure_tl { vstore } 18 | } 19 | \ExplSyntaxOff 20 | -------------------------------------------------------------------------------- /testfiles/table-001.md5: -------------------------------------------------------------------------------- 1 | e45a1d7ad72f91f5530061e6eeb91870 -------------------------------------------------------------------------------- /testfiles/table-001.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-001.png -------------------------------------------------------------------------------- /testfiles/table-001.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{start tabularray in vertical mode} 11 | \par\begin{tabular}{l}One\end{tabular}TEXT 12 | \par\begin{tblr}{l}One\end{tblr}TEXT 13 | \ENDTEST 14 | 15 | \end{document} 16 | -------------------------------------------------------------------------------- /testfiles/table-001.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: start tabularray in vertical mode 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-001.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-002.md5: -------------------------------------------------------------------------------- 1 | b5668baaa680defd6c4cad1d28cc5142 -------------------------------------------------------------------------------- /testfiles/table-002.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-002.png -------------------------------------------------------------------------------- /testfiles/table-002.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{vertical alignment: one row} 11 | TOP\begin{tabular}[t]{l}Big\end{tabular}TOP TOP\begin{tblr}[t]{Q}Big\end{tblr}TOP 12 | 13 | MID\begin{tabular}[m]{l}Big\end{tabular}MID MID\begin{tblr}[m]{Q}Big\end{tblr}MID 14 | 15 | MID\begin{tabular}[c]{l}Big\end{tabular}MID MID\begin{tblr}[c]{Q}Big\end{tblr}MID 16 | 17 | BOT\begin{tabular}[b]{l}Big\end{tabular}BOT BOT\begin{tblr}[b]{Q}Big\end{tblr}BOT 18 | \ENDTEST 19 | 20 | \bigskip\hrule\bigskip 21 | 22 | \BEGINTEST{vertical alignment: two rows without hlines} 23 | \SetTblrDefault{rows={rowsep=0pt}} 24 | TOP\begin{tabular}[t]{l}big\\box\end{tabular}TOP 25 | TOP\begin{tblr}[t]{l}big\\box\end{tblr}TOP 26 | 27 | MID\begin{tabular}[c]{l}big\\box\end{tabular}MID 28 | MID\begin{tblr}[m]{l}big\\box\end{tblr}MID 29 | 30 | MID\begin{tabular}[c]{l}big\\box\end{tabular}MID 31 | MID\begin{tblr}[c]{l}big\\box\end{tblr}MID 32 | 33 | BOT\begin{tabular}[b]{l}big\\box\end{tabular}BOT 34 | BOT\begin{tblr}[b]{l}big\\box\end{tblr}BOT 35 | \ENDTEST 36 | 37 | \bigskip\hrule\bigskip 38 | 39 | \BEGINTEST{vertical alignment: two rows with hlines} 40 | \setlength{\arrayrulewidth}{2pt} 41 | \SetTblrDefault{rows={rowsep=0pt},hlines={2pt}} 42 | TOP\begin{tabular}[t]{l}\hline big\\\hline box\\\hline\end{tabular}TOP 43 | TOP\begin{tblr}[t]{l}big\\box\\\end{tblr}TOP 44 | 45 | \bigskip 46 | 47 | MID\begin{tabular}[c]{l}\hline big\\\hline box\\\hline\end{tabular}MID 48 | MID\begin{tblr}[m]{l}big\\box\\\end{tblr}MID 49 | 50 | \bigskip 51 | 52 | MID\begin{tabular}[c]{l}\hline big\\\hline box\\\hline\end{tabular}MID 53 | MID\begin{tblr}[c]{l}big\\box\\\end{tblr}MID 54 | 55 | \bigskip 56 | 57 | BOT\begin{tabular}[b]{l}\hline big\\\hline box\\\hline\end{tabular}BOT 58 | BOT\begin{tblr}[b]{l}big\\box\\\end{tblr}BOT 59 | \ENDTEST 60 | 61 | \end{document} 62 | -------------------------------------------------------------------------------- /testfiles/table-002.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: vertical alignment: one row 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: vertical alignment: two rows without hlines 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: vertical alignment: two rows with hlines 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (table-002.aux) 17 | -------------------------------------------------------------------------------- /testfiles/table-003.md5: -------------------------------------------------------------------------------- 1 | d1b748f2a02fbc65eb3a22f0c0216ea7 -------------------------------------------------------------------------------- /testfiles/table-003.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-003.png -------------------------------------------------------------------------------- /testfiles/table-003.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | \input{regression-test} 3 | 4 | \begin{document} 5 | 6 | \START 7 | \hrule\bigskip 8 | 9 | \BEGINTEST{vertical alignment: the first and the last rows} 10 | \setlength{\arrayrulewidth}{2pt} 11 | \SetTblrDefault{rows={rowsep=0pt},hlines={2pt}} 12 | TOP\begin{tabular}[t]{l}\firsthline big\\\hline box\\\hline\end{tabular}TOP 13 | TOP\begin{tblr}[T]{l}big\\box\\\end{tblr}TOP 14 | \qquad 15 | BOT\begin{tabular}[b]{l}\hline big\\\hline box\\\lasthline\end{tabular}BOT 16 | BOT\begin{tblr}[B]{l}big\\box\\\end{tblr}BOT 17 | \ENDTEST 18 | 19 | \bigskip\hrule\bigskip 20 | 21 | \BEGINTEST{vertical alignment: specified rows} 22 | \SetTblrDefault{stretch=0,belowsep=4pt,hlines=2pt} 23 | ROW\begin{tblr}[valign=3]{l}big\\box\\middle\\fox\\small\\pot\\\end{tblr}ROW 24 | \quad 25 | ROW\begin{tblr}[valign=5]{l}big\\box\\middle\\fox\\small\\pot\\\end{tblr}ROW 26 | \ENDTEST 27 | 28 | \end{document} 29 | -------------------------------------------------------------------------------- /testfiles/table-003.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: vertical alignment: the first and the last rows 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: vertical alignment: specified rows 9 | ============================================================ 10 | ============================================================ 11 | [1 12 | ] (table-003.aux) 13 | -------------------------------------------------------------------------------- /testfiles/table-004.md5: -------------------------------------------------------------------------------- 1 | 304cf7cac8a9dd8121a4d935139111ed -------------------------------------------------------------------------------- /testfiles/table-004.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-004.png -------------------------------------------------------------------------------- /testfiles/table-004.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{table nesting: same rule width} 11 | \SetTblrDefault{rows={rowsep=0pt}} 12 | \begin{tabular}{|l|l|l|l|} 13 | \hline 14 | One & \begin{tabular}{ll}111&111 \\\hline 222&222 \\\hline 333&333\end{tabular} & Big & Big \\ 15 | \hline 16 | Small & Big & One & Big \\ 17 | \hline 18 | \end{tabular} 19 | \begin{tblr}{|l|l|l|l|} 20 | \hline 21 | One & \begin{tblr}{ll}111&111 \\\hline 222&222 \\\hline 333&333\end{tblr} & Big & Big \\ 22 | \hline 23 | Small & Big & One & Big \\ 24 | \hline 25 | \end{tblr} 26 | \ENDTEST 27 | 28 | \bigskip\hrule\bigskip 29 | 30 | \BEGINTEST{table nesting: different rule widthes} 31 | \begin{tblr}{|Q|Q|Q|Q|} 32 | \hline 33 | One & \begin{tblr}{hlines={2pt},vlines={2pt}}111 \\ 222 \\ 333\end{tblr} & Big & Big \\ 34 | \hline 35 | Small & Big & One & Big \\ 36 | \hline 37 | \end{tblr} 38 | \ENDTEST 39 | 40 | \bigskip\hrule\bigskip 41 | 42 | \BEGINTEST{table nesting: restore table commands #31} 43 | \begin{tabular}{c} 44 | \hline 45 | Outer Cell \\ 46 | \hline 47 | \begin{tblr}{c} 48 | \hline 49 | text \\ 50 | \hline 51 | \end{tblr} \\ 52 | \hline 53 | $\begin{tblr}{c} 54 | \hline 55 | a+b \\ 56 | \hline 57 | \end{tblr}$ \\ 58 | \hline 59 | \end{tabular} 60 | \quad 61 | \begin{tblr}{c} 62 | \hline 63 | Outer Cell \\ 64 | \hline 65 | \begin{tabular}{c} 66 | \hline 67 | text \\ 68 | \hline 69 | \end{tabular} \\ 70 | \hline 71 | $\begin{array}{c} 72 | \hline 73 | a+b \\ 74 | \hline 75 | \end{array}$ \\ 76 | \hline 77 | \end{tblr} 78 | \quad 79 | \begin{tabular}{c} 80 | \hline 81 | Outer Cell \\ 82 | \hline 83 | \begin{tblr}{c} 84 | \SetHline{-}{1pt} 85 | text \\ 86 | \SetHline{-}{1pt} 87 | \end{tblr} \\ 88 | \hline 89 | $\begin{tblr}{c} 90 | \SetHline{-}{1pt} 91 | a+b \\ 92 | \SetHline{-}{1pt} 93 | \end{tblr}$ \\ 94 | \hline 95 | \end{tabular} 96 | \quad 97 | \begin{tblr}{c} 98 | \SetHline{-}{dashed} 99 | Outer Cell \\ 100 | \SetHline{-}{dashed} 101 | \begin{tabular}{c} 102 | \hline 103 | text \\ 104 | \hline 105 | \end{tabular} \\ 106 | \SetHline{-}{dashed} 107 | $\begin{array}{c} 108 | \hline 109 | a+b \\ 110 | \hline 111 | \end{array}$ \\ 112 | \SetHline{-}{dashed} 113 | \end{tblr} 114 | \ENDTEST 115 | 116 | \end{document} 117 | -------------------------------------------------------------------------------- /testfiles/table-004.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: table nesting: same rule width 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: table nesting: different rule widthes 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: table nesting: restore table commands ##31 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (table-004.aux) 17 | -------------------------------------------------------------------------------- /testfiles/table-005.md5: -------------------------------------------------------------------------------- 1 | 2d7898260fe3f9081b9e41b35cfc13ba -------------------------------------------------------------------------------- /testfiles/table-005.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-005.png -------------------------------------------------------------------------------- /testfiles/table-005.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \SetTblrDefault{rows={rowsep=0pt}} 11 | 12 | \BEGINTEST{testing stretch option: stretch = 1} 13 | A\begin{tabular}{|l|c|r|} 14 | \hline 15 | One & Two & Three \\ 16 | \hline 17 | Four & Five & Six \\ 18 | \hline 19 | Seven & Eight & Nine \\ 20 | \hline 21 | \end{tabular}B 22 | A\begin{tblr}{|l|c|r|} 23 | \hline 24 | One & Two & Three \\ 25 | \hline 26 | Four & Five & Six \\ 27 | \hline 28 | Seven & Eight & Nine \\ 29 | \hline 30 | \end{tblr}B 31 | \ENDTEST 32 | 33 | \bigskip\hrule\bigskip 34 | 35 | \BEGINTEST{testing stretch option: stretch = 0} 36 | \def\arraystretch{0} 37 | \SetTblrDefault{stretch=0} 38 | A\begin{tabular}{|l|c|r|} 39 | \hline 40 | One & Two & Three \\ 41 | \hline 42 | Four & Five & Six \\ 43 | \hline 44 | Seven & Eight & Nine \\ 45 | \hline 46 | \end{tabular}B 47 | A\begin{tblr}{|l|c|r|} 48 | \hline 49 | One & Two & Three \\ 50 | \hline 51 | Four & Five & Six \\ 52 | \hline 53 | Seven & Eight & Nine \\ 54 | \hline 55 | \end{tblr}B 56 | \ENDTEST 57 | 58 | \bigskip\hrule\bigskip 59 | 60 | \BEGINTEST{testing stretch option: stretch = 2} 61 | \def\arraystretch{2} 62 | \SetTblrDefault{stretch=2} 63 | A\begin{tabular}{|l|c|r|} 64 | \hline 65 | One & Two & Three \\ 66 | \hline 67 | Four & Five & Six \\ 68 | \hline 69 | Seven & Eight & Nine \\ 70 | \hline 71 | \end{tabular}B 72 | A\begin{tblr}{|l|c|r|} 73 | \hline 74 | One & Two & Three \\ 75 | \hline 76 | Four & Five & Six \\ 77 | \hline 78 | Seven & Eight & Nine \\ 79 | \hline 80 | \end{tblr}B 81 | \ENDTEST 82 | 83 | \end{document} 84 | -------------------------------------------------------------------------------- /testfiles/table-005.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing stretch option: stretch = 1 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing stretch option: stretch = 0 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: testing stretch option: stretch = 2 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (table-005.aux) 17 | -------------------------------------------------------------------------------- /testfiles/table-006.md5: -------------------------------------------------------------------------------- 1 | 20c07ce59cea06b3a1f3308a22d42e6c -------------------------------------------------------------------------------- /testfiles/table-006.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-006.png -------------------------------------------------------------------------------- /testfiles/table-006.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{testing \SetTblrDefault} 11 | \begin{tblr}{} 12 | A & B \\ C & D 13 | \end{tblr} 14 | \begingroup 15 | \SetTblrDefault{hlines,vlines,stretch=2} 16 | \begin{tblr}{} 17 | A & B \\ C & D 18 | \end{tblr} 19 | \endgroup 20 | \begin{tblr}{} 21 | A & B \\ C & D 22 | \end{tblr} 23 | \ENDTEST 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /testfiles/table-006.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing \SetTblrDefault 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-006.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-007.md5: -------------------------------------------------------------------------------- 1 | 955c1a5821b408506403b3ef2ec2b692 -------------------------------------------------------------------------------- /testfiles/table-007.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-007.png -------------------------------------------------------------------------------- /testfiles/table-007.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{amsmath} 6 | 7 | \begin{document} 8 | 9 | \START 10 | \hrule\bigskip 11 | 12 | \BEGINTEST{testing math mode} 13 | A$\begin{array}{|l|p{2cm}|r|} 14 | \hline 15 | One & Two & Three\dfrac{A}{B} \\ 16 | \hline 17 | \end{array}$B 18 | %% each cell will always be in math mode even when it's in a p-column 19 | A$\begin{tblr}{|l|p{2cm}|r|} 20 | \hline 21 | One & Two & Three\dfrac{A}{B} \\ 22 | \hline 23 | \end{tblr}$B 24 | \ENDTEST 25 | 26 | \bigskip\hrule\bigskip 27 | 28 | \BEGINTEST{testing mode option} 29 | \begin{tblr}{Q[l]Q[r,mode=math]Q[r,mode=dmath]} 30 | \hline 31 | Alpha & \frac12 & \frac12 \\ 32 | Epsilon & \frac34 & \frac34 \\ 33 | Iota & \frac56 & \frac56 \\ 34 | \hline 35 | \end{tblr} 36 | \quad 37 | \begin{tblr}{Q[l]Q[r,$]Q[r,$$]} 38 | \hline 39 | Alpha & \frac12 & \frac12 \\ 40 | Epsilon & \frac34 & \frac34 \\ 41 | Iota & \frac56 & \frac56 \\ 42 | \hline 43 | \end{tblr} 44 | \quad 45 | $\begin{tblr}{Q[l,mode=text]Q[r]Q[r,mode=dmath]} 46 | \hline 47 | Alpha & \frac12 & \frac12 \\ 48 | Epsilon & \frac34 & \frac34 \\ 49 | Iota & \frac56 & \frac56 \\ 50 | \hline 51 | \end{tblr}$ 52 | \quad 53 | $\begin{tblr}{Q[l,mode=text]Q[r,$]Q[r,$$]} 54 | \hline 55 | Alpha & \frac12 & \frac12 \\ 56 | Epsilon & \frac34 & \frac34 \\ 57 | Iota & \frac56 & \frac56 \\ 58 | \hline 59 | \end{tblr}$ 60 | \ENDTEST 61 | 62 | \bigskip\hrule\bigskip 63 | 64 | \BEGINTEST{testing mode=math with font=\boldmath}%#137 65 | \begin{tblr}{ 66 | hlines, vlines, 67 | column{1}={font=\bfseries}, 68 | column{2}={font=\boldmath,mode=math}, 69 | } 70 | 1 & n \\ 71 | text & y[n] \\ 72 | \end{tblr} 73 | \ENDTEST 74 | 75 | \end{document} 76 | -------------------------------------------------------------------------------- /testfiles/table-007.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing math mode 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing mode option 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: testing mode=math with font=\boldmath 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (table-007.aux) 17 | -------------------------------------------------------------------------------- /testfiles/table-008.md5: -------------------------------------------------------------------------------- 1 | c2a1f23841d3147cb346d083c4b1e338 -------------------------------------------------------------------------------- /testfiles/table-008.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-008.png -------------------------------------------------------------------------------- /testfiles/table-008.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | %% share rownum counter (#269, davidcarlisle/dpctex#33) 4 | \makeatletter 5 | \ExplSyntaxOn 6 | \int_new:N \c@rownum 7 | \ExplSyntaxOff 8 | \makeatother 9 | 10 | \input{regression-test} 11 | 12 | \begin{document} 13 | 14 | \START 15 | \hrule\bigskip 16 | 17 | \BEGINTEST{testing rownum / colnum / rowcount / colcount } 18 | A\begin{tblr}{|l|c|r|c|} 19 | \hline 20 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] & 21 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] \\ 22 | \hline 23 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] & 24 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] \\ 25 | \hline 26 | Row=\arabic{rowcount},Col=\arabic{colcount} & Row=\arabic{rowcount},Col=\arabic{colcount} & 27 | Row=\arabic{rowcount},Col=\arabic{colcount} & Row=\arabic{rowcount},Col=\arabic{colcount} \\ 28 | \hline 29 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] & 30 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] \\ 31 | \hline 32 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] & 33 | Cell[\arabic{rownum}][\arabic{colnum}] & Cell[\arabic{rownum}][\arabic{colnum}] \\ 34 | \hline 35 | \end{tblr}B 36 | \ENDTEST 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /testfiles/table-008.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing rownum / colnum / rowcount / colcount 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-008.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-009.md5: -------------------------------------------------------------------------------- 1 | b77ccddd6181ddd7849f61815c37bc7c -------------------------------------------------------------------------------- /testfiles/table-009.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-009.png -------------------------------------------------------------------------------- /testfiles/table-009.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \START 8 | \hrule\bigskip 9 | 10 | \BEGINTEST{testing rulesep} 11 | \doublerulesep=4pt 12 | \begin{tabular}{||llll||} 13 | \hline\hline 14 | Alpha & Beta & Gamma & Delta \\ 15 | Epsilon & Zeta & Eta & Theta \\ 16 | Iota & Kappa & Lambda & Mu \\ 17 | \hline\hline 18 | \end{tabular} 19 | \quad 20 | \begin{tblr}{rowsep=0pt,rulesep=4pt,colspec={||QQQQ||}} 21 | \hline\hline 22 | Alpha & Beta & Gamma & Delta \\ 23 | Epsilon & Zeta & Eta & Theta \\ 24 | Iota & Kappa & Lambda & Mu \\ 25 | \hline\hline 26 | \end{tblr} 27 | \ENDTEST 28 | 29 | \end{document} 30 | -------------------------------------------------------------------------------- /testfiles/table-009.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing rulesep 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-009.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-010.md5: -------------------------------------------------------------------------------- 1 | 4a00e4c9d3c9b652d1c6efd3347f3203 -------------------------------------------------------------------------------- /testfiles/table-010.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-010.png -------------------------------------------------------------------------------- /testfiles/table-010.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \hrule 8 | 9 | \START 10 | 11 | \vspace{2em} 12 | 13 | % See issue #32 14 | \BEGINTEST{testing \par tokens at the beginning and at the end of cell text} 15 | \begin{tblr}{lll} 16 | 17 | \hline 18 | 19 | One 20 | 21 | & 22 | 23 | Two 24 | 25 | & 26 | 27 | Three 28 | 29 | \\ 30 | 31 | Four 32 | 33 | & 34 | 35 | Five 36 | 37 | & 38 | 39 | Six 40 | 41 | \\ 42 | 43 | Seven 44 | 45 | & 46 | 47 | Eight 48 | 49 | & 50 | 51 | Nine 52 | 53 | \\ 54 | 55 | \hline 56 | 57 | \end{tblr} 58 | \ENDTEST 59 | 60 | \vspace{2em} 61 | 62 | % See issue #48 63 | \BEGINTEST{testing space in multiline cell and braces removing} 64 | \begin{tblr}{l} 65 | \hline {a \\ {b}b} \\ \hline 66 | \end{tblr} 67 | \quad 68 | \begin{tblr}{l} 69 | \hline {a \\ {b}b } \\\hline 70 | \end{tblr} 71 | \quad 72 | \begin{tblr}{l} 73 | \hline { a \\ {b}b } \\ \hline 74 | \end{tblr} 75 | \quad 76 | \begin{tblr}{l} 77 | \hline a {a {b}b} \\\hline 78 | \end{tblr} 79 | \quad 80 | \begin{tblr}{l} 81 | \hline {\sffamily a {b}b} a \\\hline 82 | \end{tblr} 83 | \ENDTEST 84 | 85 | \vspace{2em} 86 | 87 | % See issue #114 88 | \BEGINTEST{missing last rows when tblr contains truncated rows} 89 | \begin{tblr}{hlines} 90 | this is & shown\\ 91 | \\ 92 | this is & not shown\\ 93 | \end{tblr} 94 | \ENDTEST 95 | 96 | \end{document} 97 | -------------------------------------------------------------------------------- /testfiles/table-010.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing \par tokens at the beginning and at the end of cell text 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing space in multiline cell and braces removing 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: missing last rows when tblr contains truncated rows 13 | ============================================================ 14 | ============================================================ 15 | [1 16 | ] (table-010.aux) 17 | -------------------------------------------------------------------------------- /testfiles/table-011.md5: -------------------------------------------------------------------------------- 1 | 63cb5535df9c812a5844596fc0aac9e2 -------------------------------------------------------------------------------- /testfiles/table-011.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-011.png -------------------------------------------------------------------------------- /testfiles/table-011.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing itemize environment with measure=vbox 5 | ============================================================ 6 | ============================================================ 7 | ============================================================ 8 | TEST 2: testing itemize environment with measure=vbox 9 | ============================================================ 10 | ============================================================ 11 | ============================================================ 12 | TEST 3: testing itemize environment with measure=vbox and stretch=-1 13 | ============================================================ 14 | ============================================================ 15 | ============================================================ 16 | TEST 4: testing enumerate environment with measure=vbox and stretch=-1 17 | ============================================================ 18 | ============================================================ 19 | ============================================================ 20 | TEST 5: testing \color command with measure=vbox 21 | ============================================================ 22 | ============================================================ 23 | [1 24 | ] (table-011.aux) 25 | Package rerunfilecheck Info: File `table-011.out' has not changed. 26 | (rerunfilecheck) Checksum: D41D8CD98F00B204E9800998ECF8427E;0. 27 | -------------------------------------------------------------------------------- /testfiles/table-012.md5: -------------------------------------------------------------------------------- 1 | b02b9bc65f42e4dd0e2b0cbf24045e54 -------------------------------------------------------------------------------- /testfiles/table-012.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-012.png -------------------------------------------------------------------------------- /testfiles/table-012.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \usepackage{mathtools} 6 | 7 | \begin{document} 8 | 9 | \hrule 10 | 11 | \START 12 | 13 | \vspace{2em} 14 | 15 | \BEGINTEST{testing tabularray in align environment} % issue #143 16 | \begin{align*} 17 | \begin{tblr}{cc} 18 | a & b \\ 19 | x_1 & x_2 20 | \end{tblr} 21 | \end{align*} 22 | \ENDTEST 23 | 24 | \end{document} 25 | -------------------------------------------------------------------------------- /testfiles/table-012.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: testing tabularray in align environment 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-012.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-013.md5: -------------------------------------------------------------------------------- 1 | a441ff7b0e95da5fbfb29e2ad4947e11 -------------------------------------------------------------------------------- /testfiles/table-013.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-013.png -------------------------------------------------------------------------------- /testfiles/table-013.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \hrule 8 | 9 | \START 10 | 11 | \vspace{2em} 12 | 13 | \BEGINTEST{setting multiple environments at the same time} % issue #37 14 | \newcommand\tblrbody{ 15 | Alpha & Beta & Gamma \\ 16 | Epsilon & Zeta & Eta \\ 17 | Iota & Kappa & Lambda \\ 18 | } 19 | \SetTblrInner[tblr,talltblr,longtblr]{vlines} 20 | \SetTblrOuter[tblr,talltblr,longtblr]{expand=\tblrbody} 21 | \begin{table}[!htpb] 22 | \centering 23 | \caption{Short Table} 24 | \begin{tblr}{hlines} 25 | \tblrbody 26 | \end{tblr} 27 | \end{table} 28 | \begin{table}[!htpb] 29 | \centering 30 | \begin{talltblr}[ 31 | caption = Tall Table 32 | ]{hlines} 33 | \tblrbody 34 | \end{talltblr} 35 | \end{table} 36 | \begin{longtblr}[ 37 | caption = Long Table 38 | ]{hlines} 39 | \tblrbody 40 | \end{longtblr} 41 | \ENDTEST 42 | 43 | \end{document} 44 | -------------------------------------------------------------------------------- /testfiles/table-013.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: setting multiple environments at the same time 5 | ============================================================ 6 | ============================================================ 7 | [1 8 | ] (table-013.aux) 9 | -------------------------------------------------------------------------------- /testfiles/table-014.md5: -------------------------------------------------------------------------------- 1 | 7ad106aabf704d07e7cf3a35d685276d -------------------------------------------------------------------------------- /testfiles/table-014.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lvjr/tabularray/e877988ee3a2724c0ac91bc2671516d2613fa552/testfiles/table-014.png -------------------------------------------------------------------------------- /testfiles/table-014.tex: -------------------------------------------------------------------------------- 1 | \documentclass{article} 2 | 3 | \input{regression-test} 4 | 5 | \begin{document} 6 | 7 | \hrule\bigskip 8 | 9 | \START 10 | 11 | \BEGINTEST{throw an error for an unknown inner key name} % issue #574 12 | \begin{tblr}{hlines, vlinex} 13 | 1 & 2 & 3 \\ 14 | 4 & 5 & 6 \\ 15 | 7 & 8 & 9 16 | \end{tblr} 17 | \ENDTEST 18 | 19 | \bigskip\hrule\bigskip 20 | 21 | \BEGINTEST{throw an error for an unknown outer key name} 22 | \begin{talltblr}[ 23 | caption = {Hello}, 24 | morekey = {???} 25 | ]{hlines} 26 | Alpha & Beta & Gamma \\ 27 | Epsilon & Zeta & Eta \\ 28 | Iota & Kappa & Lambda 29 | \end{talltblr} 30 | \ENDTEST 31 | 32 | \end{document} 33 | -------------------------------------------------------------------------------- /testfiles/table-014.tlg: -------------------------------------------------------------------------------- 1 | This is a generated file for the l3build validation system. 2 | Don't change this file in any respect. 3 | ============================================================ 4 | TEST 1: throw an error for an unknown inner key name 5 | ============================================================ 6 | ! Package tabularray Error: Unknown inner key name 'vlinex'. 7 | Type to continue. 8 | ... 9 | l. ...\end 10 | {tblr} 11 | LaTeX does not know anything more about this error, sorry. 12 | Try typing to proceed. 13 | If that doesn't work, type X to quit. 14 | ============================================================ 15 | ============================================================ 16 | TEST 2: throw an error for an unknown outer key name 17 | ============================================================ 18 | ! Package tabularray Error: Unknown outer key name 'morekey'. 19 | Type to continue. 20 | ... 21 | l. ...\end 22 | {talltblr} 23 | LaTeX does not know anything more about this error, sorry. 24 | Try typing to proceed. 25 | If that doesn't work, type X to quit. 26 | ============================================================ 27 | [1 28 | ] (table-014.aux) 29 | -------------------------------------------------------------------------------- /trial/lwarp/test-lwarp-01.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 10 | test-lwarp-01 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 |
20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |

29 | Test 1 Test 2. 30 |

31 | 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 |
AlphaBetaGammaDelta
EpsilonZetaEtaTheta
IotaKappaLambdaMu
40 | 41 |

42 | Test 3 Test 4. 43 |

44 | 45 | 46 |
47 | 48 |
49 | 50 |
51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /trial/lwarp/test-lwarp-01.tex: -------------------------------------------------------------------------------- 1 | 2 | \documentclass[b5paper]{article} 3 | 4 | \usepackage{lwarp} 5 | \tracinglwarp 6 | 7 | \usepackage{tabularray} 8 | \usepackage{xcolor} 9 | \tracingoutput = 1 10 | \showboxbreadth = 2147483647 11 | \showboxdepth = 2147483647 12 | 13 | \begin{document} 14 | 15 | Test 1 Test 2. 16 | 17 | \begin{tblr}{hlines, vlines} 18 | Alpha & Beta & Gamma & Delta \\ 19 | Epsilon & Zeta & Eta & Theta \\ 20 | Iota & Kappa & Lambda & Mu \\ 21 | \end{tblr} 22 | 23 | Test 3 Test 4. 24 | 25 | \end{document} 26 | -------------------------------------------------------------------------------- /trial/tagpdf/tagpdf-tabularray.sty: -------------------------------------------------------------------------------- 1 | 2 | \NeedsTeXFormat{LaTeX2e}[2020-10-01] 3 | \ProvidesExplPackage{tagpdf-tabularray}{2023-02-11}{2023@}{tagpdf and tabularray} 4 | \RequirePackage{tabularray} 5 | \UseTblrLibrary{hook,html} 6 | 7 | \AddToHook { env/tblr/before } 8 | { 9 | \tagpdfparaOff 10 | } 11 | \AddToHook { env/tblr/after } 12 | { 13 | %% We need to manually close current paragraph to avoid the following error. 14 | %% ! Package tagpdf Error: The number of automatic begin (11) and end (12) para 15 | %% (tagpdf) hooks differ! 16 | \par 17 | \tagpdfparaOn 18 | } 19 | 20 | \AddToHook { tabularray/trial/before } 21 | { 22 | \tag_stop:n { tabularray } 23 | } 24 | \AddToHook { tabularray/trial/after } 25 | { 26 | \tag_start:n { tabularray } 27 | } 28 | 29 | \AddToHook { tabularray/table/before } 30 | { 31 | %\tag_mc_end_push: 32 | %\__tagtblr_close_paragraph:n { table/before } 33 | %\tagpdfparaOff 34 | \tagstructbegin { tag=Table } 35 | } 36 | \AddToHook { tabularray/table/after } 37 | { 38 | \tagstructend %%Table 39 | %\tagpdfparaOn 40 | %\tag_mc_begin_pop:n { } 41 | } 42 | 43 | \AddToHook { tabularray/row/before } 44 | { 45 | %\__tagtblr_close_paragraph:n { row/before } 46 | \tagstructbegin { tag=TR } 47 | } 48 | \AddToHook { tabularray/row/after } 49 | { 50 | \tagstructend %%TR 51 | } 52 | 53 | \AddToHook { tabularray/cell/before } 54 | { 55 | %\__tagtblr_close_paragraph:n { cell/before } 56 | \tagpdfparaOn 57 | \tagstructbegin { tag=TD } 58 | \tagmcbegin { } 59 | } 60 | \AddToHook{ tabularray/cell/after } 61 | { 62 | \tagmcend 63 | \tagstructend %%TD 64 | \tagpdfparaOff 65 | } 66 | 67 | \cs_new_protected:Npn \__tagtblr_close_paragraph:n #1 68 | { 69 | %% \tagmcifinT and \tagmcifinF are missing 70 | \tag_mc_if_in:T { \tagmcend } 71 | \tl_set:Nx \l_tmpa_tl { \tag_get:n { struct_tag } } 72 | \tl_log:x { current_tag ~ at ~ #1 ~ = ~ \l_tmpa_tl } 73 | \tl_if_eq:NnT \l_tmpa_tl { P } { \tagstructend } 74 | } 75 | -------------------------------------------------------------------------------- /trial/tagpdf/test-tagpdf-01.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | test-tagpdf-01 4 | 5 | 6 | 7 | 8 |
9 |

Some text.

10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 |

Alpha

Beta

Gamma

Delta

Epsilon

Zeta

Eta

Theta

Iota

Kappa

Lambda

Mu

30 |

More text.

31 |
32 | -------------------------------------------------------------------------------- /trial/tagpdf/test-tagpdf-01.tex: -------------------------------------------------------------------------------- 1 | % -*- coding: utf-8 -*- 2 | 3 | \DocumentMetadata{testphase=phase-II} 4 | \documentclass[b5paper]{article} 5 | 6 | \usepackage{tagpdf} 7 | \tagpdfsetup{paratagging-show} 8 | \ExplSyntaxOn 9 | \color_set_eq:nn {savedred} {red} 10 | \AddToHook {para/end} [hackbefore] {\color_set_eq:nn{red}{blue}} 11 | \AddToHook {para/end} [hackafter] {\color_set_eq:nn{red}{savedred}} 12 | \DeclareHookRule {para/end} {hackbefore} {<} {tagpdf} 13 | \DeclareHookRule {para/end} {tagpdf} {<} {hackafter} 14 | \ExplSyntaxOff 15 | 16 | \usepackage{tagpdf-tabularray} 17 | 18 | \begin{document} 19 | 20 | %%% We can set "display:inline-table" to get inline table in HTML/CSS, 21 | %%% But it seems Tagged PDF doesn't support this. Skip this case for now. 22 | %Some text. 23 | %\begin{tblr}{hlines, vlines, colspec={lccr}} 24 | % Alpha & Beta & Gamma & Delta \\ 25 | % Epsilon & Zeta & Eta & Theta \\ 26 | % Iota & Kappa & Lambda & Mu \\ 27 | %\end{tblr} 28 | %More text. 29 | 30 | Some text. 31 | 32 | \begin{tblr}{hlines, vlines, colspec={lccr}} 33 | Alpha & Beta & Gamma & Delta \\ 34 | Epsilon & Zeta & Eta & Theta \\ 35 | Iota & Kappa & Lambda & Mu \\ 36 | \end{tblr} 37 | 38 | More text. 39 | 40 | \end{document} 41 | -------------------------------------------------------------------------------- /trial/tex4ht/README.txt: -------------------------------------------------------------------------------- 1 | 2 | How to improve tabularray support for TeX4ht 3 | 4 | 1. Download tex4ht-4ht.tex and tex4ht-html4.tex 5 | 6 | 2. Copy tabularray code in these files into tabularray-4ht.tex 7 | 8 | 3. Modify tabularray-4ht.tex trying to improve it 9 | 10 | 4. Run "texlua tex-to-4ht.lua" to generate tabularray.4ht 11 | 12 | 5. Compile test documents with the new tabularray.4ht 13 | 14 | 6. Submit the code in tabularray-4ht.tex to TeX4ht maintainers 15 | -------------------------------------------------------------------------------- /trial/tex4ht/test-tex4ht-01.tex: -------------------------------------------------------------------------------- 1 | 2 | \documentclass[b5paper]{article} 3 | \usepackage{tabularray} 4 | \usepackage{xcolor} 5 | \setlength\parindent{0pt} 6 | \begin{document} 7 | 8 | \section{A table without borders} 9 | 10 | \begin{tblr}{lccr} 11 | Alpha & Beta & Gamma & Delta \\ 12 | Epsilon & Zeta & Eta & Theta \\ 13 | Iota & Kappa & Lambda & Mu \\ 14 | \end{tblr} 15 | 16 | \section{A table with borders} 17 | 18 | \begin{tblr}{ 19 | rowspec={|[0.08em,blue]Q|Q|[dashed,purple]Q|[0.08em]}, 20 | colspec={|[1pt]l|[green]c|[dotted]c|[cyan]r|[1pt]}, 21 | } 22 | Alpha & Beta & Gamma & Delta \\ 23 | Epsilon & Zeta & Eta & Theta \\ 24 | Iota & Kappa & Lambda & Mu \\ 25 | \end{tblr} 26 | 27 | \section{A table with background colors} 28 | 29 | \begin{tblr}{ 30 | colspec={|l|c|c|r|}, hlines, 31 | cell{1}{4}={azure7}, cell{2}{1}={cyan7}, cell{3}{3}={red7}, 32 | } 33 | Alpha & Beta & Gamma & Delta \\ 34 | Epsilon & Zeta & Eta & Theta \\ 35 | Iota & Kappa & Lambda & Mu \\ 36 | \end{tblr} 37 | 38 | \end{document} 39 | -------------------------------------------------------------------------------- /trial/tex4ht/test-tex4ht-02.tex: -------------------------------------------------------------------------------- 1 | 2 | \documentclass[b5paper]{article} 3 | \usepackage{tabularray} 4 | %\usepackage{xcolor} 5 | \setlength\parindent{0pt} 6 | \begin{document} 7 | 8 | \section{One table with multispan cells} 9 | 10 | Some Text. 11 | 12 | \begin{tblr}{ 13 | hlines, vlines, 14 | cell{1}{1} = {r=2}{}, cell{1}{2} = {c=2}{}, cell{1}{4} = {r=2,c=2}{}, 15 | } 16 | 2 Rows & 2 Columns & & 2 Rows 2 Columns & \\ 17 | & 2-2 & 2-3 & & \\ 18 | 3-1 & 3-2 & 3-3 & 3-4 & 3-5 \\ 19 | \end{tblr} 20 | 21 | More Text. 22 | 23 | \section{Another table with multispan cells} 24 | 25 | Some Text. 26 | 27 | \begin{tblr}{ 28 | hlines, vlines, 29 | cell{1}{1} = {r=3}{m}, cell{1}{2} = {c=3}{c}, 30 | cell{2}{4} = {r=3}{m}, cell{4}{1} = {c=3}{c}, 31 | } 32 | 3 Rows & 3 Columns & 1-3 & 1-4 \\ 33 | & 2-2 & 2-3 & 3 Rows \\ 34 | & 3-2 & 3-3 & 3-4 \\ 35 | 3 Columns & 4-2 & 4-3 & 4-4 \\ 36 | \end{tblr} 37 | 38 | More Text. 39 | 40 | \end{document} 41 | -------------------------------------------------------------------------------- /trial/tex4ht/tex-to-4ht.lua: -------------------------------------------------------------------------------- 1 | 2 | --- Generate tabularray.4ht from tabularray-4ht.tex 3 | 4 | local f = assert(io.open("tabularray-4ht.tex", "rb")) 5 | local tex = f:read("*all") 6 | f:close() 7 | 8 | local ht = "\n" .. [[ 9 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 10 | %%% Generated from tabularray-4ht.tex with tex-to-4ht.lua 11 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% 12 | ]] 13 | 14 | ht = ht .. "\n" .. [[ 15 | %%% -------------------------------------------------------- 16 | %%% for tex4ht-4ht.tex to update tabularray.4ht file 17 | %%% -------------------------------------------------------- 18 | ]] 19 | 20 | for code in tex:gmatch("\\<<<\n(.-)\n>>>") do 21 | --print(code) 22 | ht = ht .. "\n" .. code .. "\n" 23 | end 24 | 25 | ht = ht .. "\n" .. [[ 26 | %%% -------------------------------------------------------- 27 | %%% for tex4ht-html4.tex to update html4.4ht file 28 | %%% -------------------------------------------------------- 29 | ]] 30 | 31 | for code in tex:gmatch("\\<<<\n(.-)\n>>>") do 32 | --print(code) 33 | ht = ht .. "\n" .. code .. "\n" 34 | end 35 | 36 | f = io.open("tabularray.4ht", "wb") 37 | f:write(ht) 38 | f:close() 39 | --------------------------------------------------------------------------------