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
30 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
68 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
30 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 ...
53
votes
8answers
2k 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
2answers
94 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
101 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
345 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
61 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
55 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} ...
14
votes
4answers
3k views

How to create text with shadows?

This question led to a new package: shadowtext I used the following code: \documentclass{article} %\usepackage{pst-all} \usepackage{pstricks} \usepackage{pst-3d,pst-text} \usepackage{soul} ...
3
votes
1answer
54 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 ...
1
vote
1answer
38 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 ...
2
votes
1answer
55 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} ...
44
votes
5answers
2k views

How to create a Sierpinski triangle in LaTeX?

I have been trying to recreate the following image in LaTeX and for me personally it has to be done with pdflatex. Although answers using pst-fractals From Jake I got a good start which led to the ...
97
votes
9answers
10k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
3
votes
1answer
153 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 ...
5
votes
2answers
76 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} ...
6
votes
1answer
150 views

How to make right angle mark in geometry 3D like this picture?

I want to mark right angle. I tried in Geogebra \documentclass{standalone} \usepackage{pstricks-add} \begin{document} \psset{xunit=1.0cm,yunit=1.0cm,algebraic=true,dotstyle=*,dotsize=3pt ...
-1
votes
1answer
71 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.
1
vote
0answers
24 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 ...
3
votes
1answer
52 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 ...
3
votes
1answer
51 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 ...
1
vote
1answer
46 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?
10
votes
1answer
193 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 ...
18
votes
3answers
712 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: ...
16
votes
4answers
798 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} ...
4
votes
1answer
129 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 ...
0
votes
0answers
87 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
8
votes
8answers
688 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
3answers
207 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
31 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 ...
2
votes
0answers
59 views

How to customize a lens of pst-optic with the following requirement?

The following code \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-optic} \begin{document} \lens [ nameF=F2, nameFi=F1, spotO=270, focus=4, OA=-3, AB=1, ...
0
votes
0answers
41 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
50 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
70 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. ...
12
votes
1answer
909 views

Best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
10
votes
2answers
301 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
82 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
43 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 ...
3
votes
0answers
115 views

Projection of circle across two surfaces

I would like to build on a previous question in which is explained how to project a circle onto a defined plane of an octahedron using pstricks. I would like to know if it is possible to project a ...
17
votes
3answers
9k views

Using psfrag with pdflatex

Is there any way of using psfrag with pdflatex? It seems fairly similar to the problem of using pstricks with pdflatex. Do they both depend on the same things, or does psfrag include pstricks? Can I ...
85
votes
3answers
5k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
16
votes
4answers
369 views

How to draw random simple closed smooth curves but with the same perimeter?

I want to draw some random simple smooth closed curves. Each smooth curve must have the same perimeter but different area. See the following figure to illustrate what I meant clearly. Each smooth ...
5
votes
3answers
150 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). ...
2
votes
1answer
78 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 ...
7
votes
3answers
263 views

Need help making a calender template in LaTeX

Here is a picture I mad in Scribus how the calender (hopefully) should look like. The red coloured days are sundays. In the left corner the month should be shown. It would be nice if you could help me ...
4
votes
0answers
89 views

Future of luatex and pstricks [closed]

As far as I know it is not (yet) possible to use pstricks directly with luatex (-> pdf) as for example in xelatex. Are there any plans to implement this in luatex in near future? If so, how is the ...