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

5
votes
2answers
109 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
124 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
637 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
96 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
70 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
101 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
53 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
141 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
78 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{...
3
votes
1answer
198 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 auto-...
4
votes
2answers
113 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 \label{sec:...
2
votes
2answers
70 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
89 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
78 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 ...
1
vote
2answers
48 views

how to align text in different uputs

As can be seen from the image, there are 2 labels (a,b) that have misaligned baselines. I know that the problem arises because the height of the content in both uputs is different (b is taller than a)....
5
votes
1answer
85 views

Strange artifacts with pstricks plot

Consider the following MWE: \documentclass[border=5pt,pstricks]{standalone} \usepackage{pstricks,pst-plot,pst-math} \listfiles \begin{document} \psset{xunit=1.05cm,yunit=1.05cm} \begin{pspicture*}(-...
4
votes
2answers
145 views

How to draw a 3D quadrangle from points

My picture uses a bunch of irregular quadrangles but there is no polygon macro in pst-3dplot Is there a way to emulate the basic pstricks macro \pspolygon(a,b)(c,d)... in pst-3dplot? I know I can ...
2
votes
1answer
64 views

Pixel glitch poking my eyes (pstricks, beamer)

Using pstricks and beamer I get an eye-poking pixel glitch: the pspicture "wiggles" 1 pixel or so between frames. Not sure how minimized is my example, but here it is: Compiling with pdflatex --shell-...
2
votes
1answer
91 views

Problem with pstricks and htlatex/tex4ht

Consider the following MWE: \documentclass{article} \usepackage{pst-all} \begin{document} \begin{pspicture}(0,-3)(12,5) \psline[linewidth=2pt]{->}(1.5,0)(0,0) \end{pspicture} \end{...
4
votes
2answers
97 views

How to use macros in pstricks as coordinate arguments?

OK, as a good novice I have come across an impressive feature (the ! symbol that allows direct injection of PostScript as coordinate arguments. I can really simplify my work with this feature so I ...
3
votes
2answers
101 views

Beamer, \column, pspicture: is this a bug, what am I doing wrong?

Here are my two examples, both don't render correctly: the position of the text relative to the pspicture is wrong in both versions. [Edit:] More precisely, the text and the picture are supposed to ...
2
votes
1answer
126 views

New Question: Serious problem by creating a figure

I have now trying to make this model: But I do not know how to add the nodes in top; "1 text", "2 text", "3 text" and "4 text". Furthermore, I do not know how to make a fourth box, as shown: "9 ...
2
votes
0answers
80 views

tcolorbox and pstricks are conflicting? [closed]

The following code comes from a much larger document of mine containing several pstricks and boxes generated by using tcolorbox. \documentclass[fontsize=12pt,letterpaper,openany]{scrbook} \usepackage{...
7
votes
2answers
127 views

Automatically converting pictures to black-and-white

I am submitting a paper to an Elsevier journal, and they ask that "For reproduction in black-and-white, please supply black-and-white versions of the figures for printing purposes." My figures are ...
2
votes
2answers
83 views

Drawing dot mesh on 3dplot

DISCLAIMER: this seems like a bug. If you know where I should post this (message board, forum, bug tracker...) please let me know. I have a relatively simple image consisting of 2 parametric 3d plots ...
2
votes
1answer
58 views

I have an error when using pst-func package [duplicate]

when i use pspicture* to draw a chart this error occurs but plotted. file:framed.sty error:no room for a new \dimen.
5
votes
1answer
88 views

Weird whitespace occurs using \drawbeam in pst-optexp

In my drawing using pst-optexp, I found weird whitespace occured when using \drawbeam, \pstVerb and tx@addDict together. Here are the minimum reproduction codes for my claim: \documentclass{...
4
votes
2answers
254 views

How can I draw these patterns in another way?

I used Geogbra to draw this pattern of multiple squares. Then, I exported the figure as TikZ code. The generated code is the following: \documentclass[12pt]{standalone} \usepackage{pgf,tikz} \...
2
votes
1answer
387 views

Many body perturbation diagrams (closed Feynman diagrams) in latex with labelling

I would like to draw many body Feynman diagrams using latex. These are closed and often used in condensed matter and nuclear physics in contrast to the open scattering diagrams in particle physics. ...
3
votes
1answer
62 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} \begin{...
3
votes
2answers
83 views

pscustom fill problem 2 times psLorenz

Look at the following MWE which is compiled via latex->dvips->ps2pdf \PassOptionsToPackage{dvipsnames,table}{xcolor} \documentclass[pstricks,border=0pt]{standalone} \usepackage[utf8]{inputenc} \...
1
vote
0answers
218 views

PStricks and TexMaker/MikTex returns empty or strange PDF

I am trying out pstricks as it contains some really nifty packages for electric and magnetic fields. However, I cannot get it to work quite yet. My setup is as follows: TexMaker 4.4.1 MiKTeX ...
3
votes
3answers
543 views

How to draw sequence of shapes with arrows and text

I'm trying to draw something of the sort with a square figure in the far left, and a rectangular figure cut into 4 slices on the right-hand side. Above the arrows and below the figures reads "text"....
2
votes
1answer
110 views

pstricks, psSolid and pstODEsolve II

In pstricks, psSolid and pstODEsolve the problem has been resolved using a function as "output-function" for a solution to an ode (refered to as the real ode) which is itself a solution to an ode, say ...
4
votes
2answers
281 views

Simple calculation inside \def command

I would like to define a command that does some simple calculation, like this: \def\rectangle(#1,#2)(#3,#4)#5{ \psframe(#1,#2)(#3,#4) \rput((#1+#3)/2,(#2+#4)/2){#5} } % \rectangle(1,1)(49,49){X}...
1
vote
1answer
35 views

Problems with PSTricks and Floating Point

When creating a picture with pstricks I want to do some simple calculations fot proper positioning. Therefore I use the "fp"-Package. It turns out that the usage of the \FPeval-command seems to shift ...
5
votes
1answer
137 views

Psvectorian problem [duplicate]

Could you provide me a MWE for using psvectorian package? I tried \documentclass{article} \usepackage{psvectorian} \begin{document} \psvectorian[height=1cm]{102} \end{document} It gives back ...
2
votes
1answer
94 views

pstricks, psSolid and pstODEsolve

When using pstODEsolve with the option algebraicOutputFormat I would like to use a function \z which itself is defined by the "final value" of a solution to another ode and the argument #1 being the ...
5
votes
1answer
58 views

How to render a graph with negative axis values within a frame style

\psset{llx=-1cm, lly=-1cm, xAxisLabel=Time, yAxisLabel=Data, xAxisLabelPos={c,-1.4in}, yAxisLabelPos={-0.6in,c}} %\begin{psgraph}[axesstyle=frame, Dx=2.5, Dy=1](0,-1)(20,1){4in}{2in} \begin{psgraph}[...
2
votes
0answers
94 views

pstricks and pdf option

I've noticed a problem with the latest version of pstricks: I used to compile files containing pstricks code with pdflatex, using the pdf option of the document class. Now it doesn't work,, and ...
2
votes
1answer
156 views

Pstricks not working after update MacTeX 2015

After an update on MacTeX, my code stopped working. I am not sure what gives. My preference is to use PDFLaTeX (I am using the shell-escape option) but XeLaTeX is also not working. \documentclass{...
3
votes
1answer
92 views

Pspicture is not centered

I am trying to print a pspicture as a subfigure in a figure. Here is the code: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[frenchb]{babel} \usepackage{subfigure} \usepackage{...
1
vote
2answers
108 views

My PSTricks is broken: empty output from pst-vowel example [closed]

Consider the following example from the pst-vowel manual (http://ctan.cs.uu.nl/macros/latex/contrib/pst-vowel/pst-vowel.pdf): \documentclass{minimal} \usepackage{tipa,pst-vowel} \begin{document} \...
3
votes
2answers
105 views

Undefined references within equations

So my problem is that there seams to be a clash between something in my preamble and the \label{} and \ref{} commands. When I do references within my definition environment it all goes smoothly, but ...
2
votes
1answer
134 views

LaTeX Trellis Diagrams for STBCs

I recently had to draw multiple trellises for space-time block codes (first introduced in this paper; the open-access version is here). I'd like to share the code with you here, so that the work doesn'...
0
votes
1answer
255 views

Spiral around cylinder [duplicate]

i want to draw a spiral around cylinder. Can you help me? something like that http://www.unitmath.com/um/p/Examples/GeometricSolids/Spiral.gif Thank you very much.
1
vote
0answers
76 views

Exclude a line of text in a tabular environment

I have this problem: inside a framebox there is a line of text which should not be a part of the tabular enviromnent because it widens the first tab. Here is the code \documentclass[12pt, a4paper]{...