Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [pstricks]

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}.

10
votes
2answers
224 views

pgf's and pstricks's opacity is not working

I've recently upgraded (on Ubuntu 18.04 LTS) TexLive 2016 to 2017. The problem that came up is that the opacity of tikz (pgf) and of pstricks pictures is not working in .ps and .pdf files after ...
9
votes
2answers
219 views

representing an arithmetic rope

I'd like to include figures representing different uses for an arithmetic rope throughout the document to explain the duodecimal system and the application in architecture. The distance between knots ...
3
votes
4answers
69 views

\defFunction in PStricks / pst-solides3d /

I am reading the pst-solides3d documentation and trying to understand the following codes that produce the attached image. It is hard to understand how the \defFunction works, and what are the ...
2
votes
1answer
61 views

How to normalize the coordinate without changing the object size?

The following MWE produces \documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{pst-circ} \psset { unit=1cm, dipolestyle=zigzag, } \begin{document} \begin{pspicture}[showgrid=...
1
vote
0answers
39 views

Inkscape SVG to PSTricks Commandline

With Inkscape I can save an .svg files to PSTricks (.tex) via the Save As dialogue. Is there a possibility to manage this via command line? I only find export to latex which is no PSTricks format.
3
votes
5answers
161 views

How to create a point on a line with an angle constraint?

I want to define a point (node) D on line AC such that angle ABC equals to angle CDE. How to do this by using the easiest trick of PSTricks? \documentclass[pstricks,border=1cm]{standalone} \...
4
votes
2answers
402 views

How to draw a circle in a matrix like this?

I came across matrices like this in a book. Can I create this using pure latex commands or do I need to using something like Photoshop for help? Update: I've created the equation without circle like ...
1
vote
1answer
48 views

pst-optexp: issue putting beam behind elements [duplicate]

So, I'm having some trouble with pst-optexp lately. There seems to be some compilation problems with my sketch, since it doesn't show the elements properly. My current code is \documentclass{...
3
votes
1answer
37 views

Calculations in pstricks swallows the spaces after a command [duplicate]

The following MWE works fine when plotting a square using pstricks with xelatex. \documentclass{article} \usepackage{pstricks} \begin{document} \def\x{0 } % Notice that there MUST be a white ...
2
votes
1answer
63 views

How to make a number line with complete labels?

I don't really understand why there is always no zero sometimes I get incomplete labels at the ends How to make the number lines have complete labels? Case 1: Multiple of omega \documentclass[...
1
vote
0answers
80 views

Drawing mazes with LaTeX [closed]

I need to know if there is some Tex package that would allow me to draw these kinds of mazes (though preferably 3D): http://www.ratbehavior.org/RatsAndMazes.htm
2
votes
1answer
59 views

How to remove the axis?

How to remove the black axes? \documentclass[pstricks,border=1cm,dvipsnames]{standalone} \usepackage{pst-plot} \newpsstyle{mygrid} { labels=none, subticks=5, tickcolor=Red, ...
4
votes
1answer
43 views

Uncontrollable displacement in positioning pst-optexp component

I am beginner in pst-opexp and I have a problem with positioning component. When I try no draw a lens in the position (2,1) (see code after), I get a lens in the position (1.92,1) (see figure). The ...
1
vote
0answers
38 views

Figures (jpg or pdf) and PSTricks

I'm writing a document that includes both a pdf file (using package graphicx) and some pstricks figures. When I compile using LateX+PdfTeX using --shell-escape, I am able to see the pdf file but not ...
0
votes
1answer
43 views

Error while trying to input external pstricks files

I am trying to use \input{.} to import externally created pstricks graphics. These .tikz pictures are created by inkscape. When I try to import the picture using \input, I get this following error ...
4
votes
1answer
56 views

How to draw dotted equipotential lines in the pst-electricfield package?

I would like the psequipotential lines to be dotted or dashed (preferably dashed) and the pselectricfield lines to be solid. I tried doing this but it does not become dashed: \documentclass[english]{...
10
votes
1answer
306 views

How to make a thermodynamics conduction diagram in pstricks or tikz with shading?

I am attempting to make the following picture But I would like some elements modified which I have done in the following pstricks image. I do not know how to center text, do multiline text for "...
4
votes
2answers
59 views

PointSymbolA=none?

I tried to compile a older .tex-file. But I received an error for the option PointSymbolA=none in the pstInterLC-command: Dot style 'none' not defined. I used this option in several documents, but now ...
3
votes
1answer
49 views

3D Setting in pst-diffraction not working

The following code should output an image similar to this one from the manual \documentclass[english]{article} \usepackage[T1]{fontenc} \makeatletter \usepackage{pstricks} \usepackage{pst-3d} \...
6
votes
2answers
421 views

How could I get a blue-colored sphere with a gradient?

Run with Xelatex \documentclass{article} \usepackage{pst-solides3d} \begin{document} \begin{pspicture}(-4,-3)(4,4) \psset{viewpoint=50 25 10 rtp2xyz,Decran=50} \psSolid[object=calottesphere,r=3,...
1
vote
1answer
23 views

How to use \multidipole with parallel option?

I want to draw R1+R2 that is parallel to R3+R4 using \multidipole and parallel. Unfortunately, I got an error. How to fix it? \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-circ} \...
3
votes
2answers
67 views

Most efficient way to include hundreds of the same pspicture

I have a pspicture involving an ornament from the psvectorian package: \begin{pspicture}(0mm,10mm)(0mm, 10mm) \rput[tl](5mm,5mm){\psvectorian[height=5mm]{10}} \end{pspicture} I am using this snippet ...
4
votes
2answers
223 views

XeLaTeX compiles too slow

See poker package here. This is the slowest stage. It takes about 2 minutes to compile... to go from2 to [3] and etc \documentclass[a4paper,12pt]{article} \usepackage{pst-plot} \usepackage{auto-...
3
votes
1answer
72 views

How to add solids to upper test tube and make greyscale?

Hello I do make the following TeX image greyscale. I would also like to have some black solids in the test tube above the bunsen burner. Currently I have this: \documentclass[border=3.14mm]{...
4
votes
2answers
65 views

Adding \rput triggers an error

If I uncomment the last \rput, I get an error as follows: How to fix this issue? MWE \documentclass[pstricks,border=1cm]{standalone} \usepackage[nomessages]{fp} \makeatletter \def\scale{% \...
2
votes
1answer
55 views

How to rewrite the looping below with nested ifelse operators?

Could you rewrite the looping part just with nested PostScript ifelse operators? \documentclass[pstricks,border=1cm]{standalone} \makeatletter \def\scale{% \psline(100,0) \foreach \x in {0,...
4
votes
1answer
157 views

How can I change the number of iterations from 11 to 3?

The simplified example given below currently uses 11 iterations just for drawing at most 3 stems (vertical segments). It seems that my code is not efficient enough so I want to reduce the number of ...
4
votes
3answers
115 views

sphere and points in 3D - tikz or pstricks?

I would like to generate a figure containing points within a cube of dimension 2x2x2. Inside this cube, is a sphere of diameter 2 (both centered on the origin). In this cube, I will draw several ...
5
votes
1answer
58 views

pst-func linestyle is not showing

I plot an implicit function with pst-func. I choose dotted line style, but the output does not show what i expect. Where is my mistake? (By the way, I find only dotted and dashed options for line ...
2
votes
1answer
36 views

beamer: how to hide/uncover pstricks object?

I have a \psBigArrow[fillstyle=solid, fillcolor=blue!30,doublesep=2mm,linecolor=blue](240,92)(240,-62) and would like that it will not appear all the time on the frame but only at some stage. I tried ...
2
votes
2answers
111 views

optexp environment error when compiling with XeLaTeX

I have troubles with optexp environment. There is a code \documentclass[pstricks,margin=12pt]{standalone} \usepackage{pst-optexp} \begin{document} \begin{pspicture}(3.2,5) \pnodes(0,3){A}(1,3){BS}(...
2
votes
2answers
61 views

Latex Pstricks inserting a node inside a blurbox

The following code works as I was expecting but it generates an error. How to remove the it \documentclass[a4paper,openright,twoside]{book} \usepackage[latin9]{inputenc} \usepackage[T1]{fontenc} \...
1
vote
0answers
36 views

How to compile a document that both uses jaxodraw feynman diagrams and png images

I initially had a problem getting feynman diagrams, which were produced using jaxodraw, to show properly (due to using psTricks). I've solved that problem using the suggestion in the answer to ...
2
votes
4answers
173 views

Want to replicate this graph and don't know packages to get started ?

Want to replicate this graph and don't know packages very well to get started drawing. Please any direction would help.
2
votes
1answer
74 views

3d plot with absolute value function with pstricks

I would like to reproduce the plot given in picture. The function (with known a and c) is a(x^2+y^2+z^2)+(1-a)(abs(x)+abs(y)+abs(z))=c where 0<a<1, c>0 How can I do this?
5
votes
2answers
135 views

PSTricks: Projection of point and right angle (both twice)

Consider the following code: \documentclass{article} \usepackage{pst-solides3d} \begin{document} \begin{figure}[htbp] \centering \psset{unit = 0.7} \begin{pspicture}(-8.1,-5.6)(8.7,17.7) \pnodes%...
6
votes
1answer
98 views

TeXcolorrgb vs. setrgbcolor

I wonder if there is a tiny difference of the produced color within the resulting pdf. Within this given example - two colored lines differently setup. One line is setup with LaTeX, the other line ...
0
votes
1answer
54 views

Draw symbols on top of external figure

Say I have the following figure, which I want to add symbols on to: The largest black square has dimensions -1 to 1 along the two edges. I want to place a triangle-symbol at the point (0.5, 0.5). ...
1
vote
0answers
59 views

`pstricks` package preventing compilation [closed]

Today I updated to the latest version of MiKTeX (2.9.6703, I was previously using an older version of MiKTeX 2.9) and now the pstricks package entirely prevents me from compiling a document when ...
1
vote
0answers
54 views

I can't compile code that use PSTRICKS

I'm having issues trying to compile code that use the package "pstricks". When I compile the next code (which can be found here) with Xelatex: \documentclass[pstricks,crop]{standalone} \usepackage{...
6
votes
2answers
85 views

Curved arrow from number to number in a function-table

I want to draw a curved arrow between to values in a table with an arrow in the middle of the curve and the label under the curve. The best I can do was this: \documentclass[a4paper]{article} % use ...
3
votes
2answers
83 views

label \psline and orient label in the direction of the arrow

How can I label the \psline entity with a label that is positioned/oriented (not placed horizontally taking too much space) on the line itself? MWE: \documentclass{standalone} \usepackage{pstricks-...
2
votes
2answers
67 views

Math Symbol for Half-Line/Ray

I would like to mark a ray in a picture. The symbol I need is the \vdash placed over AB (see first picture and MWE). Unfortunately, the symbol is quite short, so I want it to be as wide as AB itself (...
9
votes
3answers
378 views

Rewrite a postscript macro in LaTeX

I wrote a macro in PSTricks with which the number pi is calculated approximately with the so-called "Monte-Carlo-Method". A table will be setup with two randomly chosen numbers x and y (each of ...
2
votes
1answer
66 views

How to flip the orientation of beamsplitter in pst-optexp package

I was trying to plot an interferometer in latex using pst-optexp package. Everything works fine the beamsplitter is in the wrong orientation and need to be fliped 90 degree. However, the command\...
14
votes
1answer
385 views

Is PSTricks breaking LaTeX?

Sorry for the newspaper headline title :P I have a document in which I (ab)use LaTeX's control structures, namely \@for. Naturally, the contents of some of these loops contain \par agraph breaks. I ...
3
votes
1answer
63 views

Dimensions and vertical alignment of “dynamic” PSTricks picture

I am creating a environment in which I can add numbers of PSTricks objects (basically shapes, defined as macros, vertically arranged), each one with argument (content of the shape) so I don't know the ...
1
vote
0answers
55 views

Using \PSTricks in Scientific Workplace

Is there any way to use graphs generated with PSTricks in Scientific Workplace (which uses MikTeX to produce pdf files)?
3
votes
1answer
88 views

Mark Angle in 3D

I'd like to mark angles in a 3D-pstricks-graphic. I tried to use the solution seen in this question: Right angle in 3D-pstricks Unfortunately, it doesn't work. Here's my code: \documentclass{...
2
votes
2answers
56 views

pst-infixplot with babel puts unintended comma sign at the beginning

I had unintended comma sign at the beginning of the document. If I comment out the babel package or pst-infixplot package, then comma sign disappeared. Here is a minimal example: \documentclass{...