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
8 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} ...
2
votes
1answer
65 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 ...
3
votes
2answers
23 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) ...
7
votes
3answers
8k views

How do I include PSTricks pictures in a LaTeX document?

I use LaTeX regularly, and several times I have included .eps images. I am learning how to use PSTricks. I have used it to create .ps and .pdf files with images. There is plenty of free information ...
0
votes
1answer
138 views

How can I draw a 3D cross-section of a 3-torus embedded in 4D Euclidean space?

I found this question and very nice solutions of Mathematica Stack Exchange. I have a 3D-torus (\mathbf S^1\times\mathbf S^1\times \mathbf S^1) embedded in 4D Euclidean space. How can I draw the ...
4
votes
1answer
41 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
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} ...
1
vote
1answer
31 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} ...
9
votes
2answers
739 views

How to plot Feynman diagrams with PSTricks

I need to plot some Feynman diagrams for my research papers. Although I had some experience in plotting with PSTricks, it is still not an easy job to plot Feynman diagrams. Could someone provide some ...
3
votes
2answers
44 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 ...
3
votes
1answer
30 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] ...
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 ...
1
vote
2answers
96 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 ...
3
votes
1answer
361 views

Mysterious problem with ps2pdf in texlive 2013

The following code comiled fine in texlive 2012, but gives me an error now: Error: /typecheck in --restore-- Operand stack: --nostringval-- --nostringval-- --nostringval-- 502.75 80.6952 ...
1
vote
1answer
800 views

Flashy text in beamer presentation

I'm creating a beamer presentation and I'm looking after some effects I could include to make my work more attractive. Is there a way to make a flashy text? I'm thinking about an alarm clock: you know ...
26
votes
5answers
32k views

How to draw an ellipse?

As I know, I can draw a circle using: \draw (1,0) circle (2) I try this kind of method to draw a \draw ellipse, failed. Would you tell me how to draw a ellipse? What's wrong with the code below? ...
3
votes
1answer
61 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 ...
2
votes
0answers
27 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
25 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
2answers
1k views

XeLaTeX and EPS figure with consistent fonts

I'm using Miktex 2.9 and XeLaTeX plus some EPS figures. For consistent fonts throughout the document, I used to play with psfrag or directly use pstricks. I'm facing the situation where none of the ...
3
votes
1answer
53 views

Connecting line does not show up when using nodes in PSTricks

I was trying to understand the nodes feature in pst-node. I copied the following example exactly as written in the PSTricks readme. \documentclass{article} \usepackage{pstricks, pst-node} ...
3
votes
2answers
152 views

Histogram's in Latex where my data can be generated using a computer code

This here creates a histogram. \documentclass{article} \usepackage{pst-plot} \savedata{\data}[{{0.5,1},{1,7},{1.5,1},{2,3},{2.5,1},{3,2},{3.5,1}}] \begin{document} \psset{xunit = 2} ...
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? ...
5
votes
0answers
70 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 ...
2
votes
1answer
199 views

TeX4ht and PSTricks

I tried to compile the code below with mk4ht htlatex file.tex 'xhtml, charset = utf-8 pmathml' '-cunihtf-utf8-cvalidate' Formulas and text are transcribed, but not graphics. How to solve this ...
12
votes
4answers
1k views

Draw tally marks using PSTricks

Inspired by Paulo Cereda's question here, I would like to draw tally marks using PSTricks (or TikZ, if no one can help with PSTricks). I have no idea how to start, so I cannot even present a try ...
1
vote
1answer
39 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 ...
18
votes
2answers
10k views

PSTricks error “Undefined control sequence <recently read> \c@lor@to@ps”

I have a problem with this file tex: \begin{document} \begin{figure} \begin{center} \begin{pspicture}(0,0)(1,3.8) \psline{-<}(0,0)(0,.2) \psline{-}(0,.2)(0,.4) \psline{*->}(0,.4)(0,.9) ...
3
votes
4answers
153 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 ...
41
votes
5answers
2k views

Please improve my logo to resemble our TeX.SX logo

It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one. ...
9
votes
1answer
470 views

PSTricks figure turned 90 degrees

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \def\RPut(#1)#2{% \rput[r]{90}(!#1 1980 sub 2 div 0){#2 \quad} \rput[l]{90}(!#1 1980 sub 2 div 0){\quad #1} } ...
2
votes
1answer
53 views

How to clip a PSTricks image to its boundaries

I have a PSTricks pspicture where certain elements go beyond the boundaries of the Image itself. I tried using \clipbox, but that either completely removed the entire image or didn't change anything ...
3
votes
1answer
37 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 ...
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 ...
4
votes
1answer
47 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 ...
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} ...
5
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} ...
3
votes
1answer
91 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? ...
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 ...
17
votes
4answers
2k views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...
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} ...
5
votes
1answer
55 views

How can solides3d know when one object is behind another?

pst-solides3d has an impressive graphics engine behind its design. I'm interested in knowing how it is able to know when an object is behind another object. Disclaimer: I am not sure this is an ...
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 ...
5
votes
2answers
329 views

How can I write accented letter “ő” in PSTricks?

I'd like to write accented (hungarian) letters in PSTricks. With the solution below I can write "é", "á" and other similar characters but this doesn't work for "ő". Here is what I tried: ...
5
votes
3answers
277 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
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 ...
2
votes
0answers
41 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?
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
0answers
52 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 ...
12
votes
3answers
2k views

Create heatmap with PSTricks or TikZ

I have a huge amount of 2D-coordinates, associated with a value, e.g.: x | y | value 27.50 52.15 12.51 61.83 13.32 57.56 36.23 21.83 41.73 40.46 85.67 25.20 ... The data is ...