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
0answers
14 views

How to clip a PSTricks image to its boundaries

I have a PSTricks pspicture where certain elements go beyond the boundaries of the Image itself. I tried using \clipbox, but that either completely removed the entire image or didnt change anything at ...
4
votes
1answer
35 views

Why does \rput(0,0) translate my picture?

Using rput, I noticed it misplaces my objects. By testing, I found two strange behaviours: \rput(0,0) { object } moves my objects a little bit. Doing latex on the following code: ...
3
votes
2answers
131 views

How to create this coordinate system?

I'm currently working on a term paper / lecture notes for my electrical engineering professor and wanted to include the following coordinate system / graph / figure in my paper. (The image should be ...
2
votes
0answers
23 views

pst-3dplot error: Transformation matrix not invertible

I'm trying to reproduce example 1 on page 26 of the user manual of pst-3dplot. It is supposed to rotate the label 'xy plane' into a 3D coordinate system. All I get is a warning: ** WARNING ** ...
7
votes
1answer
184 views

Simple drawing with TikZ

Let's me begin by saying that I am a complete newbie. I have been trying to draw te following image but didn't get very far: The following is what I have so far: ...
2
votes
0answers
32 views

pstricks with old latex-dvips-ps2pdf worked; fails with 2014 TeXLive xelatex

I have drawings using pstricks that worked just fine in an old (2008) version of LaTex. On a new machine I switched to texlive 2014 and using xelatex the drawings do not work. For example, the ...
1
vote
1answer
38 views

Using psvectorian, pgfornament or similar with Share LaTeX

I would like to use these or similar ornaments in my LaTeX document. However I use Share Latex (and have no other option since this is a collab project, and its too late to change), and pgfornament ...
6
votes
1answer
59 views

Where is the \pstverb command documented?

I can find answers to many question on TeX problems here. Mostly they are like giving fish rather than teaching how to fish. One cannot tailor made them due to short of guide on where they come from. ...
0
votes
0answers
34 views

pst-3dplot error with IIIDlabels

I have encountered a problem with my pst3dplot. With the option IIIDlabels enabled I end up with lots of black spikes instead of labels on the coord axes. Without IIIDlabels the pst-3dplot works fine. ...
1
vote
0answers
17 views

Is it possible to import an .png in a drawing made with pst-3dplot?

I would like to make a drawing using pst-3dplot with a .png embedded in it. Does anybody know if this is possible? Thank you very much.
3
votes
0answers
49 views

beamer, pstricks (texlive 2014)

Since updating ubuntu to 14.10 (and 15.04 recently) i cannot succeed in compiling the following source: \documentclass[a4paper]{article}% \usepackage{beamerarticle} %\documentclass{beamer}% ...
3
votes
1answer
41 views

How to identify, isolate and customize a grid line in PSTricks?

108I have this snippet inside my work to visualise a Mobius strip. \begin{pspicture}(-4.2,-3.7)(5.1,3) \psset{unit=1.5} \psset[pst-solides3d]{viewpoint=20 10 10, Decran=40, lightsrc=20 10 ...
1
vote
0answers
101 views

PSTricks algebraic coordinates going from MikTeX to TeXLive

I am using PSTricks and some tikz functions for preparing some sketches. This snipped worked perfectly fine MikTeX on Windows 7 \documentclass[]{scrartcl} \usepackage{amstext} \usepackage{amsmath} ...
2
votes
2answers
65 views

pstricks with “colorfunction” in a tikz loop

Trying to make a spiral of vectors (rotating arrow as a function of x-position) I came across tikz for making a proper loop. Concerning other loop solutions I had problems to apply more complicated ...
0
votes
0answers
39 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, ...
1
vote
2answers
42 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) ...
1
vote
0answers
42 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) ...
0
votes
1answer
89 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 ...
7
votes
6answers
953 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} ...
1
vote
1answer
87 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
189 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
96 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
77 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 ...
0
votes
0answers
44 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
1answer
59 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.
1
vote
0answers
39 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
39 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 ...
1
vote
2answers
31 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
74 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? ...
2
votes
2answers
93 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 ...
1
vote
1answer
36 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
82 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
50 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
92 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
41 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
42 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 ...
1
vote
0answers
60 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 ...
6
votes
1answer
78 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 ...
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 ...
0
votes
1answer
34 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 ...
3
votes
1answer
47 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) ...
0
votes
0answers
55 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 : ...
4
votes
2answers
60 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 ...
16
votes
6answers
629 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 ...
5
votes
1answer
34 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 ...
1
vote
1answer
55 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 ...
3
votes
1answer
50 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 ...
4
votes
3answers
106 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 ...
1
vote
2answers
146 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 ...
2
votes
0answers
32 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, ...