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
2answers
386 views

Maths expression in the coordinates of rput

I use \rput[B](1.5,4.1){\( 1 \)} to write a number at a specific place, now I would like to express an expression at the place of coordinates, for instance \rput[B](2+#1,4.1){\( 1 \)} where #1 is an ...
11
votes
1answer
194 views

Wrong rendering in PDF viewer?

Consider the following example: Code \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{figure} \centering \psset{xunit=0.09cm,yunit=1.8cm} \begin{pspicture}(-5,-0.25)(120,...
2
votes
0answers
597 views

xelatex and pstricks [closed]

I am using miktex 2.9 with texworks & windows 7 ultimate SP1 to compile my code. I am compiling using xelatex however, my code is not compiling. What should I do ? Here is my code: \documentclass{...
1
vote
0answers
30 views

How do import pdf pages when using latex-dvips-ps2pdf? [duplicate]

I would like to insert some pdf pages from a different file into the one I am working on currently. I understand that I can use the pdfpages package. However, I am using pstricks and therefore have ...
4
votes
1answer
1k views

Resize the text in \rput

I use \rput[B](4.0,0.5){text} inside pspicture to write a text at a specific position. The text is too long, and I need to shrink its size, make it smaller, could anyone help?
3
votes
2answers
141 views

Compile a pspicture under Emacs

I copied the solution from this link to a file try.tex under Emacs: \documentclass{article} \usepackage{pst-tree} \begin{document} Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. ...
1
vote
1answer
452 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 ...
4
votes
1answer
649 views

When should I use \psgraph instead of \pspicture plus \psaxes?

I am new to PSTricks and want to plot some functions. The documentation of pst-plot explains (but not detailed enough) both \psgraph environment and the combination of \pspicture and \psaxes. The ...
5
votes
1answer
277 views

Conditions for PSTricks figure

I have tried to create a PSTricks figure based on only a few parameters but I have a problem. Code \documentclass{article} \usepackage{auto-pst-pdf,pstricks-add} \usepackage{expl3} \ExplSyntaxOn ...
4
votes
1answer
417 views

Define new PSTricks object with arguments

Inspired by Clemens Niederberger's post about a possible new package, I have tried to create a similar figure using PSTricks. Code \documentclass{article} \usepackage{chemmacros} \usepackage{...
9
votes
1answer
1k views

LuaLaTeX and PSTricks

Is there the possibility to produce PSTricks graphics in LuaLaTeX? I tried it, but i get ! Undefined control sequence. <recently read> \c@lor@to@ps l.9 \psline( -5,2)(5,...
4
votes
1answer
578 views

How to fill an area interval under a gaussian

I want to know if it's possible to fill an area interval (i.e from -0.2 to 0.2) under a gaussian curve, more exactly just an interval under this curve, using PSTricks. I'm using pst-func, pst-plot, ...
3
votes
1answer
260 views

PSTricks insert logo

I am using PSTricks with beamer. I couldn't insert logo (MU.jpg), but it works if I'm not use pstricks package. So what can I do if I also need to use pstricks package?
10
votes
4answers
2k views

What is the easiest way to plot a function and its tangent lines at the turning points?

I want to plot graphs like this and embed them as Tikz or Pstricks code in my handouts. I know that there are software such as Ipe, LaTeXDraw etc. But none of them can satisfy me. Because Ipe doesn't ...
4
votes
2answers
158 views

Can \uput mimic \rput when they enclose a non-zero dimensional object?

Zero-dimensional objects For zero dimensional objects, \uput can mimic \rput as illustrated in the following example. \documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{...
2
votes
0answers
194 views

Ghostscript Error when doing multiple slices with pst-solides3d [closed]

I'm trying to represent a polytope, but it seems that GhostScript doesn't let me slice a cube more than once. In particular, I tried the following: \psset{unit=0.6cm,labelsep=20pt} \psset{viewpoint=...
4
votes
3answers
155 views

How to define a new RPN operator with \pstVerb to convert pt to the active unit?

I want to do a vector addition with different units as follows, (1+2pt,3+4pt) % of course this point format will not work for the current PSTricks My solution is to write the point in PostScript ...
7
votes
1answer
200 views

Equivalent of pstricks command \psecurve in tikz

What is the equivalent of the pstricks command \psecurve in tikz? The yellow line is the \psecurve. It's basically the same as the \pscurve: the curve is defined by all the named points, but is not ...
5
votes
3answers
1k views

How to draw smooth curves with PSTricks?

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(0,-0.25)(4,6.25) \pnode(2,0){A} \pnode(0,4){B} \pnode(2,6){C} \pnode(4,4){...
10
votes
3answers
961 views

Drawing spherical harmonics with pst-3dplot

For my lecture notes in theoretical physics (namely quantum mechanics) I'm trying to visualize the spherical harmonics. I got Mathematica to plot them an this is what I did: SphericalPlot3D[(Sqrt[3/(...
2
votes
1answer
326 views

Drawing pedigrees with PSTricks

I'm using a package called pst-pdgr which uses PSTricks. I have no prior experience with PSTricks but I am trying to read and understand as I go. However, I've run into a problem while compiling the ...
9
votes
3answers
560 views

How to draw two intersecting graphs?

I want to make the following figure. My efforts are: \documentclass{standalone} \usepackage{pgfplots} \usetikzlibrary{calc,shadings} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} ...
3
votes
1answer
283 views

Another “Dimension too large” question: PSTricks plot

I'm currently using Pstricks to plot a datafile into a basic x-y figure. My actual code is: \psset{xunit=.07cm,yunit=0.00025cm} \begin{pspicture}(1915,10000)(2015,30500) \psaxes[Dx=10,Dy=15000,Ox=...
4
votes
2answers
334 views

Why does loading tikz before calling “driver=dvips” make a difference

This question doesn't entirely make sense because I know I don't need to call driver=dvips. But I would like to know whether anyone can explain what's happening. A little background I'm trying to ...
11
votes
4answers
5k views

How to overlay graphs using includegraphics or pstricks?

I have a figure (eps file included using \includegraphics) inside a postscript environment where I use PSTricks to add labels and extra lines. I want to add another eps file smaller in the top right ...
2
votes
1answer
194 views

What is lacking in my geometric calculation below?

The objective is to align the baseline of a label with the bisector. I want to summarize 4 possible tricks as follows. Let me know if there is another trick beyond my consideration. The first trick: ...
10
votes
1answer
398 views

How to mimic the behavior of \ncput* but without the unwanted opaque effect?

My objective is to have a label with transparent background but any connecting curve passing through the hypothetical box of the label must be hidden. Opaque Label \ncput* produces an opaque label ...
4
votes
1answer
178 views

How to get the nodes on which a line intersects the hypothetical frame box of \ncput?

I want to get the nodes on which the \*cline intersects the hypothetical edge of \ncput. The following animation shows my attempt to find the nodes by a trial & error approach. I need the nodes ...
6
votes
2answers
824 views

PSTricks: Dataplot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \savedata{\data}[{1999,6276},{2000,6827},{2001,7783},{2002,9819}] \psset{xAxisLabel={Year},yAxisLabel={...
6
votes
1answer
210 views

PSTricks: Perpendicular bisectors of line segments using pst-eucl

First: This is a crosspost from the LaTeX Community since I haven't gotten any answer there. Consider the following MWE: \documentclass{article} \usepackage{pst-eucl} \begin{document} \begin{...
17
votes
1answer
2k views

Drawing 3D crystal lattice with tikz/pstricks

I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones. Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
4
votes
1answer
122 views

key values getting improperly passed through a property list getter function

I'm creating rather complicated diagram and would like to put all the controls all in one easy to find location and not scattered throughout the document. To do this, I've created setter and getter ...
0
votes
0answers
281 views

psframe “ Undefined control sequence” [duplicate]

I am trying to create a book cover by using PSTricks. I follow the source from here :http://tug.org/pracjourn/2007-1/robbers/robbers.pdf (page 22). When I compile, it annouces the error that : ! ...
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}](...
1
vote
0answers
200 views

TexLive 2012, Xelatex and pst-eucl [closed]

pst-eucl is doesn't seem to play very well with xelatex on OSX. I used it in the past with success, but it doesn't seem to want to play well with the TexLive 2012 installation when running on Mac. ...
1
vote
1answer
179 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) \...
17
votes
2answers
458 views

What to do with 237 eps files?

I have some 237 .eps files that represent the printer's ornaments from the small press The Underground Grammarian. I would like to build and provide (to CTAN) a package similar to the pgfornament ...
4
votes
1answer
4k views

How to use pstool in pdfLatex?

Update: After I adding those --shell -escape commands, when I run the code as below, it still cannot work. \documentclass[pdftex]{memoir} \usepackage{color} \usepackage{pstool} \input macros.tex \...
25
votes
1answer
2k views

More elegant way to achieve this same camera perspective projection model?

I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
6
votes
1answer
116 views

Conflict between xparse and pstricks: pstricks doesn't believe xparse function is defined

I want to create a pspicture with a variety of parameters which are interdependent. I'm using expl3 for the interface. But I get an error when I try to use \getr Error: /undefined in \getr Operand ...
9
votes
1answer
697 views

Contour plots with PSTricks

I'd like to use the PSTricks functionality to get the contour plots of 3D surfaces (more precisely, corresponding to functions z = f(x,y) from R^2 to R). Since, to the best of my knowledge, there is ...
7
votes
1answer
144 views

Put a pstricks cover at the beginning of a file without affecting the rest of it

I have two files. One is a pstricks cover. The other is the interior of the book. They both are fine on their own. I would like to put the code for pstricks cover on the first page of the pdf and ...
2
votes
4answers
3k views

PSTricks will not compile

\documentclass[12pt]{article} \usepackage[paperheight=9in,paperwidth=13.24in,margin=0in]{geometry} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \thispagestyle{empty} \psset{unit=1in} \...
29
votes
2answers
3k views

Making a Calendar for TUG

This question is triggered by a post from Peter Wilson in comp.text.tex`. Peter wrote: TUG members produced a calendar for 2012 and, if I remember correctly, for some previous years as well. I really ...
4
votes
1answer
512 views

powerdot/pstricks for local typesetting mode in Texpad iOS?

I use powerdot to typeset my presentations. Has anybody got experience with running powerdot/PStricks on the local (Ker)TeX environment coming with Texpad (local typesetting mode)? Is this possible, ...
5
votes
1answer
356 views

Strange behavior of mdframed with pstricks as framemethod

I load the mdframed package from a class of my own with the line \RequirePackage[framemethod=pstricks]{mdframed} When using the XeLaTeX engine I get a strange behavior from the mdframed environment ...
5
votes
2answers
892 views

How to hide grid labels without redefining the grid style?

I want to hide the grid labels without redefining the grid style, is it possible? Note: Redefining the grid style only for hiding the grid labels seems to be an overkill solution. \documentclass[...
19
votes
1answer
977 views

Drawing of a helix

On this blog I found a 3D drawing of a transformer by Thomas Söll. After a few changes, I have the following code: \documentclass{article} \usepackage{pst-solides3d} \usepackage{expl3} % ...
6
votes
3answers
1k views

Putting a coloured background behind text without adding whitespace

Consider this: I want to be able to highlight text like this without adding space around it -- so each word in the first line should line up with the corresponding word in the second line. (I know ...
7
votes
1answer
567 views

Custom style for \listplot or \dataplot

Is it possible to make custom style for \listplot and friends? By default they support only plotstyle=curve, line, bezier, and I need to use bspline from pst-bspline package. \documentclass[a4paper,...