Skip to content

Instantly share code, notes, and snippets.

@moewew
Last active February 6, 2018 14:45
Show Gist options
  • Save moewew/e3689edc7a757306317c8398710660c1 to your computer and use it in GitHub Desktop.
Save moewew/e3689edc7a757306317c8398710660c1 to your computer and use it in GitHub Desktop.
\documentclass{article}
\usepackage{luacode}
\begin{document}
\begin{luacode}
kpse.set_program_name("kpsewhich")
build_kpse_path = string.match(kpse.lookup("l3build.lua"),"(.*[/])")
tex.print(build_kpse_path)
local function build_require(s)
tex.print(kpse.lookup("l3build-"..s..".lua", { path = build_kpse_path } ) )
end
build_require("help")
\end{luacode}
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment