error with \showlayout and export
![](https://secure.gravatar.com/avatar/5a39f1335b6eff433673ed987859fb24.jpg?s=120&d=mm&r=g)
Hi wizards, if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error. Minimal failing example: \setupbackend[export=yes] \starttext \showlayout \stoptext Ixchel:konzept hraban$ context --purge context_test.tex mtx-context | run 1: luatex --fmt="/Users/hraban/Library/texmf/tex/ texmf-cache/luatex-cache/context/2448223e6631addb83df348d74153606/ formats/cont-en" --lua="/Users/hraban/Library/texmf/tex/texmf-cache/ luatex-cache/context/2448223e6631addb83df348d74153606/formats/cont- en.lui" --backend="pdf" "./context_test.tex" \stoptext This is LuaTeX, Version beta-0.70.1-2011051908 (rev 4277) \write18 enabled. (context_test.tex ConTeXt ver: 2011.11.24 15:52 MKIV fmt: 2011.11.25 int: english/ english system > cont-new.mkiv loaded (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/cont- new.mkiv system > beware: some patches loaded from cont-new.mkiv ) system > context_test.top loaded (context_test.top) fonts > latin modern fonts are not preloaded languages > language en is active backend > export > enabling export to xml {/Users/hraban/Library/texmf/tex/texmf-context/fonts/map/pdftex/ context/mkiv-base.map} fonts > preloading latin modern fonts (second stage) (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/type- siz.mkiv) (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/ base/type-otf.mkiv) files > readfile > asked name: 'loc', not found {/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/lm/lm- math.map}{/Users/hraban/Library/texmf/tex/texmf-fonts/fonts/map/dvips/ lm/lm-rm.map} fonts > virtual math > unable to resolve name mapsfromchar fonts > fallback modern rm 12pt is loaded (/Users/hraban/Library/texmf/tex/texmf-context/tex/context/base/page- run.mkiv loading > ConTeXt Page Macros / Runtime Macros ) interface > initialization > loading interface definitions from 'mult-def.lua' interface > initialization > loading interface messages from 'mult-mes.lua' metapost > initializing instance 'metafun' using format 'metafun' metapost > loading 'metafun': /Users/hraban/Library/texmf/tex/ texmf-context/metapost/context/base/metafun.mpiv backend > xmp > using file '/Users/hraban/Library/texmf/tex/ texmf-context/tex/context/base/lpdf-pdx.xml' pages > flushing realpage 1, userpage 1, subpage 1 pages > flushing realpage 2, userpage 2 pages > flushing realpage 3, userpage 3 pages > flushing realpage 4, userpage 4 pages > flushing realpage 5, userpage 5 ) ! LuaTeX error ...exmf/tex/texmf-context/tex/context/base/back-exp.lua: 1203: attempt to index global 'c' (a nil value). system > tex > error on line 0 in file : LuaTeX error ... <empty file> <*> ./context_test.tex \stoptext ? Greetlings from Lake Constance! Hraban --- http://www.fiee.net/texnique/ http://wiki.contextgarden.net https://www.cacert.org (I'm an assurer)
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 27.11.2011 um 12:11 schrieb Henning Hraban Ramm:
Hi wizards,
if I use \showlayout in a project where I setup export=yes, ConTeXt stops with a fatal error.
Minimal failing example:
\setupbackend[export=yes] \starttext \showlayout \stoptext
I think this change in back-exp.lua should work (runs at least without an error message): function extras.tabulate(result,element,detail,n,fulltag,di) local data = di.data for i=1,#data do local di = data[i] if di.tg == "tabulaterow" then local did = di.data local content = false for i=1,#did do local d = did[i].data -- local c = d and c.content local c = d and d.content if c and #c > 0 then content = true break end end if not content then di.element = "" -- or simply remove end end end end Wolfgang
participants (2)
-
Henning Hraban Ramm
-
Wolfgang Schuster