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

0
votes
2answers
454 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
513 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
380 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
39k 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
729 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
295 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
516 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
648 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
235 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
197 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
153 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
415 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
864 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
446 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
781 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
510 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
821 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
955 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 ...