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
1answer
319 views

Two Pspictures beside each other

I'm trying to put two pspictures beside each other. I also checked the same question and tried the answer about defining two columns, but it didn't work and LaTeX considered those as undefined ...
2
votes
1answer
374 views

Pass TeX macro to gnuplot environment - gnuplottex

I want to pass a TeX macro to the gnuplottex environment gnuplot. The example here is rather trivial but help solving would be appreciated. The end goal is to adapt the gnuplottex code to call ...
5
votes
0answers
360 views

In pst-circ, how do you rotate the op-amp by 90 degrees? [closed]

In pst-circ, how can you rotate the op-amp by 90 degrees? For items that have two terminals like resistors and inductors, they rotate automatically. For the 3 terminal op-amp I'm having trouble. ...
12
votes
3answers
3k views

How to convert a LaTeX file with pstricks code to pdf?

I am new to LaTeX and was writing an article with MikTeX. But when I insert a pspicture and compile the file into pdf format, the pspicture just does not show up. But if I compile the file into ps, ...
8
votes
1answer
268 views

What are the benefits of Sketch for PSTricks users?

When it comes to graphics and TeX I tent to be PostScript biased in part due to my age (TikZ didn't exist when I started learning TeX). Recently, I learned about Sketch. I was wondering what are the ...
2
votes
2answers
336 views

Describing leaves of a tree with an underbrace using pstree/pstricks

I'd like to have a discription for some of the leaves. It doesn't need to be an underbace, if somebody has better graphical suggestions... :) Consider this example: ...
7
votes
1answer
312 views

pst-optic example creates unrecoverable error for Ghostscript

I'm trying to reproduce an example (figure 8) from the pst-optic documentation and it creates an unrecoverable error for Ghostscript (version 9.02). This is on a Mac using TeXShop. I have updated ...
3
votes
3answers
211 views

Connect UML classes both with connectors on the east with pst-uml (or others)

I want to connect UML classes both on the east side with pst-uml. Sadly the documentation is french and /usr/share/texmf-dist/tex/latex/pst-uml did not help neither. Concept (Dia) Current status ...
82
votes
8answers
7k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar tool). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear too ...
4
votes
2answers
376 views

ps2pdf produces /undefined in Blue when setting gridlabelcolor to dvipsnames' Blue

latex-dvips-ps2pdf compilation sequence produces a weird result when I change the grid style. The problem does not happen when I compile the same code with xelatex. ...
2
votes
1answer
803 views

Modifying nodes in a flowchart with psmatrix enviroment

I'm trying to draw some flowcharts with the psmatrix enviroment 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 ...
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
536 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
17k 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
376 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
177 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 ...
7
votes
2answers
574 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
393 views

How to change the opacity of PSTricks strokes?

I need to change the opacity of PSTricks strokes, is it possible to do this?
26
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
734 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
543 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} ...
16
votes
2answers
2k 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
974 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 ...
1
vote
1answer
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
348 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
677 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: ...
23
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
343 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
184 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 ...
3
votes
2answers
988 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
803 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
526 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
427 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
535 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
353 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
458 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
458 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
954 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?
8
votes
2answers
727 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
357 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
402 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
565 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
566 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 ...
11
votes
2answers
783 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
980 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
516 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 ...
2
votes
1answer
468 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
279 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
685 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?