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
19
votes
7answers
936 views

Flexure of a Grid

Hi I want to recreate the following picture but with a grid: To something like this: However, I'm finding the use of \pgfsetcurvilinearbeziercurve{} and even attempts with \...
1
vote
1answer
41 views

pstricks can't draw past a4 size on a beamerposter

I'm making a poster using beamerposter; I would like to use pstricks to draw some figures on this poster. However, when I try to draw anything past about 2/3s of the poster width, nothing appears. ...
3
votes
1answer
147 views

Why the option nodesepB(A) of \psbrace for diagonal line is fail?

\documentclass[border=10pt,pstricks,12pt]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](4,4) \pnode(0,0){A} \pnode(4,4){B} \psbrace[singleline,linestyle=dashed,...
5
votes
2answers
73 views

Why one must use two \psframe for clip?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{pst-eucl,pst-plot} \begin{document} \begin{pspicture}[algebraic,saveNodeCoors](-1.5,-1.5)(2.5,2) \psset{linewidth=0.5pt,unit=1.25cm,...
4
votes
1answer
51 views

Why is my beam not propagating downstream from the mirror?

\documentclass[pstricks,margin=12pt]{standalone} \usepackage{pst-optexp} \usepackage{pst-node} \usepackage{pstricks-add} \psset{useNA=false} \psset{pswarning} \begin{document} \begin{pspicture}[...
2
votes
1answer
55 views

Writing on pst-solides3D cylinders in a loop

I'm trying to create and label cylinders with pst-solides3d in a loop. The label should contain the actual counter number of the loop. Therefore I try to name the cylinders with the running number ...
2
votes
1answer
76 views

How to specify dot of two RightAngleType types?

\documentclass[border=10pt,pstricks,12pt]{standalone} \usepackage{pst-eucl,pst-plot,pst-func} \begin{document} \begin{pspicture}[showgrid](-2,-2)(2,2) \psset{PointSymbol=none} \...
2
votes
1answer
63 views

How to shift a tikzpicture object into the scope of a pspicture?

Thanks to this (by @user2478) and this (by @user121799) great answers, I'm trying to draw a sketch as a combination of both. The point is that the former and the later are in PSTricks and TikZ, ...
1
vote
1answer
39 views

Change fontsize in PStricks globally

I am using DIA for making some Latex graphs. However, DIA can only export those to PSTricks.tex. Unfortunately, the fontsizes inside this are very small although they were looking quite well inside ...
2
votes
1answer
76 views

Draw overlapping ellipses (Venn diagrams) in latex (Set theory)

Hi. How can I draw those multiple choice in latex?
1
vote
0answers
64 views

Translate PSTricks to Tikz?

For my thesis I am using DIA for drawing little graphs or images. After this I use the export function which create a .tex file with PSTricks syntax inside. Compiling this in my maindocument seems ...
1
vote
0answers
34 views

PSTricks and pdfTex in the Elsevier system

I am trying to submit a LaTeX file to Elsevier journal. The .tex file is working well when I use xelatex or PdfTex with ps->pdf. The elsevier system is giving the following error that I get also when ...
1
vote
2answers
103 views

Debian 10 testing, TL2019, xelatex and pstricks

with this code \listfiles \documentclass{article} \usepackage{pstricks,pstricks-add} \begin{document} \begin{pspicture}(-5,-3)(5,6) \psaxes[linewidth=1.2pt,labels=none]{->}(0,0)(-5,-3)(5,6) \...
2
votes
2answers
58 views

How to hatch this region

I want to hatch the region inside the rectangle, but outside the ellipses. I tried the following, but I got hatched the intersection of the ellipses, too. Any suggestion? \begin{pspicture*}(3.4,0)(11,...
1
vote
0answers
65 views

PSTricks with TeXworks?

I've read a lot instructions online for compiling a document using PSTricks but I don't understand any of them. I'm used to using TeXworks (and TeXshop on OSX) reverse phone lookup to compile directly ...
1
vote
1answer
158 views

Resolve LaTeX Error: Cannot determine size of graphic X (no BoundingBox)

I am using Overleaf and must use LaTeX compiler. This is because I use pst-poker which only works with LaTeX or XeLaTeX and want to submit to arXiv which does not accepts XeLaTeX.) I have several ...
2
votes
1answer
155 views

Is the package pst-poker compilable using pdfLaTeX?

Using overleaf, I've written a paper which uses the package pst-poker. XeLaTeX compiles it without errors, however pdfLatex compilation is problematic. How can I use the package with pdfLatex?
1
vote
3answers
317 views

How to draw this pattern in PSTricks and its equivalent in Asymptote?

\documentclass[border=10pt,pstricks,12pt]{standalone} \begin{document} \begin{pspicture}[showgrid](0,0)(3,3) \pscircle*[linecolor=gray!20](1.5,1.5){1.5} \pscircle[fillstyle=crosshatch*](1,...
2
votes
1answer
65 views

PSTricks solides3d viewing angle

The image is unsquared, how can I fix it? \documentclass[pstricks,12pt]{standalone} %\usepackage{pgf,tikz,pgfplots} %\pgfplotsset{compat=1.15} \usepackage{pst-solides3d,pst-3dplot} \usepackage{xcolor}...
1
vote
0answers
74 views

Error in PSTricks package

Consider the following example: \documentclass{article} \usepackage{pst-eucl} \begin{document} Test. \end{document} I compile my document using latex --> dvips --> ps2pdf. When I come to the ...
3
votes
4answers
93 views

Overlapping labels in PSTricks

Consider the following example. \documentclass{beamer} \usepackage[locale = DE]{siunitx} \usepackage{xfp} \usepackage{etoolbox} \usepackage{pstricks-add} \usepackage{tikz} \psset{dimen = m} % data ...
6
votes
1answer
242 views

Using the pst-poker package to display a hand of 13 cards

I want to show a hand containing 13 cards, using the pst-poker package. I wish the cards would sit on top of the other and only the corner peek. Something like these two options (but with 13 cards): ...
21
votes
2answers
487 views

Plot Dini's surface

According to Wikipedia, the Dini's surface is described by the following parametric equations: x = a \cos u \sin v y = a \sin u \sin v z = a (\cos v + \ln\tan v/2) + bu So, I'd like to plot the ...
2
votes
0answers
117 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}...
1
vote
0answers
74 views

Periodic Table code not working

Good evening, I wanted to run the following code (it's part of the PSTRICKS Examples list, so you can check it for free) but it does not work. There are two errors, in lines 165 and 390 which I do ...
5
votes
2answers
454 views

probability density function and cumulative distribution function for normal distribution

How can I draw the following graph. I know how to draw a bell curve. But the question is how to draw both curve as shown in the figure. Moreover I want to write $P(X\leq x)=0.7$ Other question is how ...
3
votes
1answer
87 views

pst-asr does not work with LuaLaTeX/ConTeXt

When I try to compile the following code: %LuaLaTeX \documentclass{article} \usepackage{pst-asr} \begin{document} \asr \4ki:p\endasr \end{document} I get this: ! Undefined control sequence. \c@lor@...
2
votes
1answer
67 views

multido: vertical vector

From the first page of multido documentation we can see a horizontal vector with a fixed-point addition system. Can I create the same vector, but vertically? Alternatively, are there better ways to ...
4
votes
1answer
160 views

How to draw the dotted style for braces?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{mathptmx} \usepackage{pst-node,pstricks-add,amsmath,amssymb} \begin{document} \psset{unit=1.5cm,opacity=.5} \begin{pspicture}[...
2
votes
1answer
146 views

pst-asr produces all nodes on top of each other in xelatex

I was trying to recompile an old handout that used to work, but ran into the following issue, which is shown in the minimal example below (taken from the pst-asr documentation examples): \...
3
votes
2answers
84 views

How to write “loop” in the following PSTricks example?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{xfp,pst-eucl} \begin{document} \begin{pspicture}[showgrid,linejoin=1](-2,-2)(2,2) %%% \def\mypoly#1#2{% #1: sides, #2: angles \pnode(0,0){O}...
6
votes
2answers
318 views

Drawing hexagonal lattice in LaTex using Cartesian coordinates

I would like to reproduce the hexagonal lattice using Tikz/PSTricks or a similar package in LaTex as shown in the images below. There're already kinds of answers available here. However, all of them ...
8
votes
4answers
930 views

How to write the sum of function inside LaTeX?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{pst-func,amsmath,amssymb} \usepackage{xfp} \begin{document} \psset{xunit=1,yunit=2,linewidth=1pt} \begin{pspicture}[plotpoints=500](...
2
votes
0answers
56 views

pst-venn diagram compilation difference between xetex and latex-->dvi-->ps-->pdf

When compiling the following with xelatex: \documentclass{article} \usepackage{pstricks} \usepackage{pst-venn} \begin{document} \begin{pspicture}(-3.2,-3.2)(3.2,3.2) \psVenn[bgcircle](-1,0.5)(0,-1)...
2
votes
2answers
106 views

Where do I fail with pst-intersect package?

\documentclass[border=10pt,pstricks]{standalone} \usepackage{pst-plot,amsmath,xfp,pst-intersect} \begin{document} \psset{unit=1.25cm} \def\Func{x^2} % y=x^2 \def\Iy#1{#1^2+1/4} % \delta = ...
3
votes
2answers
125 views

Electric Circuit PsTricks

Good morning, I'm currently learning to make figures with PsTricks, but the documentation, as well as books and examples are very poor as usual. I would like to make this circuit (in LaTeX, with ...
4
votes
0answers
45 views

Problem with package installation of pstricks

I installed miktek and texstudio from internet when started using package pstriks it firstly asked to install from internet i have permission but again after running same dialogue box opened it ...
4
votes
1answer
228 views

How to write Taylor's series of sinx in PSTricks?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,xfp} \begin{document} \begin{pspicture}[algebraic,plotpoints=500](-1,-3)(12,3) \psclip{\psframe[fillstyle=solid,fillcolor=white,...
2
votes
2answers
109 views

How to resize the following picture in LaTeX using pstricks?

\documentclass[a4paper, 12pt, oneside]{article} \usepackage{pst-all} \usepackage{pstricks} \usepackage{tikz} \begin{center} \begin{figure} %\bpsp(3,2.5) %\psgrid[subgriddiv=1,griddots=10,gridlabels=...
5
votes
2answers
281 views

How to add an image as background in PSTricks?

The official picture. This is my code. \documentclass[pstricks,border=10pt]{standalone} \usepackage{pstricks-add,pst-node,pst-tools} \usepackage{graphicx} \begin{document} \begin{pspicture}[...
2
votes
1answer
69 views

How to find the intersection of line and contourplot?

The first question. Why can't we use linestyle=none for \psContourPlot in the following example? \documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-contourplot,pstricks-add,pst-eucl,...
3
votes
1answer
52 views

How to clip the \psplotImp command in the following example?

This is my code. \documentclass[pstricks,border=10pt]{standalone} \usepackage{pstricks-add,pst-plot,pst-func} \begin{document} \def\funcone{6-x} \def\functwo{7-x} \begin{pspicture}(-1,-1)(...
3
votes
1answer
100 views

How to rotate the \ncarc commands in the following picture?

The official picture: This is my code. \documentclass[border=10pt,pstricks]{standalone} \usepackage{pstricks-add} \begin{document} \begin{pspicture}[showgrid](-7,-7)(7,7) \psset{arrowsize=.3,...
2
votes
1answer
101 views

How to write PostScript commands for “calculation” and “intersection” in the following problem?

This is my code. \documentclass[pstricks]{standalone} \usepackage{pst-intersect} \usepackage{pst-eucl,pstricks-add,pst-calculate} \usepackage{pstricks-add,pst-calculate} \usepackage{auto-pst-pdf} \...
39
votes
5answers
8k views

Drawing Super Mario Bros…in LaTeX

There are several questions about TeX.SE. that concern designs for recurrences such as fireworks, lunar calendar, the pi-greek, and into my mind I'm remembering a protagonist of an old video game: ...
2
votes
1answer
203 views

How to configure LaTeX in Visual Studio Code to compile PSTricks or dvips?

I would like to know how I should configure or what I should install to be able to compile graphics with PSTricks, for example in an editor such as TeXMaker, simply compile in the form latex + dvips + ...
1
vote
2answers
131 views

How can I create framed boxes with graph paper as background

How can I add a graph paper background for my framed boxes? Example: \documentclass{article} \usepackage{framed} \begin{document} Calculate the Solution of $5+3$ \begin{framed} \vspace{5cm} \end{...
2
votes
2answers
193 views

A blank output when attempting to draw a complex valued function

I want to plot with the following output: However, my code below \documentclass[border=10pt,pstricks]{standalone} \usepackage{pst-plot,pst-func} \begin{document} \begin{pspicture}(-10,-10)(10,...
2
votes
1answer
89 views

Ghostscript error when using both pst-rputover & tcolorbox

I can compile (no errors) the following MWE (file.tex) on TL-2019 (linux) with both latex & pdflatex <-shell-escape>: \documentclass{article}% % \usepackage[on]{pstricks-pdf}% \usepackage{...
2
votes
1answer
38 views

How to use \psxlabel and \psylabel to change label size in pstricks plots?

I am trying to get larger numbers on my axes in a pstricks plot. The user's guide only says that The labels are set in the current font (ome of the examples above were preceded by \small so that the ...

1 2 3 4 5 35