ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@googlemail.com>
To: TeX on Mac OS X Mailing List <macosx-tex@email.esm.psu.edu>
Cc: mailing list for ConTeXt users <ntg-context@ntg.nl>,
	Graphics with PSTricks <pstricks@tug.org>
Subject: Re: [OS X TeX] PSTricks in Context
Date: Mon, 27 Apr 2009 10:37:41 +0200	[thread overview]
Message-ID: <B6C7842D-C97D-40F6-BECC-45749BDB2941@gmail.com> (raw)
In-Reply-To: <2F10DD8D-C15B-480A-B676-4AD89A0454F0@suddenlink.net>

Dear Mr. Arnold,

questions regarding ConTeXt and modules for ConTeXt are better asked
on the ConTeXt mailing list and if you would have done this I could
have given you the following answer.


The default output format for ConTeXt is PDF since about three years
while PSTricks needs the files in PostScript format which requires
a intermediate DVI file. To get a DVI file with ConTeXt you could set
it either with \setupoutput[dvi] in your document or you use the
backend switch on the command line, because the code between the
PSTRICKS-environment is written in a external file which is converted
to dvi, ps and pdf you have to do this in the pstric-module and not
in your document.


In my own installation I made a copy from the file m-pstric.tex and
added the \dostartTEXapplication macro from the page-app.tex file
where I now changed the line

   \executesystemcommand{texexec --once --batch \bufferprefix 
\@@texapp.tex}%

to

   \executesystemcommand{texexec --once --batch --backend=dvips  
\bufferprefix\@@texapp.tex}%

and switched from ps2pdf command to pstopdf

   %\executesystemcommand{ps2pdf \bufferprefix\@@texapp.ps  
\bufferprefix\@@texapp.pdf}%
   \executesystemcommand{texmfstart pstopdf \bufferprefix\@@texapp.ps  
\bufferprefix\@@texapp.pdf}%

to get a cropped page for the image.


As a last change I added the following two definition to m-pstrics.tex
because pstricks.tex use them but are not defined in ConTeXt:

   \letvalue{@unused}\plussixteen
   \letvalue{alloc@}\gobblefivearguments


After these changes I was able to produce PSTricks images in ConTeXt
but people had use never given enough time on the ConTeXt list to answer
their questions and fix the problem and so PSTricks support is broken
since a long time and this will not change.


Best regards,
Wolfgang Schuster

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


           reply	other threads:[~2009-04-27  8:37 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <2F10DD8D-C15B-480A-B676-4AD89A0454F0@suddenlink.net>]

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=B6C7842D-C97D-40F6-BECC-45749BDB2941@gmail.com \
    --to=schuster.wolfgang@googlemail.com \
    --cc=macosx-tex@email.esm.psu.edu \
    --cc=ntg-context@ntg.nl \
    --cc=pstricks@tug.org \
    /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).