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
28 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
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 ...
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 ...
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 ...
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} ...
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 ...
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} ...
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 ...
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 ...
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} ...
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 ...
-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.
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 ...
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 ...
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?
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 ...
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 ...
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} ...
0
votes
0answers
87 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
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 ...
8
votes
8answers
687 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
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
69 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
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 ...
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 ...
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 ...
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). ...
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 ...
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 ...
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
1answer
44 views

pspictures are gone on Windows with crop=on

The following code: \documentclass{article} \usepackage[crop=on]{auto-pst-pdf} \usepackage{pstricks} \begin{document} aaaa \begin{pspicture}(25mm,25mm) \psset{unit=1mm} \psframe(0,0)(20,20) ...
1
vote
0answers
118 views

How can I draw Indian horoscope charts? [closed]

I was wondering if Indian horoscope charts can be drawn in LaTeX. Here is one example: It has 12 divisions. And in each of the divisions there may be one or multiple Grahas with their corresponding ...
5
votes
2answers
169 views

What caused the unexpected outline below?

What caused the unexpected outline below? \documentclass[pstricks,border=0pt,12pt]{standalone} \usepackage{pst-eucl} \psset{PointName=none,PointSymbol=none} \begin{document} ...
2
votes
1answer
29 views

pspictures are gone when I change the class

The following code works fine and displays a square between two strings: \documentclass{article} \usepackage[pdf]{pstricks} \begin{document} aaaa \begin{pspicture}(25,25) ...
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 ...
4
votes
0answers
143 views

Reasons to prefer tikz or pstricks over any GUI driven graphics tool [duplicate]

If I need a figure for a document I usually use TikZ or PSTricks. Sometimes I would like to promote it to other people who usually use only GUI programs for such kind of stuff. But then I restrain ...
6
votes
1answer
28 views

\pstSetAbsoluteOrigin Adds Space Before Section

As soon as I execute \pstSetAbsoluteOrigin a space is been added before the section. Is this normal, am I doing something wrong? I would expect the position of the first section no to be influenced ...
3
votes
1answer
60 views

misaligned psplot psline in pstricks

I am trying to draw a figure using pstricks and pst-plot, compiling to a PDF with XeLaTeX. I find that lines drawn with the \psplot and \psline commands are horizontally displaced from where I want ...
3
votes
1answer
68 views

animate package plotting problem

I want to use the example in the example of an­i­mate package. But I cannot run it successfully. I found no pst-ode package in the package manager. But I installed it. \documentclass{article} ...
5
votes
2answers
78 views

Is it possible to put a psmatrix inside a table?

I wanted to create a table in which one column is a diagram that uses psmatrix, and the other column is text. I got the following error: "Forbidden control sequence found while scanning use of ...
2
votes
3answers
53 views

How do I send option to pstricks when it's loaded inside a pst-all \RequirePackage?

I am trying to use pdflatex --shell-escape to compile a .tex file. But I need to use pstricks with the [pdf] option. inside the .sty file it includes inside pst-all ...
3
votes
1answer
99 views

Is there a function for rad2deg and deg2rad for use in pst-solides3d?

Basically I'm using pst-solides3d to produce 3d-perspective figures. When writing the 3d transform parameters for rotateOpoint3d, it is required to have a unit of degree. But when writing an argument ...