Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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}.

0
votes
0answers
41 views

Pstricks stops working after update 18-2-19, problem with pgf?

I tried to fix my problem with dotsymbols in pstricks (see my question) and end up with an update of several packages in miktex. Now (after update) pstricks stops working. I get the following error: (...
3
votes
1answer
56 views

How to compact the \foreach command?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pstricks-add,pst-eucl} \begin{document} \foreach \i in {1,1.1,...,2.8,2.7,2.6,2.5,2.4,2.3,2.2,2.1,2,1.9,1.8,1.7,1.6,1.5,1.4,1.3,1.2,1....
3
votes
1answer
43 views

Why do not two “curves” have the same coordinate?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-intersect} \begin{document} \begin{pspicture}[showgrid](3,2) {\psset{linestyle=dashed} \pssavepath{MyPath}{\pscurve(0,2)(0,0.5)(3,...
2
votes
1answer
44 views

In psplot some dotsyles are not working

in psplot the following dotstyles are not working anymore (after miktex installation on new Computer): dotstyle=x, dotstyle=oplus, dotstyle=otimes In "C:\Program Files\MiKTeX 2.9\tex\generic\pstricks\...
2
votes
1answer
34 views

pst-circ: Prevent Rotation of Part of the Symbol

I am using pst-circ to draw a circuit. For this I want to draw a voltmeter, so I use newCircDipole to define a new element (MWE): \documentclass{standalone} \usepackage{pst-circ} \newCircDipole{...
4
votes
1answer
98 views

What is the difference between saveNodeCoors and \psGetNodeCenter?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid](5,3) \rput(1.5,0.5){\trinode{CN}{NodeA}} \rput(3.5,2.5){\trinode{EN}{NodeB}} \...
1
vote
0answers
31 views

Xelatex output error [duplicate]

I'm trying to render the following drawing in WinEdt using Xelatex: \documentclass[pstricks,preview,margin=0pt]{standalone} \usepackage{pst-plot,graphicx} \usepackage{tgheros} \renewcommand*\...
0
votes
0answers
40 views

Using WinEdt for the first time

Is it okay to talk about WinEdt? Several years ago I created some pstricks drawings. I still have the tex source, but do not remember my workflow. So I gave WinEdt a shot. Here is the source: \...
1
vote
0answers
36 views

Package xkeyval error 'blur' is undefined

I just put up TeXmaker and MikTeX 2.9 in my new computer. Now, I can't compilate old files which were working lately...I got this kind of fatal error, you can see log below. I try to pass over but ...
37
votes
5answers
7k views

Welcoming 2019 Lunar New Year: How to draw a (lovely) pig?

Chinese Zodiac and Lunar Year can be called very close friends. In Eastern cultures, each lunar year is assigned to one of the twelve animals in Chinese zodiac. The animal (or rather a mascot) of this ...
1
vote
0answers
73 views

Incompatibility between PGF and PStricks

With the new packages, I get an error message for every tex-file using PStricks. It seems to be a compatibility problem between new versions of pgf and pstricks. I tried to solve the problem by using ...
5
votes
4answers
224 views

How to fill color between function and circle in the following?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl,pst-plot,pst-func} \begin{document} \begin{pspicture}(-3,-1.5)(3,4) \def\F{x^3/3 - x + 2/3 } \psaxes{->}(0,0)(-3,-1)(3,4) \...
3
votes
1answer
89 views

Vertical spacing with beamer and pstricks using Miktex

I have some old files which I haven't used for a long time. They now produce different vertical layouts in beamer. MWE (test.tex): \documentclass[dvips]{beamer} \usepackage{pstricks} \psset{unit=...
3
votes
1answer
70 views

How to cache a common varying node?

The following MWE produces an output shown below. \documentclass[pstricks,12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}(-1,-2)(8,6) \psset{linejoin=2,dotsize=2pt,...
4
votes
2answers
163 views

How to use fraction for PSTricks's coordinates?

\documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture} % Definitions of functions \def\f(#1){4-#1*#1/3} \def\g(#1){#1*#1/4} % Shade the area bounded by the two graphs in [-...
11
votes
3answers
1k views

How to construct a circle that is tangent to three given semi- circles?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](-5,-5)(10,10) \psset{unit=2cm,PointSymbol=none,PointName=none} \pstTriangle(0,4)...
4
votes
2answers
272 views

How to delete unnecessary dot?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](-5,-5)(10,10) \psset{unit=2cm,PointSymbol=none,PointName=none} \pstTriangle(0,...
4
votes
0answers
101 views

How to use linestyle=dashed in the following case?

\documentclass[12pt,pstricks,border=10pt]{standalone} \usepackage{pst-electricfield} \begin{document} \psset{unit=1.25cm} \begin{pspicture}(-5,-3)(4,3.5) \def\figure{\begin{pspicture*}(-4.5,-3)(4.5,3) ...
4
votes
1answer
34 views

Bug in pst-circ: arrows dont work properly for \coil[dipolestyle=elektor]

in pst-circ the 'arrows' parameter is used for electrical connections. There is a problem for inductances with \coil[dipolestyle=elektor], where the 'arrows' parameter also affects the inner lines: ...
6
votes
1answer
61 views

Bug in pscircle? Mismatched radius for thicker line

for a simple pscircle I get a mismatched radius for thicker line. The small red circle in the left picture shows the mismatch with linewidth=1pt. In the right picture the small green circle shows that ...
2
votes
1answer
58 views

How to use eofill in the following case?

\documentclass[12pt,pstricks,border=15pt]{standalone} \usepackage{pst-poly,pst-eucl} \begin{document} \begin{pspicture}(-2,-2)(2,2) \psset{PstPicture=false,PointSymbol=none,PointName=none} \PstHexagon[...
8
votes
4answers
1k views

LaTeX figure drawing

How to draw this figure in LaTeX? I am new to LaTeX figure drawing. Here I see two round headed rectangles and two circles. Also I am eager to know that can I draw this in Overleaf?
7
votes
3answers
183 views

Clever setup of \multiframe with diverse conditions within animate package

I'm trying to setup an animated counter with PSTricks predefined digits. Got it to work up to 18 frames. However when increasing the number of frames, I can't handle it clever enough. No problem for ...
2
votes
1answer
80 views

How to blunt sharp joints?

In the following figure we can see that the line joints are so sharp. How to make them blunt? \documentclass[10pt,pstricks,border=15pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{...
1
vote
0answers
36 views

pstricks-add.sty: ERROR [duplicate]

The newest update update of pstricks-add gives me the following error: ! Paragraph ended before \ProvidesPackageRCS@i was completed \documentclass[a4paper,12pt]{article} \usepackage{pstricks-add} \...
1
vote
0answers
99 views

Advantages of using Sketch? [closed]

I was wondering what the advantage of using Sketch is over TiKz or PStricks other than projection planes and transparency effects? I feel as though TiKz can do all the features that Sketch provides ...
3
votes
3answers
163 views

How to fill a right-angle mark with a color?

I fails to fill the right-angle mark with green color as follows. \documentclass[12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \begin{pspicture}(-.6,-1)(4.85,4) \def\b{3} \...
3
votes
1answer
34 views

pstricks image is cut to a4 in landscape mode

I am trying to create a rectangle which covers the whole page using pstricks and XeLaTex; for example \documentclass[landscape,a0b,final]{a0poster} \usepackage{pstricks} \usepackage{pst-grad} \begin{...
1
vote
1answer
35 views

pst3d-plot misplaces text

Example file from here: \documentclass{article} \usepackage{pst-3dplot} \begin{document} \begin{pspicture}(-3.2,-2.73)(3.18,3.65) \pstThreeDCoor[ xMin = -4, xMax = 4, yMin = -4, yMax = 4, ...
1
vote
0answers
180 views

pgf package + pstricks | MikTeX | still 'broken' [duplicate]

So, after waiting until today (Jan. 8) to try updating pgf for my MikTeX install(s), went ahead and gave it a try (first after backing everything up in my MikTeX root directories). Install pgf using ...
6
votes
4answers
394 views

How to fill a hexagon with vertices obtained from intersecting lines?

\documentclass[12pt,border=15pt]{standalone} \usepackage{pst-poly,pst-eucl} \begin{document} \begin{pspicture}(-4,-3.5)(4,3.5) \psset{unit=3.5cm,PstPicture=false,dotsize=.03} \PstHexagon[PolyName=A] \...
3
votes
2answers
1k views

PSTricks: Newly introduced error in package

Consider the following MWE: \documentclass{article} \usepackage{pstricks} \begin{document} A \end{document} It produces the error Runaway argument? ] {pgffor.code.tex} ! Paragraph ended before \...
1
vote
3answers
106 views

How to draw a zero-length \psline without an arrow?

\documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}[showgrid](5,5) \psline[arrows=->](1,1)(1,1) \psellipticarc[arrows=->](2.5,2.5)(1,2){0}{0} \psellipticarcn[...
16
votes
4answers
723 views

How to plot two surfaces and the intersection curve?

I want to draw the intersection line (curve line) of two functions x^2+y^2+z^2=4 (Zmin= 0) and x^2+y^2=2y in the same coordinate system as follows. I have read pst-3dplot and pst-solides3d but I can ...
5
votes
1answer
212 views

TiKZ drawing output

Please help us how to draw attached images as with TiKZ, PSTricks or tcolorbox.
4
votes
4answers
133 views

How to round off the result of \pscalculate?

\documentclass[12pt,pstricks,border=5pt]{standalone} \usepackage{pst-func,pst-calculate} \begin{document} \begin{pspicture}(-1,-1)(1,1) \def\q{\pscalculate{1/sqrt(5)}} \def\a{\pscalculate{(1+sqrt(5))/...
3
votes
1answer
217 views

How to fix PostScript error “undefined in resourcestatus”?

I created a batch file animator.bat taking two parameters (a TeX input filename without extension and the number of pages). rem animator.bat rem %1 TeX filename without extension rem %2 The number ...
1
vote
1answer
46 views

\pscirclebox misaligned

For my example \pscirclebox doesn't align right and the circled object is way too high. See the MWE: \documentclass{minimal} \usepackage{pstricks,auto-pst-pdf} \begin{document} $$a\pscirclebox{=}b$$...
6
votes
4answers
236 views

Draw tree in tikz

I would like to replicate this powerpoint sketch in LaTeX. I tried it with tikz, but didn't come to a result. Any help appreciated!
4
votes
1answer
61 views

How to change the axes label from radian to degree?

\documentclass[12pt,pstricks,border=5pt]{standalone} \usepackage{pst-plot} \begin{document} \begin{pspicture}(-7,-1.5)(7,1.5) \psaxes[trigLabels=true,trigLabelBase=2,dx=\psPiH,xunit=\psPi]{->}(0,0)...
10
votes
3answers
479 views

Pstricks: Magnetic Field Lines of a Bar Magnet

As the title suggests I am looking for a pstricks way to draw the magnetic field lines of a bar magnet. There are drawings online, for example: hyperphysics.phy-astr.gsu.edu/hbase/magnetic/imgmag/bar....
4
votes
0answers
213 views

Drawing a tree using pstricks without using many \pslsystem commands

\documentclass[12pt]{article} \usepackage{pst-lsystem,pstricks,pst-node} \begin{document} \begin{pspicture}(10,10) \psset{unit=1cm} \def\Myfig{\pslsystem[Start=F,F={FF-[-F+F+F]+[+F-F-F]},Angle=22.5,...
3
votes
1answer
127 views

I can't compile it with my Texstudio compiler!

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl,pst-calculate,textcomp} \begin{document} \begin{pspicture}[showgrid](-1,-1)(8,8) \pstTriangle[PosAngle={180,90,0}](1,2){B}(2.5,5){...
6
votes
4answers
564 views

How to find points M and N such that AM=CN=BC only with a straight edge and a compass?

The following code is my attempt to find M and N such that AM=CN=BC. \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \def\x{\pscalculate{6-3.3541}...
4
votes
2answers
81 views

How to draw \psellipticarc?

\documentclass[pstricks,border=12pt]{standalone} \begin{document} \begin{pspicture}[showgrid](-1,-1)(4,4) \psellipticarc[showpoints]{->}(.5,0)(1.5,1){215}{0} \psarc*[showpoints](1.5,1.5){1.5}{215}{...
2
votes
1answer
82 views

What is the equivalent of sin,cos in PSTricks?

\documentclass[tikz,border=5mm]{standalone} \begin{document} \begin{tikzpicture}[>=latex] \draw[gray,very thin] (0,-2) grid (8,2); \draw[thick] (0,0) sin (1,2) cos (2,0) sin (3,-2) cos (4,0) sin (5,...
1
vote
1answer
106 views

Missing pst-calculate.sty (pst-optexp)

I copied the code that yields the diagram presented in this answer but all I get is the error message ! LaTeX Error: File `pst-calculate.sty' not found. Type X to quit or to proceed, or enter ...
3
votes
1answer
87 views

How to create right angle marks for 3D objects?

\documentclass[12pt,pstricks,border=15pt]{standalone} \usepackage{newcent,pst-eucl} \begin{document} \begin{pspicture}[showgrid](-5,-5)(8,6) \pstGeonode[PosAngle={180,0,-90,90}](-3,0){A}(3,0){C}(-1,-...
4
votes
2answers
113 views

How to combine two animations with a single loop?

\documentclass[pstricks,border=15pt,12pt]{standalone} \usepackage{pst-node,multido} \begin{document} \multido{\n=0+1, \i=90+-1}{91}{% \begin{pspicture}[showgrid=true](5,5) \psarc{->}(0,0){1}{0}{\n}...
1
vote
1answer
80 views

Datamatrix not generated on Mac

When I compile the following file on my Mac, the datamatrix is not generated. When I compile the same file on a Linux server, the datamatrix is shown. Do you have any idea how this datamatrix can be ...