From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/39360 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: t-tikz: problem with colorspace pgfprgb Date: Mon, 3 Mar 2008 00:15:20 -0500 (EST) Message-ID: References: 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 1204541249 22124 80.91.229.12 (3 Mar 2008 10:47:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 3 Mar 2008 10:47:29 +0000 (UTC) To: finn.martensen@web.de, mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Mar 03 11:47:54 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 1JW8Cy-0004H5-7p for gctc-ntg-context-518@m.gmane.org; Mon, 03 Mar 2008 11:47:48 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 5CAD21FC1B; Mon, 3 Mar 2008 11:47:13 +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 19719-01-15; Mon, 3 Mar 2008 11:46:37 +0100 (CET) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 7A4671FC36; Mon, 3 Mar 2008 10:24:12 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 37DF31FC1B for ; Mon, 3 Mar 2008 10:24:10 +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 26392-03-90 for ; Mon, 3 Mar 2008 10:23:33 +0100 (CET) Original-Received: from hellskitchen.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.82]) by ronja.ntg.nl (Postfix) with ESMTP id 9B03020912 for ; Mon, 3 Mar 2008 06:14:17 +0100 (CET) Original-Received: FROM adi-laptop.local (c-68-40-40-75.hsd1.mi.comcast.net [68.40.40.75]) BY hellskitchen.mr.itd.umich.edu ID 47CB8925.7A6B.28420 ; 3 Mar 2008 00:14:13 -0500 In-Reply-To: User-Agent: Alpine 1.00 (DEB 882 2007-12-20) 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:39360 Archived-At: On Sun, 2 Mar 2008, Finn Martensen wrote: > 2008/3/2, Aditya Mahajan : > >> > I have the following problem with TikZ: When I use the "patterns" >> > library in a tikzpicture environment, the file is compiled without >> > problems and creates a PDF file. However, Acrobat displays an error >> > message "Could not find the ColorSpace named 'pgfprgb'". [...] >> >> Can you please post a minimal example? I have compiled a few examples >> from the tikz manual by using all tikz librarries, but never had this >> problem. > > It just discovered that it depends, e.g., on whether there is only one > page with a tikzpicture or more pages with tikzpictures. To give code > examples: the first works, but not the second > > ************************************** > Code with no problems: > ************************************** > \usemodule[tikz] > \usetikzlibrary[patterns] > \starttext > \starttikzpicture > \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); > \stoptikzpicture > \stoptext > > ************************************** > Code with problems: > ************************************** > \usemodule[tikz] > \usetikzlibrary[patterns] > \starttext > \starttikzpicture > \draw (0,0) -- (1,0); > \stoptikzpicture > \page > \starttikzpicture > \fill[pattern=dots] (0,0) -- (0,1) -- (1,1) -- (1,0); > \stoptikzpicture > \stoptext I can reproduce this problem. On linux, with evince pdf viewer (2.21.91) I get "Error: Bad color space 'pgfprgb'", with Adobe reader (8.1.2) "Wrong operand type". The example does work fine with plain TeX and LaTeX. Something wrong in the way patterns are handled by tikz for context. I do not think that anyone on this list understands the internals of TikZ. Your best bet is to report this to the tikz-mailing list. Aditya ___________________________________________________________________________________ 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 ___________________________________________________________________________________