PSTricks is a set of macros that allow the inclusion of PostScript code (e.g. drawings) directly inside (La)TeX code.
68
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 ...
59
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 ...
49
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. ...
42
votes
3answers
22k 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?
31
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.
...
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 ...
25
votes
2answers
807 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 ...
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.
23
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 ...
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 ...
23
votes
1answer
401 views
More elegant way to achieve this same camera perspective projection model?
I just finished a camera perspective projection model using TikZ. Although, while I'm pretty satisfied with the result, it took me a lot of time to do it. It's easy to see from the code below that I'm ...
22
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 ...
22
votes
3answers
838 views
How can I draw nucleosomes with wrapped DNA in tikz or pstricks?
The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
20
votes
4answers
319 views
Does the order of specified key-values matter?
The following screen shot shows how the order of specified key-values affects the output.
When using dx=\psPiH,xunit=\psPi.
When using xunit=\psPi,dx=\psPiH.
Minimal Working Example
...
19
votes
5answers
728 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 ...
19
votes
1answer
280 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 ...
18
votes
5answers
508 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 ...
18
votes
3answers
798 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 ...
18
votes
1answer
499 views
What is the easiest way to automatically keep the fluid surface horizontal and the liquid's volume conserved when the container is rotated?
I have a symmetric container (a hollow object of revolution) that is partially filled with liquid. When we rotate the container about any axis perpendicular to our display, the surface of liquid must ...
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 ...
17
votes
2answers
376 views
What to do with 237 eps files?
I have some 237 .eps files that represent the printer's ornaments from the small press The Underground Grammarian. I would like to build and provide (to CTAN) a package similar to the pgfornament ...
16
votes
2answers
572 views
How can I make a standard timeline?
I am looking to make a standard timeline, nothing fancy, like the one below (although, it does not have to be like that) using any library. How can I go about the achieving this in the best way?
16
votes
4answers
885 views
How can I draw a transparent cube in 3D perspective?
I would like to draw a transparent, `flattened cube' in perspective with dotted lines from both vanishing points to each of the vertices of the 3D solid. Is there a PSTricks package for this?
It is ...
16
votes
2answers
494 views
equivalent of pstricks rput in tikz
A very powerful feature of pstricks is its possibly nested rput command that can be used to rotate and move a portion of a drawing. Is there something similar in tikz?
16
votes
1answer
395 views
Drawing of a helix
On this blog I found a 3D drawing of a transformer by Thomas Söll.
After a few changes, I have the following code:
\documentclass{article}
\usepackage{pst-solides3d}
\usepackage{expl3}
% ...
15
votes
3answers
626 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 ...
15
votes
2answers
693 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 ...
15
votes
2answers
1k 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, ...
15
votes
2answers
636 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?
15
votes
0answers
81 views
Given a PS interpreter, can pstricks be converted to pgf?
When producing pdf directly, PostScript code cannot be used, which means that pstricks macros do not work. Now, it is still possible to include pstricks code using external tools (running LaTeX on ...
14
votes
7answers
800 views
How to draw a square wave?
Everything is in the title...
I'm trying to draw a simple square wave , but I'm reading that tikz cannot draw the vertical line of the discontinuity...
Is there a way to overpass this ? PSTricks ...
14
votes
4answers
848 views
Can we imitate the behavior of \pscurve in TikZ?
Here it is with the pictures.
PSTricks has the very neat command \pscurve. The manual gives the example
\pscurve[showpoints=true]{<->}(0,1.3)(0.7,1.8) (3.3,0.5)(4,1.6)(0.4,0.4)
which yields
...
14
votes
3answers
435 views
Is there a formula to determine the maximum value arcsepB such that the arrow head looks best?
I want to put an arrow head at the middle of an arc. Unfortunately, ArrowInside is not available for \psarc. The possible way is to construct it with 2 arcs as follows. Leaving arcsepB with its ...
13
votes
3answers
131 views
Is it possible to get a coil with stable number of winding?
I want to create an animation with a spring. The winding must be kept constant to make more realistic animation.
The following MWE illustrates the current situation of \pszigzag where it cannot ...
13
votes
2answers
320 views
Is there a TikZ equivalent to the PSTricks \ncdiag command?
The pst-node package provides the \ncdiag command, which allows you to connect two nodes with a diagonal line, but with an extra arm parameter which puts a bend in the line and allows the connections ...
13
votes
2answers
4k 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 ...
13
votes
1answer
236 views
How to adjust the arrow head tip of a bezier curve?
I want to adjust the arrow head tip of a bezier curve on the left such that it looks like the one on the right.
As there is no \ncbezier or \pcbezier available, I cannot use nodesep to adjust it. ...
12
votes
4answers
697 views
getting the arXiv to produce a pdf with embedded fonts
I've produced a .tex file using the pstricks package for figures and the Times font (via the mathptmx package). When the arXiv compiles this to a .pdf file it doesn't seem to have the necessary fonts ...
12
votes
1answer
121 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'}
...
12
votes
3answers
2k views
How to convert a LaTeX file with pstricks code to pdf?
I am new to LaTeX and was writing an article with MikTeX. But when I insert a pspicture and compile the file into pdf format, the pspicture just does not show up. But if I compile the file into ps, ...
12
votes
2answers
168 views
How does \uput determine the touching point between the object box and the hypothetical circle?
This question offers 4 bounties of 500 each only for a single answer that
fit this question best.
I am interested in describing the behavior of \uput for non-zero dimensional objects. Non-zero ...
12
votes
1answer
435 views
Drawing 3D crystal lattice with tikz/pstricks
I need to draw 3D lattice of DO3 type (Ni-Mn-Al, DO3) and more complex ones.
Both TiKZ and PSTricks packages draw following objects on top of previously drawn disregarding "real" 3D position. For ...
11
votes
4answers
274 views
Improve PSTricks code for drawing of a chest of drawers
Consider the following example.
Code
% pdflatex -shell-escape test.tex
\documentclass{article}
\usepackage{auto-pst-pdf,pstricks-add}
\begin{document}
\psset{unit=0.08cm}
...
11
votes
2answers
379 views
Is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions remain transparent?
Please ignore the binary numbers.
Without finding the intersection points in advance, is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions ...
11
votes
2answers
651 views
Root systems and weight lattices with PStricks
(Edit: See below)
I am trying to draw a simple picture containing a root system, Weyl chambers and root/weight lattice using pstricks. I am essentially trying to construct something like figures 6.5, ...
11
votes
4answers
315 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}
...
11
votes
4answers
333 views
Simple line with dots, known coordinates
Are there any easy way to make something similar to this image in tikz, asympote or similar?
I know the coordinates, to each of the points =)
Ofcourse I know how to solve this, but to do it in ...
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 ...
11
votes
2answers
437 views
Drawing a complex transformation using PStricks
I'm trying to draw the picture below showing a typical instance of mapping the z point from z plane to w plane by the f(z) transformation.
It is almost OK, but when I'm trying to draw the dashed ...
11
votes
1answer
262 views
Isometric paper and drawing on it — with PSTricks
I would like to create a drawing on isometric drawing paper like the following:
N.B. Forget the drawing on top of the paper; it is just something I found in order to illustrate the type of paper I ...


