Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] \tcreports{boards,report-I.report-II} got broken with last longtable/kernel update #1

Open
alceu-frigeri opened this issue Mar 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@alceu-frigeri
Copy link
Owner

alceu-frigeri commented Mar 6, 2024

Working on alceu-frigeri/starray#6
and testing some alternatives \tcreports start breaking badly with low level TeX errors.

After some backtracking, and making sure it wasn't any change in starray code, I nailed it down to using
\begin{longtable}
More precisely,

            \begin{longtable}
              {
                p{\UseConst{report.tabA}}@{\ }
                p{\UseConst{report.tabB}}@{\ }
                p{\UseConst{report.tabC}}@{\ }
                p{\UseConst{report.tabD}}@{\ }
                p{\UseConst{report.tabE}}@{\ }
                p{\UseConst{report.tabEx}}@{\ }
                p{\UseConst{report.tabF}}@{\ }
                p{\UseConst{report.tabG}}
              }

Whereas \UseConst is a wraparound \prop_item:Nn which is expandable (and supposedly safe).

Anyway, initial workaround: New Document Command \GetConst which uses \prop_get:NnNTF to store the value in a token list first. replacing the above 'code' with

   \GetConst{report.tabA}{\tabA}
   \GetConst{report.tabB}{\tabB}
   \GetConst{report.tabC}{\tabC}
   \GetConst{report.tabD}{\tabD}
   \GetConst{report.tabE}{\tabE}
   \GetConst{report.tabEx}{\tabEx}
   \GetConst{report.tabF}{\tabF}
   \GetConst{report.tabG}{\tabG}
            \begin{longtable}
              {
                p{\tabA}@{\ }
                p{\tabB}@{\ }
                p{\tabC}@{\ }
                p{\tabD}}@{\ }
                p{\tabE}@{\ }
                p{\tabEx}@{\ }
                p{\tabF}@{\ }
                p{\tabG}
              }

TODO: further testing and see if there are no side effects.

This is probably related to:
latex3/latex3#1460
(might be) lvjr/tabularray#474

NOTE: I tried to get a MWE of the issue (just declaring some property lists, and then using then as above... it works :/ so it is a cross-related problem (some other package...))

@alceu-frigeri alceu-frigeri added the bug Something isn't working label Mar 6, 2024
@alceu-frigeri alceu-frigeri changed the title [Bug] \tcreports{boards,report-I.report-II} got broken with last lonagtable/kernel update [Bug] \tcreports{boards,report-I.report-II} got broken with last longtable/kernel update Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant