Skip to content

Commit 598d91d

Browse files
committed
Only define local expl3 code if we haven't loaded expl3.ltx
1 parent 153df2c commit 598d91d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

lib/LaTeXML/Engine/expl3.pool.ltxml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,12 @@ use LaTeXML::Package;
1919
# we can stop gracefully if it isn't (e.g. no texlive installed)
2020

2121
if (FindFile('expl3', type => 'ltx', noltxml => 1)) {
22-
InputDefinitions('expl3', type => 'ltx', noltxml => 1);
23-
if (!($LaTeXML::DEBUG{compiling} || $LaTeXML::DEBUG{compiled})) {
24-
RawTeX(<<'EoRawTeX');
22+
InputDefinitions('expl3', type => 'ltx', noltxml => 1); }
23+
else {
24+
Info('missing_file', 'expl3.ltx', undef,
25+
'Recent versions of LaTeX expect expl3.ltx to be available, consider installing texlive.',
26+
'Installing a simple subset of expl3 now...');
27+
RawTeX(<<'EoRawTeX');
2528
\ExplSyntaxOn
2629
\cs_gset_eq:NN \@expl@cs@to@str@@N \cs_to_str:N
2730
\cs_gset_eq:NN \@expl@str@if@eq@@nnTF \str_if_eq:nnTF
@@ -101,8 +104,5 @@ if (FindFile('expl3', type => 'ltx', noltxml => 1)) {
101104
\ExplSyntaxOff
102105
EoRawTeX
103106
}
104-
}
105-
else {
106-
Info('missing_file', 'expl3.ltx', undef, 'Recent versions of LaTeX expect expl3.ltx to be available, consider installing texlive.'); }
107107

108108
1;

0 commit comments

Comments
 (0)