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

Automation of generating pstricks graphics with texclipse before pdf generation

When using eclipse with pdflatex I want it to create the pstricks Images automatically. The classical way (without eclipse or texlipse) would be: latex test.tex dvips -o test-pics.ps test.dvi ps2pdf ...
0
votes
1answer
110 views

How to prevent my PSTricks codes from interfering the imported EPS files?

My main input file not only contains PSTricks codes but also imports EPS images produced by epstool from standalone PSTricks input files compiled with dvips input.dvi -E -o output.eps. I am worried ...
13
votes
3answers
943 views

Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code: \documentclass[a4paper]{article} \usepackage[pdf]{pstricks} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(0.7in,0.7in) ...
7
votes
1answer
880 views

PSTricks to SVG

I would like to make block diagrams using the pst-sigsys package (as demonstrated here: http://squobble.blogspot.com/2009/12/drawing-beautiful-block-diagrams-in_04.html). I can do that and export to ...
1
vote
1answer
492 views

Missing text from boxes in block diagram (pst-sigsys/pstricks)

I am trying to make a block diagram using pst-sigsys/pstricks. The text however isn't in the boxes but is stashed on the left. I absolutely run out of ideas what might be causing it to happen. Any ...
1
vote
1answer
160 views

Is there a formula to setup the smallest rectangle enclosing a PSTricks grid and its labels?

I want to minimize the size of the red rectangle enclosing a PSTricks grid and its labels. How to do this? \documentclass{minimal} \usepackage{pstricks} \newpsstyle{gridstyle}{gridlabels=5pt} ...
1
vote
1answer
712 views

How to show grid labels when using starred pspicture?

I need grid labels even when I use \pspicture*. How to do this? \documentclass{article} \usepackage{pstricks} \psset{linecolor=red} \begin{document} \figure[h]\centering ...
5
votes
3answers
995 views

Why does LaTeX not embed imported EPS images into the DVI file?

Experiment: Compiling a file, having PSTricks code inside, in LaTeX (latex.exe), results in a self-contained DVI, where this PSTricks code is embedded. But if the file has EPS images, the resulting ...
1
vote
1answer
415 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 ...
2
votes
1answer
299 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 ...
7
votes
1answer
2k views

How to place in a document a VCard using a psbarcode?

I would like to put a QRCode that contains contact information (VCard). However I don't know how to encode the newline character so VCard is correctly read. Here is a sample document with QRCode ...
3
votes
2answers
427 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} { ...
25
votes
6answers
2k views

Are there examples written in PSTricks and they cannot be done using TikZ?

I am comparing the cores of PSTricks with TikZ and their capabilities. I am not considering whether or not a library has been implemented. Are there examples written in PSTricks and they cannot be ...
3
votes
2answers
3k views

Vertical alignment with subfig and pstricks

I'm working with pstricks to add illustrations to a paper, as I found that it allows me to save much time compared to editing files with dia/xfig/visio/etc. and including pngs. But I'm having a few ...
2
votes
1answer
1k views

Error with pstree

\documentclass{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} \begin{document} \pstree[levelsep=35pt]{\Tcircle{10}} { \Tcircle{11} \Tcircle{21} } \end{document} Why ...
3
votes
1answer
373 views

Empty page inserted with pspicture environment

From the question How can I design a book cover, I tried to compile the code from Dean Serenevy. \documentclass{article} \usepackage[]{graphicx} \usepackage{pstricks} \begin{document} ...
3
votes
1answer
2k views

Vertical alignment of subfigures

So I have a document which in a lot of places uses one pstree (part of the pstricks package) and a simple tabular side by side...I do this with subfigures. The problem is that because the pstree image ...
29
votes
1answer
2k views

Topological Quantum Field Theory diagrams with pstricks or tikz

This question led to a new package: tqft — Blog: The TQFT Package I'm going to write a brief note about topological quantum field theories, so I need to draw some copies of the "pair of ...
9
votes
2answers
780 views

PostScript operators and Reverse Polish Notation for plotting using PSTricks

I know that the PSTricks packages for plotting, pst-plot and pst-3dplot, use PostScript operators and Reverse Polish Notation. Is there a comprehensive list of all the operators available, with a ...
1
vote
1answer
174 views

Highlighting/Bolding Tcircle elements

So I am using PSTricks PSTree package to build a tree using TCircle ... now I want to bold out some branches by making the lines of the circle and the connecting lines thicker ... can I do this ...
3
votes
4answers
708 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?
1
vote
1answer
357 views

two psframe at same height using pstricks

I'm trying to create two psframes at same height using the following code \documentclass[a4paper]{article} \usepackage{pstricks} \begin{document} \psframe(-3,-1)(5.5,3) %frame1 \psframe(5.5,-1)(14,3) ...
12
votes
2answers
2k views

Which package can easily write a graph, as an arbitrary curve or area, just for indication

Which package can easily write a graph, as an arbitrary curve or area, just for indication? The circle and ellipse don't be considered for their particular shape. TIKZ's Bézier curve is too ...
5
votes
1answer
2k views

xelatex compilation of pstricks fails

I just needed to compile the following lines (minimal example) \documentclass{standalone} \listfiles \usepackage{pstricks} \begin{document} Ein \begin{pspicture}(-5,-3)(5,8) \psline(0,1)(2,3) ...
3
votes
1answer
373 views

Problems while installing pst-barcode

I tried to install pst-barcode, but after moving the files to /usr/share/texmf/dvips/pstricks/ and running texhash, I still can't use them, and have to enter the files manually when compiling the ...
2
votes
1answer
291 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
1answer
1k views

pstricks and beamer compilation with xelatex results in xkeyval error

I'm creating some slides and need to include a pstricks image. I'd like to compile the file via xelatex. My minimal example reads \documentclass[ngerman,xcolor=pst]{beamer} ...
7
votes
2answers
1k views

3D-plotting sine integral (PSTRICKS)

I'd like to build up a 3D-Plot (based on pst-solides3d), where the function looks like x=u, y=v and z=\int_0^x \frac{\sin\left(\pi t \right)}{\pi t} - \frac{1}{3} ...
15
votes
2answers
8k views

Using psfrag with pdflatex

Is there any way of using psfrag with pdflatex? It seems fairly similar to the problem of using pstricks with pdflatex. Do they both depend on the same things, or does psfrag include pstricks? Can I ...
3
votes
1answer
342 views

Problem with parbox using pstricks and ticket package

I'm trying to make cards for a game. I have a problem with \parbox. It's working ok only if the \parbox in the previous picture is empty. If it's not the contents of \parbox are shifted down. Here ...
4
votes
3answers
833 views

Draw tangents from point to ellipse using PSTricks

I'd like to create an ellipse (using psellipse, say). Call it E. And I'd like to specify a point P outside E. And then I'd like to construct, using PSTricks, the two rays starting at P and tangent ...
6
votes
2answers
503 views

What is the simplest way to draw the solution of a simultaneous inequalities using PSTricks?

Objective I want to draw a region in Cartesian coordinate system that satisfies a set of inequalities. How to do this in the simplest way? Minimal Code \documentclass{minimal} ...
0
votes
2answers
443 views

Why does \rput(4,3){\psscalebox{1.5}{A}} differ from \psscalebox{1.5}{\rput(4,3){A}}?

I just tried this code to check whether both cases result in the same output. Apparently they are not identical. Why? \documentclass[dvipsnames,cmyk]{minimal} ...
3
votes
1answer
505 views

How to define a new PSTricks object that is not a redefinition of a built-in PSTricks object?

Scenario I want to create a new PSTricks object, e.g., \myBatLogo[<key-val options>]{}{}...{} that is not a redefinition of a built-in PSTricks object. It means that any redefinition as ...
0
votes
1answer
374 views

How to avoid this error when redefining `\psgrid` to be `\relax`?

Scenario \pspicture with showgrid will be regarded as a PERMANENT grid. \psgrid in \pspicture WITHOUT showgrid will be regarded as a TEMPORARY grid. If I want to remove all temporary grids, I just ...
6
votes
2answers
1k views

LuaTeX and graphics

I'd like to know what LuaTeX offers in terms of graphics: I'm mostly interested in pstricks and tikz/pgfplots. Could it help tikz to run faster? Would it help tikz to handle 3D non-parallel figures? ...
55
votes
3answers
38k views

How to use PSTricks in pdfLaTeX?

I thought that PSTricks package was not possible to use in pdfLaTeX but the user Dima claims otherwise. How can I force pdfLaTeX to use PSTricks then?
2
votes
1answer
718 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
1answer
289 views

How can I produce the reflection of a pstricks image in pstricks?

I defined some small pstricks makro: \begin{pspicture}(-5,-5)(5,5) \newcommand{\leftwall}{% \psline(-4,-4)(-4,4) \multips(-4,-3.5)(0,0.5){14}{\psline(0,0)(-1,1)} } \leftwall ...
3
votes
3answers
510 views

How to increase the dot resolution of implicit curves produced by `\psplotImp`?

Normal View Zoomed-In View "Minimal" Code Snippet \documentclass[11pt,rgb]{article} \usepackage{pst-func} \renewcommand\pshlabel[1]{{\color{gray}\tiny#1}} ...
2
votes
1answer
636 views

How to manage a document with a huge number of PSTricks figures?

I am writing a mathematics book that makes use of a huge number of PSTricks pictures. For the sake of re-usability and maintaining separation of concern, I always put the self-contained PSTricks code ...
2
votes
2answers
179 views
2
votes
1answer
231 views

Is there a simpler way to obtain the reference points enclosed by \rput frame?

Is there a simpler way to obtain the reference nodes shown as dots below? \documentclass[dvips,dvipsnames,rgb]{article} \usepackage{pstricks,pst-node,graphicx} ...
1
vote
1answer
197 views

How to find the intersection point between the invisible frame of `\rput` and the line segment of `\ncline`?

Points enclosed by black ovals are the intersection points between the frame boundary of \rput and the line segment of \ncline. How to find these points? The screenshot above is copied from ...
1
vote
1answer
153 views

Unlike PGF/Tikz uses the middle part of stroke as the reference, what is the reason for choosing `dimen=outer` as the default in PSTricks?

The question has been written in the title above. Why not dimen=middle ?
15
votes
4answers
1k views

Can we imitate the behavior of \pscurve in TikZ?

Here it is with the pictures. PSTricks has the very neat command \pscurve. The manual gives the example \pscurve[showpoints=true]{<->}(0,1.3)(0.7,1.8) (3.3,0.5)(4,1.6)(0.4,0.4) which yields ...
15
votes
4answers
1k views

Can PSTricks or others draw the 4 common tangent lines of 2 “disjoint” circles without having to do extra calculations?

There are two disjoint circles. Their centers and radii are given. Without doing extra calculations, can we draw the 4 tangent lines using PSTricks (preferred) or others? I asked many Illustrator, ...
3
votes
3answers
1k views

Is there a way to put two pspicture's side by side?

I am making slides using Beamer, and I am trying to have to \pspictures side by side. However, no matter what I do they end up one under the other, even if I use minipage. What is the right way to ...
5
votes
2answers
412 views

Does TikZ use the same internal mechanism as PSTricks to produce vector based pdf outputs?

Currently I am using PSTricks. From this forum, I see many people using TikZ. I have done a little exploration that TikZ can produce vector images in PDF format only in one step using pdftex. To ...
72
votes
11answers
8k views

What are the advantages of TikZ/PGF over PSTricks?

The first time I saw the PSTricks' 3D Galleries, I immediately felt in love with it. I have spent much time to learn and use it. In this forum, I see many people using TikZ. I have not used TikZ yet. ...