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
2answers
35 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 ...
1
vote
1answer
30 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} ...
1
vote
0answers
130 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?
2
votes
1answer
84 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
1answer
2k views

Modifying nodes in a flowchart with psmatrix environment

I'm trying to draw some flowcharts with the psmatrix environment and I must show my input and output in a parallelogram box . I do not have a problem with the nodes while having the parallelogram in ...
3
votes
1answer
1k views

Nodes in a flowchart with psmatrix environment

I'm trying to make a flowchart such as below in psmatrix environment using the pstricks package. but the problem is that I don't know how to make the node between the {3-1}(num<=100) and {5-1}(num ...
3
votes
1answer
75 views

pst-plot and psgraph environment to small

I try to plot a large spectrum with pst-plot, but I cannot create a psgraph environment large enough, because the x-axis line is not drawn correctly. Do you know how to make it work? % !TeX program ...
2
votes
2answers
47 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} ...
7
votes
5answers
1k views

How to plot a linear function with axes, arrows, and labels?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, pstricks and multido usepackages. The lines from a to x_2, d to x_1 and p_1 to c, should be ...
0
votes
0answers
19 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 ...
1
vote
2answers
17 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} ...
5
votes
1answer
112 views

Psvectorian problem [duplicate]

Could you provide me a MWE for using psvectorian package? I tried \documentclass{article} \usepackage{psvectorian} \begin{document} \psvectorian[height=1cm]{102} \end{document} It gives back ...
2
votes
1answer
22 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 ...
2
votes
1answer
13 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
90 views

animated proof in latex [closed]

How can I make something like this? I would prefer tikz.
20
votes
4answers
2k views

How to draw these (closed contours) diagrams using TikZ or PSTricks?

First, I must say I have no knowledge about PGF/TikZ nor PSTricks, but I would like to draw the following or similar closed contours using one of them or another adequate package. Where can I find the ...
2
votes
1answer
73 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
1answer
21 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} ...
0
votes
1answer
19 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 ...
1
vote
2answers
29 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 ...
1
vote
2answers
87 views

Unexpected axes labels in PSTricks plot

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
1
vote
1answer
30 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
85 views

Animated crossproduct?

How can I make this animation using latex?
2
votes
2answers
23 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
32 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} ...
15
votes
3answers
294 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} ...
3
votes
1answer
80 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) ...
1
vote
0answers
28 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
180 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
2answers
62 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
61 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
61 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
4answers
153 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
113 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. ...
5
votes
4answers
620 views

Improvement of PSTricks code for drawing of balls in a triangular box

Consider the following. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pst-eucl} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
3
votes
2answers
71 views

Performing arithmetic on multido variable in PSTricks

I want to take an image and display it in PSTricks several times side by side, rotating it by the same amount each time. I want to use the multido command - something like \multido{\i=0+1}{10}{ ...
0
votes
0answers
41 views

Variable font size of a text string

I was wondering if it is possible to use \fontsize{<size>}{<line space>} in a loop in order to create a text string of strictly decreasing/increasing font size from, say, 30 to 2. Surely ...
112
votes
11answers
12k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
1
vote
1answer
77 views

Triangle in space

I would like to draw the following surface in space using \psSolid command: $\{(x,y,z): x + 2y + 3z = 4, x \geq 0, y \geq 0, z \geq 0\}$. Here it is the best I can get: \psset{unit=0.5cm} ...
0
votes
1answer
26 views

\rput with figures

I have the following: \documentclass[prb,twocolumn,showpacs,preprintnumbers,amsmath,amssymb,float]{revtex4} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \begin{figure}[t] ...
1
vote
1answer
50 views

PSTricks : draw a cross

I would like to draw a cross at a specific position. I already know how to draw a circle with \pscircle[...](x,y){...} is there something as simple that doesn't require any other package. For now ...
2
votes
1answer
36 views

\rput not working in TexShop 3.51

\rput is not working, I change the coordinates but "(a)" does not move at all. Here the code: \documentclass{article} \usepackage{graphicx} \usepackage{pstricks} \begin{document} \pagestyle{empty} ...
3
votes
1answer
36 views

Draw coterminal rotation angles with pstricks

How draw the rotation of coterminal angles at 135 degree with pstricks, as a shown in figure.
5
votes
2answers
84 views

How to use \usepackage{pst-barcode}

When using \usepackage {pst-barcode} I get error : \documentclass[10pt,a4paper,twoside,openany]{book} \usepackage[spanish]{babel} \usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor ...
4
votes
1answer
280 views

PSTricks: ugly pie chart

I use PSTricks to draw a pie chart but when I do \documentclass{article} \usepackage[pdf]{pstricks} \usepackage{pstricks-add} \begin{document} \titlepage \begin{pspicture}(-5,-5)(5,5) ...
0
votes
0answers
47 views

pstricks does not work with MiKTeX

I have MikTex 2.9 installed on my computer, it is working perfectly. But when I use any pstricks script, a blank area is displayed. How can this be fixed? For example, I have the following code ...
1
vote
1answer
33 views

pst-solides3d problem with MacTeX

With MacTeX, the following official example doesn't compile. Why ? \documentclass{standalone} \usepackage[pdf]{pstricks} \usepackage{pst-solides3d} \begin{document} ...
2
votes
1answer
115 views

Custom PSTricks directory tree to TikZ

I have a PSTricks implementation of a custom directory tree which I find quite appealing. I basically want to convert the whole thing to TikZ. I managed to get the very basic idea running in TikZ: I ...
7
votes
3answers
9k views

How do I include PSTricks pictures in a LaTeX document?

I use LaTeX regularly, and several times I have included .eps images. I am learning how to use PSTricks. I have used it to create .ps and .pdf files with images. There is plenty of free information ...
0
votes
1answer
154 views

How can I draw a 3D cross-section of a 3-torus embedded in 4D Euclidean space?

I found this question and very nice solutions of Mathematica Stack Exchange. I have a 3D-torus (\mathbf S^1\times\mathbf S^1\times \mathbf S^1) embedded in 4D Euclidean space. How can I draw the ...