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
Join us in building a kind, collaborative learning community via our updated Code of Conduct.

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
1answer
258 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
53 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
31 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
397 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
0answers
104 views

PSTricks or TikZ? [closed]

I started my first steps with LaTeX in 2002 and I often drew my figures with PSTricks or external programs, for example, IPE, metapost (used very little). I wondered why PSTricks is used very little ...
1
vote
1answer
21 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
61 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
179 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
65 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
62 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
50 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
149 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
86 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
52 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
29 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
75 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
58 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
30 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
166 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
67 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
122 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
95 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
50 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
57 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
50 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
72 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
53 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
53 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
345 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
56 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
382 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
60 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
76 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
46 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{...
1
vote
1answer
70 views

Emergency stop with automatically generated pspicture

I have to show up with several cdx files in my document. I didn't find a ChemDraw handling package for LaTeX, so I took the cdx files converted to pdf and imported them in inkscape, which I then could ...
1
vote
1answer
139 views

How to draw non square Go board in latex?

As the title says, the square Go board is easy to draw with lots of Go board packages, such as igo or psgo. But there is no way to draw a non square Go board support. How do I draw rectangular Go ...
3
votes
1answer
64 views

How to avoid getting scaled down, translated and rotated?

The nested input file is used to create an EPS file named input.eps. It is generated on the fly via \immediate\write18. It just renders some blue concentric circles bounded in a square of side of 6cm. ...
3
votes
3answers
147 views

What LaTeX fonts do I have to use when generating SVG diagrams such that they match the fonts used by MathJaX?

I want to create SVG diagrams for articles viewed on a site with MathJaX enabled. The diagrams are mainly created in PSTricks as follows. \documentclass[pstricks,border=1cm,12pt,dvipsnames]{...
3
votes
2answers
68 views

Math labels get doubled after converting PDF to SVG

I have a diagram written in PSTricks as follows. \documentclass[pstricks,border=1cm,12pt,dvipsnames]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](6,6) \pstTriangle[...
4
votes
1answer
44 views

\psrotate behaving differently under XeLaTeX

When compiling the following mwe with XeLaTeX, the \psrotate command doesn't have the intended effect of rotating 90 degrees. Compiling with LaTeX on the other hand works. Is this a know issue or am ...
3
votes
2answers
123 views

Getting pst-poker to work

I need help with the pst-poker package included in texlive. I verified that everything is installed, but if I try to run \documentclass{article} \usepackage{pst-poker} \begin{document} \As \end{...
1
vote
0answers
37 views

PsTricks and Png Files Shell Escape

I am using TeXShop on Mac and want to include both pstricks graphs and an inserted image (PNG) file and I am having no luck. I have tried switching my Preferences to include Shell Escape but I am a ...
4
votes
1answer
43 views

Hyperlinked pstricks image not working properly with XeLaTeX?

When I compile the following mwe with LaTeX, the clickable surface that leads me to the video is only around the blue image. When I compile with XeLaTeX, clicking anywhere on the page leads me to the ...
1
vote
1answer
81 views

How can I manipulate the transmittance of mirrors in pst-optexp?

I would like to propagate the beam to the detectors near each mirror. I also would like the propagation to work as normally would (from mirror 1 to mirror 2 to the apertures). \documentclass[pstricks,...
1
vote
0answers
45 views

Issue with \drawwidebeam on pst-optexp [duplicate]

I'm trying to use pst-optexp with XeLaTeX, but every time I call \drawwidebeam, I get a broken figure. \documentclass{article} \usepackage{pst-optexp} \usepackage{pst-node} \begin{document} \...
1
vote
1answer
111 views

Electric field lines of a capacitor

I’m unable to create the electric field lines of a capacitor shown in the uploaded picture. Could anyone give me please a hint? Thanks in advance.
4
votes
3answers
163 views

Divide integers and get a floating point number (for a pstricks coordinate)

I'm making a picture with pstricks and would like to plot points whose coordinates are fractions a/c, b/c, where a, b, and c run over certain ranges. I tried using \numexpr but it rounds down. I ...
6
votes
1answer
99 views

Why is my beam no propagating beyond the second mirror?

\documentclass[]{revtex4} \usepackage{pst-optexp} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid=true](13,14) \pnodes(2,10){A}(3,10){MIP}(3,12.5){LIP}(3,13){MIIP}(5,13){LIIP} \...
3
votes
2answers
93 views

Calculating data inside pst-plot/postscript and conditionally coloring the plot

I am getting lots of simulated data in tables with 13 columns, from where I want to plot the following: The x axis should be column number 12 (E), which is fine with plotNoX=12. The y axis should be ...