slatex / sTeX

A semantic Extension of TeX/LaTeX
50 stars 9 forks source link

mysterious incomplete if #321

Open kohlhase opened 2 years ago

kohlhase commented 2 years ago

When I format my notes, I get worrying errors at the end:

(\end occurred when \if on line 27 was incomplete)
(\end occurred when \if on line 27 was incomplete)
(\end occurred when \if on line 95 was incomplete)
(\end occurred when \if on line 94 was incomplete)
(\end occurred when \if on line 95 was incomplete)
(\end occurred when \if on line 94 was incomplete)
(\end occurred when \iftrue on line 4 was incomplete)
(\end occurred when \iffalse on line 22 was incomplete)
(\end occurred when \ifx on line 57 was incomplete)
(\end occurred when \ifx on line 56 was incomplete)

They do not seem to do any harm, but I do not understand where they come from

Jazzpirate commented 2 years ago

I've noticed them before and also had no idea where the came from whatsoever. I'm pretty sure that they're not caused by anything sTeX-core-related though

kohlhase commented 2 years ago

I have (now) observede that they seem to be related to beamer overlays: Every extra overlay seems to generate an error message.

Jazzpirate commented 2 years ago

Narrowed it down further: The errors are caused by something somewhere in MiKoMH/meta-inf/lib/preamble.tex

kohlhase commented 2 years ago

still further narrowing it down. commenting out the lines

%\libusetikzlibrary{mmt}
%\libusetikzlibrary{docicon}

stops the error reports on MiKoMH/AI/source/intro/mod/ai-approaches.en.tex, each of these seems to contribute one error.

kohlhase commented 2 years ago

Interestingly, the \if in meta-inf/lib/tikzlibrarymmt.code.tex all balance and meta-inf/lib/tikzlibrarydocicon.code.tex does not have any. AND there is no tikz in ai-approaches.en.tex.

@Jazzpirate do you have an idea?

kohlhase commented 2 years ago

At least it is good to know that this is not an sTeX problem; but I would stil like it fixed.