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

5
votes
2answers
108 views

\def issue (with NumericPlots?)

So I've decided to clean my code for the many plots. I've basically taken out all the plot data into separate files using \def\plotname{ x1 y1 } Then I use \input{data.txt} to load all the ...
2
votes
1answer
93 views

What makes the radius too long in the following PS expression?

I want to translate \pstVerb{/Dist {N-A.x N-A.y N-B.x N-B.y Pyth2} def} from the following \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl} ...
4
votes
3answers
396 views

let operation vs tkz-euclide

Before put my question to give some explanation of why I do this question. When I started to use the TeX a matter of luck that I started working with LaTeX (xelatex) and not with LuaTex for example. ...
8
votes
1answer
106 views

Why do I have to place % at the end of line preceding \pstVerb?

Please consider the position of the red dots. First Case When I don't activate \pstVerb{/xxx 1 def}, the red dot is properly positioned. \documentclass[border=12pt]{standalone} ...
4
votes
1answer
76 views

Why does my RPN expression to find a distance of 2 nodes produce a wrong output?

I want to find a variant for the following, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl} \addtopsstyle{gridstyle}{gridlabels=0pt,griddots=0} \begin{document} ...
8
votes
1answer
782 views

Draw tally marks using PSTricks

Inspired by Paulo Cereda's question here, I would like to draw tally marks using PSTricks (or TikZ, if no one can help with PSTricks). I have no idea how to start, so I cannot even present a try ...
3
votes
1answer
767 views

Configure PSTricks on TeXstudio

I'm stuck with PSTricks on TeXstudio, I'm getting errors like auto-pst-pdf: . Or turn off auto-pst-pdf.} My current latex version Version 3.1415926-2.5-1.40.13 (TeX Live 2013/dev) Build and ...
7
votes
1answer
1k views

When should we use \rput, \nput, and \uput?

I am writing a short tutorial for my friends about PSTricks. So I have to systematically explain the available macros such as \nput, \rput and \uput (among others) and reduce the possibility of ...
3
votes
1answer
3k views

Non-PDF special ignored! — TeXLive / PSTricks / OSX Mac

I'm using TeXLive with OSX/Mac, and building with latexmk. I need three (3) vertical lines spanning the entire page (inside the margins), and one (1) vertical line of numbers 1 through 28 (inside the ...
4
votes
1answer
420 views

How to set up psgraph to get the same output produced by pspicture plus psaxes?

In order to get a more balanced diagram (of a certain specified metric size, width times height), I usually also specify some offsets or adjustment values around the canvas (aka picture) and axes as ...
1
vote
1answer
307 views

Using \begin{TeXtoEPS} after \section

I have a figure created with pstricks that I would like to insert into another document. However when copying the markup into my main document and compiling it I get the following error: ! Undefined ...
2
votes
1answer
451 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 ...
3
votes
2answers
307 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
169 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} ...
2
votes
0answers
456 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: ...
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
125 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
374 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
459 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
242 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
296 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} ...
8
votes
1answer
923 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( ...
4
votes
1answer
463 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
209 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
144 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} ...
2
votes
0answers
172 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} ...
4
votes
3answers
139 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
166 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
790 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} ...
10
votes
3answers
767 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: ...
2
votes
1answer
257 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
518 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
197 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) ...
4
votes
2answers
255 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
4k 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
179 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
355 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
150 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
630 views

PSTricks: Dataplot

Consider the following example: \documentclass{article} \usepackage{pst-plot} \begin{document} \savedata{\data}[{1999,6276},{2000,6827},{2001,7783},{2002,9819}] ...
6
votes
1answer
179 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} ...
15
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
117 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
280 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
169 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 ...
1
vote
0answers
190 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
151 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
444 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
3k 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 ...