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
15 views

pspictures are gone when I change the class

The following code works fine and displays a square between two strings: \documentclass{article} \usepackage[pdf]{pstricks} \begin{document} aaaa \begin{pspicture}(25,25) ...
4
votes
0answers
39 views

How to make right angle mark in geometry 3D like this picture?

I want to mark right angle. I tried in Geogebra \documentclass{standalone} \usepackage{pstricks-add} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt ...
4
votes
0answers
101 views

Reasons to prefer tikz or pstricks over any GUI driven graphics tool

If I need a figure for a document I usually use TikZ or PSTricks. Sometimes I would like to promote it to other people who usually use only GUI programs for such kind of stuff. But then I restrain ...
6
votes
1answer
24 views

\pstSetAbsoluteOrigin Adds Space Before Section

As soon as I execute \pstSetAbsoluteOrigin a space is been added before the section. Is this normal, am I doing something wrong? I would expect the position of the first section no to be influenced ...
3
votes
1answer
38 views

misaligned psplot psline in pstricks

I am trying to draw a figure using pstricks and pst-plot, compiling to a PDF with XeLaTeX. I find that lines drawn with the \psplot and \psline commands are horizontally displaced from where I want ...
3
votes
1answer
47 views

animate package plotting problem

I want to use the example in the example of an­i­mate package. But I cannot run it successfully. I found no pst-ode package in the package manager. But I installed it. \documentclass{article} ...
5
votes
2answers
51 views

Is it possible to put a psmatrix inside a table?

I wanted to create a table in which one column is a diagram that uses psmatrix, and the other column is text. I got the following error: "Forbidden control sequence found while scanning use of ...
2
votes
3answers
41 views

How do I send option to pstricks when it's loaded inside a pst-all \RequirePackage?

I am trying to use pdflatex --shell-escape to compile a .tex file. But I need to use pstricks with the [pdf] option. inside the .sty file it includes inside pst-all ...
3
votes
1answer
81 views

Is there a function for rad2deg and deg2rad for use in pst-solides3d?

Basically I'm using pst-solides3d to produce 3d-perspective figures. When writing the 3d transform parameters for rotateOpoint3d, it is required to have a unit of degree. But when writing an argument ...
1
vote
1answer
33 views

Align horizontal tree node labels in pstree

I'm trying to create a listing, with pstricks, that has its entrys on top of the line. Unlike normal tree nodes/leaves, the entry is not at the end. The clue is now to left (or right) align all ...
2
votes
1answer
77 views

Projection of circle across two surfaces

I would like to build on a previous question in which is explained how to project a circle onto a defined plane of an octahedron using pstricks. I would like to know if it is possible to project a ...
1
vote
1answer
47 views

Inkscape LaTeX output throws “undefined control sequence” error

I'm trying to include a graphic I make in inkscape into my LaTeX file. Here is the code that inkscape generated: %LaTeX with PSTricks extensions %%Creator: inkscape 0.48.4 %%Please note this file ...
3
votes
1answer
30 views

pst-plot and psgraph enviroment to small

I try to plot a large spectrum with pst-plot, but i cannot create a psgraph enviroment large enough, because the x-axis line is not drawn correctly. Do you know how to make it work? % !TeX program ...
1
vote
1answer
28 views

Split nodes' label between multiple lines in pstricks tree

With pst-node and pst-tree, is it possible to display node's label on multiple lines? With TikZ, it is very easy, you simply put a line break at the appropriate place in the node's label { first line ...
3
votes
1answer
39 views

pst-optexp: draw 4f correlator

I recently discovered pst-optexp and am trying to draw my optical setup for an experiment on it before my deadline. I was looking through the docs and it is an amazing package but there is so much in ...
5
votes
2answers
108 views

Strange behaviour with pstricks/TikZ/center

I'm working on a long document (written by someone else). The author has used a lot of pstricks pictures, and I'd like to compile the document using pdflatex (without doing the detour over dvi). The ...
1
vote
0answers
12 views

How to install pstricks [duplicate]

I want to install PSTricks (I use Texmaker). I have downloaded the files from the following page: http://tug.org/PSTricks/main.cgi but nowhere do they say where the files should be copied or how the ...
0
votes
0answers
36 views

Undefined Control Sequence in \multido or \pspicture?

I wrote the following very simple program as I'm trying to make an animation using pstricks and multido, but I get "undefined control sequence" on the end pspicture line. Can anyone just tell me ...
35
votes
4answers
2k views

How can we make a pumpkin, jack-o-lantern, or other halloween spirit, ghoul, or skeleton?

So we have questions about Christmas trees and Hearts for Valentines But we have no questions that specialize in Halloween or Dia de los Muertos art. So here it goes.... Using TikZ or pstricks or ...
2
votes
2answers
42 views

How to specify the width of a pspicture?

In the following document: \documentclass{article} \usepackage[pdf]{pstricks} \begin{document} \psset{unit=1mm} \begin{pspicture}(60,25) \psframe(1,1)(20,20) \end{pspicture} ...
4
votes
1answer
29 views

Enter \n newline character in embedded postscript via pstricks

I want to be able to print neat debugging messages through pstricks/postscript. In the code below, how do I make the gs interpreter display a new line? \documentclass{article} \usepackage{pstricks} ...
2
votes
1answer
68 views

mark interval over the line

I need make a picture like this, make a function interval over the line: I have no idea how to do this. Anyone know?
4
votes
2answers
41 views

where can I find the detailed description of how to use \pstVerb and tx@addDict

I am drawing some setup using Pstricks and pst-optexp. I want to know what the following example means. Also I can't find a detailed description of how to use \pstVerb and tx@addDict. ...
0
votes
0answers
76 views

How to make this specific block in XeLaTeX

I want to do these "cards" using XeLaTeX. Concerning the above card, I would like to remove the heart, arrow, and action buttons. In other words, I would like to remove the action area 2. Also I ...
2
votes
0answers
32 views

How to customize a lens of pst-optic with the following requirement?

The following code \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-optic} \begin{document} \lens [ nameF=F2, nameFi=F1, spotO=270, focus=4, OA=-3, AB=1, ...
6
votes
1answer
431 views

Drawing coaxial cables: TikZ or pstricks

I want to draw this. I don't find any way to do I can draw some things... but it's so bad! and it's not realistic! please HELP... \begin{document} \newcommand\innenleiter[3]{% ...
1
vote
1answer
29 views

Wrong scaling of data in PSTricks plot

Consider the following: \documentclass{article} \usepackage{pst-coil,pstricks-add} \usepackage{siunitx} \DeclareSIUnit[mode = text]\kroner{kr.} \begin{document} \begin{figure} ...
2
votes
1answer
86 views

How to animate a sine curve in PStricks/Tikz

I would like to know how to set up an animations which consists of two "sub-animations" side by side or above/below, wherein one animation just shows a real number line from say zero to 2 pi one and ...
3
votes
1answer
123 views

How to draw lettering on tile or ceramic in LaTeX

I know that LaTeX is able to do incredible things. I want to know how to achieve something like this: I need to draw an oval placard such as: But I have not idea how to do it. I'm not asking for ...
3
votes
1answer
61 views

Boxplot with PSTricks

Consider the following: \documentclass{article} \usepackage{pst-plot} \begin{document} \begin{figure} \savedata{\data}[172 173 184 160 183 188 176 179 176 180 184 173 182 174 177] \psset{xunit = ...
2
votes
1answer
47 views

Treating psTree object as a figure

I created the following probability tree diagram using psTree then running XeLaTeX in texmaker. \documentclass[12pt]{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} ...
4
votes
1answer
78 views

Writing to files through postscript via pstricks

I want to use file operations in postscript: right now I need them to print large debugging data, which otherwise I have to copy and paste from the standard output. More importantly, in the future, I ...
3
votes
1answer
35 views

Unexpected result when converting image from DVI to EPS

This question follows on from a prior question but is separate and can stand alone. The prior question is at pst-plot graph offset on page when graph has non-zero origin. This question is related to ...
2
votes
1answer
45 views

Xelatex has problem in generating pstricks tex file with colors [duplicate]

I have a piece of simple tex code which compiles on all of my computers. But it doesn't show properly on my laptop \documentclass{standalone} \usepackage{pstricks-add} \psset{gridcolor=green, ...
2
votes
1answer
42 views

Pstricks flowchart does not diplays properly

I am trying to build a flow chart using pstricks, the code is below. But when I compile it the resulting PDF does not display the flowchart, in place, it looks like if all the information is ...
3
votes
2answers
51 views

pst-plot graph offset on page when graph has non-zero origin

This question relates to the use of pst-plot with datasets that have x axis values starting from a positive number for example x = 0.5 -> 0.8. In the case below, on two separate computers both ...
1
vote
2answers
74 views

XeLaTeX and pst-node

I have problems with XeLaTeX and pst-node: If I want to draw a line between two nodes, but there is nothing drawn in the pspicture. If I only put the nodes with some stuff withoud a line in, the nodes ...
3
votes
1answer
79 views

Drawing an off-axis parabolic mirror in pst-optexp and pst-optic

Having looked through the pst-optexp manual, it doesn't seem that there is a built-in off-axis parabolic mirror. I'm trying to make a diagram of a lab setup that goes like this: Collimated beam ...
4
votes
1answer
122 views

PSTricks 3D drawing — tweaking of parameters

Consider the following code: \documentclass{article} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint = 15 -30 11, Decran = 10} \begin{pspicture}[solidmemory](-8.25,-1)(5.3,2.05) ...
18
votes
3answers
624 views

Automatically generate graphics which shows light diffusion on a rough surface

I just want to make an image like this (using tikz or pstricks) of light reflexion and diffusion: What I am interested in is, how this can be done (semi)-automatically via tikz or pstricks: ...
4
votes
1answer
84 views

Conversion from pstricks coordinates to postscript coordinates

I am making a custom graphics library on top of pstricks and I need to convert from pstricks coordinates to postscript coordinates. I have a "working" example, cooked up via painful trial-and-error ...
1
vote
0answers
68 views

How to plot a diamond shape ball in LATEX [closed]

Let d:M \to \mathbb{R} be defined by d(X,Y)=|x_1-y_1|+|x_2-y_2| where X=(x_1,x_2), Y=(y_1,y_2) \in \mathbb{R}^2. This is called the Manhattan metric. Plot the unit open ball B with center at the point ...
2
votes
0answers
38 views

Have auto-pst-pdf and pstool merged?

auto-pst-pdf can handle pstricks and psfrag in addition to .eps files when run with pdflatex. It is however slow since in each run it processes all files, even those that have been processes before ...
2
votes
1answer
105 views

How to embed all fonts with pdfLaTeX in combination with pstricks and auto-pst-pdf

The publisher of my thesis asked me to provide a pdf file that meets two conditions: (1) The pdf file must NOT be created with Ghostscript. (2) All fonts must be embedded in the final pdf file. To ...
1
vote
0answers
66 views

How to add two lines for \rput in radar chart [on hold]

I'm able to draw radar chart using code mentioned below: \begin{center} \begin{pspicture}(-4,-4)(4,4) \psset{unit=1.2} \degrees[270] ...
1
vote
1answer
43 views

PSTricks compilation problem

The following problems occurred a week ago. Everything was fine before and the TeX file does compile on my friends computer but does not compile anymore on mine. When I compile my TeX file I get ...
4
votes
3answers
159 views

Like to know how my code can be improved!

I would like to know better way of accomplishing the following figure than the code I used. I'm used to for loops, but not to LaTeX loops! THE CODE ...
5
votes
1answer
158 views

How can I draw this radar graph in LaTeX?

when I enter below code: \rput*[l]{15}(20;15){\huge3} \rput*{60}(20;15){\huge1} \rput*[r]{105}(20;15){\huge3} \rput*[r]{160}(20;15){\huge1} \rput*[r]{205}(20;15){\huge28} ...
4
votes
3answers
57 views

Unable to get required Orientation of arrow

The circle is divided into 8 equal parts and a horizontal and vertical arrow has to be put at the midpoint of each division. On the right half, the horizontal arrows are directed to right side. On ...
4
votes
3answers
267 views

Using pstricks, I need to created the following grid sheet, which fits well with A4 paper

Distance between any adjacent horizontal lines or adjacent vertical lines is 10 mm. The 2 vertical border lines are 1.0pt thick. The 18 vertical lines are 0.1pt thick. The 2 horizontal border ...