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
31 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
111 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
150 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
28 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
46 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
95 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
197 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 ...
1
vote
1answer
71 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
164 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
31 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
54 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
25 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
36 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
43 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
56 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
1answer
57 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} ...
3
votes
2answers
38 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
57 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
84 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
46 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
154 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
51 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
27 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
58 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
540 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
114 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
44 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
29 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
112 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
704 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
308 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
80 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
95 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
540 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
23 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
53 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: ...
3
votes
2answers
143 views

How to create this coordinate system?

I'm currently working on a term paper / lecture notes for my electrical engineering professor and wanted to include the following coordinate system / graph / figure in my paper. (The image should be ...
2
votes
0answers
56 views

pst-3dplot error: Transformation matrix not invertible

I'm trying to reproduce example 1 on page 26 of the user manual of pst-3dplot. It is supposed to rotate the label 'xy plane' into a 3D coordinate system. All I get is a warning: ** WARNING ** ...
7
votes
1answer
210 views

Simple drawing with TikZ

Let's me begin by saying that I am a complete newbie. I have been trying to draw te following image but didn't get very far: The following is what I have so far: ...
2
votes
0answers
61 views

pstricks with old latex-dvips-ps2pdf worked; fails with 2014 TeXLive xelatex

I have drawings using pstricks that worked just fine in an old (2008) version of LaTex. On a new machine I switched to texlive 2014 and using xelatex the drawings do not work. For example, the ...
1
vote
1answer
104 views

Using psvectorian, pgfornament or similar with Share LaTeX

I would like to use these or similar ornaments in my LaTeX document. However I use Share Latex (and have no other option since this is a collab project, and its too late to change), and pgfornament ...
6
votes
1answer
64 views

Where is the \pstverb command documented?

I can find answers to many question on TeX problems here. Mostly they are like giving fish rather than teaching how to fish. One cannot tailor made them due to short of guide on where they come from. ...
1
vote
1answer
62 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. ...
1
vote
0answers
19 views

Is it possible to import an .png in a drawing made with pst-3dplot?

I would like to make a drawing using pst-3dplot with a .png embedded in it. Does anybody know if this is possible? Thank you very much.
3
votes
0answers
86 views

beamer, pstricks (texlive 2014)

Since updating ubuntu to 14.10 (and 15.04 recently) i cannot succeed in compiling the following source: \documentclass[a4paper]{article}% \usepackage{beamerarticle} %\documentclass{beamer}% ...
3
votes
1answer
49 views

How to identify, isolate and customize a grid line in PSTricks?

108I have this snippet inside my work to visualise a Mobius strip. \begin{pspicture}(-4.2,-3.7)(5.1,3) \psset{unit=1.5} \psset[pst-solides3d]{viewpoint=20 10 10, Decran=40, lightsrc=20 10 ...
1
vote
0answers
114 views

PSTricks algebraic coordinates going from MikTeX to TeXLive

I am using PSTricks and some tikz functions for preparing some sketches. This snipped worked perfectly fine MikTeX on Windows 7 \documentclass[]{scrartcl} \usepackage{amstext} \usepackage{amsmath} ...
2
votes
2answers
74 views

pstricks with “colorfunction” in a tikz loop

Trying to make a spiral of vectors (rotating arrow as a function of x-position) I came across tikz for making a proper loop. Concerning other loop solutions I had problems to apply more complicated ...