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

3
votes
1answer
308 views

How to draw a ellipse figure in beamer at desired location? How to put a .eps logo figure at the right bottom corner?

Here is the code: \documentclass{beamer} \usepackage{xeCJK} \usepackage{tikz} \usepackage{pstricks} \setCJKmainfont{SimSun} \usetheme{CambridgeUS} \setbeamertemplate{...
3
votes
1answer
412 views

Draw an implicitly defined surface in 3D

I want to visualise the following set as a subset of [0,\infty)^3: What's the most efficient way to do this? I am thinking of either TikZ or psTricks.
5
votes
1answer
556 views

Compiling the latex->dvips->ps2pdf with dvips -Ppdf

The documents I create heavily depend on postscripts (I use pstricks quite a lot). I've had some issues with resolution, and it's been recommended to try using dvips -Ppdf. But recently, I've been ...
6
votes
1answer
300 views

pshlabel and log graphs: the 10^ disappear

I would like to reduce the label size for all my graphs (using pstricks). I used the following code: \makeatletter \def\pst@@@hlabel#1{{\small #1}} \makeatother which works fine for my ...
1
vote
1answer
127 views

DVISVGM and PSTricks

EPS file conversion is not satisfactory with dvisvgm because labels are not displayed. \documentclass[a4paper,11pt]{article} \usepackage{etex} \usepackage[utf8]{inputenc} \usepackage[T1]{...
6
votes
2answers
530 views

Error “Illegal unit of measure” occuring when using PSTricks

Consider the following example: \documentclass{article} \usepackage{pstricks} \newcommand*\sleep[3]{% \psframe[fillstyle=crosshatch*](6 #1 mul 37 sub 0.5)(6 #1 mul 36 sub 0.5 5 #2 div add) \...
5
votes
2answers
204 views

Changing baseline to top for pspicture

I tried to align text with the top of a figure. The pstricks manual says that I can specify an option to the pspicture environment, but this somehow does not work. I get an error message. ! Package ...
4
votes
1answer
195 views

How to use pstricks package within beamer? I know the pure English typseting method using pstricks in beamer, but failed xelatex pstricks beamer

In order to display simple figure, I began to learn pstricks package. I copied a piece of sample code to a beamer file. When I compile it, something goes wrong. How can I fix it? Process latex->...
2
votes
1answer
213 views

TeX4ht and PSTricks

I tried to compile the code below with mk4ht htlatex file.tex 'xhtml, charset = utf-8 pmathml' '-cunihtf-utf8-cvalidate' Formulas and text are transcribed, but not graphics. How to solve this ...
1
vote
1answer
289 views

same fontsize in plot in revtex document as text

I am making a figure in PSTricks for a RevTeX document. A MWE of my figure is the following \documentclass{article}[28pt] \usepackage{pstricks, pst-node, pst-plot, pst-circ} \usepackage{moredefs} \...
4
votes
1answer
193 views

Polygons being clipped during pst-solides3d projections

I'm having trouble doing something that seems very simple, so I'm hoping that I've made a naive mistake. I'm attempting to project several polygons onto a plane using the \psProjection feature in ...
4
votes
1answer
171 views

Transmission grating in pst-optexp

It seems that transmission gratings have not been implemented yet in the pst-optexp. Does anyone know whether there exists a workaround?
7
votes
2answers
355 views

Rotate an arrow around its center

I want to draw this with tikz, I have been trying to do it with tikz for awhile but didnt get far, with suggestion I moved to PsTricks. This is what I have so far \documentclass[pstricks,border=...
13
votes
4answers
849 views

pst-optexp: draw prism compressor

I wanted to draw a prism compressor with the respective beamlines. The general setup works, but the exact control of the beam alignment within the prisms fails. Here is the code that I have so far: ...
4
votes
1answer
468 views

Latex Block diagramm / draw Range

I want to use a Block diagram like in this document on page 9: http://texdoc.net/texmf-dist/doc/generic/pst-bar/pst-bar-docDE.pdf But I fail at doing this. At the moment I am using this: Grouped bar ...
4
votes
2answers
185 views

\noindent after figure not working

Consider the following example: \documentclass[danish,a4paper,12pt]{article} \usepackage{babel} \usepackage[hmargin=2.4cm,vmargin=3cm]{geometry} \usepackage{pstricks} \begin{document} \begin{...
2
votes
1answer
97 views

Different outputs from two different syntax that should produce the same output

A node A will be constructed by using 2 syntax. \pnode(!2 3 0 p2c exch 3 add exch 2 add){A} \pnode[3,2](!2 3 0 p2c){A} Each constructs the node A by translating a point (!2 3 0 p2c) (which is on ...
2
votes
1answer
119 views

Some ticks get lost when increasing the domain, why?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{plotpoints=51} \begin{document} \multido{\iAngle=351+1}{10}{% \begin{pspicture}[showgrid](-4,-3)(4,3) \pstVerb { /...
3
votes
1answer
121 views

What is the difference between pscurvepoints and curvepnodes?

What is the difference between \pscurvepoints (in pstricks-add) and \curvepnodes (in pst-node)? \documentclass[pstricks]{standalone} \usepackage{pst-node} \usepackage{pst-plot} \usepackage{pstricks-...
2
votes
1answer
1k views

Problem Making a Background with \psframe in a0poster

Have the following header for a poster \documentclass[portrait,a0b,final]{a0poster} \usepackage[utf8]{inputenc} \usepackage{epsfig} \usepackage{multicol} \usepackage{pstricks,pst-grad} \usepackage[...
4
votes
1answer
224 views

Why does pstricks have an effect on tikz' draw opacity when used within beamer?

\documentclass{beamer} %\documentclass{article} \usepackage{pstricks} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{frame}{} \begin{tikzpicture}[start chain] \node[...
5
votes
2answers
479 views

Drawing boxplots with pst-plot

I'd like to draw in the same frame a given number of box plots with the macro \psBoxplot from the pst-plot package. I'm retrieving the sampled data from as many files as different box plots by using ...
3
votes
1answer
160 views

Documentation for changes to pst-eucl package

I just noticed today that when I use the eucl package, I get the following message: (/usr/local/texlive/2013/texmf-dist/tex/generic/pst-eucl/pst-eucl.tex `PST-Euclide v1.47, 2013/03/12 (Dominique ...
7
votes
1answer
171 views

Condition for drawing of axis labels in PSTricks

Consider the same example as here (but now I actually have a problem): % latex filename.tex % dvips filename.dvi % ps2pdf filename.ps \documentclass[ a4paper, dvipsnames ]{article} \usepackage{...
1
vote
0answers
285 views

Improved PSTricks figure for everyone interested [closed]

First: This post might not be appropirate for this site, so feel free to close it if necessary. I have improved on the drawing by Thomas Söll from here and I thought someone might find it useful. % ...
15
votes
2answers
703 views

How to get the intersection nodes of 2 arbitrary curves?

This question led to a new package: pst-intersect In my experience, there is no macro in PSTricks to get the intersection nodes of two curves. Is it possible to do this in PSTricks? Or Am I am ...
1
vote
2answers
47 views

How to use \Pnodecount when there are more than one \curvepnodes invocations?

Assume that there are 2 \curvepnodes macros invoked as follows. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node,pst-plot} \begin{document} \begin{pspicture}[showgrid](-4,-3)(4,...
6
votes
1answer
625 views

Is it possible to implement an equivalent syntax of (*x {\f(x)}) but the ordinate is specified first?

PSTricks provides us with a useful syntax (*x {\f(x)}) to specify a point with abscissa x and ordinate \f(x). For example, let \def\f(#1){#1+.5}, a point (1,1.5) can be written as (*1 {\f(x)}). I ...
3
votes
2answers
306 views

PSTricks : Power plant and Energy transfer schematic not scalable

Consider the following example by Thomas Söll at Manuel Luque's PSTricks blog: % latex filename.tex % dvips filename.dvi % ps2pdf filename.ps \documentclass[ a4paper, landscape, 12pt ]{article}...
3
votes
1answer
201 views

TeX file with PSTricks figure won't compile

Consider the following file which is a modified version of the file Kernkraftwerk-DWR-v2-ps2pdf.tex: http://gratisupload.dk/vis/698163 (It contains more charachters than I'm allowed to enter here.) I ...
3
votes
1answer
167 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 ...
1
vote
0answers
60 views

DVIView and PDFView [duplicate]

I have a problem, that when I use DVIview I get the correct picture but no result with PDFView. Maybe I don't use a necessary package or the problem in the pdf program in my computer! here is an ...
6
votes
2answers
747 views

economic circuit

Having seen some examples of electronic circuits, I would like to make an economic one like this one: I haven't found any relevant example, so would like your help. In case that somebody is ...
4
votes
1answer
294 views

\pscharpath within align environment

Consider the following example: % pdflatex -shell-escape filename.tex \documentclass{article} \usepackage{mathtools} \usepackage{auto-pst-pdf,pst-text} \newcommand*\R{\pscharpath[linewidth=0.25\...
7
votes
2answers
560 views

psplot: square root of negative number

Is there a possibility to have psplot automatically ignore an invalid range? Example: x 2 sub sqrt This cann't be plotted requesting \psplot{0}{10}, but only when using \psplot{2}{10}. Of course ...
0
votes
1answer
1k views

How to mark/round an element of a table/tabular?

I´m creating a table for simplex, and I want to create a circle around a number in a table. How can I make this in LaTeX? I use PSTricks, but I prefer don´t create an image and a table/tabular ...
1
vote
0answers
88 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 ...
50
votes
5answers
3k 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
328 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} \begin{pspicture}(-3,-1.5)(...
8
votes
3answers
1k 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} \usepackage{pst-...
1
vote
1answer
168 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} \usepackage{...
11
votes
1answer
1k 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
361 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 \rput(-1,-1){$...
7
votes
1answer
191 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
262 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} \begin{pspicture}[showgrid=...
3
votes
1answer
481 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
972 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
673 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
393 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
391 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 ...