Questions tagged [postscript]

{postscript} concerns the PostScript page description language that forms the base for PS, EPS and PDF formats common to (La)TeX

Filter by
Sorted by
Tagged with
4
votes
1answer
516 views

Writing to files through postscript via pstricks

I want to use file operations in postscript: right now I need them to print large debugging data, which otherwise I have to copy and paste from the standard output. More importantly, in the future, I ...
3
votes
1answer
250 views

Conversion from pstricks coordinates to postscript coordinates

I am making a custom graphics library on top of pstricks and I need to convert from pstricks coordinates to postscript coordinates. I have a "working" example, cooked up via painful trial-and-error ...
1
vote
0answers
159 views

Setting LaTeX => PS => PDF in RStudio

I am using RStudio, with knitr, and want to use Lodewyckx's graphicalmodels.sty for graphs. It requires changing output profile to LaTeX to PS to PDF. Can this be done in RStudio still using knitr?
13
votes
4answers
7k views

Are postscript printers necessary for printing large pdfs compiled from LaTeX files?

I am shopping for a new printer for my office, and I have become aware that some printers have postscript drivers whereas others do not. For instance, this printer that I'm considering http://www....
3
votes
0answers
876 views

How to convert the latex file into postscript file

I have faced one problem. Actually, I'm working on IEEE paper, and they said that I have to convert my .tex files into postscript file How can I get postscript file? I'm working with WinEdt 8.0 ...
2
votes
1answer
199 views

How can I use unicode characters as identifiers in PostScript? Is it impossible?

I feel "uncomfortable" with the existing constants below (which are already defined in PSTricks) Euler = 2.718281828 Pi = 3.141592654 because I think using e and π is much more natural. My question ...
9
votes
1answer
15k views

How do I include Postscript graphics in a LaTeX file?

I am trying to include sample.ps file to my document with the following code \documentclass{article} \usepackage[margin=3cm,a4paper]{geometry} \usepackage{amsmath,amsthm} \usepackage{amsfonts} \...
2
votes
1answer
197 views

How to make Derive work with a parameter other than x and how to invoke Derive in postfix notation?

In my investigation Derive can only evaluate the derivative of function f(x) with respect to x. My attempt below does not produce the expected result because I try to find the derivative of x(t) and y(...
11
votes
1answer
316 views

Inline purified PostScript (MPS)

I just learned how to inline PDF code using the \pdfliteral command and that purified Encapsulated PostScript generated by METAPOST or purifyeps can be converted to PDF code by pdfLaTeX. However, I ...
1
vote
0answers
425 views

Colored Text in PostScript Files [closed]

I am using \textcolor command in the body of my TeX file. I need to generate Postscript file. When I go through the "Option Menu\Configure TeXStudio\Build\PDF chain", every thing is fine and I can ...
0
votes
0answers
1k views

How to batch convert PS to PDF without leaving windows open?

I am new to TexShop and new to this forum so please forgive me if the question is dumb. I need to convert about 13,800 postscript files to PDF. TexShop can do it but the only ways I know how means ...
3
votes
3answers
380 views

What is the safe PostScript expression to plot 1/floor(1/x)?

What is the safe PostScript expression to plot f(x)=1/floor(1/x)? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \pstVerb{/inv {dup 0 eq {pop e30} {1 exch div} ifelse} bind ...
2
votes
1answer
269 views

Weird issue involving pstricks, dvi->ps->pdf toolchain, and the letter combination rt

This is an extremely weird bug [Edit]it's not a bug, the problem was in my code. I spent 1 hour bringing this down to a small working example, can't figure out if its minimal. Set up: Ubuntu latest ...
6
votes
0answers
316 views

Postscript, EPS and PSTricks: what are the differences at this conditions? [closed]

The program that I use as an editor for vector based images is able to export using the following standards: Postscript 2 and 3 ( .ps ) PSTricks macro written in Latex ( .tex ) Eps ( .eps ) SVG ( ....
18
votes
6answers
969 views

How to automatically generate a stack diagram for a PostScript expression?

The following figure shows a PostScript expression and its stack diagrams step by step. Is there any package to generate it out of the box? If there is no such a package, how to generate it ...
8
votes
3answers
447 views

How to automatically draw the images of a point placed between 2 inclined mirrors?

Consider a point X placed between two inclined mirrors as follows. \documentclass[pstricks,border=20pt,12pt]{standalone} \usepackage{pst-eucl} \def\Angle{37}% extreme case in which 360/\Angle-1 is ...
6
votes
1answer
1k views

How to write a bounding box information in PostScript to an external file and read it in TeX at the second compilation?

Scenario I want to create a new environment, e.g., pscanvas that does not need any size specification but just a unique filename. It can contain any graphic objects that pspicture can contain. Thus ...
5
votes
1answer
210 views

How to use PostScript for to plot the sum of cos(n*x) for n=0 to n=100?

I want to plot the function f(x) which is the sum of cos(n*x) for n=0 to n=100. The domain is from 0 to 2π. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \begin{document} \...
12
votes
2answers
1k views

What is PostScript dictionary for? How to know whether or not I need it?

Consider the following code, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{linecolor=red} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind ...
2
votes
1answer
260 views

convert \special to PS/PDF file

I have a TeX file containing only one large \special{...} command, supposedly containing PostScript code. \special{!userdict begin % DSB: start-hook to etna-start-hook /etna-start-hook{gsave 80 780 ...
1
vote
0answers
135 views

How to include a postscript image and change the fonts inside it? [closed]

I need to include a postscript file in a XeLaTeX document. The text in the PS file has western digits, but I need Persian digits. How should I do this?
7
votes
3answers
375 views

How to combine and simplify the following PostScript operators?

Background Let \def\RR#1{(2^(#1/10))} \def\TT#1{(#1)} be the radius and angle functions, respectively. Christoph defined a PS operator AAA as follows. /AAA {AlgParser cvx exec exch AlgParser cvx ...
4
votes
3answers
314 views

What is the RPN operator defined in PSTricks to convert an infix expression to the postfix one?

The following code does not compile as I failed to convert the abscissa from infix to postfix. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} % defining an RPN operator that ...
4
votes
2answers
295 views

What is the correct RPN expression of a piecewise-defined function passed to \psplot?

My objective is to pass a piecewise-defined function in RPN to \psplot. The complete code is given as follows. The function is sin x for x<0 and cos x for other x. \documentclass[pstricks,border=...
3
votes
1answer
738 views

portable PS-viewer with forward and inverse-search

I am using a portable Latex (Miktex, Texniccenter & Sumatrapdf) from my flashdrive and all works good. But I found no possibility to search in *.ps files through forward or inverse-search. I use ...
3
votes
2answers
853 views

Postscript (.ps) image does not import into .tex file or pdf

I am trying to: Export a gnuplot .gpl file to a .ps Get my .tex file to use the .ps file as an image Convert that .tex file to a pdf I created the following gnuplot .gpl file which exports 'a03e02....
7
votes
1answer
119 views

Why are my post script commands not getting passed the LaTeX compiler?

The following MWE \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture} \rput{!240 6 div}(0,0){Hello World} \end{pspicture} \end{document} is not able to parse the ...
1
vote
0answers
351 views

how can i convert postscript files (ps) to pdf with hyperref [closed]

URGENT * ps (postscript) file to pdf document with hyperref and without hyperref can any one help me to find good tool to convert ps to pdf with hyperref. i wants my files (ps) to be converted as ...
2
votes
0answers
151 views

pdflatex generates unwanted transparencies [closed]

pdfLaTeX generates PDF-page with transparency operators. Minimal example: \documentclass{report} \usepackage{graphicx} \begin{document} \includegraphics{image.pdf} \end{document} image.pdf is PDF ...
7
votes
2answers
705 views

psplot: square root of negative number

Is there a possibility to have psplot automatically ignore an invalid range? Example: x 2 sub sqrt This cann't be plotted requesting \psplot{0}{10}, but only when using \psplot{2}{10}. Of course ...
6
votes
2answers
217 views

Why can the labelsep of \uput not work when represented in RPN?

In order to be more noticeable, I present my comment as a new question here. Background: \uput with the following syntax accept 5 arguments. I have tested the last four arguments that they can be ...
15
votes
4answers
7k views

pdf vs dvi vs postscript

I have a few questions regarding these three: What is the difference between those three outputs? Does it make any difference in how my code is processed or just how it is displayed? What's ...
12
votes
1answer
283 views

What makes my line get shifted to the left when I invoke \LoadConstants?

In the beginning I use the following code. So far so good. \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} \usepackage[nomessages]{fp} \def\LoadConstants{} \newcommand\const[3][...
4
votes
2answers
180 views

Is PostScript access from TeX (via PSTricks or TikZ) safe?

PSTricks and TikZ grant us access to PostScript. Is it safe? I meant: Is there a vulnerability hole open for someone to exploit? Edit: I just found that compiling PSTricks with xelatex might be ...
2
votes
1answer
113 views

What makes the radius too long in the following PS expression?

I want to translate \pstVerb{/Dist {N-A.x N-A.y N-B.x N-B.y Pyth2} def} from the following \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl} \addtopsstyle{gridstyle}{...
4
votes
1answer
94 views

Why does my RPN expression to find a distance of 2 nodes produce a wrong output?

I want to find a variant for the following, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl} \addtopsstyle{gridstyle}{gridlabels=0pt,griddots=0} \begin{document} \begin{...
13
votes
4answers
7k views

How to overlay graphs using includegraphics or pstricks?

I have a figure (eps file included using \includegraphics) inside a postscript environment where I use PSTricks to add labels and extra lines. I want to add another eps file smaller in the top right ...
3
votes
1answer
15k views

What package do I need in order to use \psfig{…}?

I'm using \documentclass[final]{siamltex} to write a paper. Within the document I'm trying to use a function \psfig. I have used the following syntax successfully in other papers that I have ...
0
votes
0answers
178 views

Kile won't recognize .ps images [duplicate]

I'm using Kile on Ubuntu 12.04, and I produce figures using gnuplot. Whenever I have a .ps figure in my .tex document: \begin{figure}[H!] \begin{center} \includegraphics[scale=0.3]{image.ps} \label{...
5
votes
1answer
329 views

Arranging a large number of letters on a page

I hope this is not too off topic here, since I cannot think of a place with more experts where I could ask. The background is, that I want to improve my ASCII-art algorithm which works fine (about 70k ...
11
votes
2answers
608 views

Drawing lines between arbitrary words on a page

I try to get rid of tree-dvips and look for a way to do the following: Circle an arbitrary word on the page and draw an arrow from some other position at the page towards this circled word. In tree-...
3
votes
2answers
1k views

Using tree-dvips with XeLaTeX

I try to switch to XeLaTeX, but the package tree-dvips causes problems. It seems to require PostScript and pdftricks which causes a lot of other problems (puts a \begin{center} environment around ...
1
vote
0answers
744 views

Problems with Preview-ing ps and ps2pdf output on OS X [closed]

after upgrading to OS X 10.8.x I've discovered that Preview stopped displaying some of my eps pictures. Also, ps2pdf output is now broken. Have anybody seen such behaviour and does anybody know how to ...
17
votes
2answers
1k views

Can the PostScript language be used to fully replace TeX? [closed]

THE POSTSCRIPT® LANGUAGE is a simple interpretive programming language with powerful graphics capabilities. ... Because of the importance of text in most applications, the PostScript ...
10
votes
3answers
26k views

Forcing latex to handle home-made .ps files in an intelligent way

I write papers in latex and write figures as PostScript programs. (The latter is not as crazy as it sounds, but that's a topic for elsewhere.) My question is about the most intelligent way to get ...
5
votes
0answers
555 views

Beamer/TikZ shadow printed via Adobe Reader (PostScript) cause errors [closed]

Consider the example below compiled using pdflatex. Basically it is a simple test of the Frankfurt theme and the Whale color theme (just attempting to make something smaller). We experience problems ...
9
votes
2answers
809 views

Multiple inclusion of the same image gives huge PS file

I am using beamer and having included the same image many times with pgf, declare once and insert. It looks like the PS file from dvips grow linear as I create slides (the image is on the background)....
3
votes
1answer
385 views

postscript code in psplot fails

the following code snippet doesn't work as expected \documentclass{article} \usepackage{pstricks,pst-plot} \pagestyle{empty} \thispagestyle{empty} \begin{document} \begin{pspicture}(10,10) ...
6
votes
1answer
1k views

Does anyone know what a cmap file has to look like

This may be an off-topic fringe case, but I need it for pdftex... I made an encoding QS7 for ASCII+Greek and now the only thing missing is a CMAP file to enable copying text from acroread. I made ...
1
vote
1answer
175 views

How to jump from a line in a .ps file to the corresponding line in the .tex file

I have TeXnicCenter and GSview. If I have a .tex file house.tex, and the resulting PostScript file house.ps, I'd like to be able to jump from a line in house.ps to the corresponding line in house.tex ...