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
86
votes
12answers
21k views

Why do people still use Postscript?

I submitted a journal paper this morning, and they asked me to include a PDF file, which I expected, and a Postscript (PS) file. Generating the PS file proved more difficult, because some of my ...
19
votes
3answers
993 views

How to clip a TeX box using low-level PS commands?

I like to clip an arbitrary TeX box (\hbox) but without using larger graphic related packages like PGF/TikZ or PSTricks. This is intended to be used in packages which should not force the user to also ...
18
votes
6answers
982 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 ...
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 ...
15
votes
4answers
8k 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 ...
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 ...
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....
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 ...
12
votes
1answer
284 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][...
12
votes
0answers
1k views

How do I convert old PostScript files created with dvips to searchable PDFs? [closed]

I am puzzled as to how to replace Type 3 bitmap fonts contained in a series of old PostScript files with more modern, Type 1 scalable fonts. My goal is to convert the PS files into high quality, ...
11
votes
1answer
324 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 ...
11
votes
2answers
612 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-...
10
votes
1answer
2k views

Why is there no pdffrag package?

The psfrag package has been around for more than a decade* and is easy to use: \usepackage{graphicx}% http://ctan.org/pkg/graphicx \usepackage{psfrag}% http://ctan.org/pkg/psfrag ... \psfrag{<tag&...
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 ...
9
votes
2answers
816 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)....
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} \...
8
votes
1answer
250 views

Microtype package is not supported dvips output

I am using microtype package for good kerning text output. I am using below mentioned settings in my tex file. \usepackage{microtype} \DisableLigatures[f]{size=normalsize-}%disable Ligatures I ...
8
votes
3answers
451 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 ...
7
votes
3answers
379 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 ...
7
votes
2answers
706 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 ...
7
votes
1answer
120 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 ...
7
votes
5answers
2k views

How to I convert a pdf to a ps format so that I can insert it into a document?

I would like to insert an article into my thesis, and compile the thesis into postscript with normal LaTeX. (not pdfLaTeX). I have an article that is in pdf format that I'd also like to insert in ...
7
votes
3answers
1k views

How to generate postscript files from LaTeX pictures, with correct dimensions?

I have a document containing, among other things, some figures created using the picture environment. Now I need to create a postscript file for each figure, but if I simply copy them into otherwise ...
7
votes
1answer
21k views

Converting a PDF document to PostScript/LaTeX

I have a resume in PDF format. I have seen people linking to PostScript versions of their resume. I am not sure why they do that yet. How can I convert my PDF document to a LaTeX/PostScript document?
6
votes
2answers
213 views

Are Knuth's fonts searchable in pdf yet?

Donald Knuth at the Desktop Publishing Pioneers meeting laments that converting to pdf using his fonts yields pdf files without searchable text. Is this fixed yet? https://youtu.be/WVRMPihnZZM?t=4363
6
votes
1answer
116 views

TeXcolorrgb vs. setrgbcolor

I wonder if there is a tiny difference of the produced color within the resulting pdf. Within this given example - two colored lines differently setup. One line is setup with LaTeX, the other line ...
6
votes
2answers
206 views

How do PostScript interpreters know the meanings of PGF-specific operators, such as 'pgfe' and 'pgfstr'?

A TikZ node "lives" in a TeX box. With latex as the TeX engine these boxes are converted to PostScript directives. Use \showbox to see how a box like this is implemented by following these steps. ...
6
votes
2answers
220 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 ...
6
votes
2answers
221 views

tikzpicture won't render 'usable' PS code

I use tikz (and tikzpicture) a fair bit, but files that used to compile fine before the latest slew of updates to pgf, and pstricks, no longer seem to do so (at least, on my MikTeX installation). The ...
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 ...
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 ...
6
votes
0answers
317 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 ( ....
5
votes
1answer
2k views

Two lines of 12-pt Times New Roman Bold in an otherwise standard document

I need to able to write two short lines of bold, centered, 12-point Times New Roman in an otherwise standard document (I'm using the book class with the 11pt option). Can anyone help me? Thoughts: ...
5
votes
1answer
212 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} \...
5
votes
1answer
332 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 ...
5
votes
0answers
557 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 ...
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 ...
4
votes
2answers
252 views

From postscript through pgfmath

I don't understand the next syntax also I would like (if possible) a traduction of the next function with pgfmath /fct {dup 1 gt {pop 90}{dup 1 neg lt {pop 90 neg}{asin} ifelse} ifelse} def
4
votes
2answers
297 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=...
4
votes
3answers
317 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
1answer
356 views

Is it possible to use ALT 227 (π) as a PostScript constant?

Is it possible to use π as a PS constant in my attempt below? \documentclass[pstricks]{standalone} \usepackage{pst-plot} \begin{document} \pspicture(\psPiTwo,4) \pstVerb{/2π {2 Pi mul} def} \psplot{0}...
4
votes
1answer
97 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{...
4
votes
1answer
184 views

Why is my \special{ps: …} not getting the dimensions correct?

Trying things out without relying on pstricks to see if I can write my own postscript code embedded within a LaTeX document. \documentclass{article} \begin{document} Hello world! \special{ps: ...
4
votes
1answer
46 views

How can I intercept postscript instructions in a file loaded with includegraphics?

The psfrag package has the capability to intercept certain instructions in eps files, and replace them with new instructions. In this way, it is possible to replace fonts in an image with the fonts ...
4
votes
3answers
572 views

Drawing an oval around Text using postscript in latex and also create a macro for the same without tikz package

The solution is simple when I use packages like tikz. But I am not supposed to use packages. I need to use post script in latex. I am trying to draw this oval using two lines and two curves in a macro ...
4
votes
1answer
301 views

Are .vf-files really needed in LaTeX in order to use PostScript Type 1 fonts?

I have adapted several PS Type 1 fonts for use with TeXLive. What I found out, is that only three types of font-files are needed, which are a .map-file, .tfm-files and .pfb-files. However, at http://...
4
votes
1answer
524 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
3answers
383 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 ...
3
votes
2answers
861 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....
3
votes
1answer
228 views

Is there a function for rad2deg and deg2rad for use in pst-solides3d?

Basically I'm using pst-solides3d to produce 3d-perspective figures. When writing the 3d transform parameters for rotateOpoint3d, it is required to have a unit of degree. But when writing an argument ...