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
1answer
24 views

How do I cross-reference from inside a PSTricks figure?

I have a pstricks figure that gives an overview of my implementation. From inside the figure I want to cross-reference to the sections that describe the various components in detail. However, my ...
4
votes
1answer
34 views

PSTricks package giving xkeyval error

I have been trying to solve this error by myself but did not find a way. So if someone out there can help me, any help is greatly appreciated! I use Texmaker to run MikTex 2.9. I want to use the ...
2
votes
2answers
43 views

How to center the graphic of LTXexample?

Scenario I want to write a tutorial on PSTricks, but because latex-dvips-ps2pdf (see the code shown in First Attempt section) makes my effort to prevent reader from copying the listing numbers no ...
1
vote
2answers
53 views

PSTricks not working in TeXlive 2014

I have TeXlive 2014 recently installed on a new machine. Everything seems to be working smoothly EXCEPT for PSTricks. I am testing with minimal code such as \documentclass{article} ...
1
vote
2answers
29 views

pslegend with dot instead of rule

I have the following MWE \documentclass[pstricks,border=0pt]{standalone} \usepackage{pst-node, pst-coil, pst-plot} \begin{document} \begin{psgraph}[axesstyle=frame,Ox=0, Dx=0.1, ...
2
votes
1answer
41 views

PSTricks figure too big

I have the following MWE \documentclass{article} \usepackage{pst-plot} \usepackage{pstricks} \begin{document} \begin{pspicture}(0,0)(5,5) \psgrid[gridcolor=red,subgridcolor=green, ...
7
votes
2answers
226 views
+500

Why is beamer+pstricks+preview no longer compatible now?

The following code is taken from Gonzalo Medina' answer here (click). At the time he posted the answer the code was compilable. \documentclass{beamer} \usepackage{pstricks-add} ...
3
votes
2answers
125 views

Drawing of Euro Symbol Using PSTricks

I have drawn the following figure, showing a Euro symbol: % http://upload.wikimedia.org/wikipedia/commons/5/57/Euro_Construction.svg \documentclass{article} \usepackage{pstricks} \usepackage{expl3} ...
1
vote
3answers
59 views

Dashed circular arcs not created in texmaker

I am trying to run the following sample codes, containing PStricks codes generated by Geogebra, in Texmaker in the sequence Latex+dvips+ps2pdfviewpdf (in Ubuntu). \documentclass[10pt,a4paper]{beamer} ...
7
votes
1answer
58 views

Intersecting boxes in pst-solides3d

I need to make a picture of some 3D boxes (i.e., parallelepipeds) that intersect themselves in some complicated ways, so I tried pst-solides3d. Here's the minimal working example: A long and thin ...
3
votes
1answer
27 views

Graphics parameter 'algebraic'undefined in Texmaker

I am trying to run the following beamer class file containging some PStricks codes (generated by Geogebra) in the sequence Latex+Dvips+ps2pdf+viewpdf in Texmaker (for Ubuntu 12.04): ...
3
votes
0answers
101 views

Create violine plots

I use pgfplots for most of my plots. Now I need to add a violin plot. Is this possible with pgfplots or any other package?
3
votes
1answer
49 views

How do I move the x labels to the left but move origin label to the right?

See below for the code that generates the image below. How do I move the x labels out of the way to the left, but move the zero to the right? \documentclass[border=12pt]{standalone} ...
2
votes
1answer
49 views

What causes the polar plot of an ellipse to look different from its parametric plot? [closed]

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset { urx=15pt, ury=15pt, llx=-5pt, lly=-5pt, xAxisLabel=$x$, yAxisLabel=$y$, algebraic, ...
2
votes
1answer
65 views

Unwanted empty page in the middle of a chapter

I am having an empty page in the middle of a chapter of my document. The only information that appears is the page number. The pages before and after are filled with text and figures. I have checked ...
2
votes
1answer
60 views

Table Occupies all text area

How can I do this in an easy way using pstricks or tikz , i cant put the text in the right place my MWE \documentclass[a4paper]{article} \usepackage[margin=1.5cm]{geometry} ...
1
vote
2answers
41 views

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid?

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid? \documentclass[pstricks,border=0bp,12pt,dvipsnames]{standalone} \usepackage{pst-plot} \usepackage[nomessages]{fp} ...
2
votes
1answer
32 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 ...
6
votes
3answers
91 views

How can I use \psgraph with polar axes?

With pspicture \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset{axesstyle=polar,plotpoints=100} \begin{document} \begin{pspicture}(-4,-4)(4,4) ...
3
votes
3answers
51 views

pst-plots not displaying negative exponents

I am trying to graph a piecewise function, with one component using negative exponents. However, pst-plots doesn't seem to understand the negative exponent. I've tried expressing it a few different ...
1
vote
0answers
28 views

Cannot load the “pstricks” option in mdframed package [duplicate]

I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes: ...
1
vote
2answers
43 views

PS-Tricks error Undefined control sequence. [\psline{->}]

I get the error Undefined control sequence. [\psline{->}] when i try to run the code \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-all} \usepackage{mathtools} ...
1
vote
2answers
79 views

What causes my tangent and normal lines not to be visually perpendicular?

\documentclass[pstricks,border=12pt,dvipsnames]{standalone} \usepackage{pstricks-add} \usepackage[nomessages]{fp} \FPset\LabelBase{4} \FPeval\DeltaX{pi/LabelBase} \FPset\DeltaY{1} \FPeval\Left{0 ...
6
votes
1answer
80 views

What causes the red frame not to align with the grid correctly?

What causes the red frame not to align with the grid correctly? \documentclass[tikz,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{diagram.tex} ...
1
vote
0answers
22 views

Inserting matrix in Latexdraw

I am using LatexDraw for drawing a graph and its corresponding matrix and thereby generating the Pstricks codes.. But I am having problem in inserting the matrix. I have attached here the screen shot. ...
2
votes
1answer
55 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
42 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
0answers
35 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
85 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
91 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
46 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
65 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
105 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
49 views

Drawing knots with 8 crossings and labels [on hold]

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
58 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
61 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
27 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
43 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
73 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
174 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
573 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
397 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
62 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
34 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
87 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
47 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
34 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 ...