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

learn more… | top users | synonyms

2
votes
1answer
46 views

\rput not working in TexShop 3.51

\rput is not working, I change the coordinates but "(a)" does not move at all. Here the code: \documentclass{article} \usepackage{graphicx} \usepackage{pstricks} \begin{document} \pagestyle{empty} ...
3
votes
1answer
43 views

Draw coterminal rotation angles with pstricks

How draw the rotation of coterminal angles at 135 degree with pstricks, as a shown in figure.
0
votes
0answers
48 views

pstricks does not work with MiKTeX

I have MikTex 2.9 installed on my computer, it is working perfectly. But when I use any pstricks script, a blank area is displayed. How can this be fixed? For example, I have the following code \...
1
vote
1answer
47 views

pst-solides3d problem with MacTeX

With MacTeX, the following official example doesn't compile. Why ? \documentclass{standalone} \usepackage[pdf]{pstricks} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(-5,-5)(...
2
votes
1answer
152 views

Custom PSTricks directory tree to TikZ

I have a PSTricks implementation of a custom directory tree which I find quite appealing. I basically want to convert the whole thing to TikZ. I managed to get the very basic idea running in TikZ: I ...
5
votes
2answers
102 views

How to use \usepackage{pst-barcode}

When using \usepackage {pst-barcode} I get error : \documentclass[10pt,a4paper,twoside,openany]{book} \usepackage[spanish]{babel} \usepackage[dvipsnames,x11names]{pstricks}% Options for xcolor \...
5
votes
1answer
121 views

How to set Overleaf to compile with `lualatex --shell-escape <file>`?

I'm trying to use the solution given by the accepted answer in How to have \psframe working with LuaLatex? but I don't know how to enable the option --shell-escape there. Overleaf explains that it ...
1
vote
1answer
41 views

How to have \psframe working with LuaLatex? [duplicate]

When I try to compile the code below in Overlef, I get an error if I set LuaLaTeX as LaTeX Engine, but no error if I set Choose Automatically. \documentclass[a4paper,10pt]{book} \usepackage{pst-...
3
votes
1answer
45 views

How can I get lines to join up using PSTricks?

Here is a minimum working example: \documentclass{book}[12pt] \usepackage{pstricks,pst-node,pst-tree} \begin{document} \begin{figure} \centering \psmatrix[colsep=.3cm,rowsep=.5cm,mnode=r] [...
3
votes
2answers
81 views

pstricks, arithmetic, variables and lput

I am trying to construct wiring diagrams and have made the, perhaps niave, assumption that it is better to have a few reference points (top, bottom, rhs, lhs, ...) and then position everything ...
1
vote
2answers
114 views

What is the problem in the codes?

See the code given below. Actually, I am looking for a tree of number 36. Can somebody let me know what I did wrong? \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,...
1
vote
2answers
47 views

XeLaTeX, Landscape Setting Papersize for PSTricks Graphic

I found that my PSTricks Graphics only work in Landscape when I edit the dvipdfmx.cfg and add -sPAPERSIZE=a0 to the line %% Use MiKTeX Ghostscript: D "mgs.exe -q -dNOPAUSE -dBATCH -dEPSCrop -...
2
votes
0answers
43 views

Scaling of Inkscape generated PS tricks tex file in Latex

I try to draw a figure in Inkscape (0.91) and then include it in a Latex document using the "LaTex with PSTricks macros" .tex filetype. I use the following code to embed the generated ...
2
votes
1answer
32 views

Prevent two \psmatrix objects from connecting to each other

I'm attempting to draw graphs using pstricks' \psmatrix command with the following code: \documentclass{article} \usepackage{pstricks,pst-node,pst-tree} \def\e{\strut \hphantom{.}} \newenvironment{...
3
votes
1answer
78 views

How to define a mathematical equation in two parameters in PSTricks?

I am to draw a 3D function, using PSTricks' \parametricplotThreeD. Coordinate Z in two parameters is so awkward, in terms of controlling boundary values and formulation that I decided to break it ...
5
votes
0answers
82 views

Wireless network/nodes

I am actually using LatexDraw for my graphs. I would like to know if there is any package that provides wireless network components such as : base station, nodes, terminal, wireless signal, ... I am ...
1
vote
1answer
89 views

Installing the pst-optexp package

I am having trouble installing and using pst-optex package. I went through the documentation installed all the prerequisites. But my tex comiler(TeXMaker) keeps giving errors. The code I have written ...
3
votes
4answers
250 views

Drawing half a parabola using pstricks in LaTeX

I am trying to create some typed notes about Dynamical Systems, and as part of this I wish to draw a stability diagram; this requires me to have a parabola of the form $r = x^2$, however, one half of ...
4
votes
1answer
51 views

How to customize the appearance of newicktree

I'm currently preparing a seminar for some students. One student asked me the question whether it's possible to draw phylogenetic trees with LaTeX or not. Some research brought the newicktree-package ...
3
votes
1answer
50 views

Changing thickness line using pst-solides3d [closed]

Changing thickness line using pst-solides3d: I'm trying to draw a thinness line in space using pst-solides3d: \begin{center} \psset{unit=0.4cm} \psset[pst-solides3d]{viewpoint=40 30 25 rtp2xyz,...
1
vote
0answers
23 views

Thickness line using pst-solides3d [duplicate]

I'm trying to draw a thinness line in space using pst-solides3d: \begin{center} \psset{unit=0.4cm} \psset[pst-solides3d]{viewpoint=40 30 25 rtp2xyz,Decran=60,fontsize=0} \begin{pspicture}(-2,-3)(3,10)...
6
votes
2answers
687 views

How can I fill this pyramid like this picture?

How can I fill this pyramid like this picture? (with GeoSpacW) I tried (with GeoGebra) \documentclass[12pt]{standalone} \usepackage{fouriernc} \usepackage{pgf,tikz} \usepackage{mathrsfs} \...
1
vote
1answer
79 views

Triangle in space

I would like to draw the following surface in space using \psSolid command: $\{(x,y,z): x + 2y + 3z = 4, x \geq 0, y \geq 0, z \geq 0\}$. Here it is the best I can get: \psset{unit=0.5cm} \psset[...
3
votes
1answer
108 views

projecting LaTeX onto a plane not just text onto a plane pst-solides3d

I am able to project text \psSolid[oject=text, text = zyz] but want put what would be in LaTeX $\alpha$ as the text. \psProjection prints verbatim: $\alpha$. Is it possible to force the LaTeX? ...
42
votes
3answers
1k views

December challenge: Create an Advent Calendar

While thinking about creating an own Advent Calendar for the beloved people around me – instead of buying a boring one with chocolate in it – a thought came to my mind: "How would I draw this in TikZ?"...
2
votes
1answer
52 views

Circle is clipped for no obvious reason

I guess, this might be a fairly simple one as I am a TeX newbie... I already searched on Google but did not find an answer to my question (maybe because I did not really know what to search for ...
5
votes
3answers
190 views

Lines connecting elements in an equation

I want to draw lines connecting various elements in an equation. Here is what I have so far: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark} \newcommand\...
3
votes
0answers
104 views

Generate QR Code with image inside

How can I generate in xelatex a QR code with any given image inside, like so or better like this, using either pstricks or the new qrcode package? Note that the QR-code must still work after including ...
2
votes
0answers
44 views

Help, pstricks figure

I want to draw with pstricks the following figure and I don't know how to draw the "bubble". Can anyone help?
3
votes
2answers
82 views

White background box for labels in \psaxes of pstricks

I want to create a coordinate place with \psgrid and \psaxes. I am using the labels of \psaxes and suppressing those of \psgrid. My issue is that the negative signs (for negative labels) tend to be ...
5
votes
3answers
377 views

Miktex pdflatex no longer compiles pstricks commands

I have been using MikTex 2.9's pdflatex for several years with sample code similar to: \documentclass{standalone} \usepackage[pdf]{pstricks} \usepackage{pst-all} \begin{document} \psset{xunit=...
3
votes
1answer
31 views

False .52 over x-axes in pspicture

I was trying to make a pspicture with custom labels on the x-axes. Unfortunately the value, I am trying to let the y-axes start with, is displayed above the x-axes. Does anybody know why? \...
4
votes
1answer
99 views

Problem between bookcover.cls and PST-barcode

Please consider the MWE below which just places an ISBN bar-code on the backpage of a book cover using the bookcover.cls \documentclass[coverwidth=16cm,coverheight=23cm,markcolor=black,spinewidth=0....
2
votes
3answers
379 views

Convert image into TikZ

I want to convert this image into TikZ. I already have the following code, but I don't know how to put the numbers at the vertices and how to put that red bar inbetween 2 and 3. Could someone ...
3
votes
2answers
561 views

Hysteresis Loop

I am new to latex. I'm doing my MA thesis on Magnetic Materials. I don't know how to draw this diagram in LaTeX. I would be grateful if you can help me with this image. Thanks.
4
votes
2answers
104 views

PSTricks displaying incorrect axis arrow at origin

I have the following LaTeX code: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \begin{document} \psset{xunit=0.45} \begin{pspicture}(-2.5,-.5)(10.5,2) ...
1
vote
0answers
60 views

M4 Circuit Macros with WinEdt and MiKTeX 2.9/Windows 7

Copy m4.exe, regex2.dll and dpic.exe to C:\Program Files (x64)\MiKTeX 2.9\miktex\bin Copy M4 Macros to C:\Program Files (x64)\MiKTeX 2.9\tex\latex\circuits_macros Add C:\Program Files (x64)\MiKTeX 2.9 ...
3
votes
1answer
78 views

How to create dataplot with logarithmic y-axis in PSTricks?

I am trying to create some graph with a logarithmic y-axis in PSTricks. My Code Looks like this: \psset{xunit=0.5cm,yunit=2cm} \begin{pspicture}(-0.5,-17)(8,1) \readdata[ignoreLines=1]{\...
5
votes
2answers
105 views

Block Diagram of a switch

I'm trying to draw a switch schemabloc, using pst-sigsys... The thing is, with the \ncstar macro it's only possible to "merge" multiple inputs into 1, and not the opposite... I've managed to do this,...
3
votes
1answer
116 views

PStricks figure disappearing in tufte-latex

I have an elusive problem with the interaction of pstricks and tufte-book style. I find that trying to include pstricks code is unreliable. Sometimes the figure appears, sometimes it does not. I ...
2
votes
2answers
37 views

Make pstricks ignore pictures

I'm not even sure how to ask this I'm interested in knowing if there is a way (a package option perhaps) to ignore the compilation of pstricks but leave the picture environment with its intended size....
31
votes
2answers
627 views

drawing patterns based on prime factorization

can someone help me generate code to type the diagram for any given natural number based on its prime factorization such as these diagrams consider the next number 36 and its prime factorization, $36=...
2
votes
3answers
92 views

rotate \rput \parbox write on image

I want to create the illusion of a note stuck on top of the page. Here I have typed and saved in photoshop and then added to the xeLatex document with \includegraphics[angle =30 ]{paper.png} paper....
3
votes
0answers
67 views

Reorienting the pst-solides3d axes

EDIT: I figured out how to make this diagram in tikz using the 3dplot package. You can see what I did for that here. I am still interested in this question however for potential future use so I will ...
1
vote
2answers
22 views

Set \labeldist for 1 message

I'm drawing a message exchange sequence with the msc package, and I have some problems with the \labeldist on the messages. Here is the MWE : \documentclass[border=2mm]{standalone} \usepackage{...
3
votes
1answer
85 views

Defining variables with \def and using them in PS calculations in PSTricks context unexpected behaviour

I find the documentation and examples for using PSTricks do not help me with the following problem: define (using \def OR \edef?) thetai=80, thetaii=220, thetaiii=285. Then compute (using \def OR \...
2
votes
1answer
47 views

Interferencs between PSTricks options

I'm making a building to explain the asymmetric encryption scheme to my students. I'm using pst-sigsys to designe the Block Diagram, and pstricks-add to draw the key : I had problems designing the ...
5
votes
2answers
135 views

Create custom shape with holes

I'd like to create a key shape symbol using PSTricks, but I have some problems filling it... Here's the shape I'd like : \documentclass[pstricks, float]{standalone} usepackage[table, usenames, ...
2
votes
0answers
68 views

Environment \pspicture only works with single slide in beamer?

I'm trying to use pstricks in beamer, and need to compile it with pdflatex. Weirdly, the code works when I have a single frame (see MWE below) but as soon as I add a second frame (i.e. uncomment line ...
2
votes
1answer
71 views

How can I make a PSTricks QR-code into a hyperref clickable link?

I'm trying to embed a QR code into a document, but also has it be a clickable link, so that it can be scanned when printed, or clicked when viewed. When I do this \documentclass{article} \usepackage{...