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

Color problem in Pstrick

I have the following code in Pstrick but the text color is not changing. Always text color shows black. I am running this code with xelatex \documentclass[12pt]{article} \usepackage[paperheight=9in,...
2
votes
1answer
57 views

splitting a pstricks-picture into several, stepwise

When explaining diagrams (in Economics), making them more complex in a step-by-step manner is often useful for students. What I usually do is to draw a pstricks image (that may contain a lot of ...
1
vote
2answers
35 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{...
3
votes
1answer
181 views

PSTricks compilation problem

The following problems occurred a week ago. Everything was fine before and the TeX file does compile on my friends computer but does not compile anymore on mine. When I compile my TeX file I get ...
3
votes
1answer
25 views

combination of pspicture and psmatrix

In a prior version I have used the psmatrix environment and it works fine, but I failed to have more frames inside (like this figure). Connecting nodes in psmatrix is much easier as in this example. ...
14
votes
7answers
2k views

How to draw this cube with PSTrick or TikZ?

I use GeoGebra to draw a cube. The code in GeoGebra is \documentclass[12pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dimen=...
3
votes
0answers
55 views

PSTricks drawing not cropped in standalone

I'm trying to create a drawing using the pst-optexp package, and I can get the drawing to compile, but the output is not cropped to the drawing (the drawing is just placed in the top left corner of a ...
1
vote
1answer
25 views

How to change the arrow to another object in pst-optics?

Consider the following example: %%xelatex \documentclass[pstricks,crop]{standalone} \usepackage{pst-optic} \usepackage{pstricks-add,pst-text} \begin{document} \begin{pspicture}(-8.5,-3)(8.5,3) \...
1
vote
1answer
24 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....
4
votes
1answer
46 views

XeLaTex produces no curve with pst-dosage

When I run XeLateX and want to produce a titration curve with the pst-dosage package (http://melusine.eu.org/syracuse/pstricks/pc/pst-dosage/pst-dosage.zip) for only one macro \dosageAfBF it does not ...
1
vote
0answers
64 views

Trying to use pstricks with xelatex - almost working

Have fixed the problem – a bit unconventional though. I re-installed miktex (2.9), but the problem persisted. I found the executables for ghostscript on my system (they were there before I ever had ...
2
votes
2answers
52 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 \...
4
votes
0answers
32 views

Rendering a pspicture inside another document

I have a C++ program that generates a PDF via LaTeX by writing the data to stdout and piping to pdflatex -shell-escape. The template looks like this: \documentclass[letterpaper,12pt]{article} \...
1
vote
2answers
32 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 ...
2
votes
0answers
35 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 ...
10
votes
9answers
5k 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 ...
2
votes
2answers
61 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
3
votes
1answer
94 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
48 views

Environment for example with pstricks

How can do with pstricks the environment that appears in the image ?
17
votes
1answer
2k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
1
vote
2answers
59 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
47 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
74 views

animated convolution in PStricks

how to create animated convolution of two arbitrary function in pstricks like this
4
votes
1answer
43 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 ...
2
votes
2answers
48 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(...
2
votes
2answers
83 views

Drawing dot mesh on 3dplot

DISCLAIMER: this seems like a bug. If you know where I should post this (message board, forum, bug tracker...) please let me know. I have a relatively simple image consisting of 2 parametric 3d plots ...
5
votes
3answers
89 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,...
6
votes
1answer
395 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. ...
1
vote
2answers
52 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
62 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
67 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-...
13
votes
3answers
490 views

Draw Polygonal Number Using PSTricks (or TikZ)

I would like to draw the following using PSTricks (or TikZ): (Found on http://i1.wp.com/mathandmultimedia.com/wp-content/uploads/2012/08/polygonal-numbers.png.) I can do it myself using an ...
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
71 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. ...
2
votes
1answer
31 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 ...
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
42 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=...
4
votes
2answers
111 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 ...
3
votes
2answers
42 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 } }...
9
votes
6answers
5k views

Draw Vertices of Regular Polygon

I am trying to draw just the nodes (no sides) at the vertices of a regular hexagon. This answer should be easily modified to accomplish what I want, but I am such a novice that I have difficulty ...
2
votes
1answer
43 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
49 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
162 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
101 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
79 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
73 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
30 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 ...