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

1
vote
0answers
87 views

To where/whom should I write for an invitation to create a tool for bullet graphs? [duplicate]

I was wondering if creating "bullet gauges" is possible in any LaTeX package, but I didn´t find any. In other question @Jake answered me with a solution for simple graphs in Is there any package to ...
37
votes
4answers
2k views

How to create a Sierpinski triangle in LaTeX?

I have been trying to recreate the following image in LaTeX and for me personally it has to be done with pdflatex. Although answers using pst-fractals From Jake I got a good start which led to the ...
3
votes
1answer
203 views

Can you change the opacity in surfaces/plots in PSTricks pst-3dplot?

Can you change the opacity in surfaces/plots in PSTricks pst-3dplot ? \documentclass[% pstricks,% border=12pt% ]{standalone} \usepackage{pst-3dplot} \begin{document} ...
8
votes
3answers
614 views

What am I doing wrong with PSTricks 3D?

I'm starting doing graphs with PSTricks in 3D, but I can't reach a first good result. What am I doing wrong? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node} ...
1
vote
1answer
132 views

How to put axes with PSTricks?. I use \psaxes… but I have no results [closed]

I want to use \psaxes and \psgrid but it doesn't runs well. What am I doing wring? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node} \usepackage[utf8]{inputenc} ...
10
votes
1answer
650 views

Unsung Heros - PSTricks, TikZ, pgfplots,

While watching presentations (mostly made with beamer) at my university I noticed, most people here use LaTeX to create there presentations which is really nice. (not just for the health of my eyes) ...
3
votes
2answers
210 views

PSTricks-NODES. How can I put 'Ñ' inside a circleNODE?

I want to type Ñ inside a circlenode, but it don´t appear in the final result. At the example, in the 3rd line of code. Are there any solution? \begin{pspicture}(-2,-2)(12,6) %\malla ...
7
votes
1answer
166 views

auto-pst-pdf or pdftricks2?

When I compile a LaTeX documents containing PSTricks code, I normally use the package auto-pst-pdf, but recently I found pdftricks2. Should I use auto-pst-pdf or pdftricks2 and what are the ...
4
votes
1answer
171 views

What parameter is available to remove the thin border around \ncput*?

The objective is to make the background color of the box containing the label transparent. \documentclass[pstricks]{standalone} \usepackage{pst-eucl} \begin{document} ...
3
votes
1answer
240 views

Calculating coordinates with postscript [duplicate]

I want to calculate coordinates for some lines using pstricks. How can I do this? Example: I want something like (0.5*cos(45) + 8, 0.5*sin(45) + 8) and use coordinate pairs like this one to ...
4
votes
2answers
588 views

PSTricks -> How can I compile a graph/figure to obtain an PNG/JPG with background transparent?

How to obtain this graph in a PNG/GIF/JPG graph with transparent background? \documentclass[12pt,a4paper,x11names]{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{amsfonts} ...
1
vote
2answers
502 views

Using pstricks with beamer undefined color model

I am trying to use pstricks with beamer. However everytime I get an error message saying Package xcolor error undefined color model I have googled it and tried different solutions but none worked! ...
4
votes
2answers
247 views

Convex lens (flat end) with pst-optic

Is it possible to get each end of a convex lens to be flat, like this: (I haven't been able to find anything regarding this in the manual.)
2
votes
1answer
169 views

pstricks in MacTeX

I got a new Mac with OS X 10.8.3 and installed MacTeX-2012, but pstricks doesn't seem to work now. Before I used (plain) TeX and chose the TeX and DVI typesetting option. When I looked for help in ...
4
votes
2answers
258 views

pst-circ monospaced labels

How can I make all labels in my circuit monospaced? I found this: Can I change all math output to use monospaced text? but this also affects my equations outside figures. \documentclass{minimal} ...
6
votes
2answers
637 views

PSTricks and \pscustom

Consider the following example: Code % latex filename.tex % dvips filename.dvi % ps2pdf filename.ps \documentclass{article} \usepackage{pstricks} \begin{document} ...
1
vote
0answers
76 views

I get a bad result when creating my first simple image with PSTricks [duplicate]

I get a bad result when creating my first simple image with PSTricks. I get: 0 Errors, 2 Warnings but... bad results. What am I doing wrong? My files can be downloaded at ...
11
votes
2answers
354 views

Relative coordinates in PSTricks

TikZ gives us the ease of using relative coordinates, like in the following example. \documentclass[border=3mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} ...
10
votes
3answers
1k views

Drawing of Sun–Earth–Moon system

Is there a package (or packages) for drawing the Sun–Earth–Moon system with either PSTricks, TikZ, or some other vector graphics language to illustrate Lunar and Solar eclipses, the phases of the ...
1
vote
2answers
142 views

How can I obtain a good compiled file with PSTricks?

I want to use PSTricks for making figures, and I have any code that I know that is good code, because I have viewed the results in images (code compiled well). I'm trying and trying, but I don't ...
4
votes
1answer
983 views

How to draw and annotate a spherical coordinate system

For some lecture script I am preparing I would need some descriptive images showing how to work with spherical coordinates as often seen in textbooks, i.e. a globe and some descriptive arrows ...
8
votes
2answers
510 views

How to plot Feynman diagrams with PSTricks

I need to plot some Feynman diagrams for my research papers. Although I had some experience in plotting with PSTricks, it is still not an easy job to plot Feynman diagrams. Could someone provide some ...
5
votes
2answers
181 views

using CJK text inside mecard produces errors

I am trying to use \psbarcode to generate a MECARD QR code with CJK characters in the name field. tex: \documentclass[12pt]{memoir} \usepackage{CJKutf8} \usepackage{pstricks} ...
10
votes
2answers
249 views

monochrome and pstricks

I am creating a file type images for presentation / written, I have been interested in the monochrome package xcolor, but by using it I have not obtained the expected results, check the documentation ...
3
votes
1answer
755 views

Getting correct labels on axes with PSTricks

Consider the following example. Code % latex test.tex % dvips test.dvi % ps2pdf test.ps \documentclass{article} \usepackage{pst-coil,pstricks-add} \def\turister#1#2{% ...
2
votes
2answers
124 views

illegal unit of measure in tex code created from dot2tex

I am using dot2tex to convert some code from graphviz into LaTeX (PSTricks) drawings. However, I get following error ! Illegal unit of measure (pt inserted). <to be read again> l.21 ...
2
votes
1answer
101 views

Setting labels on one axis in text mode and the other axis in math mode with PSTricks

Consider the following example: Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pst-plot} \def\seere#1#2#3{% \pspolygon[% fillstyle=solid,% ...
4
votes
2answers
348 views

How can I draw a wave diagram in Tikz/PSTricks

Sorry for the undetailed title, I didn't know what to call this. How can I draw the image below in TiKz or PSTricks?
13
votes
1answer
3k views

Isometric paper and drawing on it — with PSTricks

I would like to create a drawing on isometric drawing paper like the following: N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...
4
votes
3answers
662 views

Drawing system architecture in Latex

I want to draw a system architecture as in the picture below Can you help me?
7
votes
0answers
292 views

What are current pitfalls of using LuaTeX over pdfTeX [duplicate]

I know that there are several closely related older posts about LuaTeX. Using LuaTeX as a replecment for pdfTeX 3 LuaLaTeX and PSTricks Migrating from pdfTeX to LuaTeX As of recently I started ...
15
votes
7answers
3k views

How to draw a square wave?

Everything is in the title... I'm trying to draw a simple square wave , but I'm reading that tikz cannot draw the vertical line of the discontinuity... Is there a way to overpass this ? PSTricks ...
5
votes
1answer
304 views

pstricks and admin rights

I am using MiKTeX 2.9 on an XP account with restricted user rights. Unfortunately I was not able to compile a file under xelatex which included pstricks graphics, so I tried everything that I found on ...
5
votes
3answers
485 views

Improvement of PSTricks code for drawing of balls in a triangular box

Consider the following. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{auto-pst-pdf,pst-eucl} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n ...
13
votes
2answers
376 views

How does \uput determine the touching point between the object box and the hypothetical circle?

This question offers 4 bounties of 500 each only for a single answer that fit this question best. I am interested in describing the behavior of \uput for non-zero dimensional objects. Non-zero ...
6
votes
2answers
142 views

Why can the labelsep of \uput not work when represented in RPN?

In order to be more noticeable, I present my comment as a new question here. Background: \uput with the following syntax accept 5 arguments. I have tested the last four arguments that they can ...
5
votes
1answer
141 views

Is it possible to make \pnode obey swapaxes? [duplicate]

Background: We can represent a point with (*<value> {<algebraic expression in x>}) syntax where the ordinate y is obtained by evaluating <algebraic expression in x for the given ...
2
votes
1answer
102 views

How to get a nice code to insert pictures on the right?

In my document must insert many pictures. I don't know how to get a nice code? I tried \documentclass{article} \usepackage{amsmath,amsxtra,amssymb,latexsym, amscd,amsthm} \usepackage{color, graphicx} ...
1
vote
1answer
136 views

A problem with cjkutf8 and pst-eucl

The following MWE cannot be compiled. You can see the error messages by yourself. \documentclass[pstricks,border=12pt]{standalone} \usepackage{CJKutf8} \usepackage{pst-eucl} \def\kor#1{% ...
1
vote
1answer
76 views

Error in PSTricks in circuit macros

I am trying the same way to use circuit macros through the example from Mr. Peter Jan Randewijk (http://staff.ee.sun.ac.za/pjrandewijk/wiki/index.php/M4_Circuit_Macros). I have installed M4 support as ...
4
votes
3answers
78 views

Is it possible to use either less than 3 \rput or just a single \uput to rotate and translate the following object?

Is it possible to use either less than 3 \rput or just a single \uput to rotate and translate the following object? Please don't use other transformation macros because my intent is to learn how \rput ...
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 ...
2
votes
1answer
154 views

What packages do I need to learn as developer to learn LaTeX?

I am a web developer and I often have the need to convert the the webpage to pdf. I have just discovered latex and pretty much liked it. But as there are many packages available , I am not into book ...
9
votes
1answer
74 views

Confusing behavior of uput with non-zero dimensional object

I really don't understand the behavior of \uput with non-zero dimensional object as illustrated below. \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} ...
5
votes
1answer
189 views

PSTricks: Partitioning and filling a circle in pst-pdgr

I am using the pst-pdgr package which uses PSTricks to generate medical pedigrees. I find this package to be very useful, however I ran into a problem with a certain situation I am having. I need a ...
3
votes
2answers
147 views

Definition of constant in PSTricks

Consider the following example, which produces the same figure as here, but the code is generalized. Code % pdflatex -shell-escape test.tex \documentclass{article} ...
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] ...
2
votes
1answer
156 views

Improvement of PSTricks code for drawing of Pantheon

Consider the following example. Code % pdflatex -shell-escape test.tex \documentclass{article} \usepackage{ auto-pst-pdf, pst-eucl, pstricks-add } \usepackage[ locale=DE ]{siunitx} ...
2
votes
0answers
47 views

How to throw an error and abort the compilation for the following scenario? [duplicate]

Objectives: I want to throw exceptions (or error messages) when the following illegal code is invoked. \const[c,any]{temp}{\f[\i]} \const[others]{temp}{\f[\i]} Minimal Working Example: I cannot ...
7
votes
2answers
191 views

How to parse optional arguments without keyval?

The current implementation only supports rounding with the specified digits in the optional arguments. \documentclass{beamer} \usepackage{multido} \usepackage{pstricks} \usepackage[nomessages]{fp} % ...