From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85449 Path: news.gmane.org!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: pstrics module again Date: Mon, 25 Nov 2013 13:55:07 -0500 (EST) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1385405721 31423 80.91.229.3 (25 Nov 2013 18:55:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 18:55:21 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Nov 25 19:55:27 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Vl1Je-00011O-3d for gctc-ntg-context-518@m.gmane.org; Mon, 25 Nov 2013 19:55:26 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4945E101F2; Mon, 25 Nov 2013 19:55:25 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id G2PmvI3T-RRB; Mon, 25 Nov 2013 19:55:23 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 6B9E4101E9; Mon, 25 Nov 2013 19:55:23 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9BDC3101E9 for ; Mon, 25 Nov 2013 19:55:21 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Uc3rn7Fctsp8 for ; Mon, 25 Nov 2013 19:55:16 +0100 (CET) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id CF15A101DE for ; Mon, 25 Nov 2013 19:55:16 +0100 (CET) Original-Received: from hackers.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.14.81]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAPIt9oE015120 for ; Mon, 25 Nov 2013 19:55:15 +0100 Original-Received: FROM Decentralized.ECE.McGill.CA (Decentralized.ECE.McGill.CA [132.206.69.142]) By hackers.mr.itd.umich.edu ID 52939D0C.821D0.23906 ; Authuser adityam; 25 Nov 2013 13:55:08 EST In-Reply-To: User-Agent: Alpine 2.03 (LNX 1266 2009-07-14) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=141.211.14.81; country=US; region=MI; city=Ann Arbor; postalcode=48109; latitude=42.2923; longitude=-83.7145; metrocode=505; areacode=734; http://maps.google.com/maps?q=42.2923,-83.7145&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03KRSTa2z - 2e25616e849a - 20131125 X-Scanned-By: CanIt (www . roaringpenguin . com) on 192.87.102.71 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:85449 Archived-At: On Mon, 25 Nov 2013, DesdeChaves wrote: > Dear sirs > > The pstrics module don't work anymore. I tried to run this simple code but > I found a lot of errors. > > \usemodule[pstric] > \starttext > \startPSTRICKS > \pspicture(0,0)(20,20) > \psline(0,0)(20,20) > \psline(1,1)(10,10) > \endpspicture > \stopPSTRICKS > \stoptext It appears that pstrick files are no longer part of the standalone distribution, but if you copy a bunch of files, then the above example does work. > This module is no longer supported? > There is still any hope of being able to use pstric and some of its > extensions (pst-spectra, for example)? This is what I did. 1. Compile the file. You get an error that some pstrick file is missing. Locate that file in the texlive directory and copy it to the current directory. 2. Repeat until you get an error that \ifx! is not a valid control sequence. 3. Run `grep ifx! *.tex` and change all the "\ifx!#1" to "\ifx !#1". 4. Then you get an error that colo-rgb is missing. Copy colo-rgb.mkii to the current directory as colo-rgb.tex. 5. Then you get a error message the some .pro file is missing. Find that file from the texlive directory and copy it to the current directory. Repeat until all errors are resolved. Finally you'll get the correct output. So it seems that if pstricks is added back to the minimals (so that errors in step 1 and 5 don't happen), then it should be straightforward to get it to work with context. (Just load the file with the correct catcode regime, so that ! is a other character, and the error in step 2-3 will not happen). THe error in step 3 is easy to fix by editing m-pstricks. 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________