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

2
votes
0answers
168 views

PSTricks for Mac [closed]

I got MacTex installed and am using Texworks. I wanted to recreate an old PDF from my .tex files and I'm having some problems. I got 1 file which tells tex to include all the others and within some ...
3
votes
1answer
113 views

Strange “Too many files” error with pdfTeX

That is the auto-pst-pdf message I get when I compile the MWE below with the pdfTeX engine. I have just (meaning, as of this post's date) reinstalled my entire MikTeX 2.9 system with a complete ...
2
votes
1answer
65 views

Why do I need to append % right after { of multido rather than right after } of pstVerb?

Why do I need to insert % right after the opening curly brace { of multido rather than right after the closing } of \pstVerb? In my mental model, the unnecessary white spaces exist after the \pstVerb ...
6
votes
2answers
167 views

How can I use a conditional expression as key-value arguments?

I want to reduce the number of used keystrokes in my code. More precisely, I want to simplify ...
2
votes
1answer
99 views

Scaling color in PStricks?

Is there a way to scale/remap/transform the colors in a pstricks picture? More detailed: I have some pstricks code which uses grayscale colors. I want to remap the colors from [0,1] to [a,b], where 0 ...
3
votes
2answers
147 views

Good Reference Book

I am having a problem getting two sets of data plotted on the same graph and have trawled the www for info on how to solve it. The closest I have found is this TeX.SX post. However, that is a ...
11
votes
4answers
507 views

Plot the cusp catastrophe surface

I'm trying to draw (plot) the Cusp catastrophe surface into latex using any software logic. I am completely stuck because I'm definitely not a mathematician. The surface has the potential: V(x) = ...
1
vote
2answers
59 views

Unexpected axes labels in PSTricks plot

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
2
votes
1answer
69 views

Why can my infix-to-postfix operator not produce a correct result?

Why does \pstGeonode(!{15/sqrt(25)} I2P 45 PtoC){B} NOT produce the same output as \pstGeonode(!15 25 sqrt div 45 PtoC){A} where \pstVerb{/I2P {exec AlgParser cvx exec} def}% ? Minimal ...
4
votes
3answers
169 views

What is the safe PostScript expression to plot 1/floor(1/x)?

What is the safe PostScript expression to plot f(x)=1/floor(1/x)? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \pstVerb{/inv {dup 0 eq {pop e30} {1 exch div} ifelse} bind ...
2
votes
2answers
277 views

How can I draw a 3D, three-sided 5-7-9 triangle with TikZ or PSTricks?

I want to draw a triangle with three sides 5, 7, 9 and its incircle in geometry 3D. I used GeospacW. I tried Draw a circle (T) has center origin and has radius r=15/sqrt(11). Take a point A on (T) ...
4
votes
2answers
312 views

Plotting greatest integer function (floor)

How can one plot y=1/floor(1/x) in pstricks? where floor is the greatest integer function. i.e. floor(2.5)=2 and floor(-0.5)=-1. I need to generate something like what I generated in sage: But I ...
5
votes
2answers
149 views

In psmatrix, dow do I connect a line to each of the parallel lines in doubleline?

I'm trying to create a diagram in the psmatrix environment which has a double line connecting to a node and then has two separate lines coming from the node, one line coming from each of the two ...
4
votes
1answer
135 views

Problem with visibility and compilation for pstricks figure

I have been trying to find the solution to get my code to compile, which has an error message similar to this one. In his example, he was giving the wrong number of dimensions for one of his objects. ...
9
votes
3answers
585 views

Plotting sin(1/x) associated functions

I need to plot x, -x, x^2, -x^2, sin(1/x), x*sin(1/x), x^2*sin(1/x) and sin(1/x). But the functions containing sin(1/x) looks somehow bad. How can I fix it. I also do not know how to label the graphs ...
5
votes
1answer
114 views

Overlapping colour filling with PSTricks

Consider the following diagram: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[margin = 2cm]{geometry} \usepackage{pstricks} \usepackage{rotating} \usepackage{microtype} ...
1
vote
1answer
38 views

Psplot position on page

How can i move \psplot on custom position without pstpicture? \psset{yunit=28pt,xunit=28pt} \psplot[algebraic=true,linewidth=1pt,plotpoints=500]{0}{4.7}{(-x/5)*cos(4*x)} ...
2
votes
1answer
90 views

A little problem with pst-plot [duplicate]

I am getting error with this code: \documentclass[12pt]{article} \usepackage{ucs} \usepackage[utf8x]{inputenc} \usepackage[ukrainian]{babel} \usepackage{fontenc} \usepackage{inputenc} ...
4
votes
1answer
168 views

Opacity for pst-3dplot object

How can the opacity of a pst-3dplot object be set to be transparent? I have an example where using opacity or strokeopacity options do not work. I am trying to make an image similar to the following: ...
2
votes
1answer
306 views

Making animation of a straight line

How can I make an animation of line y=-3 that rotates by angle $\phi$ and the perpendicular distance from origin to this line. I also need to trace the shape that points of the intersection of the ...
3
votes
2answers
118 views

How to pass a node abscissa as an argument to a macro?

How to make the following macros %\pstInterFF{\m(N-A.x,N-B.x)}{\fp(x)}{4}{tc}% failed %\pstInterFF{\psGetNodeCenter{A}\psGetNodeCenter{B}\m(A.x,B.x)}{\fp(x)}{4}{tc}% failed ...
1
vote
2answers
231 views

Loading TikZ3+PSTricks at the same time

I am also posting my solution. Please save your time and energy on this Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and ...
5
votes
2answers
56 views

What does rtp2xyz do?

A number of three-dimensional pstricks examples include the line rtp2xyz, which is applied to three numbers that look like angles (specified in degrees). What exactly does it do? While I'm at it, ...
2
votes
1answer
134 views

Weird issue involving pstricks, dvi->ps->pdf toolchain, and the letter combination rt

This is an extremely weird bug [Edit]it's not a bug, the problem was in my code. I spent 1 hour bringing this down to a small working example, can't figure out if its minimal. Set up: Ubuntu latest ...
3
votes
3answers
156 views

How to modify \pstInterFF to find the intersection point between a constant m and a function f'(x) without having to explicitly find f'(x) from f(x)?

\documentclass[preview,border=12pt]{standalone} \usepackage{pst-plot,pst-eucl} \def\f(#1){((#1)*(#1-5)*(#1-6)/4+1.5*(#1)-5)} \def\xi{1} \def\xf{6.5} \def\m{((\f(\xf)-\f(\xi))/(\xf-\xi))} ...
5
votes
4answers
305 views

graphe with tikz or pstricks?

I've a second question about TikZ or Pstricks. How can I type the code to obtain like this ? thank you
2
votes
2answers
288 views

Change font in pstricks

I'm trying to change the font inside of my pstricks code, but I can't change to the font I want to use. I'd rather use another code instead \usefont. This is my code: \thispagestyle{empty} ...
2
votes
1answer
90 views

How can I reuse my infix-to-postfix operator for \psVolume?

Constraints Assume I don't want to use infix-RPN package for unknown logical reason (seriously). Instead I want to use my own A2P describe as follows. In the first case it succeeds but it fails for ...
3
votes
2answers
83 views

How to prevent my node label from getting displaced to the left?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(3,4) \pstGeonode(1,1){A_i} \pstGeonode[PointName=A_j](1,2){Aj} ...
5
votes
0answers
86 views

How to let hidden line be displayed as dash style in pst-solides3d

I want to draw a tetrahedron and an arrow, and part of the arrow is inside of the tetrahedron. However, I'd like the inside part is displayed as dash line. How to do that? My code does not work. ...
2
votes
1answer
41 views

Pstricks bug: adding empty line messes pspicture

I have the following Example: \documentclass{article} \usepackage{auto-pst-pdf} \newcommand{\directionFieldOneTangent}[2]{ \pstVerb{% /aaaaaaaaa #1 \space def }% ...
13
votes
1answer
535 views

How to draw a circular, inclined road in 3D?

I want to draw the road which is similar to the following (but please ignore grass, soil, and the surrounding scenery for the sake of simplicity), to illustrate a physics problem about circular ...
15
votes
2answers
302 views

Is there a smart solution to fix the precision issue for atan?

\documentclass[pstricks,border=12pt]{standalone} \psset{unit=.25} \def\Atom#1{% \begin{pspicture}[dimen=m](-12,-12)(12,12) \pstVerb{/AA 1 5 atan def /RR 26 sqrt def} ...
4
votes
2answers
135 views

Unable to get PSTricks to work as expected in Texmaker

I am trying to get PSTricks to work with PDFLaTeX in order to create scientific diagrams in the report I am producing. My document is currently as follows (I've included potentially extraneous ...
5
votes
1answer
164 views

Point on surface using PSTricks

I would like to draw a Point on a surface using PSTricks and pst-solides3d. What I mean by that is, that the point should look like it is attached onto the surface. That means that the point should ...
1
vote
0answers
104 views

How to use visualcounters in latex? [closed]

I want to use Progressbar in my LaTeX document. I found some idea from the visualcounter module by Aditya Mahajan, but I don't know how to utilize that one. Because I am new to LaTeX, any one help ...
4
votes
2answers
333 views

TikZ - How to draw the following

Rectangle in TikZ can be easily drawn. But how do I achieve the following using TikZ or pstricks? Here is what I have worked till now: \documentclass{beamer} \usetheme{CambridgeUS} ...
5
votes
1answer
81 views

Arithmetic overflow in psscaleboxto

The following example, using \psscaleboxto, produces an error: "I can't carry out that multiplication or division, since the result is out of range." Why does it happen? ...
2
votes
2answers
213 views

Can't include pspicture code

I am trying to create a presentation using beamer. In my presentation I need to include a picture created by LaTeXDraw software. I pasted the code to draw the picture inside the frame, but it is not ...
1
vote
1answer
60 views

I am using the package ps-plot and a file that used to compile no longer compiles

I am using the package ps-plot and a file that used to compile no longer compiles. The error I get says No room for a new \dimen \ch@ck …\else \ermessage {No room for a new #3}\fi Please help! I need ...
4
votes
2answers
303 views

timeline and animate package

I'm trying to make some pdf with animate package controlling a loop with the timeline. The purpose is to have a loop but reaching the last frame, the color of the dot should change. My main questions ...
2
votes
0answers
158 views

Getting psfrag to work on ggplots with transparency [closed]

Right, so I'm using ggplot2 in R to create a graph that involves transparencies (no way around it I'm afraid). In Latex I use latex - dvips - ps2pdf to compile, because I also need psfrag (and ...
2
votes
1answer
59 views

Automatic axes for graphs with PSTricks

I have datas from Matlab and I would like to plot them using PSTricks. My datas are in a .data file. So far I have done a graph but only with Manual adjustment of the axes: \psset{xunit=0.025mm, ...
4
votes
2answers
202 views

How to change the color and separation of fillstyle=vlines and \fillstyle=hlines PSTricks?

I am doing a figure and I want to fill a polygon with fillstyle=vlines or fillstyle=hlines but I want this filling in a different color to the black which is what throws by default. Besides this, I ...
6
votes
2answers
153 views

How to correctly nest psmatrix within psmatrix (without undesired space)

I'd like to nest several psmatrix environments within a psmatrix, so that every cell of the outer psmatrix itself is an psmatrix again. Ultimately I want to draw within these inner matrices using ...
5
votes
2answers
414 views

How to draw big circle (intersection of a plane with a sphere)?

I use Geospacw to draw two big circles but I cannot it using TikZ (or PSTricks). How can I draw it?
4
votes
1answer
87 views

How can I prevent my labels from getting reflected?

The left triangle is the image of the right triangle about the vertical line in between them as the mirror. I only want geometric objects and label position (but excluding their labels) to be ...
4
votes
3answers
204 views

PSTricks with Geogebra

This is the code generated by Geogebra, and when I try to compile the code with TeXmaker, using LaTeX, I get a pdf with a small picture. Please, understand that I don't have any knowledge of ...
3
votes
1answer
175 views

pdf option for pstricks conflicts with babel french option

Today I had this error message on compiling a document: ! Package babel Error: The character '"' is not a shorthand character in french After commenting a lot of things I finally identified the ...
3
votes
1answer
263 views

PDFTricks with standalone class

This is a PDFTricks question much more than a PSTricks question. I am trying to use PDFTricks to compile a PSTricks document with the standalone class. I believe I have followed the manual's ...