TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 9 down vote accepted

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).

share|improve this answer
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 '11 at 10:31

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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