josephwright / etoolbox

Tool-box for LaTeX programmers using e-TeX
LaTeX Project Public License v1.3c
41 stars 7 forks source link

46533 -> 46550 causes "Math formula deleted: Insufficient symbol fonts" #19

Closed pitkling closed 6 years ago

pitkling commented 6 years ago

When I updated my MacTeX 2017 installation this morning via tlmgr, etoolbox was updated from 46533 to 46550. Since then, I get "Math formula deleted: Insufficient symbol fonts" errors for simple tex files like:

\documentclass{article}
\usepackage{biblatex}
\begin{document}
\end{document}

When I uncomment biblatex, it works. Loading mdframed instead of biblatex causes similar errors. When I revert etoolbox to 46533, everything works again.

I attached the log file for the above example when compiling with etoolbox 46550.

josephwright commented 6 years ago

Ah, I see the issue: I'd not allowed for multiple tokens in the 'payloads'. Fix coming up!

josephwright commented 6 years ago

Temporary fix:

\documentclass{article}
\usepackage{etoolbox}
\makeatletter
\long\def\etb@listitem#1#2{%
  \expandafter\ifblank\expandafter{\@gobble#2}
    {}
    {\expandafter\etb@listitem@i
     \expandafter{\@secondoftwo#2}{#1}}}
\long\def\etb@listitem@i#1#2{#2{#1}}
\makeatother
\usepackage{biblatex}

Update on the way to CTAN now.

pitkling commented 6 years ago

Great, thanks for the quick fix!

ArthurPreuss commented 6 years ago

Sorry, but I am very new to LaTeX and I am trying to fix this problem as well. Would it be possible to tell me please where should I insert the code that fixes the bug? Thanks in advance!

josephwright commented 6 years ago

@ArthurPreuss It is fixed in the release version: if you have an up-to-date TeX system you'll have the fix (and if you have an older system you are likely not to need it).