7 votes

Draw with fifth root in tikz

run with lualatex: \documentclass[svgnames, border=3pt]{standalone} \usepackage{pst-plot} \begin{document} \psset{unit=2cm, algebraic, arrowinset=0.12, arrowsize=3pt, linejoin=1, showorigin=false} ...
user187802's user avatar
  • 16.4k
5 votes

How can we make a pumpkin, jack-o-lantern, or other halloween spirit, ghoul, or skeleton?

Here comes a cute expl3 pumpkin ... \documentclass[border=10pt]{standalone} \usepackage{l3draw} \begin{document} \ExplSyntaxOn \draw_begin: \draw_linewidth:n { 6pt } \color_stroke:n { black } \...
Jasper Habicht's user avatar
5 votes
Accepted

Missing number error for using Spy in LuaLaTeX

The example can be simplified to \documentclass{article} \makeatletter % pgf/tex/generic/pgf/systemlayer/pgfsys.code.tex \directlua{ local lft = lua.get_functions_table() lft[\string#lft+1]...
David Carlisle's user avatar
4 votes

The Spiral of Roots in TikZ

My own version. I love simplicity. Coding is about getting rid of all except the strictly necessary. % pythagoreanSpiral.tikz % Pythagorean Theodorus spiral % http://mathworld.wolfram.com/notebooks/...
juanfal's user avatar
  • 141
4 votes

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

As you are using /usr/share you probably have a older texlive. texlive 2022 uses this document https://texdoc.org/serve/pstricks/0 dated 25th July 2003 and https://texdoc.org/serve/pstricks-add/0 ...
David Carlisle's user avatar
4 votes
Accepted

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

Consider replacing the pstricks code by tikz commands, since you are using tikz anyway. I have transcribed the logo, see below, using How do I achieve this in simple TikZ commands?. The following ...
gernot's user avatar
  • 48.7k
4 votes
Accepted

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

\documentclass{article} \usepackage{pst-magneticfield} \usepackage{pst-plot} \begin{document} \begin{pspicture*}[showgrid=false](4.3,4.3)(-4.3,-4.3) \psmagneticfield[...
user187802's user avatar
  • 16.4k
4 votes

multiframe within multido does not work

\begin{animateinline}[controls={play,step}]{2} \psLoop{4}{% \multiframe{4}{iangle=0+1}{% \mywedge{\iangle}{\psLoopIndex} } \newframe } \end{animateinline}
user187802's user avatar
  • 16.4k
4 votes
Accepted

Lualatex : opacity not working in pstricks

the log file tells you the reason: Extended graphic state modifications dropped since `pdfmanagement-testphase' is not loaded. In a current LaTeX you can load the pdfmanagement with \DocumentMetadata:...
Ulrike Fischer's user avatar
3 votes
Accepted

All settings available for \pscircle (PSTricks) command

For the line: linewidth linecolor linestyle dash dotsep doubleline doublesep doublecolor dimen border bordercolor shadow shadowsize shadowangle shadowcolor for the filling: fillcolor fillstyle ...
user187802's user avatar
  • 16.4k
3 votes

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

Here is a solution with a simple typesetting of the two characters. You can use another fonr to get similar characters to your (complecated) drawing: \documentclass{article} \usepackage[left=2.00cm, ...
user187802's user avatar
  • 16.4k
3 votes

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

run it with lualatex or xelatex: % !TeX TS-program = lualatex \documentclass{beamer} \usepackage{pst-all} \begin{document} \begin{frame} \begin{figure} \begin{pspicture}[unit=1.2](-1,0)(4,5) \...
user187802's user avatar
  • 16.4k
3 votes

pst-text broken?

That is the only package which works only with latex->dvips->ps2pdf or with package auto-pst-pdf and lualatex or pdflatex and option shell-escape: \documentclass{article} \usepackage{pst-grad, ...
user187802's user avatar
  • 16.4k
3 votes
Accepted

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

That looks like a bug in the documentation. Only \lensSPHRay uses the predefined values. However yo can get shorter or longer arrows with pcline: \pcline[arrowscale=2,linewidth=1pt,linecolor=red, ...
user187802's user avatar
  • 16.4k
3 votes
Accepted

pstricks causes the output of xdvi to turn gray

With the current version 3.19 of PSTricks, available for TeXLive and MiKTeX both should be fixed. the message with ALLOWPSTRANSPARENCY was a problem with pstricks.pro text in gray a problem with ...
user187802's user avatar
  • 16.4k
3 votes
Accepted

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

the "problem" is this last line of pstricks.tex: \pstVerb{0.8 setlinewidth 0 setgray}% which is only needed if PSTricks is used with lualatex. I suppose that it confuses the color handling ...
user187802's user avatar
  • 16.4k
3 votes

My first package stopped to work!

Run it with lualatex and your package will work: \DocumentMetadata{} \documentclass{scrbook} \usepackage{psbao} \begin{document} \centering \setbaounit{.4cm} \initbao[0,% 4,3,5,1,1,1,5,0,% 4,4,1,2,0,0,...
user187802's user avatar
  • 16.4k
3 votes
Accepted

multiframe within multido does not work

\multido with embedded \newframe does not work well inside animateinline. \newframe closes a TeX group and thereby hides \iradius which is locally defined by \multido. As a fix I would use one of the ...
AlexG's user avatar
  • 54.2k
3 votes

command \unit already defined

The prerex package does \newlength{\unit} which is the cause of the error, together with the fact that pst-eucl loads many pstricks related subpackages among which pst-calculate which loads siunitx ...
egreg's user avatar
  • 1.1m
3 votes

pst-jtree; pstricks: Drawing a box around three nodes

As noted in the comments, it's so much easier to draw trees with forest. But if you insist, with a little hacking it can be done. There are very few pstricks wizards around these days, and it's a long ...
Alan Munn's user avatar
  • 215k
3 votes
Accepted

pst-jtree; pstricks: Drawing a box around three nodes

\documentclass{article} \usepackage{pstricks} \usepackage{pst-jtree} \begin{document} \jtree[scaleby=1.5 1] \! = {S} :{NP}! {VP} "{\psset{scaleby=1 1}} :{V}(<vert>{saw}) {...
user187802's user avatar
  • 16.4k
3 votes
Accepted

Opacity/Transparency in pst-3dplot Objects

You missed the line \DocumentMetadata{} as first line. It allows for lualatex the transparency: \DocumentMetadata{} \documentclass[pstricks]{standalone} \usepackage{pst-3dplot} \begin{document} \...
user187802's user avatar
  • 16.4k
2 votes

From PStricks to Tikz

The PSTricks solution a bit shorter: \documentclass{article} \usepackage{pst-node} \newcommand*\Tsemb[2]{% \tabular{c} \psDefBoxNodes{A}{#1}\\\psDefBoxNodes{B}{#2} \endtabular% \psecurve[...
user187802's user avatar
  • 16.4k
2 votes

From PStricks to Tikz

Something like this maybe (it is not exactly the same tough ...): \documentclass{article} \usepackage{tikz} \newcommand*\Tsemb[2]{% \begin{tikzpicture}[baseline=0pt] \pgfmathsetmacro{\...
Jasper Habicht's user avatar
2 votes
Accepted

Are Postscript expressions allowed in pscircle's radius?

You are already using Postscript code in the centre coordinates of the circles, indicated by a ! at the beginning. The same needs to be done with the radius as well: \pscircle(! 2 1){!\radius} ...
AlexG's user avatar
  • 54.2k
2 votes
Accepted

How to control the size of a pstricks \psfigure?

use the optional argument showgrid ant the star version of pspicture. Then yiu can easily see what coordinates for pspicture are useful. By the way, I always use lualatex, then I get directly a pdf ...
user187802's user avatar
  • 16.4k
2 votes
Accepted

PSTricks clipping

The format of \psclip is this: \psclip{<graphic>} <stuff> \endpsclip <stuff> is clipped based on <graphic>. So, one approach to drawing the globe you want is to use a \...
Werner's user avatar
  • 598k
2 votes
Accepted

pst-poker face cards fail with lualatex

looks like an issue with the graphics package doing the conversion in the background, but you can (more efficiently) pre-convert Just run epstopdf /usr/local/texlive/2022/texmf-dist/tex/latex/pst-...
David Carlisle's user avatar
2 votes
Accepted

pspicture strange effect with \textdir TRT in an RTL document

This has been fixed in the luapstricks package, so on an up-to-date system the code works as expected: \documentclass{article} \usepackage{pstricks-add} \psset{xunit=1.0cm,yunit=1.0cm,linewidth=0.8pt}...
Marcel Krüger's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible