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

3
votes
1answer
44 views

Changing thickness line using pst-solides3d [closed]

Changing thickness line using pst-solides3d: I'm trying to draw a thinness line in space using pst-solides3d: \begin{center} \psset{unit=0.4cm} \psset[pst-solides3d]{viewpoint=40 30 25 ...
1
vote
0answers
23 views

Thickness line using pst-solides3d [duplicate]

I'm trying to draw a thinness line in space using pst-solides3d: \begin{center} \psset{unit=0.4cm} \psset[pst-solides3d]{viewpoint=40 30 25 rtp2xyz,Decran=60,fontsize=0} ...
5
votes
2answers
674 views

How can I fill this pyramid like this picture?

How can I fill this pyramid like this picture? (with GeoSpacW) I tried (with GeoGebra) \documentclass[12pt]{standalone} \usepackage{fouriernc} \usepackage{pgf,tikz} \usepackage{mathrsfs} ...
1
vote
1answer
77 views

Triangle in space

I would like to draw the following surface in space using \psSolid command: $\{(x,y,z): x + 2y + 3z = 4, x \geq 0, y \geq 0, z \geq 0\}$. Here it is the best I can get: \psset{unit=0.5cm} ...
3
votes
1answer
99 views

projecting LaTeX onto a plane not just text onto a plane pst-solides3d

I am able to project text \psSolid[oject=text, text = zyz] but want put what would be in LaTeX $\alpha$ as the text. \psProjection prints verbatim: $\alpha$. Is it possible to force the LaTeX? ...
41
votes
3answers
1k views

December challenge: Create an Advent Calendar

While thinking about creating an own Advent Calendar for the beloved people around me – instead of buying a boring one with chocolate in it – a thought came to my mind: "How would I draw this in ...
2
votes
1answer
49 views

Circle is clipped for no obvious reason

I guess, this might be a fairly simple one as I am a TeX newbie... I already searched on Google but did not find an answer to my question (maybe because I did not really know what to search for ...
5
votes
3answers
173 views

Lines connecting elements in an equation

I want to draw lines connecting various elements in an equation. Here is what I have so far: \documentclass{article} \usepackage{amsmath} \usepackage{tikz} \usetikzlibrary{tikzmark} ...
3
votes
0answers
100 views

Generate QR Code with image inside

How can I generate in xelatex a QR code with any given image inside, like so or better like this, using either pstricks or the new qrcode package? Note that the QR-code must still work after including ...
2
votes
0answers
44 views

Help, pstricks figure

I want to draw with pstricks the following figure and I don't know how to draw the "bubble". Can anyone help?
3
votes
2answers
72 views

White background box for labels in \psaxes of pstricks

I want to create a coordinate place with \psgrid and \psaxes. I am using the labels of \psaxes and suppressing those of \psgrid. My issue is that the negative signs (for negative labels) tend to be ...
5
votes
3answers
326 views

Miktex pdflatex no longer compiles pstricks commands

I have been using MikTex 2.9's pdflatex for several years with sample code similar to: \documentclass{standalone} \usepackage[pdf]{pstricks} \usepackage{pst-all} \begin{document} ...
3
votes
1answer
30 views

False .52 over x-axes in pspicture

I was trying to make a pspicture with custom labels on the x-axes. Unfortunately the value, I am trying to let the y-axes start with, is displayed above the x-axes. Does anybody know why? ...
4
votes
1answer
95 views

Problem between bookcover.cls and PST-barcode

Please consider the MWE below which just places an ISBN bar-code on the backpage of a book cover using the bookcover.cls ...
2
votes
3answers
367 views

Convert image into TikZ

I want to convert this image into TikZ. I already have the following code, but I don't know how to put the numbers at the vertices and how to put that red bar inbetween 2 and 3. Could someone ...
3
votes
2answers
530 views

Hysteresis Loop

I am new to latex. I'm doing my MA thesis on Magnetic Materials. I don't know how to draw this diagram in LaTeX. I would be grateful if you can help me with this image. Thanks.
4
votes
2answers
92 views

PSTricks displaying incorrect axis arrow at origin

I have the following LaTeX code: \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-plot,pst-node} \begin{document} \psset{xunit=0.45} \begin{pspicture}(-2.5,-.5)(10.5,2) ...
1
vote
0answers
54 views

M4 Circuit Macros with WinEdt and MiKTeX 2.9/Windows 7

Copy m4.exe, regex2.dll and dpic.exe to C:\Program Files (x64)\MiKTeX 2.9\miktex\bin Copy M4 Macros to C:\Program Files (x64)\MiKTeX 2.9\tex\latex\circuits_macros Add C:\Program Files (x64)\MiKTeX ...
3
votes
1answer
70 views

How to create dataplot with logarithmic y-axis in PSTricks?

I am trying to create some graph with a logarithmic y-axis in PSTricks. My Code Looks like this: \psset{xunit=0.5cm,yunit=2cm} \begin{pspicture}(-0.5,-17)(8,1) ...
5
votes
2answers
88 views

Block Diagram of a switch

I'm trying to draw a switch schemabloc, using pst-sigsys... The thing is, with the \ncstar macro it's only possible to "merge" multiple inputs into 1, and not the opposite... I've managed to do ...
3
votes
1answer
102 views

PStricks figure disappearing in tufte-latex

I have an elusive problem with the interaction of pstricks and tufte-book style. I find that trying to include pstricks code is unreliable. Sometimes the figure appears, sometimes it does not. I ...
2
votes
2answers
35 views

Make pstricks ignore pictures

I'm not even sure how to ask this I'm interested in knowing if there is a way (a package option perhaps) to ignore the compilation of pstricks but leave the picture environment with its intended ...
30
votes
2answers
613 views

drawing patterns based on prime factorization

can someone help me generate code to type the diagram for any given natural number based on its prime factorization such as these diagrams consider the next number 36 and its prime factorization, ...
2
votes
3answers
83 views

rotate \rput \parbox write on image

I want to create the illusion of a note stuck on top of the page. Here I have typed and saved in photoshop and then added to the xeLatex document with \includegraphics[angle =30 ]{paper.png} ...
3
votes
0answers
62 views

Reorienting the pst-solides3d axes

EDIT: I figured out how to make this diagram in tikz using the 3dplot package. You can see what I did for that here. I am still interested in this question however for potential future use so I will ...
1
vote
2answers
21 views

Set \labeldist for 1 message

I'm drawing a message exchange sequence with the msc package, and I have some problems with the \labeldist on the messages. Here is the MWE : \documentclass[border=2mm]{standalone} ...
3
votes
1answer
71 views

Defining variables with \def and using them in PS calculations in PSTricks context unexpected behaviour

I find the documentation and examples for using PSTricks do not help me with the following problem: define (using \def OR \edef?) thetai=80, thetaii=220, thetaiii=285. Then compute (using \def OR ...
2
votes
1answer
43 views

Interferencs between PSTricks options

I'm making a building to explain the asymmetric encryption scheme to my students. I'm using pst-sigsys to designe the Block Diagram, and pstricks-add to draw the key : I had problems designing the ...
5
votes
2answers
129 views

Create custom shape with holes

I'd like to create a key shape symbol using PSTricks, but I have some problems filling it... Here's the shape I'd like : \documentclass[pstricks, float]{standalone} usepackage[table, usenames, ...
2
votes
0answers
60 views

Environment \pspicture only works with single slide in beamer?

I'm trying to use pstricks in beamer, and need to compile it with pdflatex. Weirdly, the code works when I have a single frame (see MWE below) but as soon as I add a second frame (i.e. uncomment line ...
2
votes
1answer
66 views

How can I make a PSTricks QR-code into a hyperref clickable link?

I'm trying to embed a QR code into a document, but also has it be a clickable link, so that it can be scanned when printed, or clicked when viewed. When I do this \documentclass{article} ...
3
votes
1answer
164 views

! LaTeX Error: You have run the document with pdflatex, but PSTricks

I get some error when run my latex file: please help me. ! LaTeX Error: You have run the document with pdflatex, but PSTricksrequires latex->dvips->ps2pdf or alternatively the useof the package ...
4
votes
2answers
107 views

References are not recognized inside psmatrix

In a psmatrix environment, labels are not recognized. Here is a MWE: \documentclass[]{article} \usepackage[crop=on]{auto-pst-pdf} \usepackage{pst-node} \begin{document} \section{First ...
2
votes
2answers
68 views

Running PSTricks image on TeXShop

I am trying to compile the following pstricks image which I asked in another post: \mathversion{sans}\setlength\fboxsep{0pt} \begin{postscript} $\begin{pmatrix} 0 & 0 & 0 & 0 ...
2
votes
2answers
86 views

Flowchart where the nodes are pspictures

I want to create a flowchart, in which every node is itself a pspicture (with nodes and arrows), and there are arrows between the pspictures themselves. Here is an example (which looks bad because I ...
4
votes
1answer
76 views

Resize pspicture graphic

I have a simple SVG which I exported to a pspicture using Inkscape (colors don't get exported, but that is unrelated). I want to use it full with on a A1 poster and thought a pspicture vector graphic ...
1
vote
2answers
48 views

how to align text in different uputs

As can be seen from the image, there are 2 labels (a,b) that have misaligned baselines. I know that the problem arises because the height of the content in both uputs is different (b is taller than ...
5
votes
1answer
77 views

Strange artifacts with pstricks plot

Consider the following MWE: \documentclass[border=5pt,pstricks]{standalone} \usepackage{pstricks,pst-plot,pst-math} \listfiles \begin{document} \psset{xunit=1.05cm,yunit=1.05cm} ...
4
votes
2answers
141 views

How to draw a 3D quadrangle from points

My picture uses a bunch of irregular quadrangles but there is no polygon macro in pst-3dplot Is there a way to emulate the basic pstricks macro \pspolygon(a,b)(c,d)... in pst-3dplot? I know I can ...
2
votes
1answer
61 views

Pixel glitch poking my eyes (pstricks, beamer)

Using pstricks and beamer I get an eye-poking pixel glitch: the pspicture "wiggles" 1 pixel or so between frames. Not sure how minimized is my example, but here it is: Compiling with pdflatex ...
2
votes
1answer
78 views

Problem with pstricks and htlatex/tex4ht

Consider the following MWE: \documentclass{article} \usepackage{pst-all} \begin{document} \begin{pspicture}(0,-3)(12,5) \psline[linewidth=2pt]{->}(1.5,0)(0,0) \end{pspicture} ...
4
votes
2answers
83 views

How to use macros in pstricks as coordinate arguments?

OK, as a good novice I have come across an impressive feature (the ! symbol that allows direct injection of PostScript as coordinate arguments. I can really simplify my work with this feature so I ...
3
votes
2answers
95 views

Beamer, \column, pspicture: is this a bug, what am I doing wrong?

Here are my two examples, both don't render correctly: the position of the text relative to the pspicture is wrong in both versions. [Edit:] More precisely, the text and the picture are supposed to ...
2
votes
1answer
126 views

New Question: Serious problem by creating a figure

I have now trying to make this model: But I do not know how to add the nodes in top; "1 text", "2 text", "3 text" and "4 text". Furthermore, I do not know how to make a fourth box, as shown: "9 ...
2
votes
0answers
79 views

tcolorbox and pstricks are conflicting? [closed]

The following code comes from a much larger document of mine containing several pstricks and boxes generated by using tcolorbox. \documentclass[fontsize=12pt,letterpaper,openany]{scrbook} ...
7
votes
2answers
108 views

Automatically converting pictures to black-and-white

I am submitting a paper to an Elsevier journal, and they ask that "For reproduction in black-and-white, please supply black-and-white versions of the figures for printing purposes." My figures are ...
2
votes
1answer
56 views

I have an error when using pst-func package [duplicate]

when i use pspicture* to draw a chart this error occurs but plotted. file:framed.sty error:no room for a new \dimen.
5
votes
1answer
73 views

Weird whitespace occurs using \drawbeam in pst-optexp

In my drawing using pst-optexp, I found weird whitespace occured when using \drawbeam, \pstVerb and tx@addDict together. Here are the minimum reproduction codes for my claim: ...
4
votes
2answers
233 views

How can I draw these patterns in another way?

I used Geogbra to draw this pattern of multiple squares. Then, I exported the figure as TikZ code. The generated code is the following: \documentclass[12pt]{standalone} \usepackage{pgf,tikz} ...
2
votes
1answer
337 views

Many body perturbation diagrams (closed Feynman diagrams) in latex with labelling

I would like to draw many body Feynman diagrams using latex. These are closed and often used in condensed matter and nuclear physics in contrast to the open scattering diagrams in particle physics. ...