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

0
votes
0answers
26 views

How can I draw Indian horoscope charts?

I was wondering if Indian horoscope charts can be drawn in LaTeX. Here is one example: It has 12 divisions. And in each of the divisions there may be one or multiple Grahas with their corresponding ...
5
votes
2answers
142 views

What caused the unexpected outline below?

What caused the unexpected outline below? \documentclass[pstricks,border=0pt,12pt]{standalone} \usepackage{pst-eucl} \psset{PointName=none,PointSymbol=none} \begin{document} ...
6
votes
1answer
82 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 ...
2
votes
1answer
20 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) ...
6
votes
1answer
25 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 ...
4
votes
0answers
109 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 ...
3
votes
1answer
81 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 ...
1
vote
0answers
67 views

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

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] ...
3
votes
1answer
39 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
2answers
46 views

Shortening compile time with large eps files when using pstricks and dvips

So I am also sending this to both the pstricks and the powerdot lists as it relates to both, but mostly to compiling via dvi-> dvips -< ps2pdf or similar. I make my lecture slides with Powerdot ...
3
votes
1answer
49 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
53 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
42 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 ...
6
votes
2answers
44 views

pstricks: strange behaviour using \rput* with pst-solides3d

i got a strange behaviour using \rput and \rput* with the package pst-solides3d. it concern more or less the commands \rput and \psdot in the following example \documentclass{minimal} ...
6
votes
1answer
79 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 ...
2
votes
1answer
79 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 ...
3
votes
1answer
82 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 ...
3
votes
1answer
31 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 ...
37
votes
4answers
2k views

How to create a Sierpinski triangle in LaTeX?

I have been trying to recreate the following image in LaTeX and for me personally it has to be done with pdflatex. Although answers using pst-fractals From Jake I got a good start which led to the ...
1
vote
1answer
34 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 ...
1
vote
1answer
49 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 ...
1
vote
1answer
29 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
41 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
110 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
13 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 ...
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 ...
0
votes
0answers
37 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 ...
2
votes
2answers
43 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} ...
18
votes
3answers
625 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
2answers
42 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. ...
4
votes
1answer
31 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
69 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?
5
votes
1answer
1k views

How to increase the size around text in \psframebox

when using \psframebox the size between text and corners of the box is really small. Is there a way to increase that? My minimal example: \documentclass[dvips]{article} \usepackage{pst-all} ...
0
votes
0answers
77 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
33 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, ...
4
votes
1answer
103 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
1answer
80 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 ...
6
votes
1answer
432 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
30 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
89 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
125 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
62 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
49 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} ...
3
votes
1answer
36 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
47 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, ...
11
votes
3answers
2k views

How to create text with shadows?

This question led to a new package: shadowtext I used the following code: \documentclass{article} %\usepackage{pst-all} \usepackage{pstricks} \usepackage{pst-3d,pst-text} \usepackage{soul} ...
2
votes
1answer
43 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
52 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
75 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 ...
4
votes
1answer
85 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 ...