From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/49852 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context,gmane.comp.tex.macosx Subject: Re: [OS X TeX] PSTricks in Context Date: Mon, 27 Apr 2009 10:37:41 +0200 Message-ID: References: <2F10DD8D-C15B-480A-B676-4AD89A0454F0@suddenlink.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v930.3) Content-Type: text/plain; charset="us-ascii"; Format="flowed"; DelSp="yes" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1240827225 8433 80.91.229.12 (27 Apr 2009 10:13:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 27 Apr 2009 10:13:45 +0000 (UTC) Cc: mailing list for ConTeXt users , Graphics with PSTricks To: TeX on Mac OS X Mailing List Original-X-From: ntg-context-bounces@ntg.nl Mon Apr 27 12:13:38 2009 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 1LyMMd-0002io-VI for gctc-ntg-context-518@m.gmane.org; Mon, 27 Apr 2009 10:39:00 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 65CC91FBBA; Mon, 27 Apr 2009 10:38:55 +0200 (CEST) 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 18706-02; Mon, 27 Apr 2009 10:38:22 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 8072D1FB5A; Mon, 27 Apr 2009 10:38:22 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 05EB91FB5A for ; Mon, 27 Apr 2009 10:38:21 +0200 (CEST) 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 30264-06-4 for ; Mon, 27 Apr 2009 10:38:13 +0200 (CEST) Original-Received: from filter1-nij.mf.surf.net (filter1-nij.mf.surf.net [195.169.124.152]) by ronja.ntg.nl (Postfix) with ESMTP id 134C71FB49 for ; Mon, 27 Apr 2009 10:38:13 +0200 (CEST) Original-Received: from mail-bw0-f178.google.com (mail-bw0-f178.google.com [209.85.218.178]) by filter1-nij.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n3R8cBqO013986 for ; Mon, 27 Apr 2009 10:38:12 +0200 Original-Received: by bwz26 with SMTP id 26so2191445bwz.2 for ; Mon, 27 Apr 2009 01:38:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:cc:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer; bh=bJvbUVUNFux08A/QAD8KST5xGWddNKw53IjP0GEttNQ=; b=J3hadDJ2tF8ym9Qg6R6httlAy+xVw+v7Z/W/3qr4npLtmlqyZOkH/qFEhTE3O5YTOA EzYEePqeXXU506hOac+9JZ2Kp3z7UBYy4kOM22V8QNBkqe1M7g4H5lwx7qjQdkUF/slV 6TZsLrKQmUCs/AYI7RadjTXanuTohF8jv7qBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; b=L27k1kNA7XQJuGjOlBwS2DcFbKXLOp9jKZ2ayXQAYDuZD7JRcFGmqyTfYtXjHJYd1/ j9df9sYcUL7JUyHLFJRehD4uJGqHeVW6anbC4eTwqbjsDcCkerWBgcjcyC6pztxuAfNk t/I0yD6y06LO+pLGwp5Dy9Ssi/6XknGguxqS0= Original-Received: by 10.204.64.136 with SMTP id e8mr5099809bki.46.1240821491672; Mon, 27 Apr 2009 01:38:11 -0700 (PDT) Original-Received: from ?192.168.2.23? (p5B294B4B.dip.t-dialin.net [91.41.75.75]) by mx.google.com with ESMTPS id h2sm7797883fkh.10.2009.04.27.01.38.09 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 27 Apr 2009 01:38:10 -0700 (PDT) In-Reply-To: <2F10DD8D-C15B-480A-B676-4AD89A0454F0@suddenlink.net> X-Mailer: Apple Mail (2.930.3) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.218.178; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 215159190 - 2a9103f38a81 - 20090427 X-Scanned-By: CanIt (www . roaringpenguin . com) on 195.169.124.152 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.11 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:49852 gmane.comp.tex.macosx:33568 Archived-At: Dear Mr. Arnold, questions regarding ConTeXt and modules for ConTeXt are better asked on the ConTeXt mailing list and if you would have done this I could have given you the following answer. The default output format for ConTeXt is PDF since about three years while PSTricks needs the files in PostScript format which requires a intermediate DVI file. To get a DVI file with ConTeXt you could set it either with \setupoutput[dvi] in your document or you use the backend switch on the command line, because the code between the PSTRICKS-environment is written in a external file which is converted to dvi, ps and pdf you have to do this in the pstric-module and not in your document. In my own installation I made a copy from the file m-pstric.tex and added the \dostartTEXapplication macro from the page-app.tex file where I now changed the line \executesystemcommand{texexec --once --batch \bufferprefix \@@texapp.tex}% to \executesystemcommand{texexec --once --batch --backend=dvips \bufferprefix\@@texapp.tex}% and switched from ps2pdf command to pstopdf %\executesystemcommand{ps2pdf \bufferprefix\@@texapp.ps \bufferprefix\@@texapp.pdf}% \executesystemcommand{texmfstart pstopdf \bufferprefix\@@texapp.ps \bufferprefix\@@texapp.pdf}% to get a cropped page for the image. As a last change I added the following two definition to m-pstrics.tex because pstricks.tex use them but are not defined in ConTeXt: \letvalue{@unused}\plussixteen \letvalue{alloc@}\gobblefivearguments After these changes I was able to produce PSTricks images in ConTeXt but people had use never given enough time on the ConTeXt list to answer their questions and fix the problem and so PSTricks support is broken since a long time and this will not change. Best regards, Wolfgang Schuster ___________________________________________________________________________________ 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 ___________________________________________________________________________________