Skip to main content

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
143 views

How to reuse a specificall PSTricks figure with pdfLaTeX?

I have to use a preamble (see below) which is outdated (and, in my opinion, clogged with garbage). My task is to set up the given preamble for using with pdfLaTex, and if possible to clean it from ...
1 vote
1 answer
11 views

Pstricks axes label size change: why?

I "draw" two pstricks pictures, one after the other. At the beginning of each of them, I specify the font size (\small in my example). Then I draw axes, with labelFontSize=\normalsize, which ...
2 votes
0 answers
23 views

latex \pstTriangle problem

I try to create a macro to draw a Thales' configuration : \newcommand{\ThalesLenzen}[9]{ % Tracé du grand triangle \pstTriangle[linewidth=1pt,PointSymbol=none,PointNameSep=3mm](#1){#2}(#3){#4}(...
1 vote
2 answers
54 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 ...
1 vote
1 answer
184 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 ...
1 vote
1 answer
56 views

Mnemonics for the vector product using PSTricks

There are several mnemonics to remember the definition of the standard vector product in 3D. One of them works as follows (picture from learning-freiburg.de): Obviously I am only interested in the ...
2 votes
2 answers
182 views

To draw a tetrahedron with its center

I need a tetrahedron with a its center and I would like to label all of them, but I do not know how to find a way for the center. I saw this To draw a labeled tetrahedron. For my case I need a ...
1 vote
1 answer
32 views

Adding Text to the White Space of a Cropped Image

Consider the code: \documentclass{book} \usepackage{pstricks} \usepackage{graphicx} \usepackage[active,tightpage]{preview} \PreviewEnvironment{pspicture} % Paddings. \PreviewBorder=1cm\relax \...
0 votes
1 answer
44 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
2 votes
2 answers
36 views

How to use labels in pstricks?

I'm a complete beginner to pstricks. I'd like to modify this image so the qdisk will have labels with letters (a-z for the sake of the example) inside. Could someone explain how can I achieve it? \...
3 votes
2 answers
719 views

Problem with \rput command with XeLaTex and PSTricks

After Ghostscript updated to 9.50, labels with \rput appear at (0,0) with PSTricks. I'm using Texlive 2019 (with all the latest updates) \documentclass[a4paper, 12pt]{standalone} \usepackage{mathspec}...
8 votes
2 answers
650 views

Generating ISBN Barcodes

Consider the following code which I compile with xelatex: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(1.3125in,0.7in) \psbarcode{...
0 votes
1 answer
26 views

Why passing a variable in \pstScalePoints(0.00111111,0.03){\dateDebut sub}{ 100 sub } doesn't work?

Can someone tell me why it doesn't work when I try to pass a variable into \pstScalePoints ? \RequirePackage{filecontents} \begin{filecontents*}{data1} 1679117400 112.46 1679118300 112.42 1679119200 ...
3 votes
1 answer
48 views

Problem with the ps2pdf creating an animation for the binomial law

I don't why my animation won't appear when I writte this minimal code : \documentclass{article} %impression recto uniquement \usepackage{pstricks,pst-plot, pst-func} \usepackage{animate} \begin{...
2 votes
2 answers
85 views

Misunderstanding yunit in pstricks, or a bug, or extreme imprecision?

Feeding latex with \documentclass{article} \pagestyle{empty} \usepackage{pstricks} \begin{document} {1: \begin{pspicture}(-.1,-1)(.1,5) \psline(0,0)(0,5) \end{pspicture}} {$10^{-4}$: \psset{yunit=....
1 vote
1 answer
75 views

`! Dimension too large.` after switching from TeX Live 2007 to TeX Live 2008

Running latex followed by dvips in the official TeX Live 2007 (obtained from https://ftp.tu-chemnitz.de/pub/tug/historic/systems/texlive/2007/texlive2007-live-20070212.iso.bz2) on \documentclass{...
1 vote
1 answer
29 views

Understanding the calculation in the parametricplot command

I would like a little help to understand how the \parametricplot command works: I have a file which allows me to calculate the time derivative of the volume poured and I would like to understand it in ...
2 votes
1 answer
47 views

How do I connect my \optdetector and \optbox using the fibers/wires in the pst-optexp package?

I've spent today working with, and learning more about the pst-optexp package. So far, I've managed to solve all the problems that I've encountered using it. But the final part of the drawing is ...
2 votes
1 answer
67 views

Spannig in pst-jtree

I am trying to reproduce the following tree from Merchant (2015). I have no problem with the programming of the tree using John Frampton's pst-jtree package, but the question is whether there is way ...
1 vote
1 answer
24 views

pstricks plot label from a list works only for one variable if put two it doesnt work anymore

This is the code that works: \RequirePackage{filecontents} \begin{filecontents*}{data1} 1679117400 112.46 1679118300 112.42 1679119200 217.70 1679120100 217.70 1679121000 217.70 1679121900 217.70 ...
7 votes
2 answers
1k views

Draw dotted background [duplicate]

Is it possible to fill a region with randomly allocated dots using TikZ or PSTricks? I can't imagine somebody manually assigning dots coordinate by coordinate.
1 vote
1 answer
41 views

Plotting cdf of binomial distribution with pst-func

I found the amazing pst-func package for plotting various mathematical functions including the cdf of a binomial distribution. With XeLaTeX I can compile (for example in OVerleaf): % Requires XeLaTeX, ...
1 vote
1 answer
70 views

How to use pstricks with XeLaTeX and tufte-book class?

I would like to use the beautiful tufte-book class together with some pictures created using pstricks. XeLaTeX is needed to work with pstricks, however when I run this with the tufte-book class I get ...
13 votes
0 answers
2k views

Create violine plots [closed]

I use pgfplots for most of my plots. Now I need to add a violin plot. Is this possible with pgfplots or any other package?
2 votes
1 answer
252 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-...
2 votes
1 answer
113 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 ...
1 vote
1 answer
92 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} \...
0 votes
1 answer
39 views

pst-jtree: Random errors when compiling document with many trees

I have a document that contains many syntax trees that I've typeset using the pst-jtree package. I would greatly prefer to not convert all of them to another tree-making package's format (i.e., I do ...
1 vote
1 answer
52 views

Why won't pst-barcode display a QR code when working example code is copied to an existing document

I have a pdf form created in latex. A MWE is shown below: NON-WORKING EXAMPLE: work-order-form.barcode-example.tex \documentclass[14pt,a4paper]{extarticle} %\pdfminorversion=6 \usepackage{auto-pst-...
1 vote
1 answer
419 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="...
2 votes
1 answer
49 views

Can't create QR codes with pst-barcode

I am trying to create a QR code with latex, no example I have tried works. barcode-test.tex \documentclass{article} \usepackage[a-1b]{pdfx} \usepackage{pst-barcode} \begin{document} \begin{...
1 vote
1 answer
81 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 ...
2 votes
2 answers
165 views

pst-euclid: getting the inner circle

To draw geometrical figures I'm reading this. Now, I was testing \pstTriangleIC to get the incircle but I get a classical "undefined control sequence" error. What is wrong with my code? I ...
1 vote
1 answer
42 views

colorize characters based on some shape without clipping

In pst-text-doc.pdf (texdoc pst-text) page 8 describes how to clip part of a textblock using huge the letters "PSTricks". Is it possible instead of clipping just to colorize the text inside ...
2 votes
0 answers
45 views

pscustom how to close the paths

Why pscustom fails to produce a closed path such as this mwe : \documentclass{article} \usepackage{pstricks} \begin{document} \pscustom{% \psline(1,0)(0,4)(-1,0)% \psellipticarc(0,0)(1,.5){180}{360}% \...
0 votes
3 answers
93 views

Draw picture using PSTricks

I am using MikTex and Texmaker, and the configurations-LaTeX+dvips+ps2pdf+View PDF. I have the following latex commands: \documentclass[11pt]{article} \usepackage{graphicx} \usepackage{amsmath,...
3 votes
4 answers
379 views

Plotting of functions Using PSTricks

I am trying to plot the graphs using PSTricks. I am using Miktex+Texmaker with the configurations-LeTeX+dvips+ps2pdf+ View PDF. have the following latex commands/codes: \documentclass[11pt]{article} \...
-1 votes
1 answer
70 views

Plot the graph of sin-cos functions using PSTricks [duplicate]

I have the following codes in Miktex+Texmaker using the configurations LaTeX+dvips+ps2pdf+View PDF: The following first figure (fig:cosine-plot) appears clearly: \begin{figure}[H] \centering \...
1 vote
2 answers
332 views

PSGO Package Yielding OS Permission Denied Error on Mac TeX Live

The psgo package is actually within the basic install of TeXLive, which makes this all the weirder to me. This is the code I'm trying to use, which happens to be a replica of this answer: \...
2 votes
2 answers
75 views

remove shading of region in pstricks

My code is essentially the following. \documentclass{article} \usepackage{pstricks} \begin{document} \psset{xunit=1cm, yunit=1cm, algebraic= true} \begin{pspicture}(-6,-7)(6,7) \pspolygon[...
1 vote
0 answers
47 views

How to graph a series defined function like $\sigma_{n=0}^\infty (-1)^nx^n$? [closed]

I want to graph, for example, this function: $\sigma_{n=0}^\infty (-1)^nx^n$.
3 votes
1 answer
143 views

feasible region

I want to plot the feasible region. But I don't know how. I need guidance. \documentclass[tikz, border=5mm]{standalone} \begin{document} \begin{tikzpicture} \draw[gray!50, ...
0 votes
3 answers
147 views

Bubble / satellite diagram with children

I've got the following code with Latex smartdiagram package that produces the attached bubble diagram. But I would like to be able to have child satellites in it (see prototype image below). Is it ...
1 vote
1 answer
437 views

compile pstricks: ps2pdf doesn't work [closed]

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 ...
2 votes
1 answer
34 views

change negative y-axis labels to right side in pstricks

I have not been able to change the negative y-axis labels to the right side of the y-axis. This is what I need: And this is what I currently have compiled with XeLaTex: \documentclass{article} \...
44 votes
12 answers
5k 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}, \...
1 vote
1 answer
81 views

Stacked Cubes in TikZ or PSTricks

I am trying to recreate this diagram in a standalone PDF using TikZ or PSTricks. Two extra requirements: I have to be able to alter the viewing angle arbitrarily I want to use relative coordinates ...
1 vote
1 answer
139 views

Opacity/Transparency in pst-3dplot Objects

I am trying to create a 3D graph using pst-3dplot as shown below: The problem is that the orange plane is not transparent as it blocks some portion of the cylinder. May I know how to fix the ...
1 vote
0 answers
131 views

Coloring pst-3dplot Surfaces

I have drawn traces of the hyperbolic paraboloid z=y^2-x^2 using pst-3dplot as shown below: I want to put color on this quadric surface to make it look more realistic. Is there a way to do this? (...
2 votes
1 answer
86 views

Truncating a pst-3dplot Surface

The graph of a function and the MWE are given below: \documentclass{article} \usepackage{pst-3dplot} \begin{document} \begin{pspicture}(-3.2,-2.73)(3.18,3.65) \psplotThreeD[ plotstyle = line, ...

1
2 3 4 5
41