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

7
votes
1answer
115 views

How to write a LaTeX command that could discriminate if it's being called with pdfLaTeX in order to use PSTricks?

I'm writing a class for LaTeX, and I need to make it general. I want to include a simple image, a logo, within the class, which would be inserted into the document as a simple command ...
1
vote
1answer
89 views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
6
votes
3answers
259 views

Problem with \overlays

I latex the following tex. I got error in the line below \end{slide} as Undefined control sequence } I found out that the problem is related to \overlays. ...
1
vote
1answer
101 views

Compilation error after texlive update

I used to make animated pictures using pstricks and the beamer overlay syntax (eg. using \only<2>{<some pstricks code>}) with the standalone class. Here a MWE which did the work: ...
4
votes
1answer
96 views

pst-solides3d: fill region under plot

How can I fill with pst-solides3d the region under the plot (x^2+y^2)/4 like in the following picture? \documentclass{article} \usepackage{pstricks} \usepackage{pst-solides3d} ...
5
votes
3answers
73 views

Compilation fail standalone & pst-solides3d

I've got a PStricks schema made with both pst-solides3d and pst-3dplot, put (thanks to the standalone package) apart in a different file. The schema, when compiled itself, doesn't make any problems, ...
14
votes
2answers
571 views

Color gradient fill between three corners of a triangle

Updates Update1: Tried to implement solution by Harish Kumar (below) Update2: Added a real example of what I would like to get in the end. I have a feeling I tried to leave to many things out. ...
17
votes
2answers
2k views

How to make dominoes falling?

How to maker a LaTex drawing of dominoes falling as the following figure?
4
votes
1answer
132 views

Transmission grating in pst-optexp

It seems that transmission gratings have not been implemented yet in the pst-optexp. Does anyone know whether there exists a workaround?
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 ...
4
votes
3answers
610 views

Curves with Latex

How I can draw curves as : Any help would be appreciated.
3
votes
2answers
56 views

Problem with PSTricks graph [duplicate]

I get the error: ! Undefined control sequence.<recently read> \c@lor@to@ps } when trying the following graph \documentclass[11pt]{article} \usepackage[usenames,dvipsnames]{pstricks} ...
3
votes
1answer
56 views

How can I delete the or3 and & notations from this and gate?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{pspicture}(-1,-1)(5,4) \logic[logicWidth=2,unit=0.5,logicHeight=4,logicNInput=3](-2,-2){or3} ...
5
votes
0answers
57 views

Problem layout pst-solides3d

I'm trying to have 2 cylinder pierce a parallelepiped, but I can't have the 2 cylinders properly drawed... Here is what I got : The two cylinders are within the box, and they pierce the yellow ...
4
votes
1answer
41 views

Vertical Text \pstPlanePut

I'm trying do write some vertical text, with the basis line parallel to the z-axis, in the xz-plane... Here is what I got, and I want the vertical text to be parallel to the z-axis. Is it possible ...
15
votes
3answers
795 views

Draw a 3D diamond structure

I want to draw a 3D diamond crystal structure. The point where I struggle is quite in the beginning to draw connecting 3D rods: \documentclass{article} \usepackage[utf8]{inputenc} ...
7
votes
0answers
406 views

best practice to include (standalone precompiled) graphics

General understanding I know that several people have asked about how to include plots and graphics (created by tikz and pstricks) into a latex document. What is the best way to include Matlab ...
5
votes
1answer
74 views

How to make PDF outputs of PSTricks rotatable on the PDF viewer as we can do on Asymptote's ones?

I just played with Asymptote outputs viewed on Adobe Reader and noticed the outputs can be zoomed, rotated, filtered which objects to be viewed, etc, etc. The following screenshot shows the features. ...
89
votes
8answers
8k views

Simulating hand-drawn lines

I am working on a project that will have some vector graphics, perhaps using TikZ (or a similar package). All of the graphics consists of lines, in shades of gray. However, the lines from TikZ appear ...
3
votes
1answer
56 views

What causes a custom path with linearc to have asymmetrical ripple?

The objective is to make the bottom of a bullet has rounded corners. What I don't understand are: Why does the ripple only occur on the bottom part but not on the top part even though the bottom one ...
41
votes
5answers
3k views

3D helix torus with hidden lines

How can I generate the above image using TikZ (possibly other methods will work if they produce better looking results)? I would like to have a nicely shaded (not so dark image) without gridlines ...
8
votes
2answers
263 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 ...
3
votes
1answer
138 views

How to make \reversepath useful for drawing the following closed curve?

I want to draw a batman logo. As it is symmetric about the vertical line, it should be more convenient to just define the right part (or the left part) first and then reflect it to get the other part. ...
4
votes
1answer
36 views

How can I resize the and & or gates or FF in pst-circ package?

\documentclass{exam} \usepackage{pst-circ} \usepackage{multicol} \begin{document} \begin{latin} \begin{pspicture}(-1,-1)(5,4) ...
12
votes
2answers
3k views

PSTricks error “Undefined control sequence <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) ...
3
votes
0answers
32 views

psmatrix error - Undefined control sequence [duplicate]

When executing the following code, I get the error: Undefined control sequence. <recently read> \c@lor@to@ps l.7 [name=A] 1 & [name=B] 8 \\[0pt] ? Here is the code: ...
17
votes
4answers
842 views

Drawing intersecting 3D surface plots

I'm attempting to draw six semi-transparent intersecting spheres of different colors---two on each axis x, y, z and all joining at the origin---as shown in the figure below. Note how all the spheres ...
6
votes
1answer
95 views

Autosegmental Representation with pst-asr

I am using Texmaker and MiKTeX to try and produce an autosegmental representation such as the one in this image: The following code is given in John Frampton's pst-asr user's guide: ...
1
vote
2answers
49 views

Unexpected axes labels in PSTricks plot

Consider the following example: \documentclass{article} \usepackage{pstricks-add} \usepackage{expl3} \ExplSyntaxOn \cs_new_eq:NN \calc \fp_eval:n \ExplSyntaxOff ...
15
votes
2answers
294 views

Is there a smart solution to fix the precision issue for atan?

\documentclass[pstricks,border=12pt]{standalone} \psset{unit=.25} \def\Atom#1{% \begin{pspicture}[dimen=m](-12,-12)(12,12) \pstVerb{/AA 1 5 atan def /RR 26 sqrt def} ...
2
votes
1answer
119 views

How to make Derive work with a parameter other than x and how to invoke Derive in postfix notation?

In my investigation Derive can only evaluate the derivative of function f(x) with respect to x. My attempt below does not produce the expected result because I try to find the derivative of x(t) and ...
16
votes
6answers
431 views

How to automatically generate a stack diagram for a PostScript expression?

The following figure shows a PostScript expression and its stack diagrams step by step. Is there any package to generate it out of the box? If there is no such a package, how to generate it ...
1
vote
1answer
110 views

How can I draw one small circle and one big circle in the same system of coordinates?

I want to draw two circles passing through the point M(-1, -4) and tangent to the lines 4x+ 3y = 0 and 3 x + 4 y + 1 = 0. The equation of circles are (x + 1)^2 + (y +2)^2 = 4 and (x +241)^2 + (y + ...
4
votes
2answers
200 views

Can we simplify the transformation steps below to save more keystrokes?

I want to make the regions bounded as eyes transparent and the other regions opaque with solid fill. Unfortunately, psellipse (as well as pscircle) does not move the current point to its starting ...
1
vote
1answer
73 views

How can I use pst-circ package to draw this circuit?

draw multiplexer with pst-circ package
1
vote
1answer
101 views

How do you use Psvectorian?

Can someone provide a short explanation or example of using psvectorian? http://melusine.eu.org/syracuse/pstricks/vectorian/psvectorian.pdf Specifically, I am looking for an explanation of how to ...
5
votes
2answers
140 views

What is the TikZ equivalent for ([offset=2]{A}B)?

Based on the answer given here, ($(A)!1cm!(B)$) in TikZ is equivalent to ([nodesep=1]{B}A) in PSTricks. It is just about the "radial" distance specified by two points. How about the "transverse" ...
3
votes
1answer
46 views

What´s the best way to put footnotemarks in a flowchart?, with Pstricks/psmatrix?

The footmark may induce to confussion, so ... what´s the best practice to notemarks in flowcharts?
3
votes
1answer
57 views

How to prevent a beamer block from overlapping with a pspicture?

Here is what I have tried but with no success. \documentclass[10pt,compress,mathserif,smaller,fleqn]{beamer} \usetheme{Antibes} \usepackage{pstricks} \usepackage{color} \usepackage{listings} ...
2
votes
1answer
88 views

How does the package pst-labo work to draw chemical equipment?

I would like to draw some chemical equipment and I found this pst-labo package. However, it does not work for me and I am sure I have the package installed. This should be a very simple example of ...
1
vote
1answer
104 views

Why doesn't pstricks allow for my images to show?

I have a simple file with a simple an figure I want to display on top but it's not showing. Instead, I just get this file: Latex Error: ./Mateus_010514.tex:17 LaTeX Error: File `justa' not ...
1
vote
1answer
112 views

pstricks and tikz packages conflicting with other packages?

Why is it that whenever I add \usepackage{pstricks} or \usepackage{tikz}, I always get the error below? Latex Error: /usr/local/texlive/2013/texmf-dist/tex/latex/xcolor/xcolor.sty:60 TeX ...
3
votes
4answers
118 views

What dimensions and how to insert an image as a cover?

I viewed any message but I don´t reach the solution. I want to make an imge to use as cover for my final job. What dimension do you recommend? in pixels(better) or cm? or What proportions? to the ...
6
votes
2answers
134 views

How to correctly nest psmatrix within psmatrix (without undesired space)

I'd like to nest several psmatrix environments within a psmatrix, so that every cell of the outer psmatrix itself is an psmatrix again. Ultimately I want to draw within these inner matrices using ...
1
vote
1answer
25 views

Is possible \footnote{} inside PsTricks/Psmatrix?

Is possible inserting "\footnote{This is a footnote you can see in the lower side}" in a graph with Pstricks Psmatrix?
2
votes
2answers
51 views

Could anyone help with vertical spaces over text in psmatrix?

I´m trying doing some examples with pstricks, but I´m having problems, because only changing a cell of the psmatrix.... I have problems. Could anyone help me with vertical spaces and and showing the ...
5
votes
1answer
73 views

What option do I have to set to remove the mesh from the cylinder?

\documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}[viewpoint=5 30 45 rtp2xyz,Decran=5](-6,-6)(6,6) ...
1
vote
1answer
134 views

Problem with \psshadowbox [duplicate]

Why doesn't this work? I think I've got all the packeges I need, and I've copied it from http://tug.org/pracjourn/2008-3/morales/morales.pdf. \documentclass[landscape,a0paper,final]{a0poster} ...
2
votes
1answer
83 views

How to change linewidth for symbols from plotstyle=dots in pstricks?

With the help of plotstyle and dotstyle one can realize scatterplots in pstricks. In the case one selects plotstlye=dots and dotstyle as +, o, otimes or similar one obtains little symbols drawed at ...
2
votes
2answers
140 views

Can't include pspicture code

I am trying to create a presentation using beamer. In my presentation I need to include a picture created by LaTeXDraw software. I pasted the code to draw the picture inside the frame, but it is not ...