MiKTeX / miktex

the MiKTeX source code

Home Page:https://miktex.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Updated MiKTeX (2024-03-12), lua debug function not working

kalekje opened this issue · comments

The MWE below works with Overleaf (TeXLive 2023), but does not with MiKTeX as debug.getinfo is nil -- perhaps this library is not loaded in the new update. Another standard library, math for example, still works.

\documentclass{scrartcl}
\usepackage{luacode}
\begin{document}
\section{Test}
Hello world.
\begin{luacode*}
  function testfunction()
     return debug.getinfo(1, "fn").name
  end
   tex.sprint(tostring(debug==nil))
  tex.sprint(tostring(debug.getinfo==nil))
  tex.sprint(testfunction())
\end{luacode*}

\end{document}