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

4
votes
1answer
226 views

Make lines disappear, pst-solides3D

I'm drawing the following cylinder which represents a water flowing and cooling down \documentclass[a4paper,10pt]{article} \usepackage{pstricks} \usepackage{auto-pst-pdf} \usepackage{pst-solides3d} ...
5
votes
1answer
65 views

How to reuse the right-hand path for the left-hand path such that it is displayed in reverse step by step?

My title may be difficult to understand. Hopefully by seeing the animation, you get the idea. I want the left-hand wing to be drawn step by step as is the right-hand wing but I want to use the ...
2
votes
1answer
36 views

What is the increment step of \fnpnodes?

Case 0 uses \fnpnodes and case 1 uses \curvepnodes to create nodes based on the given function(s). \def\method#1{% \ifcase#1 \fnpnodes[plotpoints=8]{1}{8}{\f[x]}{P} \psxTick(/dx ...
2
votes
1answer
92 views

Different outputs from two different syntax that should produce the same output

A node A will be constructed by using 2 syntax. \pnode(!2 3 0 p2c exch 3 add exch 2 add){A} \pnode[3,2](!2 3 0 p2c){A} Each constructs the node A by translating a point (!2 3 0 p2c) (which is on ...
6
votes
2answers
160 views

What transformation do I have to apply to a node before passing it to \uput as a direction angle?

Consider the following code \documentclass[pstricks,12pt]{standalone} \usepackage{pst-node} \usepackage{pgfmath}% don't forget this line! \psset{saveNodeCoors} \degrees[13] \begin{document} ...
2
votes
1answer
254 views

Book Cover with pstricks - turns colored image to Black and White image

I'm trying to make Book back cover with pstricks. I have one issue with it, it turns my colored image to Black and White image. Any help to overcome this problem is highly appreciated. Thanks Output ...
2
votes
1answer
62 views

What causes \psxTick to no longer work? [closed]

I am using the latest pst-plot. When compiling the following, I got some errors as follows. MWE \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset { ...
8
votes
2answers
270 views

How to draw tangens of arbitrary functions y=f(x) at given point (x,y) of f(x) using PStricks?

I'm relative new using PStricks and I don't know exactly how to draw a tangens of y=f(x) at a given point of the curve. I know, by simple mathematics that can be done by constructing the associate ...
56
votes
3answers
41k 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
67 views

How to iterate a list of colors with two additional counters more elegantly?

A part of my code (especially iterating a list of colors with 2 additional counters) below does not seem straightforward. \documentclass[pstricks,border=12pt,dvipsnames]{standalone} ...
3
votes
1answer
114 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 ...
11
votes
4answers
2k views

How to plot atan(x), sqrt(x) using PSTricks?

For example, this code works: \documentclass{minimal} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-5)(5,5) \psgrid[griddots=10,gridlabels=0pt, subgriddiv=0, ...
3
votes
1answer
50 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 ...
7
votes
2answers
282 views

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} ...
4
votes
1answer
95 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 ...
3
votes
2answers
152 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} ...
2
votes
2answers
71 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
193 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
66 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
62 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, ...
6
votes
3answers
149 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) ...
2
votes
1answer
122 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 ...
7
votes
1answer
89 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
43 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
133 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
73 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
59 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, ...
13
votes
1answer
3k views

Isometric paper and drawing on it — with PSTricks

I would like to create a drawing on isometric drawing paper like the following: N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...
2
votes
1answer
68 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} ...
2
votes
1answer
64 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 ...
3
votes
3answers
69 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
2answers
93 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} ...
52
votes
11answers
2k views

How can I define a mathematical function as a LaTeX macro?

I am attempting to create a usable function within LaTeX such that its inputs are transformed mathematically. However, I cannot find any documentation that can perform such mathematical function ...
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
91 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
89 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
40 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
88 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 ...
6
votes
2answers
114 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} ...
5
votes
1answer
55 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 ...
11
votes
1answer
2k views

How to produce Latex QR-Code (or in general 2d codes) as Vector graphic?

The pst-barcode package is great to produce bar-codes in all flavors. And it does 1d bar-codes like a charm. Also it is capable of generating 2d bar-codes with a command like this for a qrcode: ...
2
votes
1answer
80 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
104 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 ...
8
votes
3answers
2k views

Why don't \pscircle and \psellipse move the current point before drawing their shapes?

I have tested all PSTricks closed curves: \psframe \psccurve \pspolygon \pswedge \psellipticwedge \pscircle \psellipse and I noticed that only \pscircle and \psellipse do not move the current ...
3
votes
1answer
377 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
0answers
108 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 ...
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? ...
3
votes
1answer
83 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 ...
3
votes
1answer
136 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} ...