ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Mojca Miklavec <mojca.miklavec.lists@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: PSTricks in Context
Date: Mon, 15 Dec 2014 09:13:36 +0100	[thread overview]
Message-ID: <CALBOmsY3V1HAD-f8QRT7TJoYOKxJcNrDxFsSwZDCAnd6ci9BJA@mail.gmail.com> (raw)
In-Reply-To: <CAPtmdbMSJ1RNLUvCa-ntAsC1-t=1q2MWPUeZV4dTzqh1ANCZWg@mail.gmail.com>

On Sun, Dec 14, 2014 at 6:45 PM, context context wrote:
> Could someone tell me how to install and use PSTricks in Context

First of all try to figure out if you could use MetaPost or TikZ
instead. Either of them is a lot more "pdf-friendly".

Unless you still work with MkII and go via dvi->ps->pdf, you need to
compile the PSTricks graphic separately into DVI, then PS, then PDF,
and include the final graphic into the document. While ConTeXt macros
can do that for you, it's still very ugly. Unless you have a very very
very strong reason to use PSTricks, you would be better off with other
solutions.

In any case PSTricks isn't supported in the standalone distribution,
so you need to use TeX Live.


This is (probably) the proper syntax to get it running:

\usemodule[pstricks]
\starttext
\startPSTRICKS
\psline(0,0)(3,3)
\stopPSTRICKS
\stoptext

But for MkII you need to enable unrestricted write18, else you end up with

runsystem(texexec test-texapp.tex --once --batch)...disabled (restricted).
runsystem(dvips test-texapp)...disabled (restricted).
runsystem(ps2pdf test-texapp.ps test-texapp.pdf)...disabled (restricted).

(and maybe then it won't work anyway) and for MkIV it currently fails
to work as well:

(/usr/local/texlive/2014/texmf-dist/tex/generic/pst-tools/pst-tools.tex
`PST-tools' v0.05, 2014/05/12 (hv))  v1.63, 2014/06/24 (tvz,hv))
pstricks        : loading colors from colo-rgb
! I can't find file `colo-rgb'.
\loadpstrickscolors ...g colors from #1}\input #1
                                                  \relax \popmacro \dodefine...
l.47 ...s}{using indirect method; enable write18}}

(Press Enter to retry, or Control-D to exit)

Mojca
___________________________________________________________________________________
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:[~2014-12-15  8:13 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-14 17:45 context context
2014-12-15  8:13 ` Mojca Miklavec [this message]
2014-12-15  8:28   ` Herbert Voss
2014-12-15  8:55     ` Mojca Miklavec
2014-12-15 11:53       ` Herbert Voss
2014-12-15 13:06         ` luigi scarso
2014-12-15 20:46           ` Herbert Voss
2014-12-16 12:27             ` luigi scarso
2014-12-31 14:58               ` luigi scarso
2014-12-15 14:27         ` Mojca Miklavec
2014-12-15 20:45           ` Herbert Voss
2014-12-15 21:18             ` Mojca Miklavec
2014-12-15 22:26               ` Aditya Mahajan
2014-12-15 21:27             ` Alan BRASLAU
2014-12-16  9:32           ` luigi scarso
  -- strict thread matches above, loose matches on Subject: below --
2014-12-16 10:04 Akira Kakuto
2014-12-16 10:35 ` luigi scarso
2014-12-16 13:07   ` Herbert Voss
2014-12-17 21:22     ` Context NTG
2014-12-18 14:29       ` Mojca Miklavec
2014-12-18 18:53         ` Context NTG
2014-12-15  9:28 Akira Kakuto
2006-06-19  2:45 Metapost: point along path and metaobj Aditya Mahajan
2006-06-19 14:03 ` Taco Hoekwater
2006-06-19 15:46   ` PsTRICKS in Context batela
2006-06-19 15:52     ` Hans Hagen
2006-06-19 16:29       ` batela

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=CALBOmsY3V1HAD-f8QRT7TJoYOKxJcNrDxFsSwZDCAnd6ci9BJA@mail.gmail.com \
    --to=mojca.miklavec.lists@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).