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

5
votes
2answers
138 views

Folium of Descartes

How to fill region on Folium of Descartes like this: Here is my codes: \documentclass[10pt]{article} \usepackage{pstricks-add} \usepackage{pst-func} \pagestyle{empty} \begin{document} ...
0
votes
0answers
73 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
0
votes
3answers
189 views

How does one draw the following graph?

Can anyone help me as to how I can draw the above picture using TikZ or PSTricks? I am not familiar with those two packages.
3
votes
1answer
26 views

Suitable object for pstPlanePut?

I want to rotate lines and text in 3d space. \documentclass{article} \pagestyle{empty} \usepackage{pst-3dplot} \begin{document} \pstPlanePut[plane=yz](0,0,0){ASDF FDSA} \end{document} Causes latex ...
8
votes
8answers
636 views

Drawing minimal xy axis

can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum. The axis should be black but the grid behind it a shade o gray, dashed. It would be ...
0
votes
0answers
38 views

Problem with length of psshadow box

I am using the a0poster environment and I am trying to create a psshadow box that has the same length with the document. I am using the following code: \documentclass[landscape,a0,final]{a0poster} ...
3
votes
1answer
40 views

How to align a pspicture to the center of page?

I have a pspicture inside a figure: \begin{pspicture}(40,25) \psframe(0,0)(30,20) \end{pspicture} The frame is displayed at the top-left of the page. Is it possible to automatically move it to the ...
6
votes
1answer
50 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. ...
10
votes
2answers
295 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
73 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
37 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 ...
3
votes
1answer
113 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
58 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
137 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
341 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
84 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
233 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
38 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
100 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
167 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
28 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
127 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
134 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
52 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
61 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
70 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
52 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
91 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
57 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
108 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
95 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
37 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
59 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 ...
4
votes
1answer
55 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
131 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
47 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
49 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
50 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
83 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
2answers
47 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
79 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
55 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
458 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
35 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
106 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
155 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 ...