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
0answers
33 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
39 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 ...
5
votes
1answer
50 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
116 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
52 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
39 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} ...
4
votes
2answers
47 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
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
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 ...
2
votes
0answers
56 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} ...
7
votes
2answers
65 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
25 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
44 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
124 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
199 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
0answers
36 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
53 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
106 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
233 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
81 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
199 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
35 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
61 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
31 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
43 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
53 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
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} ...
1
vote
2answers
77 views

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

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
42 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
94 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
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
159 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
60 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
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 ...
3
votes
1answer
62 views

pstricks, psSolid and pstODE

Using \psSolid I can create nice pictures of a graph of a function, say f(x,y)=xx-yy. Using \pstODE[algebraic,algebraicOutputFormat]{solution}{ "x" |"y" | f("x","y") }{... I can solve an ...
21
votes
5answers
557 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} ...
3
votes
1answer
116 views

Parametric surfaces with dependent parameters

I'm trying to create an image that shows (for example) the portion of a standard cylinder (\cos(v),\sin(v),u) that lies between the planes z=0 and z+y=5. Generating the cylinder itself is not an ...
3
votes
2answers
48 views

Removing extra lines in psplotImp

I am new to using pstricks and I am unsure of why I am getting extra lines. \documentclass[pstricks]{standalone} \usepackage{pst-func} \begin{document} \begin{pspicture}(-2.5,-2.5)(2.5,2.5) ...
2
votes
1answer
39 views

changing fontsize in pstricks

I'd like to create a contour diagram based off the following template \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add,pst-eucl} \psset { PointName=none, ...
3
votes
2answers
117 views

Why does this not compile in LaTeX PDF mode?

The following, just compile when I do XeLaTeX mode. You can modify so I can build PDF LaTeX mode? \documentclass[pstricks,border=15pt,12pt]{standalone} \usepackage{pst-plot} \begin{document} ...
19
votes
8answers
750 views

Compute and draw a convex hull

How can I use TikZ (+ LuaTeX), PSTricks, MetaPost, Asymptote, etc. to draw the convex hull of a set of points specified in no particular order? Here's an example where the convex hull was computed by ...
1
vote
0answers
28 views

PSTricks lines not shown in the rightmost quarter of a page

I use XeLaTeX to compile. But I can not figure out why the problem described in the title occurs. It looks like something covers the rightmost quarter, but words put by \rput alike will show. Let me ...
5
votes
2answers
316 views

Drawing a circuit

How can I create the following drawing? I want to add the following diagram to my report: I hear it can be done in LaTeX so I read some of ...
0
votes
0answers
85 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 ...
3
votes
0answers
108 views

Drawing Cross Sections of (Contours over) Torus

I have this simple torus \begin{figure} \begin{center} \begin{pspicture}(-6,-4)(6,4) \psset{viewpoint=30 10 25 rtp2xyz,Decran=30,lightsrc=viewpoint} \psSolid[object=tore,r1=2.5,r0=1.0,ngrid=36 ...
7
votes
5answers
579 views

Automatically generate multiplication table and colour specific rown, columns, and diagonals

Consider the following PSTricks code: \documentclass{article} \usepackage{pstricks,multido} \psset{dimen = m, fillstyle = solid} \begin{document} \begin{figure} \centering ...
1
vote
0answers
27 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 didnt change anything at ...
4
votes
2answers
56 views

Why does \rput(0,0) translate my picture?

Using rput, I noticed it misplaces my objects. By testing, I found two strange behaviours: \rput(0,0) { object } moves my objects a little bit. Doing latex on the following code: ...