Open mbertucci47 opened 1 month ago
It errors already earlier:
\kanbun_current_kanjiunit=\box79
[\directlua]:1: invalid escape sequence near '"\@'.
l.371 }
The problem is that the kanbun package uses return "\\newif\\ifcontinue\\continuetrue ...
in a \directlua
. This works more or less in standard latex, where \\
is protected but fails with the block code where it expands to \@normalcr
. The kanbun package should probably use `\noexpand\\newif
etc. Then it compiles.
The other question is why the block code unprotects \\
and if one should correct that:
\makeatletter
\RequirePackage{tagpdf-base}
\show\\
\RequirePackage{latex-lab-testphase-block}
\show\\ \show\@normalcr
gives
> \\=\protected macro:
->\let \reserved@e \relax \let \reserved@f \relax \@ifstar {\let \reserved@e \v
adjust \let \reserved@f \nobreak \@xnewline }\@xnewline .
l.233 \show\\
and then
> \\=macro:
->\@normalcr .
l.235 \show\\
\show\@normalcr
?
> \@normalcr=\protected macro:
->\let \reserved@e \relax \let \reserved@f \relax \@ifstar {\let \reserved@e \v
adjust \let \reserved@f \nobreak \@xnewline }\@xnewline .
l.235 \show\\ \show\@normalcr
I can't remember if there was a reason or if this just happened by accident, but it is is certainly something one could find out and change.
@FrankMittelbach I tried to change in \DeclareTemplateCode{para}{std}{1}
the cr-cmd = \\
to cr-cmd = \@normalcr
but the blocks-verse-01
test looped ... .
The kanbun package is incompatible. The example
errors with