From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/51757 Path: news.gmane.org!not-for-mail From: Vafa Khalighi Newsgroups: gmane.comp.tex.context Subject: Re: from latex & pstricks to context Date: Mon, 13 Jul 2009 19:21:36 +1000 Message-ID: <605202f20907130221k38f26117s7215665c9c9367a7@mail.gmail.com> References: <20090713095558.7f319385@KUBUNTU64> <20090713110558.663d0d7e@KUBUNTU64> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1983684329==" X-Trace: ger.gmane.org 1247477092 25620 80.91.229.12 (13 Jul 2009 09:24:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 13 Jul 2009 09:24:52 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Jul 13 11:24:46 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 1MQHm5-00033V-Sn for gctc-ntg-context-518@m.gmane.org; Mon, 13 Jul 2009 11:24:41 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 862831FBC5; Mon, 13 Jul 2009 11:24:41 +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 26612-02-3; Mon, 13 Jul 2009 11:23:39 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CB5FC1FBAC; Mon, 13 Jul 2009 11:22:45 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 818A81FBB8 for ; Mon, 13 Jul 2009 11:22:39 +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 25810-04-2 for ; Mon, 13 Jul 2009 11:21:44 +0200 (CEST) Original-Received: from filter2-til.mf.surf.net (filter2-til.mf.surf.net [194.171.167.218]) by ronja.ntg.nl (Postfix) with ESMTP id E89061FBC1 for ; Mon, 13 Jul 2009 11:21:38 +0200 (CEST) Original-Received: from qw-out-1920.google.com (qw-out-1920.google.com [74.125.92.145]) by filter2-til.mf.surf.net (8.13.8/8.13.8/Debian-3) with ESMTP id n6D9LbYa012037 for ; Mon, 13 Jul 2009 11:21:38 +0200 Original-Received: by qw-out-1920.google.com with SMTP id 14so746955qwa.38 for ; Mon, 13 Jul 2009 02:21:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type; bh=tD8TSlKno6l9vaTyAB0ElT30YZe3dbgbRQf1TjbCk1k=; b=VmS/VG+KRjD1tQSnhvolkaVcH1GvZDlyGGta8q5I/XEGpbzf1EUi3hL95DmwI+EVGe r4BiRADQwQP3FgkLuUhycf1Iiyy8BmpbASl0BwTcO3is6xi1JZEFF6WPiAnWFR64xHKp lmFQ0vWah3jyzC+wuYx+Dy8uXWMO02q8Qw1os= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type; b=mQIoI7oceECalQaISoGQX09spHGGIH9OGOJqxQdaZCo67meemVvOnSUVyYs5N4xXJ2 q7eecI8TdnAph8GEs5EwQHB+E6Er+OTAgblKbqV/dAxe6u5wQ2LO8fJbvv5UntWBmjKZ V2xiK2O1FaneuSKaIaFuj7YfKYPwCVMHGlbWY= Original-Received: by 10.224.19.130 with SMTP id a2mr2729773qab.316.1247476897115; Mon, 13 Jul 2009 02:21:37 -0700 (PDT) In-Reply-To: <20090713110558.663d0d7e@KUBUNTU64> X-Google-Sender-Auth: 17667634029c3975 X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.92.145; 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: 259872625 - 899b190af883 - 20090713 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.218 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:51757 Archived-At: --===============1983684329== Content-Type: multipart/alternative; boundary=0015175cf746516f80046e92d924 --0015175cf746516f80046e92d924 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit > > > What is the sense of \startPSTRICKS ... \stopPSTRICKS ? > Maybe he meant: \startpspicture \stoppspicture The actual macros of pstricks are defined in pstricks.tex and that is all Plain TeX. I myself generally would do something like this in Plain TeX \input pstricks \pspicture(0,0)(2,2) \psline(1,1)(2,2) \endpspicture \bye and In LaTeX actually if you want to define an environment, you can use \def\environment and \def\endenvironment. I guess then you could probably use it in ConTeXt as \startpspicture \stoppspicture and you can probable load pstricks by saying \usemodule[pstricks] or anything that context uses. --0015175cf746516f80046e92d924 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



What is the sense of \startPSTRICKS ... \stopPSTRICKS ?

Maybe he meant:

\startpspicture

\stopps= picture

The actual macros of pstricks are defined in pstricks.tex an= d that is all Plain TeX. I myself generally would do something like this in= Plain TeX

\input pstricks
\pspicture(0,0)(2,2)
\psline(1,1)(2,2)
\endpsp= icture

\bye

and In LaTeX actually if you want to define an en= vironment, you can use \def\environment and \def\endenvironment. I guess th= en you could probably use it in ConTeXt as

\startpspicture

\stoppspicture

and you can probable load = pstricks by saying \usemodule[pstricks] or anything that context uses.
=

--0015175cf746516f80046e92d924-- --===============1983684329== 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 ___________________________________________________________________________________ --===============1983684329==--