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
13 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
59 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
29 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
53 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
30 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
26 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
43 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 ...
5
votes
1answer
56 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
0answers
23 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
40 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
34 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
40 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 ...
15
votes
6answers
444 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
27 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
43 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
38 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
86 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
116 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
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
71 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 ...
4
votes
1answer
64 views

Is it possible to color only one side of a cube in PSTricks?

I have this cube, implemented as follows: \documentclass[class=minimal,border=0pt]{standalone} \usepackage{pst-plot} \usepackage{pstricks-add} \usepackage{amsmath} \usepackage{pst-ob3d} ...
3
votes
1answer
63 views

pstricks not working with thesis template

I've been trying to get the pst-optexp package working with the thesis template I have, and it's been a nightmare. I'm using MikTeX with pdflatex compilation, as as previously mentioned in How to use ...
2
votes
1answer
60 views

Area between graphs of two functions

This is a follow-up question to Area between curves. After one day, i found out how to do it in LaTeX (Miktex): \documentclass[10pt]{article} \usepackage{pstricks-add} \begin{document} ...
3
votes
1answer
160 views

PSTricks in TeX Live 2014

Using XeLaTeX then dvips leaves blank spaces where the PSTricks drawings are supposed to be. How do I repair this? I should add that I am using a Windows 7 PC. Also, I am a very naive user, but stuff ...
4
votes
3answers
111 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 ...
5
votes
2answers
79 views

CV skeleton with pst-asr package?

\documentclass{article} \usepackage{pstricks,pst-xkey,pst-asr,graphicx}\psset{everyasr=\tiershortcuts} \usepackage{tipa} \begin{document} \asr \3p{\textepsilon}{\textltailm} \endasr \end{document} ...
1
vote
0answers
31 views

How to use pst-asr package on a Mac

\documentclass{article} \usepackage{pstricks,pst-xkey,pst-asr,graphicx}\psset{everyasr=\tiershortcuts} \begin{document} \asr bɪt \endasr \end{document} Hi, I am trying to use "pst-asr" package. I ...
2
votes
0answers
22 views

Why pspicture shows error? [duplicate]

Let us consider the following example : \documentclass[12pt,twoside,a4paper]{book} \usepackage[usenames,dvipsnames]{pstricks} \usepackage{epsfig} \usepackage{pst-grad} % For gradients ...
-1
votes
1answer
85 views

How I can draw with pstricks this image?

I'm using pst-solides3d for draw several images. However I have the same picture in a eps file, I would prefer to use a pstrick code.
3
votes
1answer
59 views

Countries are not visible with pst-map3d

Currently I am trying to use pst-map3d package. The code below plots the earth ball but doesn't draw the countries / country lines. I tried the code now on a Windows, Linux and Mac machine and every ...
2
votes
1answer
50 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 ...
1
vote
1answer
54 views

How to fill the area between a listplot and a psline in pstricks?

I have a .txt with data I use to plot a curve with lisplot and I need to fill the space between this curve and a psline in pstrick. Does anyone know how to do it?
3
votes
1answer
57 views

Pst-geo3d sans / without contours

Je me demande s'il est possible de dessiner une carte sans contour avec pst-geo3d (compilation: xelatex). J'ai besoin de zones de couleur pour la terre et pour l'eau et de la possibilité de placer les ...
10
votes
1answer
233 views

Visualize singular vector fields with TikZ or PsTricks and friends

I am trying to find a good way to make really visually appealing plots of singular vector fields. For example electric fields of point like charges. I already tried this in python without too much ...
17
votes
4answers
824 views

Folium of Descartes

How to fill region on Folium of Descartes like this: Here is my codes: \documentclass[10pt]{article} \usepackage{pstricks-add} \usepackage{pst-func} \pagestyle{empty} \begin{document} ...
0
votes
0answers
92 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
0
votes
3answers
214 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.
3
votes
1answer
32 views

Suitable object for pstPlanePut?

I want to rotate lines and text in 3d space. \documentclass{article} \pagestyle{empty} \usepackage{pst-3dplot} \begin{document} \pstPlanePut[plane=yz](0,0,0){ASDF FDSA} \end{document} Causes latex ...
8
votes
8answers
706 views

Drawing minimal xy axis

can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum. The axis should be black but the grid behind it a shade o gray, dashed. It would be ...
0
votes
0answers
42 views

Problem with length of psshadow box

I am using the a0poster environment and I am trying to create a psshadow box that has the same length with the document. I am using the following code: \documentclass[landscape,a0,final]{a0poster} ...
3
votes
1answer
62 views

How to align a pspicture to the center of page?

I have a pspicture inside a figure: \begin{pspicture}(40,25) \psframe(0,0)(30,20) \end{pspicture} The frame is displayed at the top-left of the page. Is it possible to automatically move it to the ...
6
votes
1answer
80 views

Understanding beams in pst-optexp

I'm apparently missing something fundamental in how beams interact with interfaces. I have prepared three simple examples, with the hopes that someone can explain to me why certain things happen. ...
10
votes
2answers
305 views

How do I typeset this diagram used to explain folding?

How do I typeset this: (this is an explanation of the folding used in derivation) Edit: Here's a code of the formula and XeLaTeX MWE: \documentclass{article} \usepackage{fontspec} ...
4
votes
2answers
94 views

Make psdot thicker in width

I am trying to create a number line but the psdot is not bold or thick enough, it should be the same as the arrow's width. Linewidth does not seem to help, this is the full code. \begin{figure}[H] ...
0
votes
0answers
34 views

Are tickz and pstricks in conflict? [duplicate]

I do not know why, but it seem that the tikz and pstriks packages are in conflict. Using both \usepackage{tikz} \uspepackage[usenames,dvipsnames]{pstricks} When compiling, it returns me the ...
0
votes
0answers
46 views

pstricks gives garbled output in TeXShop

I have a bunch of 3d images that I made using pstricks, but after I updated to Mavericks OS X 10.9.5 this summer the images no longer render properly. All text (like axes labels) is stacked in the ...
4
votes
1answer
136 views

Convert image to code (TikZ? PSTricks?)

I have a ... pdf file, which contains figures of plots such as the following: Now the second plot isn't too hard to draw on TikZ (I assume... I hope? I don't have any experience apart from ...
2
votes
1answer
93 views

Run msc package with pdflatex instead of xelatex

I am using msc Latex package for building sequence diagrams, but I can only run it with Xelatex, which I don't like, but apparently it's possible I can use pdflatex if I run it with: pdflatex ...
5
votes
3answers
156 views

Drawing upper Riemann sum with psstep - problem with supremum

I want to draw the upper Riemann sum of a function like below with pstricks, however is does not take the supremum correctly (seems just to take the maximum of the left and right value of the step). ...