> is tex.pdfoutput=1 still switching to PDF mode? it seems that tex.outputmode = 1 does the trick. Is it safe to use tex.outputmode = 1 in older versions of LuaTeX and tex.pdfoutput = 1 in newer versions? This is not documented (yet), that confused me... Patrick