From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39562 Path: news.gmane.org!not-for-mail From: Peter Rolf Newsgroups: gmane.comp.tex.context Subject: figure libraries (mkiv) Date: Tue, 18 Mar 2008 21:27:41 +0100 Message-ID: <47E025BD.9020200@gmx.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1205872169 29323 80.91.229.12 (18 Mar 2008 20:29:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 18 Mar 2008 20:29:29 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Mar 18 21:29:57 2008 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 1JbiRZ-000117-KH for gctc-ntg-context-518@m.gmane.org; Tue, 18 Mar 2008 21:29:57 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AA9691FBDB; Tue, 18 Mar 2008 21:29:05 +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 06039-01-2; Tue, 18 Mar 2008 21:28:19 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8DBA01FB98; Tue, 18 Mar 2008 21:28:19 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C11101FB98 for ; Tue, 18 Mar 2008 21:28:16 +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 06039-01 for ; Tue, 18 Mar 2008 21:27:42 +0100 (CET) Original-Received: from mail.gmx.net (mail.gmx.net [213.165.64.20]) by ronja.ntg.nl (Postfix) with SMTP id 6C63A1FB5B for ; Tue, 18 Mar 2008 21:27:42 +0100 (CET) Original-Received: (qmail invoked by alias); 18 Mar 2008 20:27:41 -0000 Original-Received: from i5387DC16.versanet.de (EHLO [192.168.1.3]) [83.135.220.22] by mail.gmx.net (mp056) with SMTP; 18 Mar 2008 21:27:41 +0100 X-Authenticated: #24293357 X-Provags-ID: V01U2FsdGVkX19+ZdQxgKJ+AdgWxXoNQfB7VI3kp14t3uPQ/BlFaM S8AHDdx9geUnZL User-Agent: Thunderbird 2.0.0.12 (Windows/20080213) X-Enigmail-Version: 0.95.6 X-Y-GMX-Trusted: 0 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:39562 Archived-At: Hi Hans, Looks like I'm the only one using resource libs. I have tried to solve the problem with figure inclusion, but my lua is still too bad (coroutines). At least I have found the place where things go wrong. function figures.bases.find(basename,askedlabel) [..] if base[2] and base[3] then for e, d, k in xml.elements(base[3],"/(rlx:library|figurelibrary)/*:figure/*:label") do page = page + 1 if xml.content(d[k]) == askedlabel then t = { base = file.replacesuffix(base[2],"pdf"), format = "pdf", name = xml.filters.text(e,"*:file"), -- always empty page = page, -- wrong pagenumber (far too high) } -- tex.sprint(table.serialize(t)) figures.bases.found[askedlabel] = t break end end end [..] And what is the correct namespace for resource libraries? You use rlx for the element, and a joker for . The example in x-res-04.tex should be updated then (uses rl for all). For testing I have changed the prefix to rl (as my test databases use rl). I can send you a small 7z with my test files. Peter ___________________________________________________________________________________ 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 ___________________________________________________________________________________