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

2
votes
1answer
64 views

Animation of PSTricks code

Consider the following code (taken from http://pstricks.blogspot.dk/2014/06/des-roues-pour-des-routes-au-profil.html): \documentclass{article} \usepackage[ a4paper, margin = 2cm ]{geometry} ...
0
votes
0answers
13 views

pstricks-add incompatible with beamer? [duplicate]

Beamer seems to clash with pstricks-add: \documentclass{beamer} \usepackage{pstricks} \usepackage{pstricks-add} \begin{document} Lorem Ipsum \end{document} Gives the following error: ! No room ...
5
votes
1answer
48 views

Color in pstricks not showing

I'm compiling this MWE with xelatex, I don't get any compilation errors, but the texts are all big black regular ones without any style applied. I'm using TexLive 2013 by the way. How should the file ...
2
votes
1answer
52 views

conditional placement of ocg content

I am using ocg-p package to add layers of information in a pdf document, to be accessed by the reader interactively. To place the ocg layer in the desired location on the document I used rput command ...
6
votes
2answers
94 views

PSTricks: Draw arrows along path

Inspired by this question, I've tried to find a command for drawing arrows along a path with PSTricks. \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{unit = 2} ...
3
votes
1answer
96 views

Self Intersecting Diagrams, PSTricks

Okay, so I have a self-intersecting curve drawn using \pscurve in PSTricks, and I would like the interestions to look something like -|- as opposed to +. I know it can be done using double lines in ...
2
votes
0answers
59 views

Writing mathematical notation in LaTeXDraw

I have drawn a graph in LaTeXDraw. I need to name the vertices of the graph as v_n (where n is subscript of v). In latex document it was easy, just $v_n$ was doing the work. But how can I do it in a ...
2
votes
1answer
69 views

Decimal separator in \psaxes of pstricks-add

When I use the comma option of the command \psaxes, only the y-coordinates are displayed with a comma while the x-coordinates are still displayed with a dot. My figure is included in a somewhat big ...
3
votes
1answer
112 views

Upgraded from Texlive 2013 to 2014 and pstbarcode no longer works

\documentclass[border=10pt]{standalone} \usepackage{pst-barcode} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(0.7in,0.7in) \psbarcode{http://www.kernel.org}{}{qrcode} ...
1
vote
0answers
54 views

Drawing knots with 8 crossings and labels [closed]

So for a project, I have to draw the knot diagrams of all alternating knots with up to 8 crossings and label the regions bounded by the knots. For knots with up to 7 crossings, I used PSTricks, ...
3
votes
1answer
64 views

Shading faces of solid (described using using \parametricplotThreeD)

Does anyone know how to shade only one of the faces of a solid whose faces are described using parametricplot? For example, shade the faces of the solid below? In general, how to color each of the ...
1
vote
1answer
67 views

How to draw a Dyck path on PSTricks?

I would like to know how to easily draw a Dyck path similar to the one below using PSTricks instead of Tikz. Any ideas? Thank you! \documentclass[border=2mm]{standalone} \usepackage{tikz} ...
2
votes
0answers
25 views

pstricks multido variable not accepted [duplicate]

the following Example does not work: \documentclass{article} \usepackage{pst-all} \begin{document} \def\FF{x 3 exp 4 mul 3 div x sub 1 add} \def\AbFF{x 2 exp 4 mul 1 sub} ...
3
votes
1answer
31 views

psgraph scale description doesn't work

I've got a small problem. I don't can set the right scale description. Please, have a look at this code: \def\data1{ % x (degree) % y1 % y2 0 8188 7538 15 9143 8464 30 9605 9075 45 9564 9277 60 ...
1
vote
1answer
44 views

Undo option in LatexDraw

The GUI LatexDraw for generating PStricks codes does not have "undo" option. What other better GUIs are available for generating PStricks codes? http://latexdraw.sourceforge.net/
3
votes
2answers
88 views

Circuits with pst-circ package Latex

I would like make two resistance in series in this circuit. And just one capacitor in parallel with two resistance (Rct and Zw). \begin{pspicture}(12,12) \psgrid[subgriddiv=1,griddots=10] % Node ...
6
votes
2answers
191 views

How to conceive a macro for drawing a pie-chart circle of fifths?

I would like to re-write parts of the book mentioned below on historic tuning temperaments, and therefore I need to draw a circle of fifths, represented in the book by hand-drawn schemata like this: ...
14
votes
2answers
675 views

draw colored world/US map in LaTeX

I'm trying to draw maps similar to these in a LaTeX pdf document: I want to auto-generate them from a list of pairs (country,color) to determine the colors. I have found the package pst-map2dII ...
16
votes
2answers
432 views

Blend/transparency styles in pstricks and TikZ

As depicted below, Illustrator offers various transparency styles: It is my understanding that, at this point, pstricks and TikZ are both limited to the normal style listed above. Could the other ...
3
votes
2answers
41 views

Invert Axis directions

I'm trying to invert the direction of the y-axis. I want to have 2 y-axis : the first going up (as usual) and the second, starting from 0 and going down (to 5)... Here's what I do : ...
6
votes
1answer
64 views

Is possible give the handwrite aspect to other thing?, as ncline, rectangles,… in PStricks?

Viewing doc, I realized that there is an option (similar to linestyle=¿handwrited? ;-) ) to simulate handwriting. Is possible give this aspect to other elements as triangles, poligons, curves, ...
2
votes
1answer
35 views

What´s the best/practical way to do trees with pstricks pictures in nodes?, with PSTricks, Pst-node

I have test that psmatrix is a good way to do diagrams, but ... to do diagrams where the nodes is not displayed as a "perfect matrix/table". What is the recommended way to do any similar to, with ps ...
5
votes
2answers
93 views

How to put a “coil” inside an ncline (between nodes)?, in PStricks

How to put a "coil" in an \ncline between nodes? similar to: I have viewed \pscoil and options as coilarm=0.5,.. but.... in \ncline or similars?, how? I have this code, for example ...
6
votes
2answers
51 views

How to change the orientation of a brace?, with psbrace, in PsTricks

I can´t believe it. I was looking and reading... the multiple examples in page 23 in pstricks-add-doc.pdf and I can´t reach what I want. Even copying and pasting any examples of the PDF I know how ...
1
vote
1answer
37 views

How to reescale a pstricks image with subcaption?

I have an image and a code, that works well. When I try to scale the PSTRickis image, I have problems-errors How can I resize an image using subcption package?? I put at the end of the code ...
4
votes
1answer
53 views

How to group many nodes? in pstricks

I have this code, and would like to know how to group many nodes. How to do it? I prefer grouping nodes calling nodes by name but... if it´s not possible, I was thinking about coding any similar ...
2
votes
1answer
87 views

PSTricks Animation and dvips

I want to create animation in Beamer using the animate package. I easily created a basic example following the "all-in-one approach" from this older post but I can not use pdflatex to compile, which ...
7
votes
2answers
168 views

Problem Scaling Logarithmic function PSTricks

I'm trying to plot a function, but with the x-axis logarithmic. I use PSTricks and the package pstricks-addwith the algebraic option, to write my function litterally. My function to be plotted is : ...
6
votes
5answers
513 views

How to plot a linear function with axes, arrows, and labels?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, pstricks and multido usepackages. The lines from a to x_2, d to x_1 and p_1 to c, should be ...
3
votes
1answer
102 views

Animating Beamer slides with pstricks code in them

I have made a beamer presentation and have a series of the slides with pstricks images on them. Each of these images either builds upon the previous, or moves an element of the previous. Is there a ...
1
vote
1answer
91 views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
20
votes
6answers
746 views

Generating Random arrows in tikz

I would like to draw this figure : Hence, I resort to TikZ. But, it seems to be very difficult drawing arrows precisely in TikZ with the precise locations (x,y). I have achieved this: Here is the ...
7
votes
2answers
248 views

Plot and imagesc (from Matlab) with PSTricks

I'd like to plot with PSTricks some data from Matlab. I usually plot these data using the imagesc and the colorbar in Matlab, but I'd rather do it in LaTeX... Here is the picture I want to plot in ...
4
votes
1answer
98 views

pst-solides3d: fill region under plot

How can I fill with pst-solides3d the region under the plot (x^2+y^2)/4 like in the following picture? \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} ...
5
votes
3answers
75 views

Compilation fail standalone & pst-solides3d

I've got a PStricks schema made with both pst-solides3d and pst-3dplot, put (thanks to the standalone package) apart in a different file. The schema, when compiled itself, doesn't make any problems, ...
14
votes
2answers
591 views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
4
votes
3answers
611 views

Curves with Latex

How I can draw curves as : Any help would be appreciated.
3
votes
2answers
57 views

Problem with PSTricks graph [duplicate]

I get the error: ! Undefined control sequence.<recently read> \c@lor@to@ps } when trying the following graph \documentclass[11pt]{article} \usepackage[usenames,dvipsnames]{pstricks} ...
3
votes
1answer
56 views

How can I delete the or3 and & notations from this and gate?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{pspicture}(-1,-1)(5,4) \logic[logicWidth=2,unit=0.5,logicHeight=4,logicNInput=3](-2,-2){or3} ...
5
votes
0answers
57 views

Problem layout pst-solides3d

I'm trying to have 2 cylinder pierce a parallelepiped, but I can't have the 2 cylinders properly drawed... Here is what I got : The two cylinders are within the box, and they pierce the yellow ...
4
votes
1answer
42 views

Vertical Text \pstPlanePut

I'm trying do write some vertical text, with the basis line parallel to the z-axis, in the xz-plane... Here is what I got, and I want the vertical text to be parallel to the z-axis. Is it possible ...
5
votes
1answer
75 views

How to make PDF outputs of PSTricks rotatable on the PDF viewer as we can do on Asymptote's ones?

I just played with Asymptote outputs viewed on Adobe Reader and noticed the outputs can be zoomed, rotated, filtered which objects to be viewed, etc, etc. The following screenshot shows the features. ...
1
vote
1answer
105 views

Compilation error after texlive update

I used to make animated pictures using pstricks and the beamer overlay syntax (eg. using \only<2>{<some pstricks code>}) with the standalone class. Here a MWE which did the work: ...
4
votes
1answer
36 views

How can I resize the and & or gates or FF in pst-circ package?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{latin} \begin{pspicture}(-1,-1)(5,4) ...
3
votes
0answers
32 views

psmatrix error - Undefined control sequence [duplicate]

When executing the following code, I get the error: Undefined control sequence. <recently read> \c@lor@to@ps l.7 [name=A] 1 & [name=B] 8 \\[0pt] ? Here is the code: ...
3
votes
1answer
56 views

What causes a custom path with linearc to have asymmetrical ripple?

The objective is to make the bottom of a bullet has rounded corners. What I don't understand are: Why does the ripple only occur on the bottom part but not on the top part even though the bottom one ...
6
votes
1answer
96 views

Autosegmental Representation with pst-asr

I am using Texmaker and MiKTeX to try and produce an autosegmental representation such as the one in this image: The following code is given in John Frampton's pst-asr user's guide: ...
17
votes
4answers
874 views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...
1
vote
1answer
112 views

How can I draw one small circle and one big circle in the same system of coordinates?

I want to draw two circles passing through the point M(-1, -4) and tangent to the lines 4x+ 3y = 0 and 3 x + 4 y + 1 = 0. The equation of circles are (x + 1)^2 + (y +2)^2 = 4 and (x +241)^2 + (y + ...
31
votes
6answers
2k views

How to make the length of a car moving on a roller coaster track remain unchanged?

For any arbitrary parametric smooth curve, how can I make the length of a car remain unchanged? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \pstVerb { ...