From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85467 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: Re: pstrics module again Date: Mon, 25 Nov 2013 23:08:41 +0000 Message-ID: References: <5293A2C0.3060904@FU-Berlin.DE> <5293B2F9.1010007@FU-Berlin.DE> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2113599274==" X-Trace: ger.gmane.org 1385420927 15662 80.91.229.3 (25 Nov 2013 23:08:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 25 Nov 2013 23:08:47 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Tue Nov 26 00:08:54 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 1Vl5Gu-0007fA-Ok for gctc-ntg-context-518@m.gmane.org; Tue, 26 Nov 2013 00:08:52 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id C0E7810215; Tue, 26 Nov 2013 00:08:51 +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 Shp4faWYoIdz; Tue, 26 Nov 2013 00:08:49 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 225E910200; Tue, 26 Nov 2013 00:08:49 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id B267F10200 for ; Tue, 26 Nov 2013 00:08:47 +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 ED1d4XVq3aWv for ; Tue, 26 Nov 2013 00:08:44 +0100 (CET) Original-Received: from filter1-til.mf.surf.net (filter1-til.mf.surf.net [194.171.167.217]) by balder.ntg.nl (Postfix) with ESMTP id 2D7DC101FF for ; Tue, 26 Nov 2013 00:08:44 +0100 (CET) Original-Received: from mail-ob0-x232.google.com (mail-ob0-x232.google.com [IPv6:2607:f8b0:4003:c01::232]) by filter1-til.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAPN8fs9021834 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Tue, 26 Nov 2013 00:08:43 +0100 Original-Received: by mail-ob0-f178.google.com with SMTP id uz6so4969848obc.37 for ; Mon, 25 Nov 2013 15:08:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=IleRMR6OkvjPkOlQzI12MdLmyTUmejuYClT+fG6PXMc=; b=NKUUsVANlD26AMY6RQcFWigQ5Dj3zE6hyT3CZukqgy/Yv+fNRplPFsCfsaEVCDdcPg rfp0vHtAev/4ccQRD3wzXcXC9Vqbyjc5OB9LrdVetwptsEhXCsKxT8LjdXQxReNVam0A pCj7ehbIogfXMdyu7M5TF0fcxI+nHeXnaf4znFsIRwkVke+44v2aV+x/iNn4KH9s9+Xf QEgwVYGGkTx9RFCbbZRrKL/y3XNZdT9TehjDKfYrLE9fcMJJVYsJMjTs7PJG8wB0CzOy JwH+D0JqkcRSdn9ahVDLX+Mr97oc59xeRrw8B7eBNsnqpc3oZBv0cghsRwmCnMqwaq/r DkzA== X-Received: by 10.60.40.70 with SMTP id v6mr2194169oek.69.1385420921432; Mon, 25 Nov 2013 15:08:41 -0800 (PST) Original-Received: by 10.60.93.131 with HTTP; Mon, 25 Nov 2013 15:08:41 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c01::232; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0RKRX8GgV - c388faeb16cd - 20131126 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) 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:85467 Archived-At: --===============2113599274== Content-Type: multipart/alternative; boundary=089e0139ffc2e2ef4f04ec0871ac --089e0139ffc2e2ef4f04ec0871ac Content-Type: text/plain; charset=ISO-8859-1 I d'ont know how to fix the picture size. No errors at all, but the figure size isn't correct. \usemodule[pstric] \starttext Hydrogen spectrum \startPSTRICKS \input pst-spectra.tex \input pstricks-add.tex \pspicture(0,-2.5)(\textwidth,1.6) \psspectrum[element=H, emission](0,0)(\textwidth,1.5) \rput(2,1){Hydrogen spetrum} \endpspicture \stopPSTRICKS \stoptext 2013/11/25 DesdeChaves > radical solution > > Download and unpack the PSTRicks-TDS.tar to a directory > cp ./PSTricks-TDS/tex/generic/*/*.tex . > perl -pi.back -e 's/\ifx!#1/\ifx !#1/g;' *.tex > rm -rf *.back > cp /usr/local/texlive/2013/texmf-dist/tex/context/base/colo-rgb.mkii > ./colo-rgb.tex > run context > > change in m-pstric.* files ps2pdf to pstopdf > > tanks a lot > > Jorge > > > 2013/11/25 Herbert Voss > >> Am 25.11.2013 21:25, schrieb Aditya Mahajan: >> >> >> \unprotect >>> \input pstricks >>> \protect >>> >>> and therefore when ConTeXt sees \ifx!#1 it thinks that \ifx! is a >>> csname. Adding a space after \ifx avoids that. >>> >>> As I said in my previous message, this is easy to fix at ConTeXt end >>> defining an appropriate catcode regime before inputing pstricks. >>> >>> So, the pstricks package does not need to be changed, but the ConTeXt >>> code that is calling the package needs to be adapted. >>> >> >> ok, understood. >> >> thanks, >> Herbert >> >> ____________________________________________________________ >> _______________________ >> 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 >> ____________________________________________________________ >> _______________________ >> > > > > -- > Atentamente > > DesdeChaves > -- Atentamente DesdeChaves --089e0139ffc2e2ef4f04ec0871ac Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
I d'ont know how to fix the picture size.
No errors at all, but the figure size isn't correct.

\usemodule[pstric]

\starttex= t


Hydrogen spectrum

\startPSTRICKS
\input pst-spectra.tex
\input pstrick= s-add.tex
\pspicture(0,-2.5)(\textwidth,1.6)
\psspectru= m[element=3DH, emission](0,0)(\textwidth,1.5)
\rput(2,1){Hydrogen spetrum}
\endpspicture
\stopPS= TRICKS




\stoptext


2013/11/25 DesdeChaves <desdechaves@gmail.com>
=A0radical solution
=A0
=A0Downlo= ad and unpack the PSTRicks-TDS.tar to a directory
=A0cp ./PSTrick= s-TDS/tex/generic/*/*.tex .
=A0perl -pi.back -e 's/\ifx!#1/\i= fx !#1/g;' *.tex
=A0rm -rf *.back
=A0cp /usr/local/texlive/2013/texmf-dist/te= x/context/base/colo-rgb.mkii ./colo-rgb.tex
=A0run context
<= div>=A0
=A0change in m-pstric.* files ps2pdf to pstopdf

tanks a lot

Jorge


2013/1= 1/25 Herbert Voss <Herbert.Voss@fu-berlin.de>
Am 25.11.2013 21:25, schrieb Aditya Mahajan:=


\unprotect
\input pstricks
\protect

and therefore when ConTeXt sees \ifx!#1 it thinks that \ifx! is a
csname. Adding a space after \ifx avoids that.

As I said in my previous message, this is easy to fix at ConTeXt end
defining an appropriate catcode regime before inputing pstricks.

So, the pstricks package does not need to be changed, but the ConTeXt
code that is calling the package needs to be adapted.

ok, understood.

thanks,
Herbert

_____________________________________________________________= ______________________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage =A0:
http://= www.pragma-ade.nl / http://tex.aanhet.net
archive =A0: http://foundry.supelec.fr/projects/contextrev/ wiki =A0 =A0 : http:= //contextgarden.net
_____________________________________________________________= ______________________



<= /div>--
Atentamente
<= br>DesdeChaves



--
Atentamente<= br>
DesdeChaves --089e0139ffc2e2ef4f04ec0871ac-- --===============2113599274== 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 : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============2113599274==--