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

1
vote
1answer
10 views

How to use \ usepackage {pst-barcode} with \ usepackage {color}

When using \usepackage {pst-barcode} with \usepackage {color} I get siguiete error:! LaTeX Error: Option clash for package pstricks. \begin{pspicture}(3.5,1.2in) \psbarcode{12345678}{includetext ...
2
votes
1answer
32 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
27 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} ...
3
votes
1answer
26 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
41 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
95 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 ...
1
vote
2answers
32 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
25 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
24 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{.}} ...
3
votes
1answer
57 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
69 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
38 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
152 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
46 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
35 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 ...
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} ...
6
votes
2answers
667 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
61 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} ...
3
votes
1answer
90 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? ...
41
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 ...
2
votes
1answer
47 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
146 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} ...
3
votes
0answers
81 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
40 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
56 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
272 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} ...
3
votes
1answer
30 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
87 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 ...
2
votes
3answers
351 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
468 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
72 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
46 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 ...
3
votes
1answer
49 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) ...
5
votes
2answers
72 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 ...
3
votes
1answer
79 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
31 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 ...
30
votes
2answers
584 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, ...
2
votes
3answers
66 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} ...
3
votes
0answers
51 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
19 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} ...
3
votes
1answer
42 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
33 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
116 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
51 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
47 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} ...
3
votes
1answer
116 views

! LaTeX Error: You have run the document with pdflatex, but PSTricks

I get some error when run my latex file: please help me. ! LaTeX Error: You have run the document with pdflatex, but PSTricksrequires latex->dvips->ps2pdf or alternatively the useof the package ...
4
votes
2answers
94 views

References are not recognized inside psmatrix

In a psmatrix environment, labels are not recognized. Here is a MWE: \documentclass[]{article} \usepackage[crop=on]{auto-pst-pdf} \usepackage{pst-node} \begin{document} \section{First ...
2
votes
2answers
58 views

Running PSTricks image on TeXShop

I am trying to compile the following pstricks image which I asked in another post: \mathversion{sans}\setlength\fboxsep{0pt} \begin{postscript} $\begin{pmatrix} 0 & 0 & 0 & 0 ...
2
votes
2answers
81 views

Flowchart where the nodes are pspictures

I want to create a flowchart, in which every node is itself a pspicture (with nodes and arrows), and there are arrows between the pspictures themselves. Here is an example (which looks bad because I ...
4
votes
1answer
70 views

Resize pspicture graphic

I have a simple SVG which I exported to a pspicture using Inkscape (colors don't get exported, but that is unrelated). I want to use it full with on a A1 poster and thought a pspicture vector graphic ...