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

Inconsistent local/global assignments and variables not declared #22

Closed
dbitouze opened this issue Jun 14, 2021 · 4 comments
Closed

Inconsistent local/global assignments and variables not declared #22

dbitouze opened this issue Jun 14, 2021 · 4 comments
Labels
feature request New feature or request
Milestone

Comments

@dbitouze
Copy link
Contributor

The compilation of the following file highlights several expl3 problems in the tabularray's code (inconsistent local/global assignments and variables not declared).

\RequirePackage[check-declarations,enable-debug]{expl3}
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\end{document}
@lvjr
Copy link
Owner

lvjr commented Jun 14, 2021

Thanks. I will look into it later.

@lvjr lvjr added the feature request New feature or request label Jun 14, 2021
@dbitouze
Copy link
Contributor Author

BTW, more can be caught with:

\RequirePackage[check-declarations,enable-debug]{expl3}
\ExplSyntaxOn
\debug_on:n { all}
\ExplSyntaxOff
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\end{document}

@u-fischer
Copy link

There are still quite a lot undeclares variables etc:

\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff
\documentclass{article}
\usepackage{tabularray}
\begin{document}
\begin{tblr}{l}
a
\end{tblr}
\end{document}

gives

! LaTeX Error: The variable \g__tblr_table_cmd_empty_arg_numb_tl has not been
(LaTeX)        declared on line 1048.

For immediate help type H <return>.
 ...                                              
                                                  
l.1048 \NewTableCommand\empty{}
                               
? 
\rulewidth=\dimen156

! LaTeX Error: The variable \g__tblr_table_cmd_SetHlines_arg_numb_tl has not
(LaTeX)        been declared on line 1184.

For immediate help type H <return>.
 ...                                              
                                                  
l.1184   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_cline_arg_numb_tl has not been
(LaTeX)        declared on line 1223.

For immediate help type H <return>.
 ...                                              
                                                  
l.1223 ...cline [2] [] { \SetHline [=] {#2} {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_hline_arg_numb_tl has not been
(LaTeX)        declared on line 1225.

For immediate help type H <return>.
 ...                                              
                                                  
l.1225 ...\hline [1] [] { \SetHline [+] {-} {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetHline_arg_numb_tl has not
(LaTeX)        been declared on line 1233.

For immediate help type H <return>.
 ...                                              
                                                  
l.1233   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_firsthline_arg_numb_tl has not
(LaTeX)        been declared on line 1416.

For immediate help type H <return>.
 ...                                              
                                                  
l.1416   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_lasthline_arg_numb_tl has not
(LaTeX)        been declared on line 1421.

For immediate help type H <return>.
 ...                                              
                                                  
l.1421   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetVlines_arg_numb_tl has not
(LaTeX)        been declared on line 1427.

For immediate help type H <return>.
 ...                                              
                                                  
l.1427   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_rline_arg_numb_tl has not been
(LaTeX)        declared on line 1465.

For immediate help type H <return>.
 ...                                              
                                                  
l.1465 ...rline [2] [] { \SetVline [=] {#2} {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_vline_arg_numb_tl has not been
(LaTeX)        declared on line 1467.

For immediate help type H <return>.
 ...                                              
                                                  
l.1467 ...\vline [1] [] { \SetVline [+] {-} {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetVline_arg_numb_tl has not
(LaTeX)        been declared on line 1475.

For immediate help type H <return>.
 ...                                              
                                                  
l.1475   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_hborder_arg_numb_tl has not
(LaTeX)        been declared on line 1624.

For immediate help type H <return>.
 ...                                              
                                                  
l.1624 ...hborder [1] { \tblr_set_hborder:n {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_vborder_arg_numb_tl has not
(LaTeX)        been declared on line 1681.

For immediate help type H <return>.
 ...                                              
                                                  
l.1681 ...vborder [1] { \tblr_set_vborder:n {#1} }
                                                  
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetCells_arg_numb_tl has not
(LaTeX)        been declared on line 1727.

For immediate help type H <return>.
 ...                                              
                                                  
l.1727   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetCell_arg_numb_tl has not
(LaTeX)        been declared on line 1759.

For immediate help type H <return>.
 ...                                              
                                                  
l.1759   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_multicolumn_arg_numb_tl has not
(LaTeX)        been declared on line 1968.

For immediate help type H <return>.
 ...                                              
                                                  
l.1968   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_multirow_arg_numb_tl has not
(LaTeX)        been declared on line 1973.

For immediate help type H <return>.
 ...                                              
                                                  
l.1973   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetColumns_arg_numb_tl has not
(LaTeX)        been declared on line 1983.

For immediate help type H <return>.
 ...                                              
                                                  
l.1983   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetColumn_arg_numb_tl has not
(LaTeX)        been declared on line 2011.

For immediate help type H <return>.
 ...                                              
                                                  
l.2011   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetRows_arg_numb_tl has not
(LaTeX)        been declared on line 2151.

For immediate help type H <return>.
 ...                                              
                                                  
l.2151   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_SetRow_arg_numb_tl has not been
(LaTeX)        declared on line 2179.

For immediate help type H <return>.
 ...                                              
                                                  
l.2179   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_pagebreak_arg_numb_tl has not
(LaTeX)        been declared on line 2318.

For immediate help type H <return>.
 ...                                              
                                                  
l.2318   }
          
? 

! LaTeX Error: The variable \g__tblr_table_cmd_nopagebreak_arg_numb_tl has not
(LaTeX)        been declared on line 2323.

For immediate help type H <return>.
 ...                                              
                                                  
l.2323   }
          
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2521 \NewColumnRowType { l } { Q[l] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2521 \NewColumnRowType { l } { Q[l] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2522 \NewColumnRowType { c } { Q[c] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2522 \NewColumnRowType { c } { Q[c] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2523 \NewColumnRowType { r } { Q[r] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2523 \NewColumnRowType { r } { Q[r] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2524 \NewColumnRowType { j } { Q[j] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2524 \NewColumnRowType { j } { Q[j] }
                                       
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2526 \NewColumnType { t } [1] { Q[t,wd=#1] }
                                              
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2527 \NewColumnType { p } [1] { Q[p,wd=#1] }
                                              
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2528 \NewColumnType { m } [1] { Q[m,wd=#1] }
                                              
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2529 \NewColumnType { b } [1] { Q[b,wd=#1] }
                                              
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2530 \NewColumnType { h } [1] { Q[h,wd=#1] }
                                              
? 

! LaTeX Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.2531 \NewColumnType { f } [1] { Q[f,wd=#1] }
                                              
? x

muzimuzhi added a commit to muzimuzhi/tabularray that referenced this issue Oct 8, 2024
BREAKING CHANGE: Templates now must be defined by \DefTblrTemplate
before being used in \SetTblrTemplate.
@muzimuzhi
Copy link
Collaborator

@u-fischer Thanks for your report. I opened #517 to fix all the cases caught by \debug_on:n { check-declarations }.

muzimuzhi added a commit to muzimuzhi/tabularray that referenced this issue Oct 8, 2024
BREAKING CHANGE: Templates now must be defined by \DefTblrTemplate
before being used in \SetTblrTemplate.
muzimuzhi added a commit to muzimuzhi/tabularray that referenced this issue Oct 14, 2024
BREAKING CHANGE: Using undefined templates in \SetTblrTemplate now
raises an error.
@lvjr lvjr closed this as completed Oct 20, 2024
@lvjr lvjr added this to the 2025A milestone Oct 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants