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

6
votes
2answers
1k views

PSTricks error, but package not loaded

I am working on a textbook, with a looming deadline, so I admit I did not do an exhaustive search for a solution to this situation. I was hoping someone would see this and say, "This is a duplicate ...
5
votes
1answer
553 views

Different graphic formats in a document

I have a large LaTeX document with figures in .eps, .pdf, .png, .tif(f), .jpg formats as well as pstricks code and psfrag fragment. One approach to compile this document is to use an external program ...
12
votes
3answers
24k views

eps figures with pdflatex

In a recent discussion on this site I learned that using \usepackage[pdf]{pstricks} makes it possible to run pdflatex on files containing eps and pstricks files (and psfrag usage as well). Now a ...
8
votes
2answers
414 views

How to express PSTricks point in terms of a shifted variable and function?

For a trivial example, suppose that \f(x) is a quadratic curve defined as follows \def\f(#1){-#1*(#1-8)/4} For each element \ix in {0,1,2,3,4,5,6,7,8} there is a point (\ix,\f(\ix)) that will be ...
3
votes
1answer
194 views

PSTricks raises an error while using RightAngleType=german

I moved some files from one computer to another. The first computer was able to compile all the files without errors. The second computer is not able to compile these files as soon as a I change the ...
11
votes
2answers
681 views

PSTricks transparency does not work with MikTeX's XeLaTeX

I use MikTeX and have updated all packages several minutes ago. The problem is that XeLaTeX produces a weird result where the transparency parts become opaque. It is not caused by preview as ...
5
votes
1answer
453 views

How to change the opacity of PSTricks strokes?

I need to change the opacity of PSTricks strokes, is it possible to do this?
31
votes
3answers
3k views

How to draw tangent vectors and component vectors on a curve

I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have ...
3
votes
1answer
879 views

Nodes in a flowchart with psmatrix enviroment

I'm trying to make a flowchart such as below in psmatrix enviroment 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 ...
7
votes
1answer
572 views

How to add text into a QR-Code?

I want to add a text to the QR-Code. I want a small numbers in one of the four black squares. \documentclass[a4paper, 12pt, parskip]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} ...
19
votes
2answers
3k views

Draw a prism in TikZ or PSTricks

Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
2
votes
2answers
1k views

Drawing parallelogram in a flowchart with the psmatrix enviroment

I'm trying to draw flowcharts and I looked at a few packages. As I'm more familiar with pstricks I chose it, and as I checked the examples I'm trying to draw it with the psmatrix environment. Our ...
3
votes
2answers
2k views

EPS output from PSTricks

I am trying to produce an EPS file from a PSTricks code. I am reproducing here the sample working code that I already have here: PSTricks---plotstyle LSM (Least Square method) Here is the modified ...
3
votes
1answer
399 views

PSTricks---plotstyle LSM (Least Square method)

I am discovering PSTricks's plotstyle=LSM to make a regression analysis y=m x + c. Here is my code: \documentclass[12pt]{article} \usepackage{filecontents} \begin{filecontents*}{data.dat} 0.0 0.0 ...
1
vote
1answer
743 views

PSTricks and large numbers in graphics

I am trying to use PsTricks to plot large numbers. In Herbert Voss's PSTricks: Graphics and PostScript for TeX and LaTeX book (German edition, 2007, 4th edition), there is the code: ...
25
votes
6answers
1k views

Spirograph, Continuous Rotations in TikZ or PSTricks

Spirograph-like drawings are obtained when one repeatedly draws a closed curve on a continuously rotated canvas. Is there a nice way to make spirograph drawings using TikZ or PSTricks? There is a nice ...
7
votes
3answers
351 views

Which plotting tool is more likely to stay stable in the basics: MetaPost, PStricks or pgfplots?

I have been looking at the three (major ?) tools---MetaPost, PStricks or pgfplots for plotting data together with LaTeX. My experience is this: MetaPost code can demand lots of lines for simple ...
3
votes
1answer
187 views

externalization and text export for tikz and pstricks

A feature similar to what is offered in Inkscape in terms of font export in figures for subsequent pdflatex/latex use would be a great addition to tikz and pstricks I think. We would then be able to ...
4
votes
2answers
1k views

Using PSTricks to plot from a data file

I would like to know how to use PSTricks to read and plot data from a text data file e.g. 8 98826 year 2008 9 104925 year 2009 10 140153 year 2010 11 178414 year 2011 And three further ...
3
votes
1answer
876 views

Using psplot, graphs won't appear on page 2

The following code seems to work (I'm using Texmaker and MiKTeX): \documentclass[12pt,letterpaper]{article} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{center} ...
11
votes
4answers
612 views

Simple line with dots, known coordinates

Are there any easy way to make something similar to this image in tikz, asympote or similar? I know the coordinates, to each of the points =) Ofcourse I know how to solve this, but to do it in ...
6
votes
3answers
444 views

Force auto-pst-pdf or pst-pdf to work with xetex

Is it possible to force auto-pst-pdf or pst-pdf to create PDF images and include them if I’m using xelatex? Background I have to typset a Book that needs OpenType fonts so I choose xelatex. The ...
11
votes
2answers
566 views

Drawing a complex transformation using PStricks

I'm trying to draw the picture below showing a typical instance of mapping the z point from z plane to w plane by the f(z) transformation. It is almost OK, but when I'm trying to draw the dashed ...
2
votes
2answers
376 views

3dplot in Beamer crop and ticks problem

I'm new to pstricks, and I've been struggling with several issues using it with beamer. So my problem is that I'm trying to show a 3D plot in a beamer frame. However, for some reason, that I can't ...
2
votes
2answers
501 views

Scaling a pst-3dplot to fit a Beamer frame

I'm new to pstricks. I was looking for an automatic way of resizing a plot. I'm trying to fit a 3d plot, generated using pst-3dplot, into a beamer frame. However, I'm not able to make it look good ...
4
votes
3answers
480 views

Lining up leaf nodes in pstree

I am a TeX newbie, trying to make a syntax tree. What I'm going for is this: X / \ X \ / \ \ X \ \ / \ \ \ X \ \ \ / \ \ \ \ A B C D ...
7
votes
3answers
1k views

Write inside divided circle

At this address Label Points in a circle in tikz you can see the code to divide a circle into x cells. How to write a phrase into each cell of the divided circle?
9
votes
2answers
840 views

pst-solides3d and hidden lines

I am trying to draw figures with pstricks for the first time. Unfortunately, I am struggling with it. I was trying to draw a pentagon-cone and an octahedron using pst-solides3d, but it draws some ...
2
votes
2answers
399 views

Can't use pstricks - boundingbox error

This is a technical problem arising from this question: Bending snakes with xy-pic and also regarding the accepted answer to this question: How to use PSTricks in pdfLaTeX? \documentclass{article} ...
2
votes
1answer
439 views

CVPR Style in draft mode fails to compile pstricks figure

I'm new to this pstricks figures. So I apologize if my question is very basic. So this is the problem. I have a style from CVPR, cvpr.sty, and a figure that I create using a script that creates ...
3
votes
2answers
629 views

pstricks and beamer - problem maybe with xcolor?

While creating beamer slides in our comporate design (which forced me using own colors) I got the following problem: Having a PS-Tricks image within a frame seems to collide with my own color setted ...
0
votes
1answer
637 views

How to get DVI files vs PDF files when using pstricks, aquamacs, and mactex

My setup is generating DVI output vs PDF when using pstricks with Aquamacs 2.3a and MacTex 2011 Simple latex files will create pdf files as expected from inside aquamacs and auto view in skim. When ...
12
votes
2answers
861 views

Root systems and weight lattices with PStricks

(Edit: See below) I am trying to draw a simple picture containing a root system, Weyl chambers and root/weight lattice using pstricks. I am essentially trying to construct something like figures 6.5, ...
5
votes
2answers
1k views

Making an image with a transparent background

I do not know what is the official term for such images, but if I make an image in TikZ or pstricks then I want it to have no background; for example I might post it on a webpage with a different ...
3
votes
1answer
601 views

Automatically framing (or drawing the bounding box of ) a PStricks non-text object

Is there a command or macro that can draw and automatically size the bounding rectangle of a pstricks object, for example a circle -- framing it tightly in effect, even when the object undergoes ...
2
votes
1answer
1k views

pdflatex and pstricks

Sometimes ago I wrote a style file for drawing GANNT charts with pstricks. I typically compile my code with latex+dvips+ps2pdf, and everything works fine. However, I am now preparing a presentation ...
3
votes
1answer
574 views

Problem with pstricks captioning, packages etc

I'm new by pstricks and trying to make my plots with it, but I am facing some problems. I cannot place my plots wherever I want to in the page as I did for pict2e. How can I fix the plots where I ...
1
vote
1answer
319 views

Problem with drawing an arrow using Pstricks

I'm trying to draw an arrow by using pstricks, but I cannot do that. The code is below: \documentclass{book}‎ \usepackage{pstricks}‎‎ \begin{document}‎‎ \psline[linewidth=20pt]{<-}(2,1)‎‎‎ ...
17
votes
2answers
760 views

equivalent of pstricks rput in tikz

A very powerful feature of pstricks is its possibly nested rput command that can be used to rotate and move a portion of a drawing. Is there something similar in tikz?
7
votes
1answer
381 views

how to get PSTricks QR codes to handle tildes properly?

I am getting bitten by the same problem from one of my previous questions: tildes are not handled properly. But now it's the PSTricks QR code package that's not working, and none of the suggestions ...
0
votes
1answer
328 views

Legend on top of a pst-solides3d drawing

Another question aboutpst-solides3d and visibility: How can one draw a legend on top of the 3d drawings ? I thought that putting the put command before or after the 3d drawings commands would render ...
8
votes
3answers
2k views

How to draw a circular cone

I want to draw the circular cone given by the equation z²=x²+y². (I do not mind using any given package.) I tried to use the pst-solides3d package with the help of its manual to generate the ...
6
votes
1answer
270 views

Cyclic ring and visibility problem in pst-solides3d

I'm trying to draw two cylindric rings on top of each other with pst-solides3d. Here is what I have: \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} ...
5
votes
3answers
442 views

Visualization in LaTeX of hamming distance

I have for example the following two strings: 1: 00101101 2: 00100100 I would like that each number will be place in a box and the boxes with the number one should be higher then the ones with ...
3
votes
2answers
571 views

How to pick a plane inside a cube in pst-3dplot?

I want to pick and highlight a diagonal plane of a cube. I do not want to color it but use some kind of fill-style so that I can print it on a black and white printer. The following is my solution ...
2
votes
1answer
375 views

Ghostscript error with a surface in pst-solides-3d

I'm discovering the extremely cool pst-solides-3d package. The code \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(0,0)(3,5) ...
2
votes
1answer
362 views

The traces of an elliptic paraboloid seem to be off when using pst-3dplot

I am trying to sketch an elliptic paraboloid given by z=\frac{x^2}{4}+y^2 using pst-3dplot. I used \parametricplotThreeD to sketch the graph. The trace on the plane z=3 is an ellipse with major axis ...
5
votes
2answers
1k views

Drawing checkered torus (doughnut)

How to draw a checkered torus (doughnut) in LaTeX? I have seen the example of drawing a torus. But I also need to make a $4 \cross 4$ chess board on it. It'll be more helpful if I can also change the ...
2
votes
2answers
3k views

How to use PSTricks with PDF Texify in WinEdt?

The page How to use PSTricks in pdfLaTeX? explains a workaround that allows to use PSTricks in pdfLaTeX. As far as I understand it, it allows you to include a mix of eps and pdf figures in a TeX ...
3
votes
1answer
4k views

auto-pst-pdf Problem

I'd like to use pstricks with auto-pst-pdf. However, running the example code on http://tug.org/PSTricks/main.cgi?file=pdf/pdfoutput#autopstpdf gives me the following error: Package auto-pst-pdf ...