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
126 views
53
votes
11answers
2k views

How can I define a mathematical function as a LaTeX macro?

I am attempting to create a usable function within LaTeX such that its inputs are transformed mathematically. However, I cannot find any documentation that can perform such mathematical function ...
14
votes
1answer
622 views

Color gradient filling along a path

I want to make the gradient color to follow the pipe curve below rather than to span from the left to the right. The following MWE shows the default behavior which is not what I'm looking for. ...
0
votes
0answers
24 views

Using mdframed package with pstricks option in pdflatex possible?

I want to use the mdframed package with the pstricks option (for dashed lines etc) with pdflatex. But doing so threw an Undefined control sequence ... \c@lor@to@ps error. The internet tells me, ...
0
votes
0answers
52 views

Standard timeline with different circle colors

I just saw this amazing post and I was wondering if there was a slight addendum which could be used to make some of the circles in a different color. I also wanted to be able to modify the length of ...
7
votes
6answers
915 views

How to draw a triangle is insribed in a circle so that the vertices divide the circle into three arcs of lengths 3, 4 and 5?

I want to draw a triangle circle is insribed in a circle so that the vertices divide the circle into three arcs of lengths 3, 4 and 5. I tried with Geogebra. \documentclass[12pt]{standalone} ...
2
votes
2answers
38 views

Truncated pstricks image

I am attempting to draw a two lens system using pst-optic. Here is my code : \documentclass{standalone} \usepackage{pst-optic} \begin{document} \begin{pspicture}(-15,-3)(15,3) \rput(5,0) ...
0
votes
1answer
31 views

make multiple transformations on a pstricks object

for a mathematics project, I want to show transformations using pstricks. In the meantime, rotating around an arbitrary point is working fine (thanks to you guys), and also mirroring of an image on a ...
1
vote
0answers
32 views

Drawing a two lens system using pst-optic

I am trying to draw a two lens system using pst-optic. Here is an example of the code I use : \begin{pspicture}[showgrid=true](-5,-3)(7,4) ...
2
votes
2answers
61 views

Psvectorian ornaments errors

I have major errors in psvectorian.tex from CTAN package. I have installed C:\Program Files\MiKTeX 2.9\dvips\pst-vectorian\psvectorian.pro and C:\Program Files\MiKTeX ...
0
votes
1answer
65 views

Drawing stacking of layers or plates

I would like to get the following image. Is it possible to draw using tikz or pstricks in latex? Please note the text labelling as well. I got a link in a similar spirit, but could not utilize it ...
1
vote
1answer
73 views

Text on rectangular spiral with automatic sizing to fill page

I'm wondering how this could be done in TeX: This is along the lines of Text spirals with TikZ but in a rectangle, with all text the same size, and all text should be at right angles (unlike the ...
9
votes
2answers
163 views

Light object / source in PGF / TikZ / PGFplots pictures like in PSTricks

I came across the PSTricks animation located at http://melusine.eu.org/syracuse/pstricks/pst-solides3d/animations/a43/ http://i.stack.imgur.com/NlqHZ.gif and noticed that it uses a light object / ...
2
votes
2answers
85 views

Label a triangle

How would I produce a triangle (with each side a different length) with labeled edges and angles? I'be managed to produce a triangle using pstricks, the code it \begin{pspicture}(0,-1.34)(6.8,1.34) ...
0
votes
1answer
65 views

How to draw a line chart like this?

From this site, I have learned how to draw fancy pie charts and bar charts. However, I cannot find a simple way to draw a line chart like the google's. Below is the screenshot: Is there a way to ...
1
vote
1answer
52 views

obtaining an image in Pstricks

How do I draw this image in PStricks: I know to draw the axis but not sure how to name the points and all.
0
votes
0answers
24 views

Beamer auto-pst-pdf — multiple images

I tried to include some pictures in a LaTeX Beamer presentation. I used auto-pst-pdf to produce a pdf output. Strangely, just the first picture shows up in the resulting document. Here's a minimal ...
1
vote
0answers
29 views

Problem with opacity in pgfplots when using pstricks package

Can anyone tell me why doesn't opacity work in pgfplots when I include the package "pstricks" and how could I fix it? See for example the code below: \documentclass{standalone} ...
2
votes
1answer
30 views

How should I draw a biased axes numbers in pstricks

Here is the question. Pstricks normally draws an axes with given Dy/Dx and dy/dx and the generated plot has the same length sections all over divided by equally distant ticks. What if we wanted to ...
0
votes
3answers
248 views

How does one draw the following graph?

Can anyone help me as to how I can draw the above picture using TikZ or PSTricks? I am not familiar with those two packages.
19
votes
2answers
3k views

How to make dominoes falling?

How to maker a LaTex drawing of dominoes falling as the following figure?
1
vote
2answers
25 views

Show y axis for psaxes starting from 130

I have a graph like this: However, when I plot it out on LaTex, it turns out like this: Here is the code: \begin{figure}[H] \centering ...
2
votes
2answers
65 views

How to building the flowchart report shape?

I am building un flowchart in psmatrix and need to generate the flowchart report(document) shape and I don't know as do it. The symbol is like in the picture below. Can somebody help me, please? ...
52
votes
8answers
3k views

How to automatically draw tree diagram of prime factorization with LaTeX?

I want to have a simple interface to automatically draw tree diagrams of prime factorization. For example, by invoking the following code, \PrimeTree{36} \PrimeTree{90} \PrimeTree{112} ...
1
vote
1answer
26 views

Installing xetex-pstricks on TeXLive

I installed xetex-pstricks via tlmgr install xetex-pstricks tlmgr update xetex-pstricks on my Windows 7 machine with a TeXLive installation. tlmgr info xetex-pstricks --list gave me info on ...
2
votes
1answer
73 views

Can anyone help in drawing this kind of graph?

Can anyone help in drawing the graph of the kind shown in figure with edge intersections? I struggled with pstricks and started to learn tikz but not able to do it. Kindly help as am not getting how ...
0
votes
1answer
38 views

Text alignment in clipped parbox

I have the following problem: I need to put variable length content into a fix-sized parbox the gets clipped with clipbox command. And want the content to be vertically centered. As long as the ...
1
vote
0answers
66 views

how to draw multiple graphs next to each other with labels

How to draw multiple graphs next to each other in a document? Also, how to name each graph with a label? One more thing is I need to show an dashed edge to intersect the graph edge, in that case how ...
1
vote
1answer
38 views

How to building on pstricks the flowchart shape?

I need to building several flowcharts with pstricks and I have problems to get the symbol as the below. Can somebody help me? \newcommand\psBucler[3]{% \pspolygon(-1,0.1)(1.2,0.1)(1.2,1)(-1,1) % ...
1
vote
1answer
34 views

Generate new or change a line color with Postscript notation

I'd like to use \psset{linecolor = blue!\mapDFVtoColor} whereas \mapDFVtoColor is defined as something like \def\mapDFVtoColor{20 40 add 3.5 div} Here's a bit longer but condensed example ...
2
votes
1answer
52 views

can't draw a line far enough to the right in a pspicture in landscape

I want to use pspicture in a landscape document, but I can't draw a line to the right hand side of the document with \psframe, while \rput works as expected. I've tried to create an MWE to demonstrate ...
11
votes
5answers
2k views

How one can draw 405 degree angle in learning material?

I would like to know how one can draw teaching material of trigonometry in LaTeX? Namely, I was looking how to draw 405 degree angle i.e. unit circle, a line segment to the circumference and a spiral ...
6
votes
1answer
70 views

Spirograph curves without gears, pen point

I am using the pst-spirograph package. An image produced by this package will show the spirograph curve, but will also show the gears and the pen point. I would like to obtain just the curve. Consider ...
1
vote
0answers
53 views

Random lines in a plot [closed]

Hi everyone, I have never used pstricks or tikz and it seems to be the best option to draw the kind of plots that I need. I have been researching and I have not found how to draw this random line ...
13
votes
3answers
4k views

How to convert a LaTeX file with pstricks code to pdf?

I am new to LaTeX and was writing an article with MikTeX. But when I insert a pspicture and compile the file into pdf format, the pspicture just does not show up. But if I compile the file into ps, ...
3
votes
1answer
43 views

rotate a polygon around point

I have the following code: \documentclass[a4paper]{article} \usepackage{pstricks} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-6,-10)(10,10) ...
10
votes
3answers
712 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: ...
15
votes
6answers
483 views

Draw a smooth surface

I would like to draw a smooth surface like http://mathematica.stackexchange.com/questions/20912/how-to-draw-a-higher-genus-surface but using Asymptote, TikZ, Metapost, PStricks, or other TeX friendly ...
0
votes
0answers
46 views

Arrow inside circle - pstricks

I'm trying to draw an arrow inside the circle, otherwise it's confusing with the others... But I don't succeed ! Has someone an idea ? I created the "pt" to write quicklier... It's : ...
5
votes
1answer
30 views

Problem with \psframe

I want to create a book cover and for a start I want to add color to my page. The problem is that when I add the given geometry page and write down the \psframe, the result I get is a page with ...
4
votes
2answers
51 views

Fill colour for ring (pstricks)

I have a drawing for a cylinder and have filled in the ring section with light gray. However, because my background is light orange, the image turns out to be a bit weird. Here is the image: Here ...
20
votes
3answers
755 views

Automatically generate graphics which shows light diffusion on a rough surface

I just want to make an image like this (using tikz or pstricks) of light reflexion and diffusion: What I am interested in is, how this can be done (semi)-automatically via tikz or pstricks: ...
1
vote
1answer
53 views

How to use pstricks with expex to draw arrows in examples?

I'm using the expex package to write examples (in linguistics articles). This package, according to the documentation, allows one to draw arrows (to represent movement in syntax). There is a section ...
4
votes
3answers
93 views

About \psplot and domain of functions

I would like to know if i really have to calculate the domain of functions like sqrt(x-7) and log(x-7)/log(2) and tell to \psplot to work only inside that interval, e.g., for the interval [6,16] and ...
3
votes
1answer
43 views

Specifying coordinates with \def in PSTricks

I'm starting with PSTricks. I use the following macro to set cartesian coordinates: \def\newPoint#1(#2,#3) { \expandafter\def\csname x#1\endcsname{#2} \expandafter\def\csname ...
1
vote
2answers
129 views

Draw a contour around the cylinder

I'm willing to draw a contour around a cylinder. So far, I could get this one: The problem is that half of the circular part of the contour should be at the back of the cylinder which is not the case ...
4
votes
3answers
120 views

Elliptic arrow line in PSTricks

How can I draw an elliptic line with arrow around a line in PSTricks? Example is visible in this picture around the 'Geographic North Pole': The question is quite similar to How to draw a not ...
3
votes
2answers
369 views

Redefining axes label in pst-plot

I am trying to redefine the labels for x-axis in a pst-plot diagram by putting \makeatletter \def\ps@@@hlabel#1{\small(#1)} \makeatother in the preamble (see top of page 25 in the manual) but then ...
2
votes
0answers
31 views

PStricks code inside caption. LaTeX. What's wrong? [duplicate]

I'm trying to put \psaxes command inside a caption. I have tried \verb, \lstinline and alltt package and nothing works. Whats wrong? \documentclass[ 12pt, a4paper, ...
5
votes
1answer
80 views

Analogue in TikZ for the command \psshadowbox of PSTricks

In PSTricks, the following code: \documentclass{article} \usepackage[usenames]{pstcol} \usepackage{pst-plot} \usepackage{pst-grad} \begin{document} \noindent ...