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

2
votes
1answer
49 views

How to fix the error when compiled with the same method

All things I have: Install GhostScript 32 bit (My system is Window 7-32bit) . Write a batch file by Text Document and followed by .bat . Its content ( of AS's answer ): echo off rem %1 TeX input ...
3
votes
2answers
52 views

How to compact \ncline command with PSTricks

This question in Drawing a diagram in LaTeX. \documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks,amsmath,amssymb,pst-arrow} \usepackage{auto-pst-pdf} \makeatletter \newcommand\...
5
votes
2answers
163 views

How to create the random numbers with PSTricks?

The TikZ code of Schulte Table (Tran Le Nam's author): \documentclass[12pt,tikz,border=3mm]{standalone} \usetikzlibrary{calc} \usepackage{xstring} \begin{document} \large \begin{tikzpicture} \def\n{5}...
3
votes
2answers
89 views

How to use \def command in \uput

\documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks-add,multido} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \def\stuff1{Môi trường Vật lý} \def\stuff2{Sự lãng ...
0
votes
0answers
28 views

How to change Dx and Dy of pspicture grid?

I don't want to use \psaxes, \psgrid, or manually recreate my own grid with multido, etc. I just want to reuse the available grid of pspicture. Is there any option to change Dx and Dy such that the ...
7
votes
3answers
153 views

How to make a hollow node with PointSymbol=o?

\documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks,pst-eucl,amsmath,amssymb} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \psset{PointSymbol=o} \pstGeonode[...
3
votes
1answer
49 views

How to draw incircle (inscribed circle)?

First Question \documentclass[pstricks,12pt,border=12pt]{standalone} \usepackage{pst-eucl} \begin{document} \begin{pspicture}[showgrid](-3,-2)(2,2) \psset{PointSymbol=none,CodeFig,CodeFigColor=red} \...
5
votes
2answers
237 views

How to divide arc, line, and angle with a certain ratio?

A simple example: \documentclass[12pt,border=5pt]{standalone} \usepackage{newcent,pstricks,pst-eucl} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \pstTriangle(2,4){A}(0,0){B}(6,0){C} ...
4
votes
2answers
63 views

How to show a point name?

The circle Mixtilinear. \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{pstricks} % required package \usepackage{pst-node,pst-func,pst-plot,pst-eucl,pstricks-...
2
votes
1answer
32 views

How to adjust node labels of a triangle?

Problem 1: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{pstricks} \usepackage{pst-node,pst-func,pst-plot,pst-eucl,pstricks-add,multido} \usepackage{auto-pst-...
2
votes
2answers
57 views

pst-node replacement for LuaTeX

I have code that uses pst-node package to draw overbrace. What package should i use to compile it with LuaTeX? \documentclass[preview,border=10pt]{standalone} \usepackage{amsmath} \usepackage{pst-...
3
votes
2answers
59 views

How to mark a segment?

\documentclass[12pt]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{pstricks,pst-eucl} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture} \pstGeonode[PosAngle={90,0,-90}](1,2){...
2
votes
1answer
40 views

In PStricks, what is the difference between \psforeach and \multido in the following?

My code: \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{pstricks} \usepackage{multido} \usepackage{auto-pst-pdf} \begin{document} \begin{pspicture}(-.5,-1.5)(...
2
votes
2answers
167 views

How to remove a temporary PDF file generated by auto-pst-pdf when I use standalone class?

Problem of me as the following: My code is compiled with pdflatex.exe --shell-escape -interaction=nonstopmode %.tex Its image (use TeXstudio) After compiling, there are two files : filename.pdf and ...
4
votes
3answers
126 views

Problem with tkz-tab and its the PSTricks package equivalent

My code:(use tkz-tab) \documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb,newcent} \usepackage{tkz-tab} \begin{document} \begin{tikzpicture} \tkzTabInit{$x$ /1, $g'(x)$ /1, $g(x)$ /3.5} ...
2
votes
2answers
69 views

A Problem in Running Pspicture Environment

My problem is: I drew a picture in Latexdraw software and when I run the latex code of my picture in my editor, lots of errors made. I use TexLive 2017 and my editor is bidiTexmaker. My code is: \...
5
votes
3answers
193 views

Draw curved lines simply

How to draw nearly-arbitrary curved lines simply? For example, how to draw this graph: Source Introduction to Algorithms (3rd edition) by Thomas H. Cormen, Charles E. Leiserson, Ronald L. Rivest, ...
5
votes
2answers
169 views

What is the difference between plotstyle=curve and plotpoints=1000?

The first code: \documentclass[pstricks]{standalone} \usepackage{pst-plot} \def\m{1/((x-1)^2)^(1/3)} \begin{document} \begin{pspicture}(-1,-1)(3.5,3.5) \psaxes[labelFontSize=\scriptstyle]{->}...
3
votes
1answer
44 views

Drawing arcs with nodes and with literals produces different result

With nodes (expected output) \documentclass[pstricks,border=12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid=t,dimen=m](-2,0)(2,4) \pnode(0,3){A} \pnode(!1 ...
17
votes
5answers
4k views

How to draw A ⊕ B ⊕ C as a Venn diagram?

You see my code and please answer my two questions: \documentclass{article} \usepackage{amsmath,amssymb,mathptmx} \usepackage{pstricks} \usepackage{pst-node} \usepackage{auto-pst-pdf} \begin{document}...
3
votes
1answer
154 views

A problem with the command \nccurve

\documentclass[12pt,a4paper]{article} \usepackage{amsmath,amssymb} \usepackage[utf8]{vietnam} \usepackage{pstricks,pst-node} % required package \usepackage{auto-pst-pdf} \begin{document} \begin{...
1
vote
1answer
30 views

Can we rotate a text in \psmatrix?(different)

My code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \usepackage{amsmath,amssymb,mathptmx} \usepackage{pstricks,pst-node} % required package \usepackage{auto-pst-pdf} \begin{...
3
votes
1answer
49 views

How to rotate a text in \psmatrix?

My code: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{vietnam} \usepackage{amsmath,amssymb,mathptmx} \usepackage{pstricks,pst-node} % required package \usepackage{auto-pst-pdf} \begin{...
3
votes
1answer
35 views

A dot using \pstThreeDDot

I want to put a dot on the beginning of the red line. My code is: \documentclass[a4paper,pstricks,11pt]{report} \usepackage{amssymb} \usepackage{latexsym} \usepackage{amsmath} \usepackage[usenames]{...
2
votes
1answer
31 views

Vertical surface with lines using \psSolid

I’m trying to put a line on a top of this surface (like the red one but on the top of the surface). Here it is the code: \documentclass[a4paper,pstricks,11pt]{report} \usepackage{amssymb} \...
4
votes
2answers
103 views

Draw a vector field using \psVectorfield

I'm triyng to draw the following vector field $F(x,y) = \frac{\sqrt{2}x}{\sqrt{x^2 + y^2}} \mathbf{i} + \frac{\sqrt{2}y}{\sqrt{x^2 + y^2}} \mathbf{j}$ using \psVectorfield command. The plot given ...
1
vote
2answers
153 views

How to evaluate df(x)/dx at x=c rather than df(c)/dx when defining a reusable macro?

The following macros define \f[#1] and its derivative \fp[#1]. \def\f[#1]{((#1)*(#1-1)*(#1-2)*(#1-3)*(#1-5)/10+1.5)} \edef\fp[#1]{Derive(1,\f[#1])} Question I want to define a reusable macro \g{<...
2
votes
1answer
51 views

A problem with the pst-intersect package

Can you tell me about the difference between two the following codes? My code: \documentclass{article} \usepackage{pst-node,pst-func,pst-plot,pst-eucl} \usepackage{pst-intersect} \usepackage{auto-...
4
votes
1answer
45 views

Fix image in pst-fractal

I have worked only in tikz, I want to make an image of 600 px by 300 px so that the edge of the fractal image is a little white blurred and the background of the box has the same color as the attached ...
4
votes
3answers
190 views

Plotting a rectangular waveform with LaTeX

I need to plot a rectangular waveform with Latex. The main problem is how to make the height of the pulse "variable" not a "number" as you can see in the figure below. "x" here is some variable that ...
1
vote
1answer
62 views

How to plot cumulative frequency from a raw data file?

I have a raw data file that is simulated as follows. \begin{filecontents*}{raw.data} 0-2 3 2-4 4 4-6 8 6-8 20 8-10 20 10-12 15 12-14 14 14-16 ...
4
votes
2answers
233 views

How to raster area bounded by two functions?

This code works normally: \documentclass[pstricks]{standalone} \usepackage{pst-plot} %\usepackage{auto-pst-pdf}% only for pdflatex \begin{pspicture}[algebraic,linestyle=curve](-2,-6)(6,6) \psaxes{-&...
8
votes
5answers
2k views

Man running icon with TikZ

I am a beginner in this. I am trying to prepare some exercises to my students in Latex. My main problem is the use of Tikz. In this case, I am trying to draw the icon of a man/woman running. I attach ...
7
votes
1answer
258 views

Fail to invoke \g(\f(x))

I want to invoke \g(\f(x)) which is equal to x actually. However the following does not compile in PostScript stage (I think). Could you fix it? I am not asking how to plot y=x but how to invoke the ...
6
votes
3answers
777 views

Help! How to draw the plot of y=(ax+b)/(cx+d) and give an example!

I find in pst-plot.pdf, pst-func.pdf document but there is no its tutorial. So I hope anyone help me to draw the plot of it.(its code :-)) ). Thanks. Example: y=(x-2)/(2x+1) Can anyone draw it by ...
5
votes
3answers
183 views

Please explain the operator of \rput command in the following code:

\begin{pspicture} \psgrid[gridcolor=gray,subgridcolor=lightgray](0,0)(5,5) \rput[bl](0,1){bottom left (0,1)} \rput[tr](5,1){top right (5,1)} \rput[t](2,2){stuff1} \end{pspicture} I think it :
2
votes
2answers
76 views

how to draw like the following picture ( use pairs \gsave…\grestore):

code: \begin{pspicture}[showgrid=true](-1,-1)(4,4) \psline{<->}(0,3)(0,0)(4,0) \pscustom[linewidth=1.5pt,linestyle=none]{ \psplot[plotstyle=curve]{.67}{4}{2 x div} \gsave \psline(4,3) \...
5
votes
1answer
75 views

How to draw closed path if used the following code:

An example in PSTricks User's Guide page 34. \begin{pspicture}[showgrid=true](-1,-1)(4,4) \pscustom[linewidth=2pt,fillstyle=solid,fillcolor=gray] { \pscurve(0,2)(1,2.5)(2,1.5)(4,3) \pscurve(4,1)(3,0....
4
votes
2answers
42 views

How to draw something around a pnode in pstricks?

I would like to invoke myfun around a node mynode in pstricks, but do not know how to process. An example below: \documentclass[preview,border=10pt]{standalone} \usepackage{pstricks-add} \def\myfun(#...
1
vote
1answer
52 views

I used plotpoints=1000 for my Pstricks code but not processing. Hepl me! Thanks

My code: \documentclass[12pt,a4paper]{article} \usepackage{fourier} \usepackage{amsmath,amssymb} \usepackage{pstricks} % required package \usepackage{pst-node,pst-func,pst-plot,pst-eucl,pstricks-add,...
4
votes
1answer
70 views

I use PStricks to draw my picture but the curve is folded. Help me!

My code: \documentclass[12pt,a4paper]{article} \usepackage{fourier} \usepackage{amsmath,amssymb} \usepackage{pstricks} \usepackage{pst-func,pst-plot,pst-eucl,pstricks-add,pst-node,multido} \...
0
votes
0answers
60 views

Quality Function Deployment (QFD) a.k.a. House of Quality for latex

This is what I'm trying to create: I'm not that talented in latex, but I was thinking there must be some way of creating multiple tables and stitching them together. I could also make it all one ...
2
votes
1answer
43 views

Latex / PsTricks [closed]

Generate Graphical Representation of Lagrange Mean Value theorem. You can take the function f(x) = x(x-1)(x-2) over the itnerval [0, 1/2].
11
votes
2answers
353 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
268 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
90 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
67 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=...
2
votes
0answers
54 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
174 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
443 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 ...