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

PSTricks LaTeX to Readable LaTeX Code Conversion

I have opened the Editable PDF file in Inkscape, Version: 0.48 and saved as LaTeX with PSTricks macros. Now i have the LaTeX file with PSTRICKS code. I am not familer with pstricks package and how to ...
1
vote
1answer
180 views

Auctex previews

I am using PSTricks and trying to generate an inline preview with auctex for part of a document. This works fine if I surround the whole thing in $ signs like $ \begin{pspicture} ... ...
1
vote
1answer
41 views

How to pass a node to \psGetDistance?

I want to handle the bug mentioned in my previous question. However, the following MWE produces an error. My prediction is that \psGetDistance seems to reject nodes as its arguments. ...
1
vote
1answer
135 views

How to define a global constant or a global RPN function without \pstheader?

I want to put \pstVerb { true setglobal globaldict begin /side 4 def /potocar {2 copy cos mul 3 1 roll sin mul} bind def end false setglobal } in the preamble instead of in ...
1
vote
1answer
74 views

How to use a macro as the point arguments of both pspicture and \psframe?

I forgot the rule to use \expandafter such that \rect can be used as the point arguments of both psframe and pspicture. \documentclass{standalone} \usepackage{pstricks} \def\rect{(-3,-3)(3,3)} ...
1
vote
2answers
170 views

How to express a polar coordinate for a macro that only accepts space-separated values?

\psElectricfield only accepts a coordinate in space-separated values as follows. For example, a charge of -0.1 unit at (-1,0) is written as [-0.1 -1 0]. I have attempted to write in PS notation but it ...
1
vote
1answer
304 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 ...
1
vote
1answer
363 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) ...
1
vote
1answer
306 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 ...
1
vote
1answer
201 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
2answers
530 views

How to plot a family of curves using PSTricks?

I would like to have the command line arguments in PSTricks to sketch the curve $$x^{2}-y^{2}=n^{2}$$.
1
vote
1answer
49 views

Align horizontal tree node labels in pstree

I'm trying to create a listing, with pstricks, that has its entrys on top of the line. Unlike normal tree nodes/leaves, the entry is not at the end. The clue is now to left (or right) align all ...
1
vote
1answer
50 views

PSTricks compilation problem

The following problems occurred a week ago. Everything was fine before and the TeX file does compile on my friends computer but does not compile anymore on mine. When I compile my TeX file I get ...
1
vote
2answers
234 views

PSTricks not working in TeXlive 2014

I have TeXlive 2014 recently installed on a new machine. Everything seems to be working smoothly EXCEPT for PSTricks. I am testing with minimal code such as \documentclass{article} ...
1
vote
2answers
104 views

PS-Tricks error Undefined control sequence. [\psline{->}]

I get the error Undefined control sequence. [\psline{->}] when i try to run the code \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-all} \usepackage{mathtools} ...
1
vote
1answer
38 views

How to reescale a pstricks image with subcaption?

I have an image and a code, that works well. When I try to scale the PSTRickis image, I have problems-errors How can I resize an image using subcption package?? I put at the end of the code ...
1
vote
1answer
157 views

Compilation error after texlive update

I used to make animated pictures using pstricks and the beamer overlay syntax (eg. using \only<2>{<some pstricks code>}) with the standalone class. Here a MWE which did the work: ...
1
vote
1answer
168 views

pstricks and tikz packages conflicting with other packages?

Why is it that whenever I add \usepackage{pstricks} or \usepackage{tikz}, I always get the error below? Latex Error: /usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty:60 TeX ...
1
vote
1answer
39 views

Psplot position on page

How can i move \psplot on custom position without pstpicture? \psset{yunit=28pt,xunit=28pt} \psplot[algebraic=true,linewidth=1pt,plotpoints=500]{0}{4.7}{(-x/5)*cos(4*x)} ...
1
vote
1answer
84 views

How to cancel the effect of \translate when I want to draw a radial line from the untranslated origin to the current point?

Consider the following MWE first. \documentclass[pstricks,border=12pt]{standalone} \SpecialCoor \usepackage{multido} \begin{document} % draw the tangential lines ...
1
vote
1answer
167 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} ...
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! ...
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 ...
1
vote
1answer
138 views

Multiple pspicture environments breaks when using \pstMarkAngle

I have a pretty weird problem. If I use multiple pspicture environments in the same document, the first one gets rendered, but the other breaks. For example, \begin{pspicture}(-3,-3)(3,3) ...
1
vote
1answer
151 views

PSTricks, node in foreground

This is my code: \psmatrix[colsep=0.45cm,rowsep=0.8cm,mnode=circle] 1,2&&1,3\\ &[mnode=none]2,3,4,5$|$1\\ 1,5&&1,4 \ncline[linestyle=dashed]{1,1}{1,3} ...
1
vote
1answer
141 views

How to pass a node as the angle argument of \uput?

I am attempting to solve my own problem How to rotate the label such that its base line is parallel to the bisector? with the most elegant approach, i.e., passing a node as an angle argument of \uput. ...
1
vote
1answer
232 views

newcommand object not included in pstricks picture

I use to have old latex docs that included pstricks pictures. I had to define objects that I could reuse several times in the pictures and did this with a newcommand/def (and everything was fine). I ...
1
vote
1answer
145 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, ...
1
vote
1answer
507 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
163 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
190 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 ...
1
vote
0answers
90 views

How can I draw Indian horoscope charts?

I was wondering if Indian horoscope charts can be drawn in LaTeX. Here is one example: It has 12 divisions. And in each of the divisions there may be one or multiple Grahas with their corresponding ...
1
vote
0answers
13 views

How to install pstricks [duplicate]

I want to install PSTricks (I use Texmaker). I have downloaded the files from the following page: http://tug.org/PSTricks/main.cgi but nowhere do they say where the files should be copied or how the ...
1
vote
0answers
77 views

How to plot a diamond shape ball in LATEX [closed]

Let d:M \to \mathbb{R} be defined by d(X,Y)=|x_1-y_1|+|x_2-y_2| where X=(x_1,x_2), Y=(y_1,y_2) \in \mathbb{R}^2. This is called the Manhattan metric. Plot the unit open ball B with center at the point ...
1
vote
0answers
67 views

How to add two lines for \rput in radar chart [closed]

I'm able to draw radar chart using code mentioned below: \begin{center} \begin{pspicture}(-4,-4)(4,4) \psset{unit=1.2} \degrees[270] ...
1
vote
0answers
185 views

What about Kuvio for making diagrams? [closed]

Kuvio (Finnish for 'pattern') seems to be a very general tool for diagram making. Which are the major disadvantages? Why isn't it used more often (only one Q/A on the site seems to mention it)? Can ...
1
vote
0answers
28 views

Cannot load the “pstricks” option in mdframed package [duplicate]

I tried to frame texts in double lines following directions in the mdframed package manual. However, I cannot even load the mdframed package with the "pstricks" option. Following are my codes: ...
1
vote
0answers
45 views

Inserting matrix in Latexdraw

I am using LatexDraw for drawing a graph and its corresponding matrix and thereby generating the Pstricks codes.. But I am having problem in inserting the matrix. I have attached here the screen shot. ...
1
vote
0answers
77 views

Drawing knots with 8 crossings and labels [closed]

So for a project, I have to draw the knot diagrams of all alternating knots with up to 8 crossings and label the regions bounded by the knots. For knots with up to 7 crossings, I used PSTricks, ...
1
vote
1answer
210 views

Problem with \psshadowbox [duplicate]

Why doesn't this work? I think I've got all the packeges I need, and I've copied it from http://tug.org/pracjourn/2008-3/morales/morales.pdf. \documentclass[landscape,a0paper,final]{a0poster} ...
1
vote
0answers
68 views

How to align/wrapping pstricks figures and text [closed]

I´m trying to put easily 3 pstricks pictures in a row (or in a column). I was trying with wrapfigure with no success, so I found any info about subfigure... but I´m trying and LaTeX tell me: ...
1
vote
0answers
104 views

How to use visualcounters in latex? [closed]

I want to use Progressbar in my LaTeX document. I found some idea from the visualcounter module by Aditya Mahajan, but I don't know how to utilize that one. Because I am new to LaTeX, any one help ...
1
vote
0answers
138 views

Beamer–PSTricks Diagram “Wiggling”

I am working on a presentation using Beamer with diagrams done in PSTricks. I would like to animate one of my diagrams, and have achieved this by using various \only, \uncover, etc. statements. ...
1
vote
0answers
21 views

Problems using pst-node/Undefined Control Sequence— PStricks [duplicate]

The code is: \documentclass{article} \usepackage{pstricks} \usepackage{pst-plot} \usepackage{pst-node} \usepackage{pst-circ} \usepackage{pst-text} \usepackage{pst-tree} \usepackage{pst-coil} ...
1
vote
0answers
186 views

Revisiting auto-pst-pdf Fundamental Problem (<jobname>-pics.pdf not created) [closed]

The code provided as an answer on this post used to work. To ease things, I reproduce it here, only in a more condensed form since I'm interested just in the PSTricks part -- the minted part working ...
1
vote
0answers
121 views

How to load pstricks private header files under MiKTeX? [closed]

Under MikTeX, the method to load private header files containing custom postscript macros seems to have changed. What is the current preferred method for including such macros? For years I have ...
1
vote
0answers
157 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
0answers
158 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. % ...
1
vote
0answers
59 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 ...
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 ...