Questions tagged [pstricks]

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}.

PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code. It is originally the work of Timothy Van Zandt (1991) and in recent years it has been maintained by Denis Girou, Sebastian Rahtz and currently by Herbert Voß.

Note that documents that use PSTricks need to be compiled either with LaTeX->Dvips->ps2pdf or XeLaTeX. If you want to compile with pdflatex then see How to use PSTricks in pdfLaTeX? and for a run with LuaLaTeX use package auto-pst-pdf-lua.

2014 questions
15
votes
3 answers

Is there a formula to determine the maximum value arcsepB such that the arrow head looks best?

I want to put an arrow head at the middle of an arc. Unfortunately, ArrowInside is not available for \psarc. The possible way is to construct it with 2 arcs as follows. Leaving arcsepB with its default value will produce a weird effect, that is why…
15
votes
2 answers

How to get the intersection nodes of 2 arbitrary curves?

This question led to a new package: pst-intersect In my experience, there is no macro in PSTricks to get the intersection nodes of two curves. Is it possible to do this in PSTricks? Or Am I am dreaming an impossible…
14
votes
2 answers

Is there a smart solution to fix the precision issue for atan?

\documentclass[pstricks,border=12pt]{standalone} \psset{unit=.25} \def\Atom#1{% \begin{pspicture}[dimen=m](-12,-12)(12,12) \pstVerb{/AA 1 5 atan def /RR 26 sqrt def} \pscustom[fillstyle=eofill,fillcolor=red,linearc=#1] { …
13
votes
1 answer

Isometric paper and drawing on it -- with PSTricks

I would like to create a drawing on isometric drawing paper like the following: N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I would like to have. On the blank isometric paper, I…
13
votes
3 answers

Is it possible to get a coil with stable number of winding?

I want to create an animation with a spring. The winding must be kept constant to make more realistic animation. The following MWE illustrates the current situation of \pszigzag where it cannot produce a coil with reliable constant winding. I set 7…
13
votes
5 answers

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 myself. :( (This is not good, I know!) What I would…
12
votes
2 answers

pst-vehicle: How to attach any object to the truck?

I want to attach a weight vector pointing downward to body of the truck. When I move the truck, the weight vector must also be automatically moved. I don't know how to attach it because \pstVehicle does not provide us with such an interface. How to…
Display Name
  • 46,933
12
votes
1 answer

Shape driven formatting

I'm not exactly sure how to call it, so I've had a hard time search for it online. What I have is a solid block of text. What I want is to change the formatting of part of this block of text (make it bold, italic, change its color) according to a…
Lexiel
  • 1,037
11
votes
2 answers

Drawing a complex transformation using PStricks

I'm trying to draw the picture below showing a typical instance of mapping the z point from z plane to w plane by the f(z) transformation. It is almost OK, but when I'm trying to draw the dashed lines I face problems and they are not fixed at my…
Prelude
  • 4,242
11
votes
1 answer

Confusing behavior of uput with non-zero dimensional object

I really don't understand the behavior of \uput with non-zero dimensional object as illustrated below. \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} \def\NonZeroDimenObject{% \pspicture(2,2) \psframe(2,1) …
10
votes
1 answer

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 (pscharpath): MWE for what I want to combine: …
matheburg
  • 1,279
10
votes
1 answer

What causes the presence of unnecessary white space?

What causes the presence of unnecessary white space in the following figure? The box and the circle should have the same…
10
votes
2 answers

How do I know that w must not be used?

I have a project to draw something that is more complicated than the following. Apparently I cannot use w after invoking \psaxes with [$x$,0][$y$,90]. I found it after struggling for 1…
10
votes
1 answer

How to change the step of tick and label of \psgrid?

Sometimes it will be convenient to work in big integers for the coordinates. To control the physical size, we can adjust the unit for scaling. Unfortunately, changing unit to a small size will make the grid, that is very useful in navigation, become…
10
votes
1 answer

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 confusion that might happen to my friends. I am also…
1
2 3
26 27