Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pstricks]

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}.

3
votes
1answer
41 views

latexmk: endless loop with auto-pst-pdf

Here's a MWE: \documentclass{article} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(3,3) \psline(2,1) \end{pspicture} \end{document} I'm using MikTeX on Windows 10, all ...
3
votes
3answers
63 views

How to draw vectors with labels and grids?

[![enter image description here][1]][1]I would like to put this grid inside a document. But compiled, the grid appear to be out range. here is my code: \documentclass[10pt]{article} \usepackage{...
6
votes
2answers
217 views

Draw a line with an isolated and accumulation point in \mathbb{R}

I would like to draw a line where 0 is an fixed accumulation point in \mathbb{R} where the points thicken near it and leave a small trace where you can see the shift to the left of the points. Point ...
1
vote
1answer
24 views

pst-vowel: “missing } inserted” if \ncline is present

On a freshly-updated MikTeX on Windows 10, this: \documentclass{article} \usepackage{auto-pst-pdf,pst-vowel} \begin{document} \begin{figure} \begin{vowel}[ipanew] \putcvowel{something}{1} \putcvowel{...
5
votes
2answers
309 views

How to delete unnecessary white space?

\documentclass[border=10pt]{standalone} \usepackage{pstricks-add,amsmath,amssymb} \begin{document} \begin{pspicture}[showgrid,arrowinset=0](0,-1)(4,2) \begin{psmatrix}[colsep=.5cm,rowsep=1.2cm] & [...
2
votes
2answers
97 views

Why do directly-inserted labels in pspicture displace other following objects?

\documentclass[border=15pt,pstricks]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}[showgrid,algebraic](-7,-1)(7,7) % \uput[90](1,3){ $\sqrt{40-x^2}$} % Line 1 % $\sqrt{40-x^2}$ %...
6
votes
2answers
172 views

How to use “ shadow ” in pstricks?

\documentclass[border=.8cm,pstricks]{standalone} \usepackage{pst-eucl} \def\a{4} \begin{document} \begin{pspicture}(4,3.5) \psset{linejoin=1,PointSymbol=none} \pstGeonode[...
3
votes
1answer
51 views

What is the PSTricks equivalent for “ <rotate> of \tkzLabelAngles ” and “ <arc> of \tkzMarkAngles ” in tkz-euclide?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](-4,-5)(4,4) \pstGeonode[PosAngle={0,135,-45}](3;0){A}(3;140){B}(3;-45){D} \...
1
vote
1answer
58 views

How to plot a family of ogives with the same median but different standard deviations?

The following shows a black ogive and a family of "Red-Cloud" ogives constructed from a simulated external data. \documentclass[pstricks,dvipsnames]{standalone} \usepackage{pst-plot,filecontents,...
3
votes
2answers
142 views

What is the PSTricks equivalent for 'turn' in Tikz?

\documentclass[tikz,border=15pt]{standalone} \begin{document} \begin{tikzpicture}[line join=round] \def\a{3} \draw[step=1,thin,gray!50] (0,0) grid (4*\a,2*\a);%Vẽ lưới \draw (0:0)--++(90:1.5*\a)...
4
votes
3answers
156 views

How to make the same font size for both numerator and denominator?

As you can see below, the 3/2 looks so weird in which the font size of the numerator is bigger than that of the denominator. How to make it get balanced? \documentclass[pstricks,border=0pt,12pt]{...
3
votes
2answers
33 views

How to fix “dimension too large” error when plotting the following cumulative frequency?

How to fix dimension too large error? \documentclass[pstricks,dvipsnames]{standalone} \usepackage{pst-plot,filecontents,siunitx} \begin{filecontents*}{test.data} 0 0 3 20 5 35 10 ...
3
votes
2answers
90 views

What is the PSTricks equivalent for 'control' in Tikz?

\documentclass[tikz,border=5mm]{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} %================== \begin{tikzpicture}[scale=1, font=\footnotesize, line join=round, line cap=...
2
votes
1answer
41 views

Beamsplitter and transmission beam problem

I tried to draw a figure such that the laser beam is transmitted and reflected from a beam splitter. However, following the description on the internet, I ran into two problems, 1) The cubic beam ...
2
votes
1answer
51 views

Fill area under Bezier curve

I would like to fill the area under a Bezier curve and a line with color in PSTricks. How can I do that? Here is what I tried so far: \begin{pspicture}(20,25)(160,80) \psline[linewidth=0.55]{|->}...
3
votes
1answer
89 views

How to draw a parabol through three points C2',Q',C1'?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl,pstricks-add,pst-intersect} \begin{document} \begin{pspicture}[showgrid](-7,-2)(6,6) \pnodes(-1,2){M}(4,-.5){N}(-1,-1){X}(0,5)...
1
vote
1answer
26 views

How to compact two \psclip commands?

\documentclass[border=15pt,pstricks,12pt]{standalone} \begin{document} \begin{pspicture}[unit=1.5cm](-2,-2)(2,2) %%% \psclip{\pscircle(0,0){1.2}} \psframe[dimen=m,fillstyle=vlines,linestyle=none](-.8,-...
1
vote
0answers
44 views

Image not properly aligned

In the beginning of a page the upper part of the image/picture is not seen while using pstricks on using latex \begin{figure}[H] \centering \psscalebox{1 1} % Change this value to rescale the ...
0
votes
1answer
115 views

How to incorporate body posture sketches in LaTeX?

Situation / Problem Lets say, I want to create a document with workout or other sports instructions. There might be video-tutorials but I do not want to use stills nor photographs. Rather, the guide ...
3
votes
3answers
101 views

How to compact two the parabol commands in the following example?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-3,-3)(3,3) \psframe[dimen=m](-3,-3)(3,3) %%% \psclip{\parabola(3,3)(0,0)}% ...
2
votes
1answer
38 views

What is the difference between two commands \psplot?

\documentclass[border=10pt,pstricks,12pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}[unit=2cm](-3,-3)(3,3) \psline{->}(-1.5,0)(1.5,0) \uput[-90](1.5,0){$x$} \psline{->}(...
2
votes
1answer
53 views

What-is-the-difference-between-\psaxes in the following cases?

\documentclass[border=15pt,pstricks]{standalone} \usepackage{pst-plot,pst-calculate} \begin{document} \begin{pspicture}[showgrid,algebraic](-5,-1)(5,5) \def\hamso{-1*x^2+4} \def\hs{sqrt(-1*x^2+4)} \...
4
votes
2answers
893 views

How to rename \pi as another value only for y axis without affecting \pi used in x axis?

Case 1 The labels in y axis are multiples of \frac{\sqrt{3}}{3} while the labels in x axis are multiples of \frac{\pi}{4}. I want to rename \pi as \sqrt{3} only for y axis without affecting the ...
3
votes
1answer
42 views

How to remove the origin label?

\documentclass[12pt,pstricks,border=5pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-7,-1.5)(7,1.5) \psaxes[Dx=90,dx=\psPiH,xunit=\psPi,xlabelFactor={}^\circ]{->}(0,0)(-2....
4
votes
2answers
270 views

Is there any other simpler way to draw the following cross section?

Given that a regular pyramid T.ABCD in which P is on TC such that TP:PC = 1:3 R is on the extension of BC such that BR:BC = 1:3 Q is arbitrarily on the plane TAD but neither outside nor on the ...
2
votes
1answer
30 views

Conflict error when using \pstMarkAngle with XeLaTeX

I’m trying to produce a pspicture with marked angles, so I’m using the pstricks extention pst-eucl. Here is a minimal example: (I’m using MikTeX 9.25 together with TeXmaker on Windows 7) \...
1
vote
0answers
39 views

compile pstricks: ps2pdf doesn't work

I would like to revisit an old question, namely how to compile pstricks code properly. I tried to use the dvi-ps-pdf chain with the latex compiler within texstudio but it failed because ps2pdf seems ...
3
votes
1answer
102 views

Why PStricks requires XeLaTeX to compile?

Why PStricks compiles only with XeLaTeX engine and not PDFLaTeX. When I compile with PDFLaTeX I get the error that PDFLaTeX is not able to find package pstricks.
1
vote
1answer
57 views

\XC@usec@lor …\expandafter \c@lor@to@ps #1#2\@@by

I have a LaTex document which I was able successfully to compile until 2014. Today I am not to compile correctly. I think the problem is in my package "PSBao.sty" which I never changed. Unfornately ...
2
votes
0answers
81 views

A decorations packages of LaTeX

I'm looking for decorations packages of LaTeX. So far, what I know is the: Adforn Pgfornament Psvectorian (I don't see differences between this and pgfornament...) So, can you tell me please ...
6
votes
2answers
159 views

Poetry, calligrams and TikZ/PStricks challenge

One of my favorite poets is probably Guillaume Apollinaire. His story and proximity to Picasso made him a precursor. Calligrams was a constant attempt to merge poetry and visual. I am wondering how we ...
6
votes
2answers
274 views

Drawing all planes passing through two given points in a cube

Is there a smarter way to find a collection of possible planes passing through 2 given points P on ABFE and Q on DCGH such that we can see that the point R is the intersection of PQ and the common ...
2
votes
1answer
98 views

Can't compile mdframed example after miktex installation

I just got a new computer and installed mikTeX, emacs and auctex. Then I tried to compile a basic example from mdframed documentation : \documentclass{article} \usepackage{amsmath} \usepackage[...
2
votes
1answer
78 views

Vector field for a system of odes

Assume that you have the ode system x'=xy-y, y'=xy-x How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?
5
votes
2answers
188 views

How to combine three animations as the following example?

EX1: \documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \foreach \i in {0,-1,-2,...,-180}{% \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,...
2
votes
1answer
69 views

How to use \psrotate?

\documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,-1){B}(7,-1){C} \pstMiddleAB[PosAngle=...
5
votes
2answers
111 views

How to the red dot draw an ellipse?

\documentclass[pstricks]{standalone} \usepackage{pst-node,multido}% \begin{document} %\multido{\rA=180+1}{180}{% \begin{pspicture}[showgrid](-4,-4)(4,4) \pscircle{3} \pnode(3;180){A} \pscircle(A){.5} ...
1
vote
0answers
66 views

Wrong slide size with beamer, pstricks and Texlive [closed]

This is a followup of my question here and uses the same setup. MWE (test.tex): \documentclass[dvips]{beamer} \usepackage{pstricks} \psset{unit=1mm} \begin{document} \begin{frame}\frametitle{Test}...
2
votes
1answer
48 views

Huge pstricks graph max memory exceeded

i have to update a very old reporting system wich uses latex, dvips and gs to generate pdf reports. On the old server, the following is installed: pdftex --version pdfTeX 3.1415926-1.40.10-2.2 (TeX ...
15
votes
2answers
671 views

How to draw a cube as the following?

\documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint=120 50 30 rtp2xyz,Decran=50} \pstVerb{/Colors [(red)(yellow)(orange)(green)(blue)] def } \...
1
vote
2answers
194 views

Carnot and Otto cycle diagrams in Latex using Tikz or PStricks

How can I generate P-V or T-S plots for Carnot and Otto cycles? In addition to what are shown in the pictures, I would like to put directional arrows for steps starting from 1 to 4. Also, I was ...
0
votes
0answers
33 views

What packages are capable to draw these figures? [duplicate]

Hey everyone! It would be nice if I could draw any of these pictures myself that's I want you to point out to me the packages to draw. So that I can learn it and built it to my needs.
2
votes
0answers
56 views

Problem with dotstyle=+

I'm using Overleaf with LaTeX compiler. I have the following code: \documentclass[pstricks,border=12pt,preview]{standalone} \begin{document} \begin{pspicture}[showgrid](0,0)(2,2)% \psdots[dotstyle=+...
5
votes
1answer
95 views

Where should we use \pstVerb?

I have some constants as well as macros to be defined for PostScript. \pstVerb { /a {3} def /b {2} def } There are three possible places: In the preamble (A). In document but outside ...
3
votes
1answer
81 views

How to specify a point belong to an ellipse?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \degrees[36] \begin{pspicture}[showgrid](-3,-3)(4,4) \def\a{2} \def\xa{\pscalculate{\a*cos(5)...
3
votes
0answers
66 views

Why Pstricks loads some PGF files and is there a bug? [closed]

In pstricks.tex (version of 2019-01-22), at the line 75, we read: \ifx\pgfkeysloaded\endinput\else \input pgfutil-common.tex \input pgfkeys.code.tex \input pgffor.code.tex \fi \let\pgfforeach\...
5
votes
1answer
118 views

How to shuffle a Rubik's cube?

\documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-solides3d} \usepackage{arrayjob} \begin{document} \newarray\colors \readarray{colors}{red&red&red&red&red&red&...
2
votes
1answer
103 views

How to include LaTeX with PStrick macros figure generated using Inkscape?

I generated a PStrick macros .tex file from a .svg using Inkscape 0.91 (Shift+Ctr+S, save as LaTeX with PStrick macros) but I am not able to include it in my document I have tried: \documentclass{...
1
vote
1answer
132 views

Convert image to text and include in LaTeX

I'm writing a class, that should insert a logo (which i have available as .pdf and .svg) in the header. I thought it would be an elegant solution to just include the file directly in the class, ...
1
vote
0answers
49 views

Interactive geometry package

I am looking for a package that can produce some basic geometric figures and can be incorporated in a pdf file in such a manner that it is interactive with the reader. More specifically, I want to ...