Inspired by this question: Using external tables in TikZ, I would like to know whether it is technically possible to use a xlsx (Office Open XML) file directly with luaLaTeX, i.e. can luaLaTeX call some external unzip program and then parse the extracted XML file? Or is that pushing the envelope too hard?

1 Answer 1


This is of course possible, as "LuaTeX is the new Mac Gyver". You can use the built-in luazip to unzip the contents of the xlsx file and then use an Lua-XML parser (see https://github.com/pgundlach/LuaTeX/tree/xmlreader for an XML enabled LuaTeX).

  • 1
    You can of course create your own XML parser. LuaTeX's built in lpeg library uses grammars as an input almost exactly in the format as given by the w3c for XML.
    – topskip
    Oct 6, 2011 at 10:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.