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
83 views

PSTricks Drawing: Symmetric Figure

Consider the following picture: I would like to draw this figure using PSTricks. My problem is the ends; the "cross" in the middle is no problem at all. Here is what I have so far: \...
2
votes
2answers
53 views

Conditional preamble and pstricks problem \psTilt and \PstLightThreeDText

Look at the following MWE. \PassOptionsToPackage{export}{adjustbox} \documentclass{article} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{adjustbox} \newcounter{psextern} \makeatletter \...
2
votes
2answers
65 views

What is wrong wth this pstricks code?

I'm a newbie so the answer is probably quite simple. I have the code below and its giving me two issues: The x and y axis labels are in random places? The supplied co-ordinates are not being ...
1
vote
2answers
75 views

Cisco Icons in PSTricks schemabloc

I saw this question, and wonder how to make it using PSTricks... I tried, but failed. The compilation ends, but fails to produce a pdf. I have the Cisco Icons in a subfolder, and putting them in a \...
1
vote
1answer
77 views

\begin{document} ended by \end{figure}, latex error in thesis template

I am writing a thesis in latex, when I add the pstricks code it runs but when I insert the \begin{figure} and \end{figure} command to caption the figure, it generates error \begin{document} ended by \...
1
vote
0answers
163 views

How can I do this by Latex (Tikz or PSTricks)

I want to draw the following diagram in LaTeX. How can I do this?
1
vote
4answers
169 views

Drawing a Curve for a Function Diagram

I want to draw the following diagram in LaTeX. How can I do this?
1
vote
2answers
184 views

How to draw this control flow graph using pstricks/tikz

This is just a simplified image of a control flow graph which I want to draw. The boxes contain multiple lines of text/mathematical symbols. And the transitions are all labelled using [] brackets. ...
0
votes
0answers
45 views

Variable font size of a text string

I was wondering if it is possible to use \fontsize{<size>}{<line space>} in a loop in order to create a text string of strictly decreasing/increasing font size from, say, 30 to 2. Surely ...
3
votes
2answers
113 views

Performing arithmetic on multido variable in PSTricks

I want to take an image and display it in PSTricks several times side by side, rotating it by the same amount each time. I want to use the multido command - something like \multido{\i=0+1}{10}{ \...
0
votes
1answer
43 views

\rput with figures

I have the following: \documentclass[prb,twocolumn,showpacs,preprintnumbers,amsmath,amssymb,float]{revtex4} \usepackage{pstricks} \usepackage{graphicx} \begin{document} \begin{figure}[t] \...
1
vote
1answer
59 views

PSTricks : draw a cross

I would like to draw a cross at a specific position. I already know how to draw a circle with \pscircle[...](x,y){...} is there something as simple that doesn't require any other package. For now ...
2
votes
1answer
49 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
47 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
52 views

pstricks does not work with MiKTeX [closed]

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
51 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)(...
3
votes
2answers
182 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
122 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
143 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
45 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
48 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
86 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
118 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
51 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
48 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
33 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
87 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
86 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
100 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
272 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
54 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
689 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
111 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? ...
43
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
53 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
196 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
105 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
46 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
85 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
409 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
32 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
104 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
388 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
582 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
110 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
88 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]{\...