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

! Forbidden control sequence found while scanning definition of #47

Closed
pablgonz opened this issue Aug 27, 2019 · 3 comments
Closed

! Forbidden control sequence found while scanning definition of #47

pablgonz opened this issue Aug 27, 2019 · 3 comments

Comments

@pablgonz
Copy link

Hello, by adding in xsim.collections.tex

\RequirePackage[enable-debug]{expl3}
\ExplSyntaxOn
\debug_on:n { check-declarations , deprecation }
\ExplSyntaxOff
\usepackage{xsim}

Displays a number of errors, for example:

Runaway definition?
#1->\tl_set:Nx \l_tmpa_tl {\tl_trim_spaces:n {#1}}
! Forbidden control sequence found while scanning definition of \xsim_load_modu
le:n.
<inserted text> 
}
l.69     \str_if_eq_x:nnTF
                         { \l_tmpa_tl } {modules}
? 
! Undefined control sequence.
<argument> \LaTeX3 error: 
                '\str_if_eq_x:nnTF' deprecated on 2020-01-01. Use '\str_if_eq:e
l.69     \str_if_eq_x:nnTF
                         { \l_tmpa_tl } {modules}

I don't know if it's a false positive or maybe it needs some maintenance.
Greetings
Pablo

@cgnieder
Copy link
Owner

Thanks. This will be corrected in the next commit.

@pablgonz
Copy link
Author

@cgnieder The latest version has a similar problem:

! Forbidden control sequence found while scanning use of \cs_generate_variant:N
n.
<inserted text> 
                \par 
l.67 \cs_generate_variant:Nn \tl_mixed_case:n
                                                 {x,f}
? 
! Undefined control sequence.
<argument> \LaTeX3 error: 
                           Use \text_titlecase:n not \tl_mixed_case:n deprec...
l.67 \cs_generate_variant:Nn \tl_mixed_case:n
                                                 {x,f}
? 

! LaTeX3 Error: Use \text_titlecase:n not \tl_mixed_case:n deprecated on
(LaTeX3)        2022-01-01.

Type <return> to continue.
 ...                                              
                                                  
l.67 \cs_generate_variant:Nn \tl_mixed_case:n
                                                 {x,f}
? 

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...                                              
                                                  
l.67 ...generate_variant:Nn \tl_mixed_case:n    {x
                                                  ,f}
? 

and

! LaTeX3 Error: The variable \g__xsim_total_exercise_goal_points_fp has not
(LaTeX3)        been declared on line 2.

For immediate help type H <return>.
 ...                                              
                                                  
l.2 \XSIM{goal}{exercise}{points}{0}
                                    
? 

! LaTeX3 Error: The variable \g__xsim_total_exercise_goal_bonus-points_fp has
(LaTeX3)        not been declared on line 4.

For immediate help type H <return>.
 ...                                              
                                                  
l.4 \XSIM{goal}{exercise}{bonus-points}{0}
                                          
? 

! LaTeX3 Error: Inconsistent local/global assignment

For immediate help type H <return>.
 ...                                              
                                                  
l.8 \XSIM{exercise}{0}
                      
? 
))
(/usr/local/texlive/2020/texmf-dist/tex/latex/translations/translations-basic-d
ictionary-english.trsl)

@cgnieder
Copy link
Owner

Thanks. This will be fixed in the next update.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants