Closed patrick-nicodemus closed 10 months ago
You can see the problem in line ~10 of the log
(/usr/local/texlive/2023/texmf-dist/tex/latex/stex/stex.cls
it takes the sTeX from TeXLive, not the current HEAD of of the sTeX repository. To get this to work you have to
/path/to/sTeX
/path/to/sTex/tex//:
early to your TEXINPUTS
variable. No, using sTeX from CTAN is perfectly fine.
The actual problem is the undefined control sequence \text
which is in one of the ams*
-packages and is used by one of the notations in set
. You can either load that manually, or put the correspondong \usepackage
in the preamble of your math archive, or, in fact, you can do \libinput[smglom/sets]{preamble}
to load all the packages used anywhere in smglom/sets.
The latter might be a bit wasteful, but is the laziest way to solve it :)
Ok, thank you!
I ran into an error while trying to import a file from the smglom library, namely
smglom/sets/mod?set
. It could be a problem with that specific file, but the latex code of the smglom file itself looks fine to me, my guess is that it's more likely to be a sTeX parsing error/error in the macro expansion error of the latex code.I don't have problems compiling that file directly. If I just right click the file
smglom/sets/mod/set.en.tex
in the sTeX side panel in VSCode, it compiles without any problems. The problem only occurs when I try to import it from another archive.To create the error, I created a new math archive
patn
and created a filehello-world.tex
in the source directory. The source code isThe compilation fails due to a failure to parse line 17 of that file,
smglom/sets/mod/set.en.tex
, which isI don't know what might cause this line to throw an error. Is it treating the semicolons as special characters somehow? Or perhaps the error is earlier in the file and it misattributes it to that line.
I will attach the full
pdflatex.log
below. You can find the actual error by Ctrl-FUndefined control sequence.