PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code. This tag is compatible with the tag {diagrams}.

learn more… | top users | synonyms

3
votes
2answers
440 views

Why cannot XeLaTeX clip my PSTricks graph plot correctly?

The following screenshot produced by latex-dvips-ps2pdf and the clipping is well done. \documentclass{article} \usepackage{xcolor} \usepackage{pstricks,pst-func} \newpsstyle{gridstyle} { ...
25
votes
6answers
2k views

Are there examples written in PSTricks and they cannot be done using TikZ?

I am comparing the cores of PSTricks with TikZ and their capabilities. I am not considering whether or not a library has been implemented. Are there examples written in PSTricks and they cannot be ...
3
votes
2answers
4k views

Vertical alignment with subfig and pstricks

I'm working with pstricks to add illustrations to a paper, as I found that it allows me to save much time compared to editing files with dia/xfig/visio/etc. and including pngs. But I'm having a few ...
2
votes
1answer
1k views

Error with pstree

\documentclass{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} \begin{document} \pstree[levelsep=35pt]{\Tcircle{10}} { \Tcircle{11} \Tcircle{21} } \end{document} Why ...
3
votes
1answer
386 views

Empty page inserted with pspicture environment

From the question How can I design a book cover, I tried to compile the code from Dean Serenevy. \documentclass{article} \usepackage[]{graphicx} \usepackage{pstricks} \begin{document} ...
3
votes
1answer
2k views

Vertical alignment of subfigures

So I have a document which in a lot of places uses one pstree (part of the pstricks package) and a simple tabular side by side...I do this with subfigures. The problem is that because the pstree image ...
30
votes
1answer
2k views

Topological Quantum Field Theory diagrams with pstricks or tikz

This question led to a new package: tqft — Blog: The TQFT Package I'm going to write a brief note about topological quantum field theories, so I need to draw some copies of the "pair of ...
9
votes
2answers
821 views

PostScript operators and Reverse Polish Notation for plotting using PSTricks

I know that the PSTricks packages for plotting, pst-plot and pst-3dplot, use PostScript operators and Reverse Polish Notation. Is there a comprehensive list of all the operators available, with a ...
1
vote
1answer
182 views

Highlighting/Bolding Tcircle elements

So I am using PSTricks PSTree package to build a tree using TCircle ... now I want to bold out some branches by making the lines of the circle and the connecting lines thicker ... can I do this ...
3
votes
4answers
716 views

Is there a package in either PSTricks or Tikz to draw the following diagram?

I took the following figure from JSON official site. Is there a package to do it easily? Anyway, what is the name of this diagram?
1
vote
1answer
362 views

two psframe at same height using pstricks

I'm trying to create two psframes at same height using the following code \documentclass[a4paper]{article} \usepackage{pstricks} \begin{document} \psframe(-3,-1)(5.5,3) %frame1 \psframe(5.5,-1)(14,3) ...
13
votes
2answers
2k views

Which package can easily write a graph, as an arbitrary curve or area, just for indication

Which package can easily write a graph, as an arbitrary curve or area, just for indication? The circle and ellipse don't be considered for their particular shape. TIKZ's Bézier curve is too ...
5
votes
1answer
2k views

xelatex compilation of pstricks fails

I just needed to compile the following lines (minimal example) \documentclass{standalone} \listfiles \usepackage{pstricks} \begin{document} Ein \begin{pspicture}(-5,-3)(5,8) \psline(0,1)(2,3) ...
3
votes
1answer
375 views

Problems while installing pst-barcode

I tried to install pst-barcode, but after moving the files to /usr/share/texmf/dvips/pstricks/ and running texhash, I still can't use them, and have to enter the files manually when compiling the ...
2
votes
1answer
296 views

Problem with pst-dbicons examples

I am currently trying to get the example of the pstricks dbicons package to work but I always end up with errors. I have tried to compile the mondial example (see dbicons-site, sorry i can only put ...
2
votes
1answer
1k views

pstricks and beamer compilation with xelatex results in xkeyval error

I'm creating some slides and need to include a pstricks image. I'd like to compile the file via xelatex. My minimal example reads \documentclass[ngerman,xcolor=pst]{beamer} ...
7
votes
2answers
1k views

3D-plotting sine integral (PSTRICKS)

I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
15
votes
2answers
8k views

Using psfrag with pdflatex

Is there any way of using psfrag with pdflatex? It seems fairly similar to the problem of using pstricks with pdflatex. Do they both depend on the same things, or does psfrag include pstricks? Can I ...
3
votes
1answer
351 views

Problem with parbox using pstricks and ticket package

I'm trying to make cards for a game. I have a problem with \parbox. It's working ok only if the \parbox in the previous picture is empty. If it's not the contents of \parbox are shifted down. Here ...
4
votes
3answers
849 views

Draw tangents from point to ellipse using PSTricks

I'd like to create an ellipse (using psellipse, say). Call it E. And I'd like to specify a point P outside E. And then I'd like to construct, using PSTricks, the two rays starting at P and tangent ...
6
votes
2answers
514 views

What is the simplest way to draw the solution of a simultaneous inequalities using PSTricks?

Objective I want to draw a region in Cartesian coordinate system that satisfies a set of inequalities. How to do this in the simplest way? Minimal Code \documentclass{minimal} ...
0
votes
2answers
465 views

Why does \rput(4,3){\psscalebox{1.5}{A}} differ from \psscalebox{1.5}{\rput(4,3){A}}?

I just tried this code to check whether both cases result in the same output. Apparently they are not identical. Why? \documentclass[dvipsnames,cmyk]{minimal} ...
3
votes
1answer
522 views

How to define a new PSTricks object that is not a redefinition of a built-in PSTricks object?

Scenario I want to create a new PSTricks object, e.g., \myBatLogo[<key-val options>]{}{}...{} that is not a redefinition of a built-in PSTricks object. It means that any redefinition as ...
0
votes
1answer
383 views

How to avoid this error when redefining `\psgrid` to be `\relax`?

Scenario \pspicture with showgrid will be regarded as a PERMANENT grid. \psgrid in \pspicture WITHOUT showgrid will be regarded as a TEMPORARY grid. If I want to remove all temporary grids, I just ...
6
votes
2answers
1k views

LuaTeX and graphics

I'd like to know what LuaTeX offers in terms of graphics: I'm mostly interested in pstricks and tikz/pgfplots. Could it help tikz to run faster? Would it help tikz to handle 3D non-parallel figures? ...
55
votes
3answers
40k views

How to use PSTricks in pdfLaTeX?

I thought that PSTricks package was not possible to use in pdfLaTeX but the user Dima claims otherwise. How can I force pdfLaTeX to use PSTricks then?
2
votes
1answer
738 views

Why DOESN'T the color of overlapped region between opaque red and green objects become opaque yellow?

In theory, additive mixing Red color and Green color produces Yellow color. In my mental model, additive mixing opaque Red and opaque Green will produce opaque Yellow. But the following attempt, I ...
1
vote
1answer
299 views

How can I produce the reflection of a pstricks image in pstricks?

I defined some small pstricks makro: \begin{pspicture}(-5,-5)(5,5) \newcommand{\leftwall}{% \psline(-4,-4)(-4,4) \multips(-4,-3.5)(0,0.5){14}{\psline(0,0)(-1,1)} } \leftwall ...
3
votes
3answers
533 views

How to increase the dot resolution of implicit curves produced by `\psplotImp`?

Normal View Zoomed-In View "Minimal" Code Snippet \documentclass[11pt,rgb]{article} \usepackage{pst-func} \renewcommand\pshlabel[1]{{\color{gray}\tiny#1}} ...
2
votes
1answer
658 views

How to manage a document with a huge number of PSTricks figures?

I am writing a mathematics book that makes use of a huge number of PSTricks pictures. For the sake of re-usability and maintaining separation of concern, I always put the self-contained PSTricks code ...
2
votes
2answers
179 views
2
votes
1answer
241 views

Is there a simpler way to obtain the reference points enclosed by \rput frame?

Is there a simpler way to obtain the reference nodes shown as dots below? \documentclass[dvips,dvipsnames,rgb]{article} \usepackage{pstricks,pst-node,graphicx} ...
1
vote
1answer
199 views

How to find the intersection point between the invisible frame of `\rput` and the line segment of `\ncline`?

Points enclosed by black ovals are the intersection points between the frame boundary of \rput and the line segment of \ncline. How to find these points? The screenshot above is copied from ...
1
vote
1answer
154 views

Unlike PGF/Tikz uses the middle part of stroke as the reference, what is the reason for choosing `dimen=outer` as the default in PSTricks?

The question has been written in the title above. Why not dimen=middle ?
15
votes
4answers
1k views

Can we imitate the behavior of \pscurve in TikZ?

Here it is with the pictures. PSTricks has the very neat command \pscurve. The manual gives the example \pscurve[showpoints=true]{<->}(0,1.3)(0.7,1.8) (3.3,0.5)(4,1.6)(0.4,0.4) which yields ...
15
votes
4answers
1k views

Can PSTricks or others draw the 4 common tangent lines of 2 “disjoint” circles without having to do extra calculations?

There are two disjoint circles. Their centers and radii are given. Without doing extra calculations, can we draw the 4 tangent lines using PSTricks (preferred) or others? I asked many Illustrator, ...
3
votes
3answers
2k views

Is there a way to put two pspicture's side by side?

I am making slides using Beamer, and I am trying to have to \pspictures side by side. However, no matter what I do they end up one under the other, even if I use minipage. What is the right way to ...
5
votes
2answers
418 views

Does TikZ use the same internal mechanism as PSTricks to produce vector based pdf outputs?

Currently I am using PSTricks. From this forum, I see many people using TikZ. I have done a little exploration that TikZ can produce vector images in PDF format only in one step using pdftex. To ...
73
votes
11answers
8k views

What are the advantages of TikZ/PGF over PSTricks?

The first time I saw the PSTricks' 3D Galleries, I immediately felt in love with it. I have spent much time to learn and use it. In this forum, I see many people using TikZ. I have not used TikZ yet. ...
3
votes
2answers
871 views

XeLaTeX and EPS figure with consistent fonts

I'm using Miktex 2.9 and XeLaTeX plus some EPS figures. For consistent fonts along the document, I used to play with psfrag or directly use pstricks. I'm facing the situation where none of the above ...
2
votes
1answer
453 views

Alignment in pst-tree

In this example, using pst-tree package: \def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]} \pstree[treemode=R, levelsep=3cm] {\Toval{ root }} { \Toval{ Tom } \Toval{ Cat } \Toval{ Very ...
6
votes
3answers
787 views

pstree: How can I force a tree node to one side?

I'm drawing some binary search trees using pstricks and pstree, but I don't see anything in the docs to push a node to one side. In a binary search tree, every child must be either right or left, but ...
7
votes
4answers
2k views

PSTricks, draw line only knowing one point.

I would like to use PSTricks to draw a line. However, I only have one point, but I know at which angle I want to draw the line, and how long I want it. Is there some way to draw a line from a point ...
7
votes
6answers
1k views

Graphics: Clip or cutout a circle from a circle

I have a very specific problem that needs solving: I would like to produce a shape which can be most easily thought of as a circle or an ellipsis cut out of another bigger circle: Think e.g. the apple ...
1
vote
2answers
530 views

How to plot a family of curves using PSTricks?

I would like to have the command line arguments in PSTricks to sketch the curve $$x^{2}-y^{2}=n^{2}$$.
1
vote
1answer
523 views

How to define a global constant in postscript statement?

I want to define a constant globally within my pspicture environment as follows: \begin{pspicture}(4,2) \psgrid \SpecialCoor \def\length{2} \pnode(!\length 1){C} \uput[90](C){$C$} % other codes ...
4
votes
2answers
2k views

Center flow chart horizontally

I have the following flow chart but it appears uncentered. How can I center it? \documentclass{article} \usepackage{pstricks} \usepackage{pst-node} \usepackage{pst-blur} \pagestyle{empty} ...
12
votes
4answers
825 views

getting the arXiv to produce a pdf with embedded fonts

I've produced a .tex file using the pstricks package for figures and the Times font (via the mathptmx package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts ...
6
votes
1answer
964 views

Automagically externalising pdftricks and TikZ pictures

My thesis currently has a few pdftricks pictures and tikz pictures. It takes a while to compile over here Scott says he has some scripts to automate externalising TikZ pictures. I'm looking ideally ...