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

4
votes
1answer
42 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} ...
4
votes
2answers
114 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
50 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 ...
2
votes
1answer
114 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 ...
4
votes
2answers
41 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 ...
7
votes
2answers
61 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
1answer
38 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} ...
3
votes
2answers
69 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
0answers
54 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} ...
1
vote
2answers
66 views

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

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} ...
2
votes
1answer
24 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.
27
votes
6answers
1k views

Spirograph, Continuous Rotations in TikZ or PSTricks

Spirograph-like drawings are obtained when one repeatedly draws a closed curve on a continuously rotated canvas. Is there a nice way to make spirograph drawings using TikZ or PSTricks? There is a nice ...
2
votes
1answer
198 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
2answers
50 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} ...
2
votes
1answer
34 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: ...
4
votes
1answer
122 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} ...
3
votes
0answers
34 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} ...
20
votes
3answers
2k views

How to draw these (closed contours) diagrams using TikZ or PSTricks?

First, I must say I have no knowledge about PGF/TikZ nor PSTricks, but I would like to draw the following or similar closed contours using one of them or another adequate package. Where can I find the ...
5
votes
2answers
410 views

Fill opacity problem with pdflatex while upgrading MiKTeX from version 2.7 to 2.9

It's my first post. I solved it when writing this so I send it anyway in case it helps someone. When compiled with pdflatex.exe from MiKTeX 2.7 it works. When compiled with pdflatex.exe from MiKTeX ...
1
vote
0answers
102 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 ...
6
votes
2answers
627 views

economic circuit

Having seen some examples of electronic circuits, I would like to make an economic one like this one: I haven't found any relevant example, so would like your help. In case that somebody is ...
3
votes
3answers
225 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 ...
2
votes
1answer
79 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
193 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} } % ...
1
vote
1answer
26 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
34 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
59 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
28 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} ...
1
vote
0answers
42 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 ...
1
vote
1answer
58 views

pstricks, psSolid and listplotIIID

Is there a way in listplotIIID to change the linecolor after say "100 points" into gray, after "500 points" back in black and so on? \documentclass[border=0pt,10pt,dvipsnames]{standalone} ...
3
votes
1answer
58 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} ...
2
votes
1answer
51 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. ...
3
votes
2answers
41 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
59 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 ...
0
votes
1answer
89 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.
21
votes
5answers
553 views

Recreate the sphere in TeX.SX logo

I'm trying to recreate this But looking in this Meta question the only code provided doesn't give that output %!TEX TS-program = xelatex \documentclass{minimal} \usepackage{pst-solides3d} ...
1
vote
0answers
57 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, ...
3
votes
2answers
158 views

PSTricks equivalent to TikZ

Is there a way to make the grid in \psgrid look the same as the one in the tikzpicture? \documentclass[12pt,pstricks]{exam} \usepackage{tikz} \usepackage{pst-all} \begin{document} \psset{unit=0.5cm} ...
1
vote
1answer
67 views

pst-3dplot error with IIIDlabels

I have encountered a problem with my pst3dplot. With the option IIIDlabels enabled I end up with lots of black spikes instead of labels on the coord axes. Without IIIDlabels the pst-3dplot works fine. ...
7
votes
1answer
2k views

How to place in a document a VCard using a psbarcode?

I would like to put a QRCode that contains contact information (VCard). However I don't know how to encode the newline character so VCard is correctly read. Here is a sample document with QRCode ...
3
votes
1answer
207 views

Upgraded from Texlive 2013 to 2014 and pstbarcode no longer works

\documentclass[border=10pt]{standalone} \usepackage{pst-barcode} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(0.7in,0.7in) \psbarcode{http://www.kernel.org}{}{qrcode} ...
1
vote
2answers
323 views

Loading TikZ3+PSTricks at the same time

I am also posting my solution. Please save your time and energy on this Question! I have experienced a strange behavior after upgrading TikZ 2 to TikZ 3 when loading and using the TikZ and ...
8
votes
1answer
447 views

how to get PSTricks QR codes to handle tildes properly?

I am getting bitten by the same problem from one of my previous questions: tildes are not handled properly. But now it's the PSTricks QR code package that's not working, and none of the suggestions ...
8
votes
1answer
649 views

How to add text into a QR-Code?

I want to add a text to the QR-Code. I want a small numbers in one of the four black squares. \documentclass[a4paper, 12pt, parskip]{scrartcl} \usepackage[utf8]{inputenc} \usepackage{pst-barcode} ...
4
votes
2answers
609 views

Is there a “smarter” way to know the size of \psbarcode?

The size of 2D barcode depends on the first argument of \psbarcode. I usually do trial and error to find the size of \pspicture such that I get a tight output. \documentclass{article} ...
14
votes
3answers
1k views

Deactivating Anti-Aliasing when typesetting QR-Code

Using the following LaTeX-Code: \documentclass[a4paper]{article} \usepackage[pdf]{pstricks} \usepackage{pst-barcode} \begin{document} \begin{pspicture}(0.7in,0.7in) ...
3
votes
1answer
413 views

Problems while installing pst-barcode

I tried to install pst-barcode, but after moving the files to /usr/share/texmf/dvips/pstricks/ and running texhash, I still can't use them, and have to enter the files manually when compiling the ...
0
votes
1answer
72 views

Text alignment in clipped parbox

I have the following problem: I need to put variable length content into a fix-sized parbox the gets clipped with clipbox command. And want the content to be vertically centered. As long as the ...
11
votes
1answer
2k views

How to produce Latex QR-Code (or in general 2d codes) as Vector graphic?

The pst-barcode package is great to produce bar-codes in all flavors. And it does 1d bar-codes like a charm. Also it is capable of generating 2d bar-codes with a command like this for a qrcode: ...
3
votes
1answer
37 views

Trouble getting started with pstricks [duplicate]

I went to the self-advertized pstricks web site, http://tug.org/PSTricks/main.cgi?file=examples and tried to run a few examples in TeXShop version 3.51 on Mac OSX Yosemite. The examples I tried ...