From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/45258 Path: news.gmane.org!not-for-mail From: "luigi scarso" Newsgroups: gmane.comp.tex.context Subject: Re: Minimals - problems with format: metafun.mp Date: Mon, 3 Nov 2008 21:57:41 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1553555831==" X-Trace: ger.gmane.org 1225778119 8989 80.91.229.12 (4 Nov 2008 05:55:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Nov 2008 05:55:19 +0000 (UTC) To: "mailing list for ConTeXt users" Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 04 06:56:12 2008 connect(): Connection refused Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by lo.gmane.org with esmtp (Exim 4.50) id 1KxEtY-0000hN-P1 for gctc-ntg-context-518@m.gmane.org; Tue, 04 Nov 2008 06:56:04 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id ADF011FB74; Mon, 3 Nov 2008 21:59:17 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 14344-03; Mon, 3 Nov 2008 21:58:25 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id D5EE21FB6B; Mon, 3 Nov 2008 21:58:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id BD7E21FB8E for ; Mon, 3 Nov 2008 21:58:21 +0100 (CET) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 12354-03-2 for ; Mon, 3 Nov 2008 21:57:42 +0100 (CET) Original-Received: from fk-out-0910.google.com (fk-out-0910.google.com [209.85.128.188]) by ronja.ntg.nl (Postfix) with ESMTP id 3C7861FB6B for ; Mon, 3 Nov 2008 21:57:42 +0100 (CET) Original-Received: by fk-out-0910.google.com with SMTP id 18so3776121fks.2 for ; Mon, 03 Nov 2008 12:57:41 -0800 (PST) Original-Received: by 10.187.232.14 with SMTP id j14mr138500far.26.1225745861841; Mon, 03 Nov 2008 12:57:41 -0800 (PST) Original-Received: by 10.187.211.5 with HTTP; Mon, 3 Nov 2008 12:57:41 -0800 (PST) In-Reply-To: X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.9 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:45258 Archived-At: --===============1553555831== Content-Type: multipart/alternative; boundary="----=_Part_70869_26432034.1225745861828" ------=_Part_70869_26432034.1225745861828 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline On Mon, Nov 3, 2008 at 8:51 PM, Johannes Graumann wrote: > No changes in error message. I attach the code that doesn't work like so: > > context --ctx=t-openoffice Attempt.odt > I was able to bypass error with \startluacode function metapost.free_boxes() local tb = tex.box init = metapost.first_box or 0 tini = metapost.last_box or 0 --for i = metapost.first_box,metapost.last_box do for i = init,tini do local b = tb[i] if b then tb[i] = nil -- no node.flush_list(b) needed, else double free error else break end end end \stopluacode just after %context --ctx=t-openoffice Attempt.odt of t-openoffice.tex -- luigi ------=_Part_70869_26432034.1225745861828 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On Mon, Nov 3, 2008 at 8:51 PM, Johannes Graumann <johannes_graumann@web.de> wrote:
No changes in error message. I attach the code that doesn't work like so:

context --ctx=t-openoffice Attempt.odt

I was able to bypass error with

\startluacode
function metapost.free_boxes()
 local tb = tex.box
 init = metapost.first_box or 0
 tini = metapost.last_box or 0
     --for i = metapost.first_box,metapost.last_box do
     for i = init,tini do
         local b = tb[i]
         if b then
             tb[i] = nil -- no node.flush_list(b) needed, else double free error
         else
             break
         end
     end
end
\stopluacode

just after
%context --ctx=t-openoffice Attempt.odt
of t-openoffice.tex


--
luigi

------=_Part_70869_26432034.1225745861828-- --===============1553555831== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1553555831==--