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
159 views

How to use a \pstVerb constant as the angle arguments of \uput?

How to use alpha as the angle arguments of \uput? \documentclass[border=0pt]{standalone} \usepackage{pstricks-add} \pstVerb{ /theta 45 def /alpha theta 90 sub def /weight 1.5 def } ...
10
votes
2answers
189 views

How do I know that w must not be used?

I have a project to draw something that is more complicated than the following. Apparently I cannot use w after invoking \psaxes with [$x$,0][$y$,90]. I found it after struggling for 1 hour. ...
3
votes
2answers
202 views

Why does \ncbar seem to ignore angleB?

I have used \ncbar before with success and it worked perfectly however the following code: \documentclass{article} \usepackage{pst-all} ...
4
votes
2answers
437 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} ...
11
votes
1answer
1k 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: ...
21
votes
3answers
1k views

Letterpress effect through PSTricks or Tikz

I have already typed in the META section of the website a post addressing the question as to how the letterpress (or engraving-like) effect in the headers of the site had been achieved. I know it can ...
11
votes
2answers
1k views

Drawing 3D Transformer with TikZ or PSTricks

Consider the picture of a transformer on the page: How do I draw this using either TikZ (which I have not used before) or PSTricks?
6
votes
2answers
490 views

How do you draw this prism in tikz/pstricks

The numbers are in Persian (side SB=6 and angle SBA=60 degrees).
12
votes
1answer
719 views

Creating figures of polytopes (in 3D): Is it worth switching from PSTricks to TikZ?

I used PSTricks a lot to create figures of polytopes. More recently, I have become aware of discussions going on about whether PSTricks or TikZ is the better choice for creating figures of all kinds. ...
4
votes
2answers
212 views

plot wide range of data with PSTricks

I want to use PSTricks in order to plot data in a file. In general I know how to do it but the problem now is that these data run from x=-2000...2000 and y=1.e-10...1e-3 so I get the "too large" ...
4
votes
2answers
472 views

Undesired behaviour of \parbox within figure environment

I want to put a \parbox in a figure that is drawn by pstricks. The pspicture environment is inside of a figure environment. As an example: \documentclass[singlecolumn, nofootinbib, ...
75
votes
3answers
4k views

Fundamental differences : PSTricks, TikZ/PGF and others

OK, since this is a pretty vague and subjective question. I need to set up some borders around the discussion that I intend to benefit from. But before anything, I certainly do NOT want to excite the ...
2
votes
1answer
210 views

unknown colors using fcol (pst-solides3d)

I am using the pst-solides3d package to draw polytopes in the following way: \begin{pspicture}[showgrid=false](-2,-0.5)(1.5,2.7) \psset{viewpoint=26 10 5,Decran=60} \psSolid[object=new, ...
3
votes
3answers
197 views

Is there a trick to iterate a set of multidimensional values with \psforeach?

I have, for example, a set of multidimensional values: {{red,1,12pt},{blue,3,10pt},{green,2,15pt}}. With \psforeach I want to iterate the values with 3 variables: \clr, \x, and \size. Is there a ...
2
votes
1answer
134 views

Convert from float to length

I am using \pst@divide to divide a length in half \setlength{\RLEN}{4cm} \addlength{\RLEN}{\OFFSET} \pst@divide{\RLEN}{2cm}\RLEN ... \setlength{\DIST}{2cm} \addlength{\DIST}{\RLEN} % does not work. ...
5
votes
2answers
1k views

Compilation issue with pdfLaTeX and auto-pst-pdf

I am using a lot of png/jpg images in a document, so I decided to use pdfLaTeX. The main issue of this approach is that PSTricks is not directly supported. Since I found a package (auto-pst-pdf) ...
18
votes
5answers
933 views

Convert font letters to vector format and fill with a pattern

I have worked with Illustrator and CorelDraw and I usually take fonts and convert them to curves after which I would fill in the curves with patterns, merge them with other vectors or the sort. Is it ...
4
votes
1answer
3k views

latex-dvips-ps2pdf

I use pdflatex, Windows7, and TeXnicCenter. I am interested in using \psbarcode in combination with \usepackage{auto-pst-pdf}. A possible solution is to use latex-dvips-ps2pdf. The question is how to ...
15
votes
2answers
1k views

How to attach a 2D rectangular image to a 3D curved surface with TikZ or PSTricks?

I want to do so called texture mapping which is to attach an image to a curved surface. How to attach a 2D rectangular image to a 3D curved surface with TikZ or PSTricks? For the sake of ...
2
votes
2answers
296 views

Declare the point for incomming arrows on nodes

is there a way to tell the a node, where the arrow shall arrive? At this example, the Arrow from Node B to A should arrive exactly in the middle of the "D" from "Dies". It should start on top-center ...
0
votes
1answer
785 views

How to draw a diagram for packets scheduling in networks or task scheduling?

I would like to draw a diagram for packets scheduling in networks similar to the this one: The same type of diagram (or very similar) can be used also for tasks scheduling. Can you please indicate ...
3
votes
3answers
882 views

How to translate a set of PSTricks objects and rotate it?

To illustrate the problem, consider a simple example with which you are familiar: A mechanical system that consists of a block lying on an inclined plane. I attached a Cartesian coordinate system to ...
3
votes
1answer
234 views

How to use dup which is one of PostScript RPN keywords?

According to the pstricks-add manual on near the last page, dup is used to duplicate the value of the previous stack. Duplicating can simplify an RPN expression. For the sake of simplicity, let's ...
3
votes
1answer
587 views

Superimposed Boxes in a flowchart with PStricks

I'm performing a flowchart using pstricks . The problem is how to do superimposed Boxes (in gray and light gray ) included in the flow chart like those in the picture below . Is there any specific ...
1
vote
1answer
211 views

newcommand object not included in pstricks picture

I use to have old latex docs that included pstricks pictures. I had to define objects that I could reuse several times in the pictures and did this with a newcommand/def (and everything was fine). I ...
4
votes
1answer
552 views

Having difficulty with pstricks box plot, psaxes, pspicture

a TeX noob here. I wish to plot performance test results once every two weeks (or sooner) displaying a 2 week window. I saw a similar question: Can I use pgfplots to make a boxplot and the following ...
23
votes
2answers
524 views

Is there a TikZ equivalent to the PSTricks \ncbar command?

Although I now use TikZ, every so often I find myself looking for very useful PSTricks commands which don't seem to exist in TikZ. The pst-node package has an \ncbar command which allows one to ...
2
votes
1answer
93 views

How to delete the 'triangle' on an arrow using the Vaucanson-g package

I'm using the vaucanson-g package and I have the following now: \MediumPicture\VCDraw{ \begin{VCPicture}{(5,-0)(3,-3)} \ChgEdgeNodeSep{6} \StateVar[v]{(0,-5)}{A} \StateVar[w]{(4,-2)}{B} ...
7
votes
1answer
424 views

pst-eucl symmetry

I'm trying to draw a diagonal using the tags for symmetry but I really can't understand the meaning of the parameters and how to make the lines long just to fit the figure. For this source I have to ...
16
votes
1answer
3k views

How to draw nanotubes with TeX?

I am working in the field of Nanostructures and have to draw many figure like :
3
votes
1answer
300 views

postscript code in psplot fails

the following code snippet doesn't work as expected \documentclass{article} \usepackage{pstricks,pst-plot} \pagestyle{empty} \thispagestyle{empty} \begin{document} \begin{pspicture}(10,10) ...
2
votes
1answer
331 views

PSTricks and documentclass

I have a problem using PSTricks for elsevier journal. As you may know, preprints and review versions of papers usually use a different documentclass in LaTeX than the one used for the final version ...
11
votes
2answers
2k views

How to create text with shadows?

This question led to a new package: shadowtext I used the following code: \documentclass{article} %\usepackage{pst-all} \usepackage{pstricks} \usepackage{pst-3d,pst-text} \usepackage{soul} ...
2
votes
1answer
444 views

How can I draw a landscape picture using PSTricks?

I need to draw a figure using PSTricks which is quite a bit wider than than it is long. Is there anyway I can draw a pic like that in a landscape mode? Right now my pic starts at the top of a regular ...
4
votes
4answers
4k views

Draw a curve in latex using PSTricks

I would like to draw a curve in latex but when I put this code \psset{algebraic=true} \pspicture(-2,-0.5)(2,2) \psline{<->}(-2,0)(2,0) \psline{->}(0,-0.5)(0,2) \psplot{-1.5}{1}{x*x+x} ...
1
vote
1answer
485 views

Neper number into postscript code

I need to plot this function: f(x)=e^(5,61+x/1000) using pst-plot, where e is Euler's costant but I don't know how to write it in postscript code. Anyone knows how?
2
votes
2answers
636 views

pstricks generated image doesn't fit into page.

I have a pstricks image in a document like \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{pstricks} \usepackage{pst-eps} \usepackage{pstricks-add} \usepackage{pst-node} ...
6
votes
2answers
913 views

pst-circ: figure and caption overlapping

I'm writing a thesis and need to get this problem solved. I just started to use pst-circ as an alternative to cirtuitikz (seemed to me like it has better documentation), however I'm kinda stuck with ...
3
votes
1answer
246 views

How can I horizontally align an image created with psmatrix?

I've got an image created with psmatrix code and I would like to put it at 1/4 of the text width. Using \centering in the image environment it gets too far to the right. I'm sorry but my code is a ...
2
votes
1answer
164 views

pst-eucl labels

I just tried giving pst-eucl a spin, but I am struggling with the label positions. When trying the following example from the documentation \begin{pspicture}(-2,-2)(2,2) ...
2
votes
1answer
549 views

Clipart images for LaTeX?

Is there any public bank of clipart images in Tikz / PSTrics, much like those found in tools like Visio?
2
votes
1answer
521 views

Trying to use parentheses in a “psbarcode” adds a new line after the first right parenthesis + charset encoding error

I'm trying to use the pst-barcode package to create a vcard contained in a qrcode, and I was surprised to see that a vcard that was working with another programming language to generate my qrcode was ...
1
vote
0answers
107 views

want pdf picture to be smaller than one page [duplicate]

Possible Duplicate: How can I crop included PDF documents? I created a pdf file using PSTricks. It appears to occupy an entire page. When I included it in my LaTeX file using ...
5
votes
3answers
5k views

How do I include PSTricks pictures in a LaTeX document?

I use LaTeX regularly, and several times I have included .eps images. I am learning how to use PSTricks. I have used it to create .ps and .pdf files with images. There is plenty of free information ...
2
votes
1answer
70 views

How to encapsulate a package to rename keys defined in it?

I use pst-eucl package and I am not so happy with the names defined for its keys (because the names are difficult to remember). I want to rename some of the keys for my own purpose by creating a new ...
1
vote
1answer
3k views

PSTricks picture not compiling with pdfLaTeX [duplicate]

Possible Duplicate: How to use PSTricks in pdfLaTeX? What is wrong with this code: \documentclass{article} \usepackage{pstricks} \begin{document} \begin{pspicture}(-0.5,0)(2.5,1) ...
3
votes
1answer
406 views

Is there an interpreter available that will convert infix to RPN?

I am starting to use PSTricks a bit more, and have been looking at the \psVolume command defined in pst-func package. My problem is with Reverse Polish Notation. Is there an interpreter available ...
1
vote
1answer
127 views

How to concatenate a set of paths and a set of the reflected paths about a certain axis in a single \pscustom?

I want to draw a symmetric object made of a large number of points. To make the code cleaner, I want to use reflection technique. It means I just specify points on one side of the symmetrical axis, ...
8
votes
2answers
262 views

Is it a bug in \psellipticarc or is my calculation wrong?

This question actually has a connection to my other question that was posted yesterday. The following figure illustrates the problem. Shortly speaking, the cyan dot must always coincide with the ...
5
votes
1answer
211 views

How to change the stroke opacity of the grid?

I need transparent grids on the top of other graphic objects. I know that the option strokeopacity can be used to change the stroke opacity of path. I have made a try as follows, but it cannot work ...