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

4
votes
1answer
147 views

pst-map2d - unrecoverable error

I am using this piece of code \documentclass{article} \usepackage{pst-map2d} \begin{document} {\psset{xunit=0.5, yunit =0.5} \begin{pspicture}*(-9,-9)(10 ,9) \WorldMap[maillage = false] ...
4
votes
1answer
404 views

Draw 3D lines between points with PSTricks

Consider the following exmaple: Code \documentclass{article} \usepackage{auto-pst-pdf,pst-solides3d} \begin{document} \begin{figure} \psset{ viewpoint=15 -30 11, Decran=10 } ...
4
votes
1answer
2k views

How to use pstool in pdfLatex?

Update: After I adding those --shell -escape commands, when I run the code as below, it still cannot work. \documentclass[pdftex]{memoir} \usepackage{color} \usepackage{pstool} \input macros.tex ...
4
votes
1answer
332 views

powerdot/pstricks for local typesetting mode in Texpad iOS?

I use powerdot to typeset my presentations. Has anybody got experience with running powerdot/PStricks on the local (Ker)TeX environment coming with Texpad (local typesetting mode)? Is this possible, ...
4
votes
1answer
552 views

\psmatrix baseline

I'm using lingmacros' \enumsentence with a \psmatrix inside. \enumsentence{ \psset{linewidth=.5pt} \begin{psmatrix}[rowsep=.2cm,nodesep=.05cm,colsep=.1cm] &\rnode{gm}{grammatical morphemes}\\ ...
4
votes
4answers
4k views

Draw a curve in latex using PSTricks

I would like to draw a curve in latex but when I put this code \psset{algebraic=true} \pspicture(-2,-0.5)(2,2) \psline{<->}(-2,0)(2,0) \psline{->}(0,-0.5)(0,2) \psplot{-1.5}{1}{x*x+x} ...
4
votes
2answers
330 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. ...
3
votes
2answers
57 views

pst-plot graph offset on page when graph has non-zero origin

This question relates to the use of pst-plot with datasets that have x axis values starting from a positive number for example x = 0.5 -> 0.8. In the case below, on two separate computers both ...
3
votes
1answer
265 views

PDFTricks with standalone class

This is a PDFTricks question much more than a PSTricks question. I am trying to use PDFTricks to compile a PSTricks document with the standalone class. I believe I have followed the manual's ...
3
votes
1answer
374 views

Axis specific subgrid devision using \psgrid

If I want to devide a grid into subgrids using PSTricks, I use the command \psgrid with the option subgriddiv=<integer>. This, however, sets the number of subgrids to the same on both axis; is ...
3
votes
1answer
145 views

Cabinet projection in PSTricks

I would like to draw pictures in cabinet projection in PSTricks. This is close to coorType=2, but I need shorten the oblique axis by factor 1/2 rather than 1/sqrt(2). Is there any way how to arrange ...
3
votes
2answers
135 views

Paragraph ended before \pst@@@picture was complete, what is wrong?

Paragraph ended before \pst@@@picture was complete, what is wrong? \documentclass[pstricks,border=12pt]{standalone} \usepackage[nomessages]{fp} \makeatletter % Removing a trailing space in the ...
3
votes
1answer
136 views

Definition of PSTricks constant and improvement of code for drawing of Pantheon

Consider the following. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{ auto-pst-pdf, pst-eucl, pstricks-add } \usepackage{siunitx} \begin{document} ...
3
votes
1answer
184 views

Reading datafile entry by entry

In order to use pstricks in a certain fashion, I would like to access a datafile line by line, inside a multido loop. For example, let's say my file is called Datafile.dat. It contains the (x,y) ...
3
votes
1answer
268 views

Create line between two edges in pstree

Basically I want to create a (dashed) line between two tree edges. I tried cheating a bit and created such line manually between two hidden nodes. The problem is, I don't get them hidden! There's ...
3
votes
2answers
370 views

How to automatically place points names of a polygon on the bisector lines?

Let us consider the simpler one which is a triangle. According to the pst-eucl, the point names will be placed on the bisector lines. The below example is contradictory to the above statement. ...
3
votes
1answer
324 views

postscript code in psplot fails

the following code snippet doesn't work as expected \documentclass{article} \usepackage{pstricks,pst-plot} \pagestyle{empty} \thispagestyle{empty} \begin{document} \begin{pspicture}(10,10) ...
3
votes
1answer
440 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 ...
3
votes
1answer
627 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 ...
3
votes
2answers
586 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 ...
3
votes
2answers
447 views

Why cannot XeLaTeX clip my PSTricks graph plot correctly?

The following screenshot produced by latex-dvips-ps2pdf and the clipping is well done. \documentclass{article} \usepackage{xcolor} \usepackage{pstricks,pst-func} \newpsstyle{gridstyle} { ...
3
votes
4answers
732 views

Is there a package in either PSTricks or Tikz to draw the following diagram?

I took the following figure from JSON official site. Is there a package to do it easily? Anyway, what is the name of this diagram?
2
votes
1answer
70 views

Table Occupies all text area

How can I do this in an easy way using pstricks or tikz , i cant put the text in the right place my MWE \documentclass[a4paper]{article} \usepackage[margin=1.5cm]{geometry} ...
2
votes
2answers
277 views

How can I draw a 3D, three-sided 5-7-9 triangle with TikZ or PSTricks?

I want to draw a triangle with three sides 5, 7, 9 and its incircle in geometry 3D. I used GeospacW. I tried Draw a circle (T) has center origin and has radius r=15/sqrt(11). Take a point A on (T) ...
2
votes
2answers
156 views

PSTricks with standalone class and newpage or pagebreak

Can I use page breaks with the standalone class with PSTricks? Are there limitations? Or is there some mistake in my code? I have been nearly successful in running the code below with PSTricks and ...
2
votes
1answer
388 views

Text Alignment in paragraph box

I'm writing graphic application to generate latex tex. I'm making to generate text box with all it's features. Rotation alignment so on. I generated following cording but It was not Right aligned ...
2
votes
4answers
2k views

PSTricks will not compile

\documentclass[12pt]{article} \usepackage[paperheight=9in,paperwidth=13.24in,margin=0in]{geometry} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \thispagestyle{empty} \psset{unit=1in} ...
2
votes
1answer
1k views

How to run PSTricks in TeXShop

Why can't I run the following command in my TeXShop? \documentclass{article} \usepackage{pstricks-add} \begin{document} \psset{algebraic=true} \pspicture(-2,-0.5)(2,2) ...
2
votes
2answers
116 views

Why does \psPrintValue not allow 2 \rput to work at the same time?

For each compilation, only one of the 2 \rputs can be used. Attempting to activate both will produce a strange output which is only the first \rput can work. \documentclass[border=0pt]{standalone} ...
2
votes
1answer
491 views

How can I draw a landscape picture using PSTricks?

I need to draw a figure using PSTricks which is quite a bit wider than than it is long. Is there anyway I can draw a pic like that in a landscape mode? Right now my pic starts at the top of a regular ...
2
votes
2answers
399 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: ...
2
votes
2answers
413 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
480 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 ...
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
411 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
761 views

Why DOESN'T the color of overlapped region between opaque red and green objects become opaque yellow?

In theory, additive mixing Red color and Green color produces Yellow color. In my mental model, additive mixing opaque Red and opaque Green will produce opaque Yellow. But the following attempt, I ...
1
vote
0answers
67 views

How to add two lines for \rput in radar chart [closed]

I'm able to draw radar chart using code mentioned below: \begin{center} \begin{pspicture}(-4,-4)(4,4) \psset{unit=1.2} \degrees[270] ...
1
vote
1answer
38 views

How to reescale a pstricks image with subcaption?

I have an image and a code, that works well. When I try to scale the PSTRickis image, I have problems-errors How can I resize an image using subcption package?? I put at the end of the code ...
1
vote
1answer
157 views

Compilation error after texlive update

I used to make animated pictures using pstricks and the beamer overlay syntax (eg. using \only<2>{<some pstricks code>}) with the standalone class. Here a MWE which did the work: ...
1
vote
4answers
793 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
1answer
432 views

Is it possible to force auto-pst-pdf to use --hires option when it internally invokes pdfcrop?

What is --hires for? To obtain a better result when cropping a pdf image produced by PSTricks, I use --hires option as follows latex filename.tex dvips filename.dvi ps2pdf ...
0
votes
1answer
86 views

How to make a radian argument still get interpreted in radian when working with \psplot in PostScript form?

When using \psplot in PS form (or algebraic=false) the interval must be specified in degrees. However, sometimes, I need algebraic=false but interval is given in radian. Is it possible to achieve this ...
0
votes
1answer
948 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 ...
0
votes
1answer
343 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 ...