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

pst-3d + macos + fontspec

I think this is a FAQ but I'm not finding the right question to look for, I think. If I use xelatex and pst-3d the resulting pdf does not show any 3d transformation. If I use latex and dvips the 3d ...
2
votes
2answers
46 views

Drawing simple xy axis [duplicate]

Can anybody help me to produce this? I couldn't find anything similar on the forum. No need for a grid. Thank you, Mironas
1
vote
2answers
23 views

Reset \psset within a pspicture environment

How can I invalidate a style that was created using a \psset comand within a pspicture environment? Take the following MWE, which compiles with XeLaTeX: I would like to invalidate the current style ...
3
votes
1answer
81 views

Compiling “Thinking Forth” LaTeX source

I have a good book "Thinking Forth" which has LaTeX code availale. (http://thinking-forth.sourceforge.net) The source code uses PSTricks, so I'm trying to remove the PSTricks dependent code. The ...
1
vote
0answers
36 views

Environment for example with pstricks

How can do with pstricks the environment that appears in the image ?
1
vote
2answers
53 views

error while drawing a pspicture in latex

I get the following error while trying to draw a pspicture in LaTeX GPL Ghostscript 9.15: **** Could not open temporary file '' What I write inside the compiler is \documentclass{article} \...
3
votes
2answers
44 views

Rotate PSTricks Object: Label Positioning

Consider the following (non-minimal) example of a rotation of a quadrilateral around a point: \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \...
1
vote
1answer
66 views

animated convolution in PStricks

how to create animated convolution of two arbitrary function in pstricks like this
2
votes
2answers
47 views

Cnodeput offcentered when using fractions

Here is the following code: \documentclass[multi,pstricks]{standalone} \usepackage{pstricks-add,amsmath} \begin{document} \begin{pspicture}(2,2) \Cnodeput[radius=.7](1,1){a}{$\dfrac{a_b}{a}$} \psdot(...
5
votes
3answers
84 views

Filling the space between two arcs between two nodes

I have the following code: \begin{pspicture}(-1,-1)(2,2) \psmatrix[rowsep=3cm,colsep=3cm,mnode=circle] [name=A]A & [name=B]B \endpsmatrix \ncarc[arcangle=30]{A}{B} \naput{4} \ncarc[liftpen=2,...
1
vote
2answers
50 views

Font with PSTricks and Beamer

I am creating standard beamer presentations. Moreover I use PSTricks to produce my pictures in a separate file. Afterwards I include the pdf with the pictures into the presentation. Unfortunatelly ...
4
votes
1answer
58 views

Improve PSTricks code

Consider the following very ugly PSTricks code: % latex file.tex % dvips file.dvi % ps2pdf file.ps \documentclass{article} \usepackage{pst-text,pst-slpe,pstricks-add} \newcommand*\kurve{% {\psset{...
4
votes
1answer
63 views

pst-optexp: Trouble in drawing collimated beam

I want to draw a Z-Scan experimental setup. My lab's DPSS Laser has a beam radius of some value, and I change this value by using a simple telescope. It was supposed to be easy to draw this using pst-...
2
votes
1answer
52 views

e-TeX and \newfam allocation

If PSTricks is used with e-TeX (from the latest TeX Live distribution), it appears that only the 7 families 9 trough 15 are available to \newfam. If PSTricks is used with tex (again, from the latest ...
4
votes
2answers
63 views

How to rotate objects in pstricks without shifting them?

I'm trying to draw an image with pstricks (an experiment schematics) and I'm having a hard time rotating stuff. I'm using psrotate and everytime I rotate something it has its position shifted as well. ...
1
vote
1answer
37 views

Working with big numbers pstricks

I'm trying to plot some functions, for this I'm using Geogebra for generating the graphics, the following is the generated code. \documentclass[10pt]{article} \usepackage{pstricks-add} \pagestyle{...
1
vote
0answers
38 views

pstricks margin with rput when putting an image

I want to do the following: \documentclass[pstricks]{standalone} \psset{unit=1in} \begin{document} \begin{pspicture}(2in, 1in) \psframe[linecolor=red, fillcolor=red, fillstyle=solid, dimen=...
1
vote
1answer
20 views

Can't get the tickstyle=full option tp work in my pstrick code

This is probably something very small but it is driving me insane. I'm trying to obtain the full ticks in my frame (or the top option) but I can't get it done. I want all the ticks to point inwards....
2
votes
1answer
26 views

Scaling when \input PSTricks figure

I made a PSTricks figure to represent some IPSec behavior, but when \include-ing it, I have a scaling problem. Here's what I produces. When compiling the separate file, everything is right, and all ...
4
votes
2answers
106 views

Draw dotted background [duplicate]

I saw this diagram on an exam paper and noticed that it was too clean to have been made in the usual MS Word program. So I figured that it may have been made in either TikZ or PSTricks. What stood ...
4
votes
1answer
41 views

How to confine a plot inside a frame?

I'm using \listplot to plot a datafile I made. The section of the plot I am interested in ranges from y=-40 to y=60 but there is a peak in this plot which goes way above y=100. I don't want to show ...
3
votes
2answers
40 views

How can I use a macro argument as a pst-node label?

In the following example: \documentclass{article} \usepackage{pstricks,pst-node} \begin{document} \def\working(#1,#2,#3, #4){ \rput(#1,#2){ \ovalnode{M5}{ #4 } }...
2
votes
1answer
42 views

how to draw a circle with black border with pstricks?

I would like to draw a circle with black bounder in that electric field. Can you help me? \documentclass[margin=10pt]{standalone} \usepackage{pstricks} \usepackage{pst-electricfield} \begin{document} ...
1
vote
1answer
44 views

drawing electrical fields using pstricks

I would like that all the charges has the same colour, but with this code for me it's impossible to make the modify. Could you help me? This is my code: \documentclass[margin=10pt]{standalone} \...
2
votes
1answer
99 views

How to flip certain pixels of a QR code?

I would like to modify the data (black square or white square) in a QR code so that to display any graphic feature of my own choice in the code at the expense of sacrificing a certain amount of its ...
2
votes
2answers
66 views

Expanding, adapting pst-labo

I want to make this I've tried to work with pst-labo, but the only thing I could make was (with or without bouchon): With this code: \documentclass[11pt]{article} \usepackage{tkz-euclide} \...
0
votes
0answers
27 views

Draw with PStricks on a large paper size

This question already received attention, but I still cannot find a satisfying answer. I need to draw a big diagram in PStricks. For readability, I want to use a single larger page in the middle of my ...
2
votes
1answer
29 views

Including a multi page PostScript document into latex

Is there a hack to include a multi page Postscript document into a a final ps document through latex and dvips? Essentially what I have is a ps article that i need in my latex>dvi>ps document. Is ...
1
vote
2answers
32 views

How to extend PStricks margins when working on a single larger page

I need to draw a big diagram in PStricks, using XeLaTeX. To be readable, I want to draw it on a large page, which dimensions I manually set. Here's a MWE : \documentclass[11pt]{article} \usepackage{...
2
votes
1answer
19 views

Package xcolor warning when using sciposter document class

Is there anyway to avoid the warning message "Package xcolor Warning: Incompatible color definition on input line" when using the Sciposter document class? MWE: \documentclass{sciposter} \...
0
votes
1answer
109 views

animated proof in latex [closed]

How can I make something like this? I would prefer tikz.
0
votes
1answer
32 views

How can I define more color commands properly for \pslegend in pst-plot

I am plotting a multi-curve graph by using pst-plot, and naturally need different color to label each curve in legend, by using \pslegend command. However, I find I can only use a number of pre-...
1
vote
2answers
38 views

How to crop an image made with pstricks?

I'm writing this piece of code, which will be an image to incorporate in a paper, and I would like to crop it along the edges of the frame I have drawn. I know the frame is almost the size of the page ...
2
votes
1answer
32 views

How to plot using psplot a function with very large numbers

Here is my code: The function does not fit in my document. I played with lots of numbers for Dx, Dy, xunit, yunit.... It is a nightmare. Thanks for your help. \begin{figure}[!ht] \vspace{1cm} \...
1
vote
1answer
40 views

PSTricks transparency failed on MacTEX

I started with PGF/Tikz at the beginning and was always happy with the result. It fits my workflow for LaTeX perfectly, as I normally use pdfLatex and all my figures included in LaTeX are .pdf format. ...
1
vote
1answer
97 views

Animated crossproduct?

How can I make this animation using latex?
2
votes
2answers
32 views

Text Alignment within \psframebox

I'm trying to represent the functionning of a device. It has 2 ports, and make computations on the payload of a data packet. I use pst-node from the PSTricks suite to realise it, b I came across some ...
3
votes
2answers
50 views

Undefined control sequence problem with \pstree

I installed the latest MikTex2.9 and tested the following simple code trying to create a node in a tree diagram. \documentclass{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,...
3
votes
1answer
85 views

Walking man along hypotenuse

I want to draw a man walking along hypotenuse. How can I fix following code so that it make sense. Problem is that the man is not standing correct. 1) The man should stand correct at point (0,3.5) ...
16
votes
3answers
318 views

Drawing an animated circle in LaTeX

How can I draw an image like this in LaTeX? I want to show that I am drawing a circle. Here is what I have, but it does not work. \documentclass[pstricks,border=0pt]{standalone} \usepackage{...
1
vote
0answers
34 views

Geogebra PStricks export not working

We are having some issues exporting a geogebra file into pstricks and integrating it into a document. As we export the file from geogebra 5 and copy it to Latex, we (on two different computers, a mac ...
7
votes
2answers
185 views

Area Bounded by 4 Curves

I would like to plot the area bounded by the following four curves: x^2 - y^2 = 4 x^2 - y^2 = 1 xy = 1 xy = 2 I'm fond of pstricks but tikz is fine too, whichever is simpler would be best. I ...
2
votes
1answer
80 views

PSTricks Drawing: Symmetric Figure

Consider the following picture: I would like to draw this figure using PSTricks. My problem is the ends; the "cross" in the middle is no problem at all. Here is what I have so far: \...
2
votes
2answers
46 views

Conditional preamble and pstricks problem \psTilt and \PstLightThreeDText

Look at the following MWE. \PassOptionsToPackage{export}{adjustbox} \documentclass{article} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{adjustbox} \newcounter{psextern} \makeatletter \...
2
votes
2answers
65 views

What is wrong wth this pstricks code?

I'm a newbie so the answer is probably quite simple. I have the code below and its giving me two issues: The x and y axis labels are in random places? The supplied co-ordinates are not being ...
1
vote
2answers
72 views

Cisco Icons in PSTricks schemabloc

I saw this question, and wonder how to make it using PSTricks... I tried, but failed. The compilation ends, but fails to produce a pdf. I have the Cisco Icons in a subfolder, and putting them in a \...
1
vote
1answer
76 views

\begin{document} ended by \end{figure}, latex error in thesis template

I am writing a thesis in latex, when I add the pstricks code it runs but when I insert the \begin{figure} and \end{figure} command to caption the figure, it generates error \begin{document} ended by \...
1
vote
0answers
155 views

How can I do this by Latex (Tikz or PSTricks)

I want to draw the following diagram in LaTeX. How can I do this?
1
vote
4answers
165 views

Drawing a Curve for a Function Diagram

I want to draw the following diagram in LaTeX. How can I do this?
1
vote
2answers
167 views

How to draw this control flow graph using pstricks/tikz

This is just a simplified image of a control flow graph which I want to draw. The boxes contain multiple lines of text/mathematical symbols. And the transitions are all labelled using [] brackets. ...