From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/85357 Path: news.gmane.org!not-for-mail From: DesdeChaves Newsgroups: gmane.comp.tex.context Subject: pst-spectra and some other pstricks packages in context Date: Tue, 19 Nov 2013 19:29:36 +0000 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1676432479==" X-Trace: ger.gmane.org 1385021729 13632 80.91.229.3 (21 Nov 2013 08:15:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 08:15:29 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Thu Nov 21 09:15:36 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 1VjPQC-0007nl-1g for gctc-ntg-context-518@m.gmane.org; Thu, 21 Nov 2013 09:15:32 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8DE6F10210; Thu, 21 Nov 2013 09:15:30 +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 bMuvdnEid5wY; Thu, 21 Nov 2013 09:15:24 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id B3D79101EA; Thu, 21 Nov 2013 09:15:24 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id DE102101E9 for ; Tue, 19 Nov 2013 20:29:40 +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 ciLaFjvoOd4u for ; Tue, 19 Nov 2013 20:29:38 +0100 (CET) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id A6780101DE for ; Tue, 19 Nov 2013 20:29:38 +0100 (CET) Original-Received: from mail-oa0-x229.google.com (mail-oa0-x229.google.com [IPv6:2607:f8b0:4003:c02::229]) by filter4-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id rAJJav4e016990 for ; Tue, 19 Nov 2013 20:36:58 +0100 Original-Received: by mail-oa0-f41.google.com with SMTP id g12so9502845oah.28 for ; Tue, 19 Nov 2013 11:29:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=buZhrXbZnrLTCvn2/SitMbfk/Qhqp1CnN0s1UG+05K0=; b=O34UhX4E3Rntub5IQdbrst+tEApQNoFmWvpV+1EDu714uoIc2V4dxSe4iDm/ZUIPFl 0woXHJ9zV0KLbHOivyHu2JDT+3S+w4U98zuryYr2pG92mRR8Kjf4xa4PjjnbYymZyHat jg2P0swgMhcAgfRGP81mA1N35unkdLtbyqoeflG91PFmYsMvgbP1o093b46l0qTeP6nr GdjRXSidTKtjjwSGN1I2+T9/LoC1W21QP0IdJKO1ApoedHR4gHtJ9j/0oZye8LJh9MN7 Ej0zjMnx53aKGbWECHbQSNs1Gny7hXO688VjoH+6sIEXaF3LbbIJEZBtRFQnEHzjrkQG FrbQ== X-Received: by 10.60.125.3 with SMTP id mm3mr26394727oeb.23.1384889376086; Tue, 19 Nov 2013 11:29:36 -0800 (PST) Original-Received: by 10.60.93.131 with HTTP; Tue, 19 Nov 2013 11:29:36 -0800 (PST) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4003:c02::229; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01KPvAW5X - 4f9e78a5f140 - 20131119 X-Scanned-By: CanIt (www . roaringpenguin . com) X-Mailman-Approved-At: Thu, 21 Nov 2013 09:15:23 +0100 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:85357 Archived-At: --===============1676432479== Content-Type: multipart/alternative; boundary=047d7b41be2a509eb804eb8caf2b --047d7b41be2a509eb804eb8caf2b Content-Type: text/plain; charset=ISO-8859-1 Dear Sirs Tanks a lot for the context software. I use it so much. I'm a physics/chemistry teacher and for making personalized exams with random numbers/questions the math.random() from lua is great. For draw schematic diagrams/graphs with random arguments I use tikz inside luacode, like context("\\addplot[blue, ultra thick] {"..slope.."*x-"..workfunction.."};"). However, it would be useful to use some pstricks packages. For example, the package pst-spectra includes a set of spectrum of various chemical elements. It is unique. Currently, I run latex and then import the pdf file into context file. There are other old pstricks macros, but still very useful, that i like to use. It's old, but useful. In the pstricks home page (http://tug.org/PSTricks/main.cgi/) I can found some new work, with some new packages and macros. For now, if i try to run this simple code \usemodule[pstric] \starttext \startPSTRICKS \pspicture(0,0)(20,20) \psline(0,0)(20,20) \psline(1,1)(10,10) \endpspicture \stopPSTRICKS \stoptext I found this error message: [...] (/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utilities/pgffor.code.tex) `PSTricks' v2.43 <2013/05/12> (tvz) (/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pstricks.con)) (/usr/local/texlive/2013/texmf-dist/tex/generic/pst-plot/pst-plot.tex v1.45, 2013/04/29 (tvz,hv) ! Undefined control sequence. \special@length ...ecial@length]{ #1|#2|#3 }\ifx! #1\relax \edef \pst@Specia... \pssetlength ...ecial@length \pst@tempg \@nil {#1} \ignorespaces \pst@getlength #1#2->\pssetlength \pst@dimg {#1} \edef #2{\pst@number\pst@di. .. ...endcsname \expandafter {\XKV@tempa } \relax \XKV@srstate{}{@\r... \XKV@afterfi #1\fi ->\fi #1 \XKV@f@r ...nnil \expandafter \@gobbletwo \else #2 \expandafter \XKV@f@r \fi ... ... l.219 \psset[pst-plot]{barwidth=0.25cm} Thanks a lot for your support and for Context. Jorge Manuel --047d7b41be2a509eb804eb8caf2b Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Dear Sirs

Tanks a lot for the con= text software. I use it so much. I'm a physics/chemistry teacher and fo= r making personalized exams with random numbers/questions the math.random()= from lua is great. =A0For draw schematic diagrams/graphs with random argum= ents I use tikz inside luacode, like context("\\addplot[blue, ultra th= ick] {"..slope.."*x-"..workfunction.."};").
However, it would be useful to use some pstricks packages. For e= xample, the package pst-spectra includes a set of spectrum of various chemi= cal elements. It is unique. =A0Currently, =A0I run =A0latex and then import= the pdf file into context file.=A0There are other old pstricks macros, but= still very useful, that i like to use. It's old, but useful. In the ps= tricks home page (http://tug.= org/PSTricks/main.cgi/) I can found some new work, with some new packag= es and macros.=A0

For now, if i try to run this simple code


\usemodule[pstr= ic]=A0
\starttext=A0
\startPSTRICKS=A0
\p= spicture(0,0)(20,20)=A0
\psline(0,0)(20,20)=A0
\psline(1,1)(10,10)=A0
\end= pspicture=A0
\stopPSTRICKS=A0
\stoptext=A0

I found this error message:
[.= ..]
(/usr/local/texlive/2013/texmf-dist/tex/generic/pgf/utiliti= es/pgffor.code.tex)
`PSTricks' v2.43 =A0<2013/05/12> (t= vz)
(/usr/local/texlive/2013/texmf-dist/tex/generic/pstricks/pstr= icks.con))
(/usr/local/texlive/2013/texmf-dist/tex/generic/pst-plot/pst-plot.tex<= /div>
=A0v1.45, 2013/04/29 (tvz,hv)
! Undefined control seque= nce.
\special@length ...ecial@length]{ #1|#2|#3 }\ifx!=A0
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 #1\relax \edef \pst@Specia...

=
\pssetlength ...ecial@length \pst@tempg \@nil {#1}
=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 \ignorespaces=A0
\pst@getlength #1#2->\pssetlength \pst@dimg {#1}
=A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 \edef #2{\pst@number \pst@di...
<argument> ...= endcsname \expandafter {\XKV@tempa }
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0 =A0 =A0 =A0 \relax \XKV@srstate {}{@\r...

=
\XKV@afterfi #1\fi ->\fi #1
=A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0
\XKV@f@r ...nnil \expandafter \@gobbl= etwo \else #2
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \expandafter \XKV@f@r \fi ...
...=
l.219 \psset[pst-plot]{barwidth=3D0.25cm}
=A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0
Thanks a lot for your support and for Context.

Jorge Manuel

--047d7b41be2a509eb804eb8caf2b-- --===============1676432479== 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 ___________________________________________________________________________________ --===============1676432479==--