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
2answers
80 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
32 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
144 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
68 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
37 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
77 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 ...
5
votes
1answer
108 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
301 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
71 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
129 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
76 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
75 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 ...
2
votes
2answers
65 views

PSTricks with standalone class and newpage or pagebreak

Can I use page breaks with the standalone class with PSTricks? Are there limitations? Or is there some mistake in my code? I have been nearly successful in running the code below with PSTricks and ...
15
votes
5answers
364 views

How to automatically generate a stack diagram for a PostScript expression?

The following figure shows a PostScript expression and its stack diagrams step by step. Is there any package to generate it out of the box? If there is no such a package, how to generate it ...
7
votes
3answers
200 views

How to automatically draw the images of a point placed between 2 inclined mirrors?

Consider a point X placed between two inclined mirrors as follows. \documentclass[pstricks,border=20pt,12pt]{standalone} \usepackage{pst-eucl} \def\Angle{37}% extreme case in which 360/\Angle-1 is ...
2
votes
1answer
131 views

Multiple files with new command causes undefined control sequence

I am working on a scientific paper and recently I moved from Ubuntu with TeX Live to Mac OS. My document is splitted on more .tex files, to make it easier to work over it. With my old latex machine I ...
13
votes
7answers
1k views

How to draw this cube with PSTrick or TikZ?

I use GeoGebra to draw a cube. The code in GeoGebra is \documentclass[12pt]{article} \usepackage{pstricks-add} \pagestyle{empty} \begin{document} ...
2
votes
1answer
118 views

LaTeX table creation

I am new to LaTeX and really stuck in creating a table. A table created in Word is attached. Can someone help me create this table in LaTeX as it is? I tried, but couldn't connect the arrows and ...
7
votes
3answers
77 views

pdfLaTeX with PSTricks: is it possible to get one .pdf for each figure?

I know that it is possible to use pdfLaTeX in a document with PSTricks figures by adding \usepackage[pdf]{pstricks} in the preamble and then running pdflatex --shell-escape <file> Then, ...
2
votes
1answer
73 views

pst-3dplot and drawing cylinders

I am drawing a cylinder with \psCylinder from pst-3dplot, as shown here in a MWE from the manual: \documentclass{article} \usepackage{pst-3dplot} \begin{document} \begin{pspicture}(-3,-2)(3,7) ...
6
votes
1answer
141 views

How to write a bounding box information in PostScript to an external file and read it in TeX at the second compilation?

Scenario I want to create a new environment, e.g., pscanvas that does not need any size specification but just a unique filename. It can contain any graphic objects that pspicture can contain. Thus ...
8
votes
4answers
366 views

Drawing cylinder with PSTricks

I am trying to draw a simple cylinder with PSTricks, similar to what is attached. Is there a smart way to do this, or do I just have to manually draw each line? If there is no other way, then it is ...
4
votes
1answer
59 views

Using PSTricks with TeXmaker

I want to do some drawings using LaTeX. I use TeXmaker. What the commands that I need to set up to start using the PSTricks?
3
votes
1answer
112 views

Building a flowchart with PSTricks

I am building several flow-charts similar to this. They represent a procedure (algorithm) for dividing a triangle. Right now, I use the following code: \newcommand{\thetriangle}{ ...
2
votes
1answer
44 views

pst-pulley produce big red dots

Based on the document I use the pst-pulley package by XeLaTeX in TeX Live 2013, but (without grid) produces the big red dots. What is wrong? Here the codes: \documentclass[11pt]{article} ...
4
votes
1answer
63 views

XeTeX pstricks larger page size is cropped to A4

In a Plain-XeTeX document, if I set the page size to anything bigger than the default page size, (A4 in my case) then all the pstricks elements beyond the size of an A4 page are trimmed of, so only a ...
4
votes
1answer
71 views

How to use PostScript for to plot the sum of cos(n*x) for n=0 to n=100?

I want to plot the function f(x) which is the sum of cos(n*x) for n=0 to n=100. The domain is from 0 to 2π. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot} \begin{document} ...
3
votes
1answer
57 views

Removing unwanted lines and iterative plot

I am trying to plot a couple of streamlines over a circle, defined as x^2 + y^2 - 4, so the radius is 2. I am trying plot using a function, specifically using PSTricks. However, I keep getting extra ...
5
votes
1answer
76 views

How can I write accented letter “ő” in PSTricks?

I'd like to write accented (hungarian) letters in PSTricks. With the solution below I can write "é", "á" and other similar characters but this doesn't work for "ő". Here is what I tried: ...
4
votes
1answer
46 views

How do I ignore lines to points with y=0 using pst-plot and a logarithmic y-scale?

I am using pst-plot to visualize data sets in linear x and logarithmic y scale. The data set should be plotted by connecting all points with a solid line style. This all works fine by using ...
4
votes
1answer
116 views

Cabinet projection in PSTricks (2)

I'd like to draw 3D-objects in cabinet projection with angle α=26.565° (i.e. atan(α) = 0.5) and scaling factor k=0.5590 = sqrt(5)/4, because the objects should be drawn on a grid, as in the left ...
5
votes
1answer
234 views

Drawing torus points and arches with coordinates read from a file

I have a quite intricate question... I have to plot a torus of radii (r,R) with two set of points of different colour on it its surface. The points' coordinates are in two different files that must be ...
12
votes
2answers
106 views

What is PostScript dictionary for? How to know whether or not I need it?

Consider the following code, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{linecolor=red} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind ...
7
votes
2answers
130 views

What causes two identical instances to produce different result?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind def /updateA {1 sub sqrt 1 exch atan Angles add ...
3
votes
2answers
54 views

Moving the common angle to \pstVerb produces incorrect result

Consider the following complete code first. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(-5,-5)(5,5) \def\points{(0,0)(1,0)}% ...
5
votes
2answers
134 views

Is it possible to exit from the PostScript expression and abort the drawing?

I just want to draw a dot if the condition is satisfied and otherwise cancel the drawing of the single dot. The following code is the simplified version of my real scenario. Please don't suggest other ...
2
votes
2answers
66 views

How to change the label color of \psaxes?

\documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-5,-1)(5.5,5.5) ...
5
votes
1answer
93 views

How to draw a line from the origin to the last point of \psrline?

Consider the following code to draw the Theodorus' spiral. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) ...
3
votes
1answer
61 views

How to use \psVector as a replacement for \rlineto in drawing Theodorus' spiral?

Consider the following minimal working example. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) ...
2
votes
1answer
52 views

How to separately access the abscissa and ordinate of the current point?

Consider the following code. \documentclass[pstricks,border=12pt]{standalone} \SpecialCoor \begin{document} \begin{pspicture}[showgrid](-5,-5)(5,5) \pscustom { \psline(1,0) ...
1
vote
1answer
69 views

How to cancel the effect of \translate when I want to draw a radial line from the untranslated origin to the current point?

Consider the following MWE first. \documentclass[pstricks,border=12pt]{standalone} \SpecialCoor \usepackage{multido} \begin{document} % draw the tangential lines ...
5
votes
1answer
58 views

Problem Creating a Polar Grid using PSTricks

I am a MacTeX 2013 user that uses PDFLaTeX to create my files. After a recent update, the following code stopped producing a polar grid. I checked the documentation for any changes as well as the ...
38
votes
9answers
2k views

The Spiral of Roots in TikZ

How can one create a spiral of roots as shown in the diagram below: where one can use a command to draw more parts to the spiral. For example, a command like \sqrtspiral{1}, \sqrtspiral{2}, ...
2
votes
1answer
123 views

high resolution table of numbers

I'd like to design a table of numbers for poster-size printing, say like a multiplication table, so I'm looking for: high resolution, colors, pretty fonts. Does it sound like it could be done in ...
10
votes
3answers
1k views

Define a “square” command

I try to define the following command, for drawing a square in pstricks: \newcommand{\square}[4] { \rput(#1,#2){\psframe[linecolor=#4](0,0)(#3,#3)} } I use it like this (for drawing a red square ...
6
votes
1answer
123 views

What transformation do I have to apply to a node before passing it to \uput as a direction angle?

Consider the following code \documentclass[pstricks,12pt]{standalone} \usepackage{pst-node} \usepackage{pgfmath}% don't forget this line! \psset{saveNodeCoors} \degrees[13] \begin{document} ...
5
votes
1answer
55 views

What makes the looping index in \foreach produce compile-time error?

Consider the following code and error message. \documentclass[pstricks,12pt]{standalone} \usepackage{pst-node} \psset{saveNodeCoors} \degrees[13] \begin{document} \makeatletter ...
7
votes
2answers
335 views

Projection of included 2D graphics to a plane

General purpose I want to project a graphic file from external sources (example.pdf saved on my computer e.g. a chip design) on the bottom of a 3D graphic (which I can draw in LaTeX by using TikZ, ...
6
votes
2answers
100 views

Problems to get two graphics in different pages with standalone

In the following MWE I get a single page with the two graphics within: \documentclass[multi]{standalone} \standaloneenv{pspicture} \usepackage[dvipsnames, svgnames, prologue]{xcolor} ...
1
vote
1answer
54 views

Clash between animate and hyperref on pdfLaTeX

When I compile the MWE below on pdfLaTeX I get the error message `! pdfTeX error (ext4): destinations cannot be inside an XForm. right before the \newframe* command is read. I have tried by switching ...