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
1answer
214 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
181 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
142 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
171 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
840 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
811 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
267 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
523 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
201 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
264 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
183 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
365 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
158 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
660 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
185 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
120 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
179 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
191 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
157 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
446 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 ...
23
votes
1answer
1k 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
110 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
605 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
140 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
2k 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} ...
27
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
424 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
329 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
714 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. ...
18
votes
1answer
847 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
737 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
494 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. ...
9
votes
1answer
111 views

psmatrix with two ncboxes in it

Can somebody help me to generate two overlapping boxes in a psmatrix? What I need is an ncbox from {3,3} to {8,8} and one from {3,3} to {3,8}. I know it's possible to draw them in a separate figure, ...
7
votes
1answer
540 views

Transparency with psSurface in pst-solides 3D

I'm trying to draw a graph with pst-solides3D with the option psSurface : The problem is as follows : I want to draw z = +/- (y^2-y^2), which should give a saddle-point graph with the lines x=y and ...
9
votes
1answer
578 views

PSTricks: charpath on a curve (like textpath)

I am interested in drawing a specially rendered text on a curve. The LaTeX package pst-text provides a function to draw text on a curve (pstextpath) and a function to specially render text ...
0
votes
0answers
51 views

Array of linked list [duplicate]

Possible Duplicate: array of linked lists I want to implement an array of linked lists in latex: the array elements are the numbers{1,2,3} and every number in the array is ahead of linked ...
6
votes
2answers
284 views

pstricks drawing has overlap with text

The following code produces a figure that has overlap with my text in LaTeX. It seems as if latex doesn't create a space for this figure. Can anybody help me with it? ...
10
votes
1answer
338 views

unattractive additive effect to opacity with pstricks

I'm using pstricks to highlight by boxing or circling replacement text in my math equations. But, I don't want this highlighting to occlude what's behind it. So, I've been setting opacity or ...
3
votes
0answers
330 views

pslegend bounding box odd while using Cirkuit

This question is regarding pst-plot and more specifically \pslegend. The code below produces the two following plots: One of these figures is generated without the \pslegend and it appears to have ...
4
votes
1answer
715 views

\psmatrix baseline

I'm using lingmacros' \enumsentence with a \psmatrix inside. \enumsentence{ \psset{linewidth=.5pt} \begin{psmatrix}[rowsep=.2cm,nodesep=.05cm,colsep=.1cm] &\rnode{gm}{grammatical morphemes}\\ ...
1
vote
1answer
190 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} ...
28
votes
3answers
2k views

How can I draw nucleosomes with wrapped DNA in tikz or pstricks?

The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
1
vote
1answer
203 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} ... ...
37
votes
5answers
2k views

Please improve my logo to resemble our TeX.SX logo

It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one. ...