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
527 views

Trying to use parentheses in a “psbarcode” adds a new line after the first right parenthesis + charset encoding error

I'm trying to use the pst-barcode package to create a vcard contained in a qrcode, and I was surprised to see that a vcard that was working with another programming language to generate my qrcode was ...
1
vote
0answers
107 views

want pdf picture to be smaller than one page [duplicate]

Possible Duplicate: How can I crop included PDF documents? I created a pdf file using PSTricks. It appears to occupy an entire page. When I included it in my LaTeX file using ...
5
votes
3answers
5k views

How do I include PSTricks pictures in a LaTeX document?

I use LaTeX regularly, and several times I have included .eps images. I am learning how to use PSTricks. I have used it to create .ps and .pdf files with images. There is plenty of free information ...
2
votes
1answer
70 views

How to encapsulate a package to rename keys defined in it?

I use pst-eucl package and I am not so happy with the names defined for its keys (because the names are difficult to remember). I want to rename some of the keys for my own purpose by creating a new ...
1
vote
1answer
3k views

PSTricks picture not compiling with pdfLaTeX [duplicate]

Possible Duplicate: How to use PSTricks in pdfLaTeX? What is wrong with this code: \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}(-0.5,0)(2.5,1) ...
3
votes
1answer
406 views

Is there an interpreter available that will convert infix to RPN?

I am starting to use PSTricks a bit more, and have been looking at the \psVolume command defined in pst-func package. My problem is with Reverse Polish Notation. Is there an interpreter available ...
1
vote
1answer
127 views

How to concatenate a set of paths and a set of the reflected paths about a certain axis in a single \pscustom?

I want to draw a symmetric object made of a large number of points. To make the code cleaner, I want to use reflection technique. It means I just specify points on one side of the symmetrical axis, ...
8
votes
2answers
265 views

Is it a bug in \psellipticarc or is my calculation wrong?

This question actually has a connection to my other question that was posted yesterday. The following figure illustrates the problem. Shortly speaking, the cyan dot must always coincide with the ...
5
votes
1answer
212 views

How to change the stroke opacity of the grid?

I need transparent grids on the top of other graphic objects. I know that the option strokeopacity can be used to change the stroke opacity of path. I have made a try as follows, but it cannot work ...
4
votes
3answers
372 views

How to smooth the corner joining the end point of a Bezier curve and the start point of an elliptical arc?

The following figure shows the problem. The corners that are magnified should be smooth (not smooth defined in mathematics). I have changed liftpen from 0 to 2, but the problem still exists. How to ...
1
vote
1answer
701 views

Using Pstricks to draw white boxes with white boarders fails?

I want to overlay one graphic over the another in my latex, however the white background is annoyingly transparent. To over come this I want to draw a rectangle of white behind the overlayed figure. ...
1
vote
0answers
300 views

Matching raster graphics and PS colors [closed]

I have a need to match colors in the originaly raster EPS graphics and background color. Relevant parts of the code: \usepackage[dvipsnames,prologue,table]{pstricks} \usepackage{pst-text} ...
5
votes
1answer
358 views

rnode: strange behavior of relative point translation

I recently discovered a strange behavior of a relative point translation of coordinates given by a node created by \rnode. The docs tell that the coordinate form ([parameter]node) determines a ...
4
votes
1answer
415 views

How to divide a line or a curve into n equal pieces and tick it using PSTricks

When we draw \psaxes they initially have ticks and there's an option which lets us to omit them. I'm trying to put some ticks on my \pscurve, I was wondering is there a way to divide a line or a curve ...
2
votes
1answer
460 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} ...
3
votes
2answers
566 views

Offset for node - psbrace around nodes

I already asked in the question Describing leaves of a tree with an underbrace using pstree/pstricks how to use a underbrace. Now I'd like to use \Tfan instead of \Tf, but the trick with the angle ...
6
votes
1answer
2k views

pspicture environment overlays text in figure float

I have a strange problem witih PSTricks, pst-tree and the pspicture environment. I use a figure float and a simple tree. When I put a pspicture environment around it, the picture is placed above the ...
2
votes
1answer
360 views

Two Pspictures beside each other

I'm trying to put two pspictures beside each other. I also checked the same question and tried the answer about defining two columns, but it didn't work and LaTeX considered those as undefined ...
2
votes
1answer
418 views

Pass TeX macro to gnuplot environment - gnuplottex

I want to pass a TeX macro to the gnuplottex environment gnuplot. The example here is rather trivial but help solving would be appreciated. The end goal is to adapt the gnuplottex code to call ...
5
votes
0answers
383 views

In pst-circ, how do you rotate the op-amp by 90 degrees? [closed]

In pst-circ, how can you rotate the op-amp by 90 degrees? For items that have two terminals like resistors and inductors, they rotate automatically. For the 3 terminal op-amp I'm having trouble. ...
12
votes
3answers
3k views

How to convert a LaTeX file with pstricks code to pdf?

I am new to LaTeX and was writing an article with MikTeX. But when I insert a pspicture and compile the file into pdf format, the pspicture just does not show up. But if I compile the file into ps, ...
9
votes
1answer
270 views

What are the benefits of Sketch for PSTricks users?

When it comes to graphics and TeX I tent to be PostScript biased in part due to my age (TikZ didn't exist when I started learning TeX). Recently, I learned about Sketch. I was wondering what are the ...
2
votes
2answers
361 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: ...
7
votes
1answer
339 views

pst-optic example creates unrecoverable error for Ghostscript

I'm trying to reproduce an example (figure 8) from the pst-optic documentation and it creates an unrecoverable error for Ghostscript (version 9.02). This is on a Mac using TeXShop. I have updated ...
3
votes
3answers
228 views

Connect UML classes both with connectors on the east with pst-uml (or others)

I want to connect UML classes both on the east side with pst-uml. Sadly the documentation is french and /usr/share/texmf-dist/tex/latex/pst-uml did not help neither. Concept (Dia) Current status ...
89
votes
8answers
8k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
4
votes
2answers
422 views

ps2pdf produces /undefined in Blue when setting gridlabelcolor to dvipsnames' Blue

latex-dvips-ps2pdf compilation sequence produces a weird result when I change the grid style. The problem does not happen when I compile the same code with xelatex. ...
2
votes
1answer
982 views

Modifying nodes in a flowchart with psmatrix enviroment

I'm trying to draw some flowcharts with the psmatrix enviroment and I must show my input and output in a parallelogram box . I do not have a problem with the nodes while having the parallelogram in ...
6
votes
2answers
1k views

PSTricks error, but package not loaded

I am working on a textbook, with a looming deadline, so I admit I did not do an exhaustive search for a solution to this situation. I was hoping someone would see this and say, "This is a duplicate ...
5
votes
1answer
551 views

Different graphic formats in a document

I have a large LaTeX document with figures in .eps, .pdf, .png, .tif(f), .jpg formats as well as pstricks code and psfrag fragment. One approach to compile this document is to use an external program ...
12
votes
3answers
23k views

eps figures with pdflatex

In a recent discussion on this site I learned that using \usepackage[pdf]{pstricks} makes it possible to run pdflatex on files containing eps and pstricks files (and psfrag usage as well). Now a ...
8
votes
2answers
410 views

How to express PSTricks point in terms of a shifted variable and function?

For a trivial example, suppose that \f(x) is a quadratic curve defined as follows \def\f(#1){-#1*(#1-8)/4} For each element \ix in {0,1,2,3,4,5,6,7,8} there is a point (\ix,\f(\ix)) that will be ...
3
votes
1answer
192 views

PSTricks raises an error while using RightAngleType=german

I moved some files from one computer to another. The first computer was able to compile all the files without errors. The second computer is not able to compile these files as soon as a I change the ...
9
votes
2answers
631 views

PSTricks transparency does not work with MikTeX's XeLaTeX

I use MikTeX and have updated all packages several minutes ago. The problem is that XeLaTeX produces a weird result where the transparency parts become opaque. It is not caused by preview as ...
5
votes
1answer
445 views

How to change the opacity of PSTricks strokes?

I need to change the opacity of PSTricks strokes, is it possible to do this?
30
votes
3answers
3k views

How to draw tangent vectors and component vectors on a curve

I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have ...
3
votes
1answer
853 views

Nodes in a flowchart with psmatrix enviroment

I'm trying to make a flowchart such as below in psmatrix enviroment using the pstricks package. but the problem is that I don't know how to make the node between the {3-1}(num<=100) and {5-1}(num ...
7
votes
1answer
566 views

How to add text into a QR-Code?

I want to add a text to the QR-Code. I want a small numbers in one of the four black squares. \documentclass[a4paper, 12pt, parskip]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} ...
17
votes
2answers
2k views

Draw a prism in TikZ or PSTricks

Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
2
votes
2answers
1k views

Drawing parallelogram in a flowchart with the psmatrix enviroment

I'm trying to draw flowcharts and I looked at a few packages. As I'm more familiar with pstricks I chose it, and as I checked the examples I'm trying to draw it with the psmatrix environment. Our ...
3
votes
2answers
2k views

EPS output from PSTricks

I am trying to produce an EPS file from a PSTricks code. I am reproducing here the sample working code that I already have here: PSTricks---plotstyle LSM (Least Square method) Here is the modified ...
3
votes
1answer
391 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 ...
1
vote
1answer
729 views

PSTricks and large numbers in graphics

I am trying to use PsTricks to plot large numbers. In Herbert Voss's PSTricks: Graphics and PostScript for TeX and LaTeX book (German edition, 2007, 4th edition), there is the code: ...
25
votes
6answers
1k views

Spirograph, Continuous Rotations in TikZ or PSTricks

Spirograph-like drawings are obtained when one repeatedly draws a closed curve on a continuously rotated canvas. Is there a nice way to make spirograph drawings using TikZ or PSTricks? There is a nice ...
7
votes
3answers
351 views

Which plotting tool is more likely to stay stable in the basics: MetaPost, PStricks or pgfplots?

I have been looking at the three (major ?) tools---MetaPost, PStricks or pgfplots for plotting data together with LaTeX. My experience is this: MetaPost code can demand lots of lines for simple ...
3
votes
1answer
186 views

externalization and text export for tikz and pstricks

A feature similar to what is offered in Inkscape in terms of font export in figures for subsequent pdflatex/latex use would be a great addition to tikz and pstricks I think. We would then be able to ...
4
votes
2answers
1k views

Using PSTricks to plot from a data file

I would like to know how to use PSTricks to read and plot data from a text data file e.g. 8 98826 year 2008 9 104925 year 2009 10 140153 year 2010 11 178414 year 2011 And three further ...
3
votes
1answer
858 views

Using psplot, graphs won't appear on page 2

The following code seems to work (I'm using Texmaker and MiKTeX): \documentclass[12pt,letterpaper]{article} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{center} ...
11
votes
4answers
600 views

Simple line with dots, known coordinates

Are there any easy way to make something similar to this image in tikz, asympote or similar? I know the coordinates, to each of the points =) Ofcourse I know how to solve this, but to do it in ...
6
votes
3answers
444 views

Force auto-pst-pdf or pst-pdf to work with xetex

Is it possible to force auto-pst-pdf or pst-pdf to create PDF images and include them if I’m using xelatex? Background I have to typset a Book that needs OpenType fonts so I choose xelatex. The ...