R-beta: Encapsulated Postscript output with R-0.49
Steve Shiboski
steve at biostat.ucsf.edu
Sun Jun 8 01:33:22 CEST 1997
I've noticed that the postscript files produced by R-0.49
come up inverted in my postscript previewer. Also, they
do not behave like encapsulated postscript files so they
can't be imported into LaTeX documents. If I remove lines
with page-oriented commands like "%%Page", "%%Orientation",
"\bp" and "\ep", the resulting files seem to behave like
legitimate eps files. I've been using the Perl script below
to automate the process:
################################################################
# Perl script to produce encapsulated Postscript-like output
# from R-0.49-produced Postscript files. (Invoke using the name
# of a Postscript file as the argument.)
################################################################
#!/usr/local/bin/perl
open(FILE,"./$ARGV[0]");
while (<FILE>) {
if (!/\%\%Page./ && !/\%\%Orientation./ && !/\/bp/ && !/\/ep/ && !/^bp\b/ && !/^ep\b/) {
s/^\%\!PS-Adobe-3.0/\%\!PS-Adobe-3.0 EPSF-3.0/;
print "$_";
}
}
################################################################
Unless I am the only person experiencing problems with postscript
output, I think it would be a worthwhile project to modify the
existing postscript driver to output compliant eps files as an option.
If I had the requisite knowledge of postscript, I would volunteer...
--
Stephen Shiboski email: steve at biostat.ucsf.edu
Division of Biostatistics voice: 415-476-0533
University of California San Francisco fax: 415-476-6014
500 Parnassus Avenue, MU 420 West; San Francisco, CA 94143-0560
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
More information about the R-help
mailing list