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
1 vote
1 answer
36 views

pstricks: How to use adjustbox (or alternative) with pstricks?

When I use an adjustbox around anything drawn with pstricks, the adjustbox just gets ignored. scalebox works, but requires manual tuning to determine the proper scaling factor (e.g., to scale ...
Jigsaw's user avatar
  • 811
1 vote
2 answers
37 views

PSTricks segment orientation

I want to make a simple 3D picture in PStricks (showing how to measure a segment starting at the origin in the space). The main issue is to properly draw the projections of the defining point A along ...
Martino's user avatar
  • 1,370
1 vote
1 answer
21 views

Aligning lines and crosses placed with `rput` (place an object at a desired point)

I would like to slightly modify this pspicture: Each of the crosses (as well as the numbers, although that is not so important) should be centred at the centre of their each squares. As you can see ...
Javi's user avatar
  • 13
0 votes
1 answer
35 views

Jump lines on pst-pdgr

I have a pedigree like this: I want to have these bumps where lines cross: Is there a way to achieve this with pstricks? Thanks, B Edit: MWE https://www.overleaf.com/read/gggnbpzfqgnz
Barslmn's user avatar
  • 11
0 votes
0 answers
50 views

Two playing cards packages show vastly different performance

I am experimenting typesetting poker hands with two packages. I unexpectedly spotted a huge performance difference between the two. $ cat pst-poker.tex \documentclass{article} \usepackage{pst-poker} \...
mhj67163's user avatar
0 votes
0 answers
23 views

csv data and multido

I am making a card with properties of Periodic Table of Elements. I wish had the mass number, like this using pstricks: \documentclass[12pt,a1paper]{article} \usepackage[a1paper,margin=0cm]{...
Darío's user avatar
  • 91
0 votes
1 answer
99 views

how to get hand draws into code

Is there an easy way to draw complex images in LaTeX? By this I mean: Have a look at the following question. Some answers provide incredible pictures, very elaborated. In the (rudimentary) way I can ...
Dog_69's user avatar
  • 981
6 votes
3 answers
465 views

Draw with fifth root in tikz

I'm trying to graph the following function: y=\sqrt[5]{4x^4-x^5} didn't work out the first time, so I searched here for something that might help me and found this. Unfortunately, when I edited the ...
Zaragosa's user avatar
  • 561
4 votes
1 answer
72 views

Lualatex : opacity not working in pstricks

The opacity doesn't work with LuaLaTeX (I'm on Windows, I use TexMaker with the MikTex distribution, packages are all in the latest versions) : \documentclass{article} \usepackage{luatex85, pstricks, ...
M. LENZEN's user avatar
6 votes
1 answer
185 views

Missing number error for using Spy in LuaLaTeX

I have a diagram involving lens and beams made using pst-optexp package for convenience and accuracy. So I had to use LuaLaTeX for compilation. However I would like to use the spy library from tikz ...
SolidMark's user avatar
  • 1,415
4 votes
2 answers
100 views

multiframe within multido does not work

I try to have several \multiframes using \multido. But the following minimal example program (which should result in an animation of a growing rotating wedge) gives the error: ! Package animate Error: ...
diffset's user avatar
  • 143
1 vote
1 answer
40 views

axes with different scale

Using pstricks and psaxes I'd like to create the axes just like in the attached figure. I tryed to change Oy, dy and Dy as well as the origin of the axis but I'm not getting the same as the figure. I ...
leobb's user avatar
  • 73
1 vote
1 answer
175 views

My first package stopped to work!

some years ago I wrote the simple package PSBao.sty. I stopped using it two years ago and now it doesn't work any more. I'm not able to find the cause. Can someone help me? Unfortunately it was my ...
nino_user183677's user avatar
2 votes
1 answer
58 views

How can I add a coordinate system to pst-magneticfield?

For an assignment, I'm asked to draw a schematic of the magnetic field due to two circular coils, parallel to the $x$-$y$ plane and at height $z = d/2$ and $z = -d/2$. I have settled on pst-...
TeamPhysics's user avatar
1 vote
1 answer
51 views

Annotate with Call-Outs on tcolorbox

I'd like to do call-outs on a tcolorbox like the ones in this diagram from the longfbox documentation's Breakable Content Section. I've got my whole document using tcolorbox and pstricks but can't ...
Craie's user avatar
  • 37
2 votes
2 answers
101 views

pspicture strange effect with \textdir TRT in an RTL document

In this example, when adding the command \textdir TRT the picture is shifted to the right, and I can't understand what's going on here, if we uncomment \textdir TLT we get a correct result \...
Salim Bou's user avatar
  • 16.8k
1 vote
1 answer
85 views

Using \TextField inside a pspicture environment

Here follows a MWE showing a problem of mine. Code \DocumentMetadata{} \documentclass{article} \usepackage{multido} \usepackage{pstricks} \usepackage{hyperref} \psset{dimen = m} \def\skala{0.7} \...
Svend Tveskæg's user avatar
0 votes
0 answers
279 views

Some commands from PSTricks do not work in MikTeX

When I try the following in MikTeX, the \rput command works, but the \psline command doesn't. I compiled with XeLaTeX. I've tried adding/removing various packages, an many other things, but no good. ...
James Firstson's user avatar
2 votes
1 answer
51 views

How do I extend the refracted ray in pst-optic?

I am trying to reproduce Snell's law using \refractionRay macro. However the refracted ray that I obtain is 'short' to say and I wish to extend it further. How do I achieve this? Also the ...
SolidMark's user avatar
  • 1,415
1 vote
1 answer
75 views

pstricks causes the output of xdvi to turn gray

Feed mwe.tex containing \documentclass{article} \usepackage{pstricks} \begin{document} Test \end{document} to latex, then issue xdvi mwe from an xterm under X11+gnome, and finally observe On the ...
AlMa0's user avatar
  • 439
1 vote
1 answer
65 views

latex + hyperref + glossaries + pstricks produces colored text and underlined links in DVI though neither is commanded

Feeding mwe.tex containing \documentclass{article} \pagestyle{empty} \usepackage{amsfonts} \usepackage[hidelinks]{hyperref}%%% The documentation of glossaries tells to load hyperref first. \usepackage[...
AlMa0's user avatar
  • 439
1 vote
2 answers
110 views

From PStricks to Tikz

I have this very good macro with PStricks. \documentclass{article} \usepackage{pst-node} \newcommand*\Tsemb[2]{% \quitvmode$\vcenter{\vbox{\setbox0\hbox{#1}\setbox1\hbox{#2}\hsize\wd\ifdim\wd0>\...
Moïse Mugshisha's user avatar
0 votes
1 answer
43 views

TikZ's pin option: problem with positioning ordered pair

In a separate post, @00dani provided a nifty way of labeling points with TikZ's pin option which I'm trying to mimic. options for labeling single point Specifically, in a system of 1 quadratic and 1 ...
Siuslaw Math's user avatar
2 votes
1 answer
58 views

What does \psGetDistance do?

friends, I wonder if \psGetDistance is somehow related to euclidean distance or what is it about? Here is a minimum working example that my explain : \documentclass{article} \usepackage{pstricks-add} \...
H-J Salchow's user avatar
1 vote
2 answers
99 views

pst-marble package fails with lualatex

It seems the pst-marble package has issues when used with lualatex. The example test.tex \documentclass{article} \usepackage{pst-marble} \begin{document} \begin{pspicture}(-4,-4)(4,4) \psMarble(8,8) ...
mbert's user avatar
  • 2,595
5 votes
1 answer
110 views

All settings available for \pscircle (PSTricks) command

The general form of the \pscircle is \pscircle*[settings](x0,y0){radius} Is there a way to known all available settings?
leobb's user avatar
  • 73
2 votes
1 answer
97 views

pst-poker face cards fail with lualatex

Commands for face cards in the pst-poker package produce an error when compiling with lualatex. The following example works with latex+dvips and xelatex but not with lualatex: \documentclass{article} \...
mbert's user avatar
  • 2,595
3 votes
2 answers
200 views

pspicture not working in TexLive 2022 (Ubuntu 22.04), it works in TexLive 2019

For the following code, I don't have the same result in Ubuntu 20.04 and Ubuntu 22.04 with TexLive. \documentclass{article} \usepackage[left=2.00cm, right=3.00cm, top=4.00cm, bottom=3.00cm,showframe]{...
nowox's user avatar
  • 1,335
2 votes
1 answer
50 views

Are Postscript expressions allowed in pscircle's radius?

I am using PSTricks and I'm trying to draw a circle whose radius is computed as a Postscript expression. This is a simplified, minimal example: \documentclass{article} \usepackage{pst-plot, auto-pst-...
DaG's user avatar
  • 630
4 votes
1 answer
72 views

How to control the size of a pstricks \psfigure?

I would like to use pst-optic to create some figures in a A4 landscape page and use the full size of the paper. I have a two lenses system that I would like to draw. The code I wrote is the following :...
Eric Leroy's user avatar
0 votes
1 answer
112 views

How to get precise lengths (e.g., 5 cm) on the screen with tikz, pstricks, evince, and gv?

Let's feed the file mwe.tex containing \documentclass[a4paper]{article} \pagestyle{empty} \usepackage{pstricks,tikz} \begin{document}\noindent \begin{pspicture}(-1,0)(1,5) \psline(0,0)(0,5) \end{...
user avatar
2 votes
1 answer
83 views

PSTricks clipping

Consider the drawing: How can I draw this using PSTricks? (The stripes are not of equal width, in case that is of any importance.) I guess I have to use clipping somehow but I'm sure even how to get ...
Svend Tveskæg's user avatar
3 votes
1 answer
112 views

pst-text broken?

% Lua- or XeLaTeX \documentclass{article} \usepackage{pst-grad, pst-text} \begin{document} \psset{fillstyle=gradient,gradbegin=red,gradend=cyan} \pscharpath[gradangle=90]{\huge\bfseries TEST}% ...
Weißer Kater's user avatar
1 vote
1 answer
45 views

Pstricks: Hunderds of thousands on the vertical axis

Feeding \documentclass{article} \pagestyle{empty} \usepackage{pst-all} \begin{document} %\renewcommand{\psvlabel}[1]{#1000}%%% the label is appended with 000, i.e., is printed as thousands. ...
user avatar
2 votes
2 answers
164 views

Where is the up-to-date, full pstricks documentation?

The contents of my /usr/share/texlive/texmf-dist/doc/generic/pstricks/*pdf is this (sorted by time): 189902 May 30 2009 /usr/share/texlive/texmf-dist/doc/generic/pstricks/test-pst.pdf 898183 May 30 ...
user avatar
1 vote
1 answer
66 views

How to draw a simple graph in beamer using pst-plot

I tried the following: \documentclass{beamer} \mode<presentation> \usepackage []{graphicx} \usepackage{caption} \usepackage{amsmath, amstext} \usepackage{amsmath} \usepackage{float} \usepackage{...
gete's user avatar
  • 249
3 votes
2 answers
118 views

PSTricks and color not useable together in Plain TeX?

% Plain LuaTeX \input luaotfload.sty \input pstricks \input pst-circ \input color% destroys everything \pspicture(-1, 0)(3.5, 4.5) \circledipole[labeloffset = 0](0, 3)(3, 3){V} \coil[dipolestyle=...
Weißer Kater's user avatar
4 votes
1 answer
168 views

PSTricks broken in Plain TeX?

% Plain LuaTeX or Plain XeTeX \input luaotfload.sty% comment this out for XeTeX \input pst-circ \pspicture(-1, 0)(3.5, 4.5) \circledipole[labeloffset = 0](0, 3)(3, 3){V} \coil[dipolestyle=curved](0, ...
Weißer Kater's user avatar
1 vote
0 answers
48 views

Error when using pst-poker: rungs not found? (texlive)

After installing the 2022 edition of texlive I get the following error when trying to use the pst-poker package: C:\texlive\2022\bin\win32\runscript.tlu:858: no appropriate script or program found: ...
J823's user avatar
  • 45
2 votes
1 answer
101 views

PSTriks 3D spheres randomly distributed inside a torus

I would like to randomly distribute "n" number of spheres (or spheroids) inside a torus. The code I used to generate the toroid is as follows: \documentclass[12pt]{standalone} \usepackage{...
eneru's user avatar
  • 21
0 votes
0 answers
50 views

\psframe works but \rput doesn’t in pspicture

This is my MWE : \documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}[showgrid=top](5,5) \psframe[linecolor=red,linewidth=2pt,dimen=inner,framearc=0.5](3,1)(4,2) \...
fauve's user avatar
  • 2,437
2 votes
1 answer
187 views

PSTricks drawing: LuaLaTeX gives unexpected output

Code Consider the following example: \documentclass{article} \usepackage{multido} \usepackage{pstricks} \begin{document} \begin{figure} % https://tex.stackexchange.com/questions/114278/isometric-...
Svend Tveskæg's user avatar
0 votes
2 answers
111 views

Unwanted output from PSTricks drawing

First of all I'm very sorry for not making the example absolutely minimal. Code test.tex: % lualatex test.tex %%%%%%%%%%%%%%%%%%%%%%%% %% %% %% Dokumentklasse %% %% ...
Svend Tveskæg's user avatar
1 vote
1 answer
179 views

Set theory/Venn diagrams chart drawing

I am trying to reproduce diagrams like these ones: But the only tool I have is mathcha and it has to be done manually, although you can check the tikz code and is not very accurate as you have to ...
José's user avatar
  • 667
1 vote
4 answers
117 views

How to position a picture from the edge of the paper?

I wrote a package that displays the logo of my company: \NeedsTeXFormat{LaTeX2e}[1994/06/01] \ProvidesPackage{acmelogo}[2022/09/09 ACME Inc. Logo] \RequirePackage{xcolor} \RequirePackage{textpos} \...
nowox's user avatar
  • 1,335
0 votes
2 answers
76 views

Drawing an interval with PSTricks

I am trying to draw some intervals with PSTricks. I found some LaTeX code but I don't know how to edit it to get what I want. I would like to draw the x-axis line with the interval in red but I don't ...
Emilie's user avatar
  • 19
0 votes
1 answer
122 views

Why doesn't the package documentation contain minimum working examples? [closed]

I come to you today with an open question instead of a precise and technical one. I have tried many different packages in the past, each time I have to take a dive into the documentation. Those ...
LMT-PhD's user avatar
  • 1,204
2 votes
2 answers
75 views

Replacing Title Color with Image Background

This is a follow-up question to An Expedient Method for Perfectly Fitting an Image to a Pspicture Consider the code \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,...
mlchristians's user avatar
  • 7,724
1 vote
2 answers
66 views

An Expedient Method for Perfectly Fitting an Image to a Pspicture

Consider the code: \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \...
mlchristians's user avatar
  • 7,724
9 votes
1 answer
615 views

Giving a Title a Gilded Effect

Consider the code which compiles with xelatex: \documentclass[a5paper,12pt,onecolumn,openany,final]{book} \usepackage[hmargin=0.7in,vmargin=0.75in]{geometry} \usepackage{pstricks,psvectorian} %\...
mlchristians's user avatar
  • 7,724

1
2 3 4 5
40