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
1answer
275 views

pst-3dplot and drawing cylinders

I am drawing a cylinder with \psCylinder from pst-3dplot, as shown here in a MWE from the manual: \documentclass{article} \usepackage{pst-3dplot} \begin{document} \begin{pspicture}(-3,-2)(3,7) \...
2
votes
1answer
290 views

high resolution table of numbers

I'd like to design a table of numbers for poster-size printing, say like a multiplication table, so I'm looking for: high resolution, colors, pretty fonts. Does it sound like it could be done in ...
2
votes
1answer
1k views

Example code of PSTricks in MikTeX

everyone, in the past one hour, I have been fighting with the PSTricks package in MikTeX. I found a lot of example code here. For example, I downloaded the gliding ball example tex and I ran it in ...
2
votes
1answer
111 views

Missing data points in PSTricks plot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \psset{xunit=0.1,yunit=0.002} \savedata{\data}[{1924,300},{1928,510},{1932,310},{1936,880},{1948,700},...
2
votes
1answer
124 views

pstricks output garbled on Ubuntu 13.04

I recently installed Ubuntu 13.04 and tried to recompile a pstricks document I had previously created on an older version of Ubuntu. However all the images came out wrong and consist of all the text ...
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 ...
2
votes
1answer
80 views

How to prevent preview from discarding my PostScript constants defined in the preamble?

Considerations: I have to use beamer document class to create a step-by-step tutorial. I have to use preview package to trim everything outside pspicture. Using standalone document class is not ...
2
votes
1answer
582 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
1answer
233 views

pst-eucl bold labels and arc sizes

I got a couple of questions about pst-eucl. How can I make a point label bold? I've tried the following permutations \pstGeonode[PointName=\textbf{A}](1,1){A}(-1,-1){B} \pstGeonode[PointName={\bf A}](...
2
votes
1answer
508 views

Why does \psplot need higher plotpoints when plotting a function on the left of the function's asymptote?

The following animation shows the behavior intuitively. \psplot seems to work in an asymmetric way. It can plot the right part with the default plotpoints but it is not the case when it plots the left ...
2
votes
1answer
314 views

unknown colors using fcol (pst-solides3d)

I am using the pst-solides3d package to draw polytopes in the following way: \begin{pspicture}[showgrid=false](-2,-0.5)(1.5,2.7) \psset{viewpoint=26 10 5,Decran=60} \psSolid[object=new, linewidth=0.7\...
2
votes
1answer
771 views

Extended game-form with egameps.sty: no branches

I'm trying to learn to create extended game-forms with LaTeX, but I don't get branches. The example code I've downloaded is: \documentclass{article} \usepackage{pstricks} \usepackage{egameps} \begin{...
2
votes
2answers
500 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
455 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
355 views

How to compile a ConTeXt input file that contains PSTricks code?

I can compile the following input file using context filename unless I un-comment the PSTricks code. \usemodule[pstricks] \setuphead[title][style={\ss\bfd}, before={\begingroup}, after={John ...
2
votes
1answer
334 views

Problem with pst-dbicons examples

I am currently trying to get the example of the pstricks dbicons package to work but I always end up with errors. I have tried to compile the mondial example (see dbicons-site, sorry i can only put ...
2
votes
2answers
48 views

Cnodeput offcentered when using fractions

Here is the following code: \documentclass[multi,pstricks]{standalone} \usepackage{pstricks-add,amsmath} \begin{document} \begin{pspicture}(2,2) \Cnodeput[radius=.7](1,1){a}{$\dfrac{a_b}{a}$} \psdot(...
2
votes
2answers
33 views

Text Alignment within \psframebox

I'm trying to represent the functionning of a device. It has 2 ports, and make computations on the payload of a data packet. I use pst-node from the PSTricks suite to realise it, b I came across some ...
2
votes
1answer
51 views

Interferencs between PSTricks options

I'm making a building to explain the asymmetric encryption scheme to my students. I'm using pst-sigsys to designe the Block Diagram, and pstricks-add to draw the key : I had problems designing the ...
2
votes
1answer
78 views

How can I make a PSTricks QR-code into a hyperref clickable link?

I'm trying to embed a QR code into a document, but also has it be a clickable link, so that it can be scanned when printed, or clicked when viewed. When I do this \documentclass{article} \usepackage{...
2
votes
2answers
70 views

Running PSTricks image on TeXShop

I am trying to compile the following pstricks image which I asked in another post: \mathversion{sans}\setlength\fboxsep{0pt} \begin{postscript} $\begin{pmatrix} 0 & 0 & 0 & 0 ...
2
votes
1answer
64 views

Pixel glitch poking my eyes (pstricks, beamer)

Using pstricks and beamer I get an eye-poking pixel glitch: the pspicture "wiggles" 1 pixel or so between frames. Not sure how minimized is my example, but here it is: Compiling with pdflatex --shell-...
2
votes
2answers
83 views

Drawing dot mesh on 3dplot

DISCLAIMER: this seems like a bug. If you know where I should post this (message board, forum, bug tracker...) please let me know. I have a relatively simple image consisting of 2 parametric 3d plots ...
2
votes
1answer
58 views

I have an error when using pst-func package [duplicate]

when i use pspicture* to draw a chart this error occurs but plotted. file:framed.sty error:no room for a new \dimen.
2
votes
1answer
110 views

pstricks, psSolid and pstODEsolve II

In pstricks, psSolid and pstODEsolve the problem has been resolved using a function as "output-function" for a solution to an ode (refered to as the real ode) which is itself a solution to an ode, say ...
2
votes
1answer
155 views

Pstricks not working after update MacTeX 2015

After an update on MacTeX, my code stopped working. I am not sure what gives. My preference is to use PDFLaTeX (I am using the shell-escape option) but XeLaTeX is also not working. \documentclass{...
2
votes
1answer
134 views

LaTeX Trellis Diagrams for STBCs

I recently had to draw multiple trellises for space-time block codes (first introduced in this paper; the open-access version is here). I'd like to share the code with you here, so that the work doesn'...
2
votes
1answer
78 views

How to clip a PSTricks image to its boundaries

I have a PSTricks pspicture where certain elements go beyond the boundaries of the Image itself. I tried using \clipbox, but that either completely removed the entire image or didn't change anything ...
2
votes
2answers
92 views

pstricks with “colorfunction” in a tikz loop

Trying to make a spiral of vectors (rotating arrow as a function of x-position) I came across tikz for making a proper loop. Concerning other loop solutions I had problems to apply more complicated ...
2
votes
2answers
104 views

can't draw a line far enough to the right in a pspicture in landscape

I want to use pspicture in a landscape document, but I can't draw a line to the right hand side of the document with \psframe, while \rput works as expected. I've tried to create an MWE to demonstrate ...
2
votes
1answer
481 views

Run msc package with pdflatex instead of xelatex

I am using msc Latex package for building sequence diagrams, but I can only run it with Xelatex, which I don't like, but apparently it's possible I can use pdflatex if I run it with: pdflatex -shell-...
2
votes
1answer
74 views

Pstricks flowchart does not diplays properly

I am trying to build a flow chart using pstricks, the code is below. But when I compile it the resulting PDF does not display the flowchart, in place, it looks like if all the information is ...
2
votes
1answer
479 views

How to embed all fonts with pdfLaTeX in combination with pstricks and auto-pst-pdf

The publisher of my thesis asked me to provide a pdf file that meets two conditions: (1) The pdf file must NOT be created with Ghostscript. (2) All fonts must be embedded in the final pdf file. To ...
2
votes
1answer
70 views

Is it possible to use \only to conditionally enable key-value pairs of a macro?

The following is a trivial example. What I want to learn is how to use \only<> (if possible) to conditionally enable key-value pairs of a macro. \documentclass{beamer} \usepackage{pstricks} \...
2
votes
1answer
62 views

Why do we need to buffer the pst-eucl nodes before passing them to \rput?

Behavior of nodes defined pst-eucl seems to be different from those defined in pst-plot. In the section titled Direct node, I attempted to create a square with pq as it base inclined at a slope of ...
2
votes
1answer
94 views

What causes \psxTick to no longer work? [closed]

I am using the latest pst-plot. When compiling the following, I got some errors as follows. MWE \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \psset { xtrigLabels,...
2
votes
1answer
105 views

What causes the polar plot of an ellipse to look different from its parametric plot? [closed]

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset { urx=15pt, ury=15pt, llx=-5pt, lly=-5pt, xAxisLabel=$x$, yAxisLabel=$y$, algebraic, ...
2
votes
2answers
261 views

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid?

How to make the main ticks of \psgraph get aligned with the main grids of \psgrid? \documentclass[pstricks,border=0bp,12pt,dvipsnames]{standalone} \usepackage{pst-plot} \usepackage[nomessages]{fp} \...
2
votes
1answer
161 views

How can I use unicode characters as identifiers in PostScript? Is it impossible?

I feel "uncomfortable" with the existing constants below (which are already defined in PSTricks) Euler = 2.718281828 Pi = 3.141592654 because I think using e and π is much more natural. My ...
2
votes
2answers
168 views

Why doesn't PStricks put nodes where I want?

I was surprised when I saw this result! I want to put, starting from my lower left corner, a pink, a red, and a blue node, BUT I was surprised when I saw that the three nodes started from the upper ...
2
votes
1answer
75 views

pst-node help formatting

I'm trying to center the fifth row and make the $\{...\}$ closer together, unfortunately I don't know much latex. \psset{nodesep=2pt} \newpsstyle{DblDash}{linestyle=dashed, dash=1pt 1.5pt, doubleline}...
2
votes
1answer
92 views

Why can my infix-to-postfix operator not produce a correct result?

Why does \pstGeonode(!{15/sqrt(25)} I2P 45 PtoC){B} NOT produce the same output as \pstGeonode(!15 25 sqrt div 45 PtoC){A} where \pstVerb{/I2P {exec AlgParser cvx exec} def}% ? Minimal ...
2
votes
1answer
97 views

pst-pulley produce big red dots

Based on the document I use the pst-pulley package by XeLaTeX in TeX Live 2013, but (without grid) produces the big red dots. What is wrong? Here the codes: \documentclass[11pt]{article} \...
2
votes
1answer
80 views

How to separately access the abscissa and ordinate of the current point?

Consider the following code. \documentclass[pstricks,border=12pt]{standalone} \SpecialCoor \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \pscustom { \psline(1,0) \...
2
votes
1answer
132 views

Compiling example provided with pst-dbicons package does not compile

I am trying to create an ER diagram using pst-dbicons package (PSTricks). However, on trying the example tex file, I get an error on line 55: "Undefined control sequence". I am pasting the example ...
2
votes
1answer
182 views

Vertical grid lines not showing when using `xticksize`

Consider the following example: \documentclass{article} \usepackage{pst-coil,pst-plot} \begin{document} \begin{figure} \centering \psset{unit=0.6} \begin{pspicture}(-2.0,-0.7)(18.2,11.2) % ...
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 { /...
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[...
2
votes
1answer
150 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,% ...