Closed ssimo3lsuhsc closed 7 months ago
this has nothing to do with LaTeX2e versus LaTeX3: the textfield for example works fine in the old, standard tabular.
The problem is that tabularray processes its contents many times, and this confuses the field: it believes that their are four kid fields but at the end only one exists. Make a feature request at tabulararray that it offers some option to process a command only once
(There is a boolean \lTblrMeasuringBool but even with it, the field is process twice and that is once too much.)
\DocumentMetadata{uncompress}
\documentclass{article}
\usepackage{l3pdffield-testphase}
\usepackage{tabularray}
\begin{document}
\ExplSyntaxOn
\begin{tabular}{l}
\show\bla %shown once
\pdffield_textfield:n{name=1,width=2cm}
\end{tabular}
\begin{tblr}{l}
\show\blub % shown 4 times
\pdffield_textfield:n{name=2,width=2cm}
\end{tblr}
\ExplSyntaxOff
\end{document}
I have more pressing things to do right now, so I'm wondering if you might get around to testing something before I myself have time to come back to it in the near future. This is by no means urgent; it's just a concession that I will not have time to test it today in particular. There is a chance it is already a feature of tabularray. Would https://mirrors.mit.edu/CTAN/macros/latex/contrib/tabularray/tabularray.pdf, section 3.2.3, "Expand Macros First," be what I'm after? Thanks again!!!
Stuart Simon, MM, MLIS Web Development and Outreach, Web Specialist Human Development Centerhttps://www.hdc.lsuhsc.edu/ Louisiana's UCEDD E: @.**@.> O: 504 556 7567 @.**@.https://www.linkedin.com/company/human-development-center-lsuhsc
@.**@.https://www.lsuhsc.edu/
From: Ulrike Fischer @.> Sent: Thursday, June 1, 2023 10:28 AM To: latex3/pdfresources @.> Cc: Simon, Stuart A. @.>; Author @.> Subject: Re: [latex3/pdfresources] Text field incompatible with fancyhdr and tabularray (Issue #52)
EXTERNAL EMAIL: EVALUATE
this has nothing to do with LaTeX2e versus LaTeX3: the textfield for example works fine in the old, standard tabular.
The problem is that tabularray processes its contents many times, and this confuses the field: it believes that their are four kid fields but at the end only one exists. Make a feature request at tabulararray that it offers some option to process a command only once
(There is a boolean \lTblrMeasuringBool but even with it, the field is process twice and that is once too much.)
\DocumentMetadata{uncompress}
\documentclass{article}
\usepackage{l3pdffield-testphase}
\usepackage{tabularray}
\begin{document}
\ExplSyntaxOn
\begin{tabular}{l}
\show\bla %shown once
\pdffield_textfield:n{name=1,width=2cm}
\end{tabular}
\begin{tblr}{l}
\show\blub % shown 4 times
\pdffield_textfield:n{name=2,width=2cm}
\end{tblr}
\ExplSyntaxOff
\end{document}
- Reply to this email directly, view it on GitHubhttps://github.com/latex3/pdfresources/issues/52#issuecomment-1572268957, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AE2FQOAD2XQ7XOEEKS35633XJCYHTANCNFSM6AAAAAAYXACUTU. You are receiving this because you authored the thread.Message ID: @.**@.>>
I have more pressing things to do right now,
I too. So when you have time again open an issue at tabularray.
Hello!!!
\pdffield_textfield
does not produce any output inside commands or environments offered by thefancyhdr
ortabularray
packages. That it does not work withfancyhdr
is perhaps not surprising, as that package mentions that it is written for LaTeX 2e, However,tabularray
is proudly LaTeX 3. If you've ever seen a paper form, you would know that it is laid out in a way that closely imitates the cells of a multirow, multicolumn table. I like the simple way in whichtabularray
allows me to define my rows and columns in terms of their spreading behavior rather than fixed widths. That is, it offers theX
column option, originally fromtabularx,
but it is much simpler to specify growth factors in columns that need them intabularray
than intabularx
.So why am I posting this here and not on
tabularray
's GitHub page? I want to learn more about how Ulrike Fischer programmed the LaTeX3 PDF form fields to ship out. I also am open to any alternatives to the packages above that might work better with what Fischer has done.Here is my code:
Output
simple_expl3_text_field_brackets.pdf
Terminal code