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

Understanding beams in pst-optexp

I'm apparently missing something fundamental in how beams interact with interfaces. I have prepared three simple examples, with the hopes that someone can explain to me why certain things happen. ...
9
votes
2answers
159 views

How do I typeset this diagram used to explain folding?

How do I typeset this: (this is an explanation of the folding used in derivation) Edit: Here's a code of the formula and XeLaTeX MWE: \documentclass{article} \usepackage{fontspec} ...
4
votes
2answers
62 views

Make psdot thicker in width

I am trying to create a number line but the psdot is not bold or thick enough, it should be the same as the arrow's width. Linewidth does not seem to help, this is the full code. \begin{figure}[H] ...
0
votes
0answers
34 views

Are tickz and pstricks in conflict? [duplicate]

I do not know why, but it seem that the tikz and pstriks packages are in conflict. Using both \usepackage{tikz} \uspepackage[usenames,dvipsnames]{pstricks} When compiling, it returns me the ...
0
votes
0answers
35 views

pstricks gives garbled output in TeXShop

I have a bunch of 3d images that I made using pstricks, but after I updated to Mavericks OS X 10.9.5 this summer the images no longer render properly. All text (like axes labels) is stacked in the ...
2
votes
0answers
72 views

Convert image to code (TikZ? PSTricks?)

I have a ... pdf file, which contains figures of plots such as the following: Now the second plot isn't too hard to draw on TikZ (I assume... I hope? I don't have any experience apart from ...
2
votes
1answer
46 views

Run msc package with pdflatex instead of xelatex

I am using msc Latex package for building sequence diagrams, but I can only run it with Xelatex, which I don't like, but apparently it's possible I can use pdflatex if I run it with: pdflatex ...
5
votes
3answers
124 views

Drawing upper Riemann sum with psstep - problem with supremum

I want to draw the upper Riemann sum of a function like below with pstricks, however is does not take the supremum correctly (seems just to take the maximum of the left and right value of the step). ...
16
votes
4answers
316 views

How to draw random simple closed smooth curves but with the same perimeter?

I want to draw some random simple smooth closed curves. Each smooth curve must have the same perimeter but different area. See the following figure to illustrate what I meant clearly. Each smooth ...
4
votes
0answers
75 views

Future of luatex and pstricks [closed]

As far as I know it is not (yet) possible to use pstricks directly with luatex (-> pdf) as for example in xelatex. Are there any plans to implement this in luatex in near future? If so, how is the ...
7
votes
3answers
186 views

Need help making a calender template in LaTeX

Here is a picture I mad in Scribus how the calender (hopefully) should look like. The red coloured days are sundays. In the left corner the month should be shown. It would be nice if you could help me ...
4
votes
1answer
29 views

pspictures are gone on Windows with crop=on

The following code: \documentclass{article} \usepackage[crop=on]{auto-pst-pdf} \usepackage{pstricks} \begin{document} aaaa \begin{pspicture}(25mm,25mm) \psset{unit=1mm} \psframe(0,0)(20,20) ...
1
vote
0answers
90 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
165 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} ...
2
votes
1answer
27 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
114 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
127 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
28 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
50 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
56 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
67 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
47 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
89 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
50 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 ...
3
votes
0answers
106 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
78 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
35 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
47 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
47 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
120 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 ...
0
votes
0answers
40 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
47 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
45 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
78 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
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. ...
0
votes
0answers
78 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
37 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
442 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
34 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
96 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
144 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
67 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
51 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
95 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
39 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
62 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
45 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
57 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 ...