PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code.
47
votes
3answers
23k views
How to use PSTricks in pdfLaTeX?
I thought that PSTricks package was not possible to use in pdfLaTeX but the user Dima claims otherwise.
How can I force pdfLaTeX to use PSTricks then?
60
votes
3answers
2k 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 ...
15
votes
2answers
690 views
How to convert pstricks animation to GIF file?
As an example, let's take this animation. How can I convert it to GIF file?
71
votes
8answers
5k views
Simulating hand-drawn lines
I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar tool). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear too ...
13
votes
2answers
5k views
Using psfrag with pdflatex
Is there any way of using psfrag with pdflatex?
It seems fairly similar to the problem of using pstricks with pdflatex.
Do they both depend on the same things, or does psfrag include pstricks?
Can I ...
17
votes
4answers
1k views
How to generate all possible Venn diagrams (with the case below) efficiently?
I can draw Venn diagrams but now my question is more complicated than just drawing Venn diagrams one by one. I need to draw all possible Venn diagrams efficiently. I need a combinatorical approach ...
18
votes
3answers
821 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 ...
3
votes
2answers
2k views
Center flow chart horizontally
I have the following flow chart but it appears uncentered. How can I center it?
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-node}
\usepackage{pst-blur}
\pagestyle{empty}
...
51
votes
10answers
4k views
What are the advantages of TikZ/PGF over PSTricks?
The first time I saw the PSTricks' 3D Galleries, I immediately felt in love with it. I have spent much time to learn and use it.
In this forum, I see many people using TikZ. I have not used TikZ yet. ...
26
votes
1answer
1k views
Topological Quantum Field Theory diagrams with pstricks or tikz
This question led to a new package:
tqft — Blog: The TQFT Package
I'm going to write a brief note about topological quantum field theories, so I need to draw some copies of the "pair of ...
19
votes
1answer
302 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 ...
15
votes
3answers
656 views
How to draw these diagrams (closed contours) 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 ...
9
votes
2answers
944 views
Which package can easily write a graph, as an arbitrary curve or area, just for indication
Which package can easily write a graph, as an arbitrary curve or area, just for indication? The circle and ellipse don't be considered for their particular shape. TIKZ's Bézier curve is too ...
23
votes
6answers
2k views
Why draw diagrams using LaTeX when there are open source tools like OpenOffice?
I was looking at recent questions here and was surprized that people were drawing diagrams in LaTeX, when it can be done in SmartDraw, OpenOffice or other programs. Is there any benefit to using LaTeX ...
11
votes
3answers
6k views
eps figures with pdflatex
In a recent discussion on this site I learned that using
\usepackage[pdf]{pstricks}
makes it possible to run pdflatex on files containing eps and pstricks files (and psfrag usage as well). Now a ...
24
votes
6answers
2k views
Are there examples written in PSTricks and they cannot be done using TikZ?
I am comparing the cores of PSTricks with TikZ and their capabilities. I am not considering whether or not a library has been implemented.
Are there examples written in PSTricks and they cannot be ...
8
votes
3answers
1k views
How to draw a circular cone
I want to draw the circular cone given by the equation z²=x²+y². (I do not mind using any given package.) I tried to use the pst-solides3d package with the help of its manual to generate the ...
4
votes
3answers
249 views
let operation vs tkz-euclide
Before put my question to give some explanation of why I do this question.
When I started to use the TeX a matter of luck that I started working with LaTeX (xelatex) and not with LuaTex for example.
...
3
votes
2answers
338 views
Offset for node - psbrace around nodes
I already asked in the question Describing leaves of a tree with an underbrace using pstree/pstricks how to use a underbrace. Now I'd like to use \Tfan instead of \Tf, but the trick with the angle ...
2
votes
1answer
983 views
pdflatex and pstricks
Sometimes ago I wrote a style file for drawing GANNT charts with pstricks. I typically compile my code with latex+dvips+ps2pdf, and everything works fine.
However, I am now preparing a presentation ...
2
votes
2answers
3k views
Vertical alignment with subfig and pstricks
I'm working with pstricks to add illustrations to a paper, as I found that it allows me to save much time compared to editing files with dia/xfig/visio/etc. and including pngs.
But I'm having a few ...
24
votes
2answers
1k views
What is the clearest way to graph a piecewise function?
I have a function defined as:
How can I graph that using functions instead of coordinates? I'm currently working with pgfplots but I'm open to something else if it's better.
19
votes
5answers
741 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 ...
18
votes
5answers
527 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 ...
15
votes
2answers
2k views
Draw a prism in TikZ or PSTricks
Is there a way to define an polygon in plane and output an (orthogonal) prism with that polygon as its base? The prism should be drawn in 3D in parallel oblique perspective with controllable height h, ...
11
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 :
8
votes
4answers
1k views
32
votes
5answers
1k views
Please improve my logo to resemble our TeX.SX logo
It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one.
...
10
votes
3answers
850 views
Can PSTricks or others draw the 4 common tangent lines of 2 “disjoint” circles without having to do extra calculations?
There are two disjoint circles. Their centers and radii are given.
Without doing extra calculations, can we draw the 4 tangent lines using PSTricks (preferred) or others?
I asked many Illustrator, ...
11
votes
4answers
326 views
How to improve my PSTricks code to construct a triangle diagram?
This question is similar to How to improve my PSTricks code to construct a triangle number diagram?.
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
...
5
votes
1answer
352 views
2D surface on a 3D surface plot external data in a file
I am drawing a 3D surface from external data. Here they are:
0 0 -0.64
1 0 -0.5
2 0 -0.4
3 0 -0.31
4 0 -0.23
5 0 -0.2
6 0 -0.24
7 0 -0.32
8 0 -0.42
9 0 -0.59
10 0 -0.76
0 1 -0.54
1 1 -0.4
2 1 -0.27
...
5
votes
1answer
796 views
Automagically externalising pdftricks and TikZ pictures
My thesis currently has a few pdftricks pictures and tikz pictures. It takes a while to compile over here Scott says he has some scripts to automate externalising TikZ pictures.
I'm looking ideally ...
4
votes
3answers
2k 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 ...
9
votes
2answers
284 views
Can we use a single frame to create the following effect?
I want to create a slide to show how the clipping works as shown in the following animation.
I used two frames, the last frame is needed because I want to hide the unwanted (trimmed) parts of ...
8
votes
1answer
609 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)
...
7
votes
2answers
169 views
How to improve my PSTricks code to construct a triangle number diagram?
This question is similar to How to improve my PSTricks code to construct a triangle diagram?.
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
...
3
votes
2answers
694 views
XeLaTeX and EPS figure with consistent fonts
I'm using Miktex 2.9 and XeLaTeX plus some EPS figures. For consistent fonts along the document, I used to play with psfrag or directly use pstricks. I'm facing the situation where none of the above ...
2
votes
2answers
120 views
Definition of PSTricks constant (again) and improvement of code
Consider the following example. (This is either the last one or the second to last.)
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
...
12
votes
1answer
131 views
What is the equivalent for ([nodesep=10pt]{B}A) in TikZ?
\documentclass[pstricks,border=20pt]{standalone}
\usepackage{pst-eucl}
\begin{document}
\begin{pspicture}(3,3)
\pstGeonode(0,0){A}(3,3){B}
\pnode([nodesep=10pt]{B}A){A'}
...
8
votes
2answers
155 views
How to pass a macro as a value for a key?
I want to pass a macro to a showgrid key. The macro can be redefined later. Its possible values are top, bottom, false, true.
The following MWE produces a blank page. How to fix it?
...
5
votes
3answers
327 views
Visualization in LaTeX of hamming distance
I have for example the following two strings:
1: 00101101
2: 00100100
I would like that each number will be place in a box and the boxes with the number one should be higher then the ones with ...
4
votes
2answers
95 views
Definition of PSTricks constant
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\usepackage[locale=DE]{siunitx}
...
4
votes
1answer
447 views
<recently read> \c@lor@to@ps
I have a problem with this file tex:
\begin{document}
\begin{figure}
\begin{center}
\begin{pspicture}(0,0)(1,3.8)
\psline{-<}(0,0)(0,.2)
\psline{-}(0,.2)(0,.4)
\psline{*->}(0,.4)(0,.9)
...
2
votes
1answer
224 views
Using [pdf]{pstricks} with beamer doesn't work, but auto-pst-pdf does, why?
\documentclass{beamer}
%\usepackage{pstricks,auto-pst-pdf} % works
\usepackage[pdf]{pstricks}
\usepackage{pst-tree}
\begin{document}
\begin{frame}{Test}
\begin{postscript}
...
2
votes
2answers
348 views
Scaling a pst-3dplot to fit a Beamer frame
I'm new to pstricks. I was looking for an automatic way of resizing a plot.
I'm trying to fit a 3d plot, generated using pst-3dplot, into a beamer frame. However, I'm not able to make it look good ...
1
vote
1answer
2k views
When converting PDF to EPS, how to prevent pdftops from rasterizing fonts and transparent regions?
Compiling the following code
% Circle.tex
\documentclass[cmyk]{minimal}
\usepackage{pstricks}
\pagestyle{empty}
\topmargin=-72.27pt
\oddsidemargin=-72.27pt
\topskip=0pt
\parindent=0pt
...
1
vote
2answers
581 views
How can I create PDF & EPS exactly as big as my PSTricks picture but without using pdfcrop?
This question is made to accompany the existing question: How can I create a pdf document exactly as big as my tikz picture?.
Constraints:
It is not allowed to use pdfcrop by any means whatsoever. ...
0
votes
1answer
336 views
How to avoid this error when redefining `\psgrid` to be `\relax`?
Scenario
\pspicture with showgrid will be regarded as a PERMANENT grid.
\psgrid in \pspicture WITHOUT showgrid will be regarded as a TEMPORARY grid.
If I want to remove all temporary grids, I just ...
23
votes
3answers
2k views
How to draw tangent vectors and component vectors on a curve
I am searching for a way to have a figure drawn using LaTeX. I am aware of some packages TikZ and PSTricks that could accomplish this, and have been tinkering around with them recently but do not have ...
25
votes
2answers
858 views
Making a Calendar for TUG
This question is triggered by a post from Peter Wilson in comp.text.tex`.
Peter wrote: TUG members produced a calendar for 2012 and, if I remember correctly, for some previous years as well. I really ...

