\ProvidesPackage{mqref} \RequirePackage{mqlua} \RequirePackage{mqfqname} \RequirePackage{mqquantity} \newcommand\luaDoubleFieldValue[3]{% \directlua{ if #1 \string~= nil and #1[#2] \string~= nil and #1[#2][#3] \string~= nil then tex.sprint(#1[#2][#3]) return end luatexbase.module_warning('luaDoubleFieldValue', 'Invalid indices to `#1`: `#2` and `#3`'); tex.sprint("???") }% } % LABELS \begin{luacode} -- Contains