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
2answers
52 views

Conditional preamble and pstricks problem \psTilt and \PstLightThreeDText

Look at the following MWE. \PassOptionsToPackage{export}{adjustbox} \documentclass{article} \usepackage{fancyvrb} \usepackage{graphicx} \usepackage{adjustbox} \newcounter{psextern} \makeatletter \...
1
vote
2answers
35 views

How to extend PStricks margins when working on a single larger page

I need to draw a big diagram in PStricks, using XeLaTeX. To be readable, I want to draw it on a large page, which dimensions I manually set. Here's a MWE : \documentclass[11pt]{article} \usepackage{...
1
vote
1answer
24 views

Can't get the tickstyle=full option tp work in my pstrick code

This is probably something very small but it is driving me insane. I'm trying to obtain the full ticks in my frame (or the top option) but I can't get it done. I want all the ticks to point inwards....
8
votes
0answers
141 views

How to let hidden line be displayed as dash style in pst-solides3d

I want to draw a tetrahedron and an arrow, and part of the arrow is inside of the tetrahedron. However, I'd like the inside part is displayed as dash line. How to do that? My code does not work. \...
5
votes
0answers
86 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 ...
4
votes
0answers
32 views

Rendering a pspicture inside another document

I have a C++ program that generates a PDF via LaTeX by writing the data to stdout and piping to pdflatex -shell-escape. The template looks like this: \documentclass[letterpaper,12pt]{article} \...
4
votes
0answers
198 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 72,...
3
votes
0answers
55 views

PSTricks drawing not cropped in standalone

I'm trying to create a drawing using the pst-optexp package, and I can get the drawing to compile, but the output is not cropped to the drawing (the drawing is just placed in the top left corner of a ...
3
votes
0answers
105 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 ...
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 ...
3
votes
0answers
186 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
0answers
140 views

Projection of circle across two surfaces

I would like to build on a previous question in which is explained how to project a circle onto a defined plane of an octahedron using pstricks. I would like to know if it is possible to project a ...
3
votes
0answers
153 views

Problem with Texlipse and auto-ps-pdf

I'm using the Eclipse-plugin Texlipse as my preferred LaTeX-editor. But since I'm using auto-pst-pdf for PStricks graphics in pdf-files Texlipse doesn't manage the complete compilation. That works ...
3
votes
0answers
74 views

angular spring macro

Does anyone have a macro for an "angular spring" ? I'm looking for something similar to that in pst-coil (PS-Tricks package) but the geometry of the "spring" is not straight but an arch (with ...
3
votes
0answers
422 views

pslegend bounding box odd while using Cirkuit

This question is regarding pst-plot and more specifically \pslegend. The code below produces the two following plots: One of these figures is generated without the \pslegend and it appears to have ...
2
votes
0answers
35 views

pst-3d + macos + fontspec

I think this is a FAQ but I'm not finding the right question to look for, I think. If I use xelatex and pst-3d the resulting pdf does not show any 3d transformation. If I use latex and dvips the 3d ...
2
votes
0answers
48 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
0answers
45 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?
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
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
0answers
77 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 ** ...
2
votes
0answers
107 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 ...
2
votes
0answers
304 views

how to draw multiple graphs next to each other with labels

How to draw multiple graphs next to each other in a document? Also, how to name each graph with a label? One more thing is I need to show an dashed edge to intersect the graph edge, in that case how ...
2
votes
0answers
104 views

How to customize a lens of pst-optic with the following requirement?

The following code \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-optic} \begin{document} \lens [ nameF=F2, nameFi=F1, spotO=270, focus=4, OA=-3, AB=1, ...
2
votes
0answers
104 views

Have auto-pst-pdf and pstool merged?

auto-pst-pdf can handle pstricks and psfrag in addition to .eps files when run with pdflatex. It is however slow since in each run it processes all files, even those that have been processes before ...
1
vote
0answers
64 views

Trying to use pstricks with xelatex - almost working

Have fixed the problem – a bit unconventional though. I re-installed miktex (2.9), but the problem persisted. I found the executables for ghostscript on my system (they were there before I ever had ...
1
vote
0answers
48 views

Environment for example with pstricks

How can do with pstricks the environment that appears in the image ?
1
vote
0answers
42 views

pstricks margin with rput when putting an image

I want to do the following: \documentclass[pstricks]{standalone} \psset{unit=1in} \begin{document} \begin{pspicture}(2in, 1in) \psframe[linecolor=red, fillcolor=red, fillstyle=solid, dimen=...
1
vote
0answers
35 views

Geogebra PStricks export not working

We are having some issues exporting a geogebra file into pstricks and integrating it into a document. As we export the file from geogebra 5 and copy it to Latex, we (on two different computers, a mac ...
1
vote
0answers
162 views

How can I do this by Latex (Tikz or PSTricks)

I want to draw the following diagram in LaTeX. How can I do this?
1
vote
0answers
60 views

M4 Circuit Macros with WinEdt and MiKTeX 2.9/Windows 7

Copy m4.exe, regex2.dll and dpic.exe to C:\Program Files (x64)\MiKTeX 2.9\miktex\bin Copy M4 Macros to C:\Program Files (x64)\MiKTeX 2.9\tex\latex\circuits_macros Add C:\Program Files (x64)\MiKTeX 2.9 ...
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 ...
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]{...
1
vote
0answers
31 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 ...
1
vote
0answers
26 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.
1
vote
0answers
155 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} \...
1
vote
0answers
125 views

Drawing a two lens system using pst-optic

I am trying to draw a two lens system using pst-optic. Here is an example of the code I use : \begin{pspicture}[showgrid=true](-5,-3)(7,4) \rput(0.0,0.0){\lens[lensType=CVG,lensGlass=true,lensWidth=0....
1
vote
0answers
153 views

Problem with opacity in pgfplots when using pstricks package

Can anyone tell me why doesn't opacity work in pgfplots when I include the package "pstricks" and how could I fix it? See for example the code below: \documentclass{standalone} \usepackage{...
1
vote
0answers
104 views

How to use pst-asr package on a Mac

\documentclass{article} \usepackage{pstricks,pst-xkey,pst-asr,graphicx}\psset{everyasr=\tiershortcuts} \begin{document} \asr bɪt \endasr \end{document} Hi, I am trying to use "pst-asr" package. I ...
1
vote
0answers
155 views

Inserting matrix in Latexdraw

I am using LatexDraw for drawing a graph and its corresponding matrix and thereby generating the Pstricks codes.. But I am having problem in inserting the matrix. I have attached here the screen shot. ...
0
votes
0answers
25 views

Color problem in Pstrick

I have the following code in Pstrick but the text color is not changing. Always text color shows black. I am running this code with xelatex \documentclass[12pt]{article} \usepackage[paperheight=9in,...
0
votes
0answers
30 views

Draw with PStricks on a large paper size

This question already received attention, but I still cannot find a satisfying answer. I need to draw a big diagram in PStricks. For readability, I want to use a single larger page in the middle of my ...
0
votes
0answers
45 views

Variable font size of a text string

I was wondering if it is possible to use \fontsize{<size>}{<line space>} in a loop in order to create a text string of strictly decreasing/increasing font size from, say, 30 to 2. Surely ...
0
votes
0answers
108 views

Using mdframed package with pstricks option in pdflatex possible?

I want to use the mdframed package with the pstricks option (for dashed lines etc) with pdflatex. But doing so threw an Undefined control sequence ... \c@lor@to@ps error. The internet tells me, that'...
0
votes
0answers
137 views

Beamer auto-pst-pdf — multiple images

I tried to include some pictures in a LaTeX Beamer presentation. I used auto-pst-pdf to produce a pdf output. Strangely, just the first picture shows up in the resulting document. Here's a minimal ...
0
votes
0answers
117 views

Energy spectra in LaTeX

I want to draw energy spectra like in the attached photo. Can anybody help me?
0
votes
0answers
59 views

Problem with length of psshadow box

I am using the a0poster environment and I am trying to create a psshadow box that has the same length with the document. I am using the following code: \documentclass[landscape,a0,final]{a0poster} \...
0
votes
0answers
87 views

pstricks gives garbled output in TeXShop

I have a bunch of 3d images that I made using pstricks, but after I updated to Mavericks OS X 10.9.5 this summer the images no longer render properly. All text (like axes labels) is stacked in the ...