ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: DesdeChaves <desdechaves@gmail.com>
To: ntg-context@ntg.nl
Subject: pst-spectra and some other pstricks packages in context
Date: Tue, 19 Nov 2013 19:29:36 +0000	[thread overview]
Message-ID: <CAPBmU9E==qsDUj4QF4SsdALj1dT+bzKUJbQ+sRPpVik7O1iq=g@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2148 bytes --]

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.
..
<argument> ...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

[-- Attachment #1.2: Type: text/html, Size: 2986 bytes --]

[-- Attachment #2: Type: text/plain, Size: 485 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

                 reply	other threads:[~2013-11-19 19:29 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAPBmU9E==qsDUj4QF4SsdALj1dT+bzKUJbQ+sRPpVik7O1iq=g@mail.gmail.com' \
    --to=desdechaves@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).