Stack Exchange Network

Stack Exchange network consists of 175 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
25 views

\XC@usec@lor …\expandafter \c@lor@to@ps #1#2\@@by

I have a LaTex document which I was able successfully to compile until 2014. Today I am not to compile correctly. I think the problem is in my package "PSBao.sty" which I never changed. Unfornately ...
2
votes
0answers
67 views

A decorations packages of LaTeX

I'm looking for decorations packages of LaTeX. So far, what I know is the: Adforn Pgfornament Psvectorian (I don't see differences between this and pgfornament...) So, can you tell me please ...
7
votes
2answers
136 views

Poetry, calligrams and TikZ/PStricks challenge

One of my favorite poets is probably Guillaume Apollinaire. His story and proximity to Picasso made him a precursor. Calligrams was a constant attempt to merge poetry and visual. I am wondering how we ...
7
votes
2answers
252 views

Drawing all planes passing through two given points in a cube

Is there a smarter way to find a collection of possible planes passing through 2 given points P on ABFE and Q on DCGH such that we can see that the point R is the intersection of PQ and the common ...
1
vote
1answer
93 views

Can't compile mdframed example after miktex installation

I just got a new computer and installed mikTeX, emacs and auctex. Then I tried to compile a basic example from mdframed documentation : \documentclass{article} \usepackage{amsmath} \usepackage[...
2
votes
1answer
73 views

Vector field for a system of odes

Assume that you have the ode system x'=xy-y, y'=xy-x How would one use pst-ode.sty to draw trajectories and vectorfield, say in the t-y plane?
5
votes
2answers
177 views

How to combine three animations as the following example?

EX1: \documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \foreach \i in {0,-1,-2,...,-180}{% \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,...
2
votes
1answer
54 views

How to use \psrotate?

\documentclass[pstricks,border=15pt]{standalone} \usepackage{pstricks-add,pst-eucl}% \begin{document} \begin{pspicture}[showgrid](0,-3)(8,4) \pnodes(3,3){A}(1,-1){B}(7,-1){C} \pstMiddleAB[PosAngle=...
6
votes
2answers
103 views

How to the red dot draw an ellipse?

\documentclass[pstricks]{standalone} \usepackage{pst-node,multido}% \begin{document} %\multido{\rA=180+1}{180}{% \begin{pspicture}[showgrid](-4,-4)(4,4) \pscircle{3} \pnode(3;180){A} \pscircle(A){.5} ...
1
vote
0answers
55 views

Wrong slide size with beamer, pstricks and Texlive [closed]

This is a followup of my question here and uses the same setup. MWE (test.tex): \documentclass[dvips]{beamer} \usepackage{pstricks} \psset{unit=1mm} \begin{document} \begin{frame}\frametitle{Test}...
2
votes
1answer
45 views

Huge pstricks graph max memory exceeded

i have to update a very old reporting system wich uses latex, dvips and gs to generate pdf reports. On the old server, the following is installed: pdftex --version pdfTeX 3.1415926-1.40.10-2.2 (TeX ...
16
votes
2answers
625 views

How to draw a cube as the following?

\documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-solides3d} \begin{document} \psset{viewpoint=120 50 30 rtp2xyz,Decran=50} \pstVerb{/Colors [(red)(yellow)(orange)(green)(blue)] def } \...
2
votes
2answers
154 views

Carnot and Otto cycle diagrams in Latex using Tikz or PStricks

How can I generate P-V or T-S plots for Carnot and Otto cycles? In addition to what are shown in the pictures, I would like to put directional arrows for steps starting from 1 to 4. Also, I was ...
0
votes
0answers
32 views

What packages are capable to draw these figures? [duplicate]

Hey everyone! It would be nice if I could draw any of these pictures myself that's I want you to point out to me the packages to draw. So that I can learn it and built it to my needs.
2
votes
0answers
48 views

Problem with dotstyle=+

I'm using Overleaf with LaTeX compiler. I have the following code: \documentclass[pstricks,border=12pt,preview]{standalone} \begin{document} \begin{pspicture}[showgrid](0,0)(2,2)% \psdots[dotstyle=+...
5
votes
1answer
88 views

Where should we use \pstVerb?

I have some constants as well as macros to be defined for PostScript. \pstVerb { /a {3} def /b {2} def } There are three possible places: In the preamble (A). In document but outside ...
3
votes
1answer
69 views

How to specify a point belong to an ellipse?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-eucl,pst-calculate} \begin{document} \degrees[36] \begin{pspicture}[showgrid](-3,-3)(4,4) \def\a{2} \def\xa{\pscalculate{\a*cos(5)...
3
votes
0answers
64 views

Why Pstricks loads some PGF files and is there a bug? [closed]

In pstricks.tex (version of 2019-01-22), at the line 75, we read: \ifx\pgfkeysloaded\endinput\else \input pgfutil-common.tex \input pgfkeys.code.tex \input pgffor.code.tex \fi \let\pgfforeach\...
6
votes
1answer
103 views

How to shuffle a Rubik's cube?

\documentclass[pstricks,border=10pt]{standalone} \usepackage{pst-solides3d} \usepackage{arrayjob} \begin{document} \newarray\colors \readarray{colors}{red&red&red&red&red&red&...
2
votes
1answer
72 views

How to include LaTeX with PStrick macros figure generated using Inkscape?

I generated a PStrick macros .tex file from a .svg using Inkscape 0.91 (Shift+Ctr+S, save as LaTeX with PStrick macros) but I am not able to include it in my document I have tried: \documentclass{...
1
vote
1answer
101 views

Convert image to text and include in LaTeX

I'm writing a class, that should insert a logo (which i have available as .pdf and .svg) in the header. I thought it would be an elegant solution to just include the file directly in the class, ...
1
vote
0answers
47 views

Interactive geometry package

I am looking for a package that can produce some basic geometric figures and can be incorporated in a pdf file in such a manner that it is interactive with the reader. More specifically, I want to ...
1
vote
0answers
26 views

Error simply by including the pstricks-add package [duplicate]

This is a minimal working example of my code: \documentclass[12pt]{article} \usepackage{pstricks-add} \begin{document} test \end{document} By removing the \usepackage{pstricks-add}, everything works ...
1
vote
0answers
77 views

Math Functions both TeX and Infix Notation

I am trying to automate plotting graphs of mathematical functions. For that I need infix (or RPN) notation. I also want to annotate the output automatically with the correct mathmode of TeX. For ...
0
votes
0answers
54 views

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

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
81 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
51 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,...
3
votes
1answer
61 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
43 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
102 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
35 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*\...
1
vote
0answers
53 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 ...
41
votes
7answers
8k 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
109 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
257 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
101 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
74 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
182 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
279 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
112 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
37 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
70 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
68 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
191 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
84 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
43 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
106 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
175 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} \...