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

Custom Tree Node in PSTricks

I've produced a tree with pst-tree but the nodes aren't quite what I want. Here is the MWE: \documentclass[12pt]{article} \usepackage{pst-tree} \SpecialCoor \newcommand{\BiBox}{% \begin{pspicture}(...
Craie's user avatar
  • 59
2 votes
2 answers
93 views

Rotate PSTricks Object

Consider the following (almost) MWE: % lualatex test.tex \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{figure} \psset{unit = 0.4} \begin{pspicture}(-12,\fpeval{-6*...
Svend Tveskæg's user avatar
0 votes
0 answers
32 views

PSTricks web site gallery issue? [duplicate]

I'm trying to compile all figures available on the PSTricks website here: https://tug.org/PSTricks/main.cgi?file=examples-list However they all fail to compile on my computer and on Overleaf. Any idea ...
Vincent ISOZ's user avatar
1 vote
1 answer
101 views

How to "Americanize" LaTeX Code for an EAN British Barcode?

Consider the following code which I have largely taken from Listing2 of Generating barcodes and QR codes with LaTeX: \documentclass[pstricks,12pt]{book} \usepackage{pstricks,pst-barcode} \begin{...
DDS's user avatar
  • 9,768
4 votes
1 answer
111 views

How to Transform a PSBall into Other Shapes

Consider the code which compiles with XeLaTeX: \documentclass[12pt]{book} %\usepackage{scalefnt,scalerel} \usepackage{xcolor} \usepackage{pst-slpe} \usepackage[english]{babel} \usepackage{tikz} \...
DDS's user avatar
  • 9,768
1 vote
1 answer
22 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 ...
Garulfo's user avatar
  • 193
2 votes
0 answers
27 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}(...
M. LENZEN's user avatar
1 vote
1 answer
64 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 ...
user avatar
1 vote
1 answer
39 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 \...
DDS's user avatar
  • 9,768
2 votes
2 answers
43 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? \...
wwwzzz's user avatar
  • 21
2 votes
2 answers
202 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 ...
user118746's user avatar
0 votes
1 answer
28 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 ...
wind waver's user avatar
8 votes
2 answers
675 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{...
DDS's user avatar
  • 9,768
3 votes
1 answer
50 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{...
MrBoby58's user avatar
2 votes
2 answers
89 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=....
AlMa1r's user avatar
  • 541
1 vote
1 answer
81 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{...
AlMa1r's user avatar
  • 541
1 vote
1 answer
32 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 ...
Nicolas's user avatar
  • 1,297
2 votes
1 answer
52 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 ...
Benzv2001's user avatar
2 votes
1 answer
68 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 ...
Norberto's user avatar
1 vote
1 answer
25 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 ...
wind waver's user avatar
1 vote
1 answer
45 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, ...
Jakob's user avatar
  • 1,003
1 vote
1 answer
60 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-...
David Fear's user avatar
2 votes
1 answer
52 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{...
David Fear's user avatar
1 vote
1 answer
43 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 ...
Antonis's user avatar
  • 276
2 votes
0 answers
49 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}% \...
Antonis's user avatar
  • 276
0 votes
1 answer
47 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 ...
Jigsaw's user avatar
  • 935
-1 votes
1 answer
73 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 \...
gete umbrey's user avatar
3 votes
4 answers
435 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} \...
gete umbrey's user avatar
0 votes
3 answers
96 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,...
gete's user avatar
  • 251
2 votes
2 answers
76 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[...
R. Gregory Taylor's user avatar
1 vote
0 answers
49 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$.
amanullah nabavi's user avatar
3 votes
1 answer
144 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, ...
mzn's user avatar
  • 333
0 votes
3 answers
154 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 ...
Gerard Bosch's user avatar
2 votes
1 answer
35 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} \...
raulevm's user avatar
  • 21
1 vote
1 answer
86 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 ...
RichardRPT's user avatar
1 vote
1 answer
144 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 ...
thenerdymathematician's user avatar
1 vote
0 answers
136 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? (...
thenerdymathematician's user avatar
2 votes
1 answer
87 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, ...
thenerdymathematician's user avatar
1 vote
1 answer
173 views

Graphing a Hyperbolic Paraboloid in PSTricks

I saw the graph of the following hyperbolic paraboloid here. I believe this one is done via PSTricks. I can only do the axes as seen in the MWE below. \documentclass[10pt,a4paper]{report} \usepackage{...
thenerdymathematician's user avatar
1 vote
1 answer
54 views

Axes in pst-3dplot and pst-solides3d

This is just a simple question regarding the comparison of the axes using pst-3dplot and pst-solides3d packages. The MWE and the output are as follows: \documentclass[pstricks,border=12pt,12pt]{...
thenerdymathematician's user avatar
1 vote
1 answer
161 views

Graphing Quadric Surfaces in PSTricks

I am trying to make graphs of quadric surfaces that follow the illustrations in Thomas' Calculus book. One such illustration is the ellipsoid as shown below: My work so far is as follows: \...
thenerdymathematician's user avatar
0 votes
1 answer
127 views

Incomplete/Missing PSTricks Image

EDITED: I am trying to make the diagram illustrating the ε-δ definition of limits and some other 3D plot but the 2D plot seems to be incomplete while the 3D graph is not visible. I am using LuaLaTeX (...
thenerdymathematician's user avatar
1 vote
1 answer
155 views

ps2pdf -dALLOWPSTRANSPARENCY

This is just a simple question. I saw here about the discussion on allowing transparency. I am actually creating documents with PSTricks figures. My question is: Where do I put or write ps2pdf -...
thenerdymathematician's user avatar
3 votes
2 answers
142 views

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

I want to draw a box around part of a syntax tree I'm typesetting using pst-jtree. Here's a simplified example: \documentclass{article} \usepackage{pstricks} \usepackage{pst-jtree} \begin{document} ...
Jigsaw's user avatar
  • 935
1 vote
2 answers
86 views

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

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 ...
Geometer2019's user avatar
5 votes
1 answer
230 views

command \unit already defined

The sequence \documentclass{amsbook} \usepackage{pst-eucl} \usepackage{prerex} \begin{document} \end{document} generates `command \unit already defined' error. Either of the two packages by ...
R. Gregory Taylor's user avatar
1 vote
0 answers
219 views

pstricks generates \pgfutil at protected\def\pgfmathprintnumber{% error [closed]

\documentclass{amsbook} \usepackage{pst-eucl} %wrapper for PSTRICKS \let\clipbox\relax %needed to overcome some incompatibility \begin{document} ... \end{document} gives error \pgfutil at ...
R. Gregory Taylor's user avatar
1 vote
1 answer
87 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
  • 935
1 vote
2 answers
59 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,400
1 vote
1 answer
26 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

1
2 3 4 5
41