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

Filter by
Sorted by
Tagged with
9 votes
2 answers
1k views

Should we give up pstricks?

I tried recently to use the program called "auto multiple choice", which seems to support only XeLaTeX. When I googled for it, I also heard about Luatex. Personally, I always compile with ...
user avatar
7 votes
1 answer
132 views

How to stop hyperref package from interfering with pstricks?

I am honestly at my wits end with this, it has been exhausting trying to track down this bug but I am out of options. I am writing a document that requires extensive diagrams of go boards (a game) for ...
user avatar
  • 173
1 vote
1 answer
105 views

How to Give Stars a Glow Effect

Consider the code \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{pstricks,psvectorian} \usepackage{color} \usepackage{...
user avatar
  • 4,775
0 votes
0 answers
30 views

Generating display mockups (ex. for datasheets or documentation)

I understand this is a very generic question but I have been trying to find something ready made to generate mock-ups of basic character displays (such as OLED screens) in LaTeX. I have considered ...
user avatar
  • 579
1 vote
1 answer
47 views

How to Eliminate an Unseemly Seam in a Psvectorian bi-Colored Pspicture

In the following code, I am trying to color the LHS of a psipicture blue and the RHS yellow; however, an "unseemly" seam appears down the middle of the picture. \documentclass[12pt]{book} \...
user avatar
4 votes
1 answer
182 views

Plot differential equation trajectories of a 3-system

I was reading about drawing differential equation trajectories with latex, but I wonder... is there a way to graph this? Consider the system x'=-y+xz^2 y'=x+yz^2 z'=-z(x^2+y^2) The following image I ...
user avatar
  • 325
4 votes
3 answers
546 views

How to draw convex, strictly convex and nonconvex sets?

How can I draw these convex, strictly convex and nonconvex sets?
user avatar
2 votes
2 answers
77 views

How to Produce a Bold Psvectorian Image

This MWE code \documentclass[12pt]{book} \usepackage{pstricks,psvectorian} \usepackage{color} % Compiles with XELATEX \begin{document} \thispagestyle{empty} \begin{pspicture}(-5,-5)(4,4)% \psframe[...
user avatar
1 vote
1 answer
51 views

How to Produce a Vertical Kerning for a Psvectorian Image

This post is an extension of How to Fill a Psvectorian Ornament with Color The following code produces two images: the first with a horizontal kerning of 0.35pt; the second, with an attempted vertical ...
user avatar
2 votes
1 answer
47 views

PSTricks plotting a strange graph

I'm plotting the graph of a polynomial in PSTricks but the output does not look like to the graph of the polynomial... why? My code is: \documentclass{report} \usepackage{pst-all,pstricks,pst-eucl} \...
user avatar
10 votes
3 answers
472 views

How to Fill a Psvectorian Ornament with Color

I would like to be able to specify the fill color of a psvectorian image instead of having it filled with the background color. For example, if I would like, say, to color the image of the bird ...
user avatar
1 vote
0 answers
33 views

Someway to export a hand (or tablet) sketch to tikz?

I wanted to know if there is some webpage or app that can transform a drawing made in a tablet to a tikz code or a pdf of the same quality for papers. I come up with an idea and sketch it in my tablet ...
user avatar
  • 111
1 vote
2 answers
76 views

PSTricks does not work properly

I try to use PSTricks to draw a figure that should look like the following which is done by the following code (actually this comes from an arXiv physics paper 1410.4540): \documentclass[margin=10pt]{...
user avatar
1 vote
1 answer
69 views

Transparency Issue on MacTex 2021, previous fix does not work anymore for XeLaTex

Recently there was a fix to the problem related to transparency issue on pstricks+ Mactex 2021, which is actually related to Ghostscript ver> 9.53. It modifies /usr/local/texlive/2021/texmf-dist/...
user avatar
  • 113
1 vote
2 answers
36 views

PSTricks Macro for Color Band Resistors

My goal is to write a pstricks macro that will draw resistors with their corresponding color band, c.f. Wikipedia. My idea is to define a command psResistor that works like this one: \psResistor(0,0){...
user avatar
  • 419
2 votes
1 answer
167 views

Simplifying PSTricks code

Consider the following code: \documentclass{article} \usepackage[ a4paper, landscape, margin = 4cm ]{geometry} \usepackage{xfp} \usepackage{pstricks} \psset{dimen = m} \usepackage{multido} \...
user avatar
1 vote
1 answer
33 views

Align beam endings at angled grating in pst-optexp

I am trying to replicate an optical setup used for CPA using pst-optexp. My current code is the following: \begin{pspicture}(18,20) \Large \definecolor{passiveFiberColor}{HTML}{FF8000} \...
user avatar
  • 1,657
0 votes
0 answers
29 views

Package pstricks doesn't work [duplicate]

I am working on overleaf, but when I add \usepackage{pstricks} doesn't compile In addition, when I compile with the package appear what you see in the image. Any idea? The code I used is the ...
user avatar
  • 3
1 vote
0 answers
35 views

PSTricks \rput command seems not to work in xelatex

With the following document compiled with xelatex: \documentclass{article} \usepackage{pstricks} \usepackage{pstricks-add} \begin{document} \begin{center} \begin{pspicture}(0,0)(10,6) \psgrid[...
user avatar
0 votes
3 answers
59 views

Where is the yellow hue?

I took a .svg figure and converted it with Inkscape to a pstricks picture. The figure has a five different background colors. Its a color palette from yellow-white to red. But the pstricks variant ...
user avatar
2 votes
2 answers
119 views

Pstricks: fillcolor no longer works with \pspolygon

I have a new Mactex installation and in pstricks, using "fillcolor=..." inside \pspolygon no longer works--the polygon comes out empty. Has something changed in pstricks? I know VERY little ...
user avatar
  • 21
1 vote
1 answer
88 views

XeLaTeX Document with PSTricks does not Compile on Overleaf

The following code is perfectly executing in TexStudio with XeLaTeX. But not working in Overleaf. Can anybody help me to find the problem ? \documentclass[a4paper]{article} \usepackage{pst-all} \...
user avatar
2 votes
1 answer
100 views

LuaLaTeX, PSTricks and \maketitle conflict?

The command \maketitle leaves a blank page before the title with PSTricks when compiling via LuaLaTeX: \documentclass{book} \usepackage{pstricks} \begin{document} \title{My title} \author{} \maketitle ...
user avatar
1 vote
1 answer
68 views

A circle shaped loop passing through the center of a node equivalent to the PSTricks \nccircle command

I'm trying to achieve the equivalent of the PSTricks \nccircle command which results in a circle shaped loop. The ideal would be to have a command named /tikz/loop circle with an angle option as there ...
user avatar
1 vote
1 answer
35 views

How to Adjust the Kerning to the Left of a Cabin Font Apostrophe within a Pspicture

Consider the following code which is run with XeLaTeX: \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{pstricks,psvectorian} \...
user avatar
  • 4,775
4 votes
3 answers
135 views

How can I draw a table with arrows pointing from one row to another?

I am developing a documentation tool that will be used to document a series of sequences. I currently used \ncbar and pstricks to generate the following output: \documentclass{article} %\usepackage[...
user avatar
  • 43
0 votes
1 answer
74 views

include pdf through includegraphics breaks pstricks/auto-pst-pdf

EDIT: problem was coming from a borked installation of texlive on Opensuse (some packages were not updated, so texlive was a mix of 2017 and 2021). It seems newer versions of pstricks and/or (pdf)...
user avatar
2 votes
1 answer
52 views

pstricks: circle and frame sizes have changed

Feeding \documentclass{standalone} \usepackage{pstricks} \begin{document} \begin{pspicture}(-.1,-.1)(1.1,1.1) \pscircle(.5,.5){.5} \psframe(0,0)(1,1) \end{pspicture} \end{document} to latex ...
user avatar
1 vote
1 answer
81 views

using pst-all results in a warning in dvipdf

Feeding the file mwe.tex containing \documentclass{article} \usepackage{pst-all} \begin{document} test \end{document} to latex mwe && dvipdf mwe results in %%%% WARNING: Transparency ...
user avatar
1 vote
0 answers
82 views

using pstricks to typeset a LaTeX document in Visual Studio Code

I would like to start using Visual Code Studio LaTeX files. I am a linguist, and my documents contain many phrase marker trees that are written with macros that rely on pstricks. I therefore need to ...
user avatar
  • 11
2 votes
2 answers
92 views

Drawing a hypergraph in latex

I need to draw following hypergraph in Latex. My attempt- \documentclass{article} \usepackage[usenames,dvipsnames]{pstricks} \usepackage{pstricks-add} \usepackage{epsfig} \usepackage{pst-grad} % For ...
user avatar
4 votes
2 answers
164 views

Color gradient for \psline in PSTricks

I'd like to produce a \psline (or, even better, \pscurve) in PSTricks that has a color gradient. I can't find a package that allows me to do so. Is there one? (pst-slpe produces sophisticated ...
user avatar
0 votes
0 answers
63 views

Electrocardiogram graph on paper [duplicate]

Actually I am with a smartphone and I am not able to write. I am curious of LaTeX generate an electrocàrdiogram to understand it in a logarithm paper. How to do it?
user avatar
  • 46.1k
2 votes
3 answers
189 views

Working PSTricks LaTex Code that runs using TexShop or pdflatex on MacBook Pro

I am looking for working PSTricks example code that would run using pdflatex or TexShop on a MacBook Pro laptop. For example, the PSTricks code that I copied from https://tug.org/PSTricks/main.cgi?...
user avatar
  • 21
1 vote
2 answers
109 views

Plot the following parametric equation on latex using PSTricks:

x = (cos(t^2))(1 - sint); y = (sin(t^2))(1 + cost); -2/pi ≤ t ≤ 2/pi ; The following was my approach to this \documentclass{article} \usepackage{pstricks,pst-plot} \title{\textbf{\LARGE {Assignment}}} ...
user avatar
4 votes
3 answers
377 views

Gauss mapping image

I am trying to graph this image (where the sphere on the right is the unit sphere x^2+y^2+z^2=1) The image of the hyperboloid by N is {(x,y,z)\in Sphere : -sqrt(2) < z < sqrt(2)}, it is exactly ...
user avatar
  • 325
1 vote
1 answer
63 views

How to pass an algebraic expression with \pstAngleAOB to RotAngle?

I attempted to assign \i*\pstAngleAOB{A'}{T}{B'}/10 instead of manually-calculated value \i*16.626 to RotAngle as shown in the following example (see the commented rows). MWE \documentclass[pstricks,...
user avatar
3 votes
2 answers
113 views

Unexpected behaviour from pst-arrow

Consider the following example. Code \documentclass{article} \usepackage{pst-arrow} \begin{document} \begin{pspicture} \psset{ doublesep = 0.5cm, fillstyle = solid, fillcolor = blue!80!white }...
user avatar
3 votes
1 answer
82 views

Are the Beige Fillcolors of These Two Pspictures Different; i.e., Picking Up the Hue of the Default Color?

Consider the following code which compiles with Xelatex: \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{pstricks,psvectorian} \usepackage{scalefnt} \usepackage{xcolor} \...
user avatar
2 votes
3 answers
63 views

Remove or Change Color of a Pspicture Border

Consider the code (which compiles with XeLaTeX): \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage[usenames,dvipsnames,svgnames,...
user avatar
1 vote
0 answers
45 views

Problem with dvi and PSTricks in Winedt 10.3

I'm trying to compile (TeXify) the following code with Winedt 10.3 and I get the message "The page could not be rendered" in dvi: \documentclass[11pt]{report} \usepackage{pst-plot,pst-...
user avatar
  • 11
1 vote
1 answer
49 views

Page rotation with pstricks and font package

I have a problem with a simple example (text rotating). Here's the code: \documentclass[11pt]{report} \usepackage[default]{sourcesanspro} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(...
user avatar
3 votes
2 answers
99 views

Nodeconnect lines don't show up

I just installed miktex/texmaker and run an example from here http://mally.stanford.edu/~sr/computing/latex-example.html .But the lines that connect the tree don't show up like in the example. How do ...
user avatar
9 votes
3 answers
533 views

Drawing Jet Balloon With Varying Thickness

I would like to have a PSTricks drawing of the following picture: I have no problem drawing the arrows, but I have absolutely no idea how to draw the two ellipses do to the varying linewidth. The ...
user avatar
2 votes
1 answer
109 views

PSTricks and Lorenz-Curve

So I have some trouble concerning Lorenz-curves and PSTricks. I've extended the example in pst-func to a MWE: \documentclass[12pt]{scrartcl} \usepackage[latex={-interaction=nonstopmode -shell-...
user avatar
3 votes
0 answers
82 views

pstricks \rput not working

When I process this file \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}[showgrid,framesep=0pt](6,3) \psdot(3,2) % The dot appears at 3,2 ...
user avatar
  • 31
0 votes
1 answer
146 views

PSTricks and XeLateX issue

Since updating to MacTeX 2021 my pstricks files don't compile anymore. I've been searching for the solution but the ones suggested don't seem to work (e. g. using xelatex -output-driver="...
user avatar
0 votes
1 answer
42 views

How can I compile exported code from Jaxodraw?

I recently downloaded Jaxodraw for the purpose of constructing Feynman diagrams. My issue is that whenever I export the code in LaTeX I receive the following error: File `pstricks.sty' not found. \...
user avatar
  • 1
2 votes
1 answer
76 views

How to fix an error in which Standalone with Beamer and PSTricks produces a blank page?

I want to create an animation using features provided by standalone, beamer and pstricks. My attempt is as follows but it produces a blank page. How to fix this error? \documentclass[beamer,preview,...
user avatar
9 votes
5 answers
1k views

Draw persistent homology barcodes

I am trying to draw persistent-homology barcodes and I have no idea how to go about it. It would have to be something like that: (Example taken from p. 56 of "Topological Persistence in Geometry ...
user avatar

1
2 3 4 5
39