Tagged Questions

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

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
357 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
188 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
903 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
628 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
447 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
579 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
387 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
514 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
495 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
868 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
406 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
472 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
650 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
662 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
897 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
621 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
608 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
329 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
778 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
387 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
334 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
274 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
459 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
584 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
385 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
373 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 ...
0
votes
2answers
303 views

\psTextFrame with origin specified does not affect the content position

\psTextFrame[origin={x,y}](0,0)(1,1){content} does slide its frame's center to (x,y) but leave the content at (0.5,0.5). Is it a bug or feature? \documentclass{article} \usepackage{pstricks} ...
2
votes
2answers
316 views

pst-text with plain XeTeX

How, if possible, can I use pst-text with plain XeTeX? I have TeX Live 2011. When I try to run the minimal example: \input pst-text \pscharpath{TeXnik} \bye , I get a bunch of ** WARNING's, ...
13
votes
2answers
389 views

Is there a TikZ equivalent to the PSTricks \ncdiag command?

The pst-node package provides the \ncdiag command, which allows you to connect two nodes with a diagonal line, but with an extra arm parameter which puts a bend in the line and allows the connections ...
0
votes
1answer
916 views

ps2pdf -dEPSCrop stops short with pstricks \uput

Basically ps2pdf -dEPSCrop doesn't crop to the full extent specified and stops at some mysterious point. I'm trying to trim the white space on the left of the image but -dEPSCrop stops short ...
3
votes
1answer
535 views

What kind of “magic” does preview package do to produce a tight paper size?

Actually the following method, that looks like reinventing the wheel, has been discarded once I have known the existence of preview package. % WithoutPreview.tex \documentclass{article} ...
5
votes
2answers
739 views

Why doesn't pdfTeX support PStricks directly?

I am sorry, I have to remove the previous question. I didn't realize I had messed up everything (from my other questions) here. The hidden idea was actually as follows, but I had simplified it in a ...
2
votes
2answers
3k views

When converting PDF to EPS, how to prevent pdftops from rasterizing fonts and transparent regions?

Compiling the following code % Circle.tex \documentclass[cmyk]{minimal} \usepackage{pstricks} \pagestyle{empty} \topmargin=-72.27pt \oddsidemargin=-72.27pt \topskip=0pt \parindent=0pt ...
0
votes
1answer
157 views

Is there a built-in PSTricks macro to get the value of \pslinewidth in the current unit?

I need the value (without trailing unit) of \pslinewidth in \psunit. I have done as follows but I am disappointed with the accuracy. \documentclass{article} \parindent=0pt \usepackage{pstricks} ...
0
votes
3answers
430 views

I failed to use \newenvironment and \newcommand

The following code snippet does not work. \documentclass{article} \usepackage{pstricks} \newcommand\Left{-1} \newcommand\Right{1} \newcommand\Bottom{-1} \newcommand\Top{1} ...
4
votes
2answers
983 views

What is the unit of the coordinate system in PSTricks?

If I use the following code, there two different kinds of units. One for the coordinate system used to declare \begin{pspicture} with (0,0) to (20,10), and the centimeter used in 4.2cm. ...
2
votes
4answers
699 views

Is there a simpler way to do arithmetic in PSTricks?

I want to animate PSTricks diagram, so looping is intensively used. I have 3 global variables \START, \STOP, \DELTA that should be declared in the preamble. The remaining variables in the body will ...
1
vote
2answers
170 views

How to express a polar coordinate for a macro that only accepts space-separated values?

\psElectricfield only accepts a coordinate in space-separated values as follows. For example, a charge of -0.1 unit at (-1,0) is written as [-0.1 -1 0]. I have attempted to write in PS notation but it ...
3
votes
4answers
280 views

What is the TeX equivalent for the following C# nested loop?

I need a nested loop to animate PSTricks diagrams. In C# or C or C++, I usually write as follows. int N=6; for(int x=0; x<N; x++) for(int y=x+1; y<N; y++) Console.WriteLine("({0}, ...
6
votes
1answer
572 views

How to divide a length-valued macro by a dimensionless-valued macro?

I have attempted to do as follows, but it does not work. \documentclass{minimal} \usepackage{pstricks-add} \psset { xunit=\dimexpr1cm/\psPi\relax, yunit=1cm } \begin{document} ...
0
votes
1answer
966 views

putting \psframebox with the left corner coordinate in PSTricks

Using the auto-generated codes by LaTeXdraw, I put a text box with the following code in PSTricks: \rput(9, -1){\psframebox[linewidth=0.04,fillstyle=solid]{Text Goes Here}} I guess the coordinate ...