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

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
799 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
92 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
292 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
118 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
425 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
107 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
70 views

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

draw multiplexer with pst-circ package
1
vote
1answer
89 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
135 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
44 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
54 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
77 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
100 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
105 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
114 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
133 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
46 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 ...
4
votes
1answer
66 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
117 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
68 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
134 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 ...
9
votes
2answers
129 views

z-order of objects

When I draw objects in PSTricks, objects are placed in the order I draw them, i.e. objects that appear later in the picture hide those that appear earlier, for example here: \begin{pspicture}(70,70) ...
4
votes
1answer
129 views

Opacity and transparency

I found some discussions about the opacity parameter in pstricks, but I still can't make it work. Here is my tex file: \documentclass{article} \usepackage{pstricks} \usepackage{pstricks-add} ...
0
votes
0answers
39 views

How to avoid that a WIDE item push all the other columns?

I´m trying to finish my flowchart (with the inestimable help of Herbert and Bernard) How to avoid that a WIDE item (with no elements on its sides) push all the other columns?? I want the othe columns ...
1
vote
2answers
83 views

How to control the size of diagbox(with long text) in psmatrix diagrams?

The problem for me is the 4th and 5th line from the bottom (code from an example of Herbert and the problem is where I try to add things ;-) ) \usepackage{amsmath,amsfonts,amssymb,latexsym} ...
4
votes
2answers
424 views

How to create this figure?

I have now spend hours by creating this figure - without luck. I have tried different types of tikz, tikzpicture, pstricks and multido usepackage. Can you maybe help me? I would really appreciate ...
3
votes
1answer
41 views

Why this errors with PSSets in psmatrix?

I´m starting with diagrams, and I have any errors with this code: (edited after Herbert´s comment) \documentclass[12pt,a4paper]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
5
votes
4answers
239 views

How to draw an arrow WIDE to fillcolor?

In PStricks... (edited after view the answer about tikz) How can I draw an arrow similar to this? to make an sketch os a progresion in 4 steps, similar to A => B => C => D but A;B;C;D ...
2
votes
2answers
61 views

Why doesn't PStricks put nodes where I want?

I was surprised when I saw this result! I want to put, starting from my lower left corner, a pink, a red, and a blue node, BUT I was surprised when I saw that the three nodes started from the upper ...
9
votes
3answers
364 views

Plotting sin(1/x) associated functions

I need to plot x, -x, x^2, -x^2, sin(1/x), x*sin(1/x), x^2*sin(1/x) and sin(1/x). But the functions containing sin(1/x) looks somehow bad. How can I fix it. I also do not know how to label the graphs ...
2
votes
1answer
58 views

listplot and (0,0)

Look at the following minimal working example. I cannot understand, why the first line of listplot is plotted from (0,0) to the first data of the input file. I am compiling with % converting with ...
10
votes
3answers
507 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} ...
3
votes
3answers
134 views

how to resize easily a pstricks picture?

I test my figures in an standalone file, and when I obtain what I want, I pass to my main file with text. How can I do to adapt the size? Because, sometimes I want to put 3 images in a row and I ...
1
vote
0answers
49 views

How to align/wrapping pstricks figures and text [closed]

I´m trying to put easily 3 pstricks pictures in a row (or in a column). I was trying with wrapfigure with no success, so I found any info about subfigure... but I´m trying and LaTeX tell me: ...
5
votes
2answers
61 views

How to use/define a customized parameter?

I´m generating any grpahs... and I´m playing with any linewidhts values so I would like to type on the beginning of the .TEX a line similar to width1=0.1cm width2=0.15cm width2=0.20cm to avoid ...
13
votes
3answers
922 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) ...
2
votes
1answer
44 views

pst-node help formatting

I'm trying to center the fifth row and make the $\{...\}$ closer together, unfortunately I don't know much latex. \psset{nodesep=2pt} \newpsstyle{DblDash}{linestyle=dashed, dash=1pt 1.5pt, ...
4
votes
1answer
121 views

Fill opacity problem with pdflatex while upgrading MiKTeX from version 2.7 to 2.9

It's my first post. I solved it when writing this so I send it anyway in case it helps someone. When compiled with pdflatex.exe from MiKTeX 2.7 it works. When compiled with pdflatex.exe from MiKTeX ...
3
votes
2answers
139 views

Good Reference Book

I am having a problem getting two sets of data plotted on the same graph and have trawled the www for info on how to solve it. The closest I have found is this TeX.SX post. However, that is a ...
5
votes
1answer
88 views

Overlapping colour filling with PSTricks

Consider the following diagram: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[margin = 2cm]{geometry} \usepackage{pstricks} \usepackage{rotating} \usepackage{microtype} ...
1
vote
0answers
67 views

PSTricks for Mac [closed]

I got MacTex installed and am using Texworks. I wanted to recreate an old PDF from my .tex files and I'm having some problems. I got 1 file which tells tex to include all the others and within some ...
12
votes
2answers
131 views

What is PostScript dictionary for? How to know whether or not I need it?

Consider the following code, \documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \psset{linecolor=red} \pstVerb { /updateCP {2 copy CPy add /CPy ED CPx add /CPx ED} bind ...
3
votes
1answer
64 views

Strange “Too many files” error with pdfTeX

That is the auto-pst-pdf message I get when I compile the MWE below with the pdfTeX engine. I have just (meaning, as of this post's date) reinstalled my entire MikTeX 2.9 system with a complete ...
2
votes
1answer
62 views

Why do I need to append % right after { of multido rather than right after } of pstVerb?

Why do I need to insert % right after the opening curly brace { of multido rather than right after the closing } of \pstVerb? In my mental model, the unnecessary white spaces exist after the \pstVerb ...
6
votes
2answers
155 views

How can I use a conditional expression as key-value arguments?

I want to reduce the number of used keystrokes in my code. More precisely, I want to simplify ...