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
389 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
436 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
615 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
621 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
845 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
570 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
551 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
311 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
739 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
371 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
327 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
266 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
430 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
560 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
370 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
345 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
294 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
311 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
382 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
878 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
526 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
726 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
154 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
410 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
892 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
668 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
169 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
272 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
535 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
929 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 ...
1
vote
4answers
729 views

How to get started with plain TeX

I am using TeX Live 2010 on Windows 7. I have no experience to compile a plain TeX input file. Is my input file below correct? % gettingstarted.tex \input pstricks \topmargin=-72.27pt ...
1
vote
2answers
852 views

How can I create PDF & EPS exactly as big as my PSTricks picture but without using pdfcrop?

This question is made to accompany the existing question: How can I create a pdf document exactly as big as my tikz picture?. Constraints: It is not allowed to use pdfcrop by any means whatsoever. ...
5
votes
1answer
679 views

Some extensions to pst-solides3d

I asked this set of questions (actually 2 of the 3 below) on the PSTricks mailing list a couple of days ago, but have since heard that Herbert's "to do" list is quite lengthy. So, I'm distributing ...
2
votes
1answer
401 views

How to improve accuracy when working with PSTricks?

I have tried this with TikZ that produces the same issue, you can try Leo's solution here. In other words, this issue is NOT specific to PSTricks. The hidden idea is to avoid cropping with pdfcrop ...
2
votes
1answer
156 views

\psboxfill cannot work with a starred \pspicture

When \psboxfill encloses \pspicture*, I got a strange result as follows. \documentclass[cmyk]{minimal} \usepackage{pstricks,pst-fill} \psboxfill{% \psset{unit=1pt} \begin{pspicture*}(1,1) ...
4
votes
2answers
315 views

How to speed up rendering a PSTricks object with a custom fill

Because PSTricks does not provide us with dotted and x-like fill styles, I must create my own custom fill style using pst-fill package. However, the rendering is too slow and sometimes out of memory. ...
0
votes
2answers
646 views

What is the file name of Helvetica font used by PSTricks grid labels?

This is related to Herbert's comment in answer for Which one is recommended to get cropped PDF and EPS graphics?. He said I can use dvips -h hv______.pfb input.dvi to embed font to the resulting PS ...
9
votes
5answers
930 views

How to draw this diagram with minimum effort?

I want to save my time by avoiding manual calculation if possible. Could you help me to simplify the following code snippet? \documentclass{minimal} \usepackage{pst-node} ...
0
votes
1answer
326 views

How to remove PSTricks dictionary or library codes in an EPS file produced by dvips?

I have 2 mutually-exclusive methods to produce cropped PSTricks graphics in EPS format: Using latex input.tex followed by dvips input.dvi -E -o output.eps. Or using latex input.tex followed by dvips ...
1
vote
1answer
295 views

Automation of generating pstricks graphics with texclipse before pdf generation

When using eclipse with pdflatex I want it to create the pstricks Images automatically. The classical way (without eclipse or texlipse) would be: latex test.tex dvips -o test-pics.ps test.dvi ps2pdf ...
0
votes
1answer
110 views

How to prevent my PSTricks codes from interfering the imported EPS files?

My main input file not only contains PSTricks codes but also imports EPS images produced by epstool from standalone PSTricks input files compiled with dvips input.dvi -E -o output.eps. I am worried ...
13
votes
3answers
938 views

Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code: \documentclass[a4paper]{article} \usepackage[pdf]{pstricks} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(0.7in,0.7in) ...
7
votes
1answer
877 views

PSTricks to SVG

I would like to make block diagrams using the pst-sigsys package (as demonstrated here: http://squobble.blogspot.com/2009/12/drawing-beautiful-block-diagrams-in_04.html). I can do that and export to ...