Skip to content

Commit

Permalink
All latexml-specific control sequences should prefix \lx@ (begin proc…
Browse files Browse the repository at this point in the history
…ess)
  • Loading branch information
brucemiller committed Apr 24, 2024
1 parent aadf6e7 commit 4389077
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/LaTeXML/Core/Stomach.pm
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ INVOKE:

sub makeMisdefinedError {
my (@objects) = @_;
return LaTeXML::Core::Whatsit->new($STATE->lookupDefinition(T_CS('\@ERROR')),
return LaTeXML::Core::Whatsit->new($STATE->lookupDefinition(T_CS('\lx@ERROR')),
['misdefined', join('', map { ToString($_); } @objects)],
font => $STATE->lookupValue('font'),
); }
Expand Down
4 changes: 2 additions & 2 deletions lib/LaTeXML/Package/LaTeX.pool.ltxml
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ DefConstructorI(T_CS('\end{document}'), undef, sub {
if (my $ops = LookupValue('@at@end@document')) {
push(@boxes, $stomach->digest(Tokens(@$ops))); }
# Should we try to indent the last paragraph? If so, it goes like this:
push(@boxes, $stomach->digest(T_CS('\normal@par')));
push(@boxes, $stomach->digest(T_CS('\lx@normal@par')));
# Now we check whether we're down to the last stack frame.
# It is common for unclosed { or even environments
# and we want to at least compress & avoid unnecessary errors & warnings.
Expand Down Expand Up @@ -1467,7 +1467,7 @@ sub beginItemize {
my $postfix = ToString(Tokens(roman($level)));
my $usecounter = ($options{nolevel} ? $counter : $counter . $postfix);
Let('\item' => "\\" . $type . '@item') if defined $type;
Let('\par', '\normal@par'); # In case within odd environment.
Let('\par', '\lx@normal@par'); # In case within odd environment.
DefMacroI('\@listctr', undef, Tokens(Explode($usecounter)));
# Now arrange that this list's id's are relative to the current (outer) item (if any)
# And that the items within this list's id's are relative to this (new) list.
Expand Down

0 comments on commit 4389077

Please sign in to comment.