ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: Henning Hraban Ramm <hraban@fiee.net>
Subject: Re: error with \showlayout and export
Date: Sun, 27 Nov 2011 12:35:10 +0100	[thread overview]
Message-ID: <0BCE3119-7D79-43B9-A159-62BC079800B1@googlemail.com> (raw)
In-Reply-To: <4670B7FC-970F-4698-B676-9F8C31AE8971@fiee.net>


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
___________________________________________________________________________________


      reply	other threads:[~2011-11-27 11:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-27 11:11 Henning Hraban Ramm
2011-11-27 11:35 ` Wolfgang Schuster [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0BCE3119-7D79-43B9-A159-62BC079800B1@googlemail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=hraban@fiee.net \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).