ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* error with \showlayout and export
@ 2011-11-27 11:11 Henning Hraban Ramm
  2011-11-27 11:35 ` Wolfgang Schuster
  0 siblings, 1 reply; 2+ messages in thread
From: Henning Hraban Ramm @ 2011-11-27 11:11 UTC (permalink / raw)
  To: mailing ConTeXt users list for

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
  )</Users/hraban/Library/texmf/tex/texmf/fonts/opentype/public/lm/ 
lmmono10-regular.otf></Users/hraban/Library/texmf/tex/texmf/fonts/ 
opentype/public/lm/lmmono12-regular.otf></Users/hraban/Library/texmf/ 
tex/texmf/fonts/opentype/public/lm/lmroman12-regular.otf>
! 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)

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: error with \showlayout and export
  2011-11-27 11:11 error with \showlayout and export Henning Hraban Ramm
@ 2011-11-27 11:35 ` Wolfgang Schuster
  0 siblings, 0 replies; 2+ messages in thread
From: Wolfgang Schuster @ 2011-11-27 11:35 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Henning Hraban Ramm


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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-11-27 11:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-27 11:11 error with \showlayout and export Henning Hraban Ramm
2011-11-27 11:35 ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).