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

7
votes
1answer
44 views

Error in the PSTricks package pst-poly?

Consider the following example: \documentclass{article} \usepackage{pst-poly} \begin{document} \begin{figure} \def\sidelaengde{5 } \def\myCoor{} \centering \psset{unit = 0.4} ...
1
vote
1answer
28 views

Why no line drawn when use dot with psmatrix?

I am trying to draw a signal flow graph with \psmatrix where each node is just a dot. However \ncline does not seem to work when mnode is set to dot $ \psmatrix[colsep=1cm,rowsep=1cm,mnode=dot] ...
3
votes
1answer
28 views

What option suppresses axes, ticks and labels in gridIIID?

I am interested in using the \gridIIID command but I don't want the box to have ticks, labels or axes I found the following line in the changelog: 4.20 2010-07-23 - activate keyword planmarks for ...
4
votes
1answer
41 views

How to get fractional labels with psaxes?

The objective is to get fractional labels (not in decimal) for both vertical and horizontal axes. In my experience, non-trigonometric labels are written in decimals and trigonometric labels can be ...
4
votes
2answers
91 views

How attach \circ to each horizontal labels representing angles?

The objective is to attach \circ to each horizontal labels representing angles in degrees. How to do so? I cannot find the solution in the pst-plot manual. ...
5
votes
1answer
44 views

How to use \psaxes with trigonometric labels of even multiples of π/3?

Constraints I only want to use \psaxes rather than multiple calls of \psxTick, \rput, \uput. I want to have trigonometric labels with even multiple of π/3. My attempts As usual, we can have ...
5
votes
1answer
32 views

Does the package pst-solides3d affect images made with pst-3dplot?

I am working in a simple project creating some 3D representations of math surfaces and shapes for a calculus course. Most of all the pictures I have created rely heavily on pst-3dplot. Once I found ...
2
votes
1answer
51 views

Is it possible to use \only to conditionally enable key-value pairs of a macro?

The following is a trivial example. What I want to learn is how to use \only<> (if possible) to conditionally enable key-value pairs of a macro. \documentclass{beamer} \usepackage{pstricks} ...
-1
votes
0answers
83 views

Drawing the projection of a vector on the other [duplicate]

I want to draw this simple figure and I need some help.
4
votes
1answer
56 views

PS-Tricks + Beamer Problem

I have a strange problem with PS-Tricks. I can only create one picture when using beamer. Take this as an example: \documentclass{beamer} \usepackage[pdf]{pstricks} \begin{document} \begin{frame} ...
4
votes
1answer
70 views

3d plot of a surface with nonrectangular domain

I need to make a 3D plot of a step function For example, suppose that I want to plot the function f:[0,1]x[0,1]->[0,1] given by: f(x,y) = 1 if x < y^2 and f(x,y) = 0 otherwise I would like to ...
3
votes
1answer
36 views

Axes in the foreground with PSTricks

With the code shown below, the grid is on the foreground (one can see red lines on the labels...): \documentclass[11pt]{article} \usepackage[letterpaper, textwidth=7in, textheight=9.5in]{geometry} ...
2
votes
1answer
43 views

Why do we need to buffer the pst-eucl nodes before passing them to \rput?

Behavior of nodes defined pst-eucl seems to be different from those defined in pst-plot. In the section titled Direct node, I attempted to create a square with pq as it base inclined at a slope of ...
2
votes
1answer
40 views

Something like \hfill with pstricks and XeTeX

I have a line of text in a pspicture environment and I need to distribute the words in a way like \hfill could do. Here is an image of what I want: I currently have this minimal example ...
2
votes
1answer
39 views

Radial gradient using pstricks

I created the following image with pstricks: The fading fillings are generated by: \psline[linewidth=10cm,linecolor=Black,linestyle=fade,fadepoints=500,fadeto=transparency](5,6)(5,1) ...
4
votes
1answer
79 views

pstricks rput does not place stuff precisely

Description I want to use pstricks to place some stuff in a large (almost A0) pspicture. Any stuff I place in the picture with the \rput command, is not placed precisely. Why? The farther away from ...
5
votes
1answer
50 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
29 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
54 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 { ...
2
votes
1answer
95 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
56 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
39 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
46 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
51 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
74 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
42 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
45 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
254 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} ...
3
votes
2answers
137 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
69 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
66 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
29 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
118 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
52 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
52 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
84 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
61 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
2answers
74 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
36 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
101 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
55 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
51 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
82 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
82 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
26 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
62 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
47 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
51 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 ...