Stack Exchange Network

Stack Exchange network consists of 175 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 [pst-node]

{pst-node} is a package of the bundle {pstricks}. The package provide macros for nodes and node connection.

39
votes
2answers
2k views

Can TikZ dashed lines emulate PSTricks dashed lines?

Dashed lines differ between TikZ and PSTricks: PSTricks provides symmetry about the midpoint, and full dashes are guaranteed at each end. Can TikZ be configured to achieve this? (By default TikZ does ...
16
votes
2answers
1k views

Polygon drawn with an offset

I'm looking for a more automated way to draw an area around a number of PStricks nodes. The area should be offset by a specific amount so that it will completely contain the vertices inside of it....
14
votes
4answers
4k views

Drawing the mapping of elements for sets in LaTeX

I am looking for a way to do something like
14
votes
1answer
896 views

How do we explain the behavior of \rput, \psGetNodeCenter and saveNodeCoors?

Introduction I am writing a tutorial on a short introduction to PSTricks for newbies. I got obstacles to explain how a node A (for example), \rput, (!\psGetNodeCenter{A} A.x A.y) and (!N-A.x N-A.y) ...
13
votes
1answer
896 views

How to adjust the arrow head tip of a bezier curve?

I want to adjust the arrow head tip of a bezier curve on the left such that it looks like the one on the right. As there is no \ncbezier or \pcbezier available, I cannot use nodesep to adjust it. ...
13
votes
0answers
755 views

Are there any other methods left to create a spiral of equidistant segments? [closed]

I want to create a spiral that is composed of equidistant segments as shown in the following figure. I tried to draw it with various methods. The colors are used to distinguish each method from the ...
10
votes
1answer
560 views

How to mimic the behavior of \ncput* but without the unwanted opaque effect?

My objective is to have a label with transparent background but any connecting curve passing through the hypothetical box of the label must be hidden. Opaque Label \ncput* produces an opaque label ...
10
votes
1answer
185 views

Why does \nodexn{(1,1)}{A} produce strange N-A.x and N-A.y?

\documentclass[preview,border=2cm]{standalone} \usepackage{pst-tools} \usepackage{pst-node} \psset{saveNodeCoors} \begin{document} \section*{With pnode} \begin{pspicture}(3,3) \pnode(1,1){A} ...
10
votes
1answer
433 views

unattractive additive effect to opacity with pstricks

I'm using pstricks to highlight by boxing or circling replacement text in my math equations. But, I don't want this highlighting to occlude what's behind it. So, I've been setting opacity or ...
9
votes
3answers
973 views

Draw arrow in picture

\documentclass[a4paper,10pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc}% \usepackage{lmodern} \usepackage[nomarginpar, textwidth = 16cm]{geometry} \usepackage[svgnames,x11names]{...
9
votes
1answer
188 views

psmatrix with two ncboxes in it

Can somebody help me to generate two overlapping boxes in a psmatrix? What I need is an ncbox from {3,3} to {8,8} and one from {3,3} to {3,8}. I know it's possible to draw them in a separate figure, ...
8
votes
1answer
301 views

Can TikZ emulate PSTricks' inline \Rnodes, scattered along a complex equation?

PSTricks' \Rnode makes it easy to add annotations to a complex equation typeset by (La)TeX: Simply add \Rnodes around existing elements of the equation, and the mathematical typesetting is preserved. ...
7
votes
2answers
181 views

What transformation do I have to apply to a node before passing it to \uput as a direction angle?

Consider the following code \documentclass[pstricks,12pt]{standalone} \usepackage{pst-node} \usepackage{pgfmath}% don't forget this line! \psset{saveNodeCoors} \degrees[13] \begin{document} \...
6
votes
1answer
127 views

Equal size for parbox

I made a diagram with pstrick for my bachelor thesis. For this I defined a new variable. \documentclass[% a4paper, % Papierformat oneside, % einseitiger Druck %...
6
votes
1answer
314 views

How to pass PostScript expression to nodesep and offset when using ([…]node) syntax?

Quoted from pst-news13.pdf on page 3: The labelsep is the first – optional – argument of \uput. It is now possible to use the PostScript notation for this length, eg {! 45 sin 3 mul}. Then the ...
5
votes
2answers
470 views

PSTricks: How to connect inside arrow heads on two different bezier curves?

I used \psbezier to draw a triangle with pushed-in edges: \begin{pspicture}(0,-1)(3,1) \psdot(0,0) \uput[180](0,0){$a$} \psdot(3,1) \uput[45](3,1){$c$} \psdot(3,-1) \uput[-45](3,-1){$b$} ...
5
votes
4answers
138 views

How to use getnodelist?

Taken from pst-node's documentation on page 39: This very short description about \getnodelist does not help me (maybe others as well) understand how to use it. Could you give me an example how to ...
5
votes
2answers
210 views

Can we use \curvepnodes and \psnline to replace the concatenated points passed to \psrline?

Can we use \curvepnodes and \psnline to get the same result as what the following code produces? \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido,pst-node} \begin{document} \begin{...
5
votes
2answers
423 views

In psmatrix, dow do I connect a line to each of the parallel lines in doubleline?

I'm trying to create a diagram in the psmatrix environment which has a double line connecting to a node and then has two separate lines coming from the node, one line coming from each of the two ...
5
votes
1answer
287 views

First node in \pnodes starting at non-zero index

I'm using the pst-node package. Is it possible to let the first node name from \pnodes[*] start at, say, P8 instead of P0? (In general, something other than P0.) [*] See page 39 of the manual. ...
5
votes
1answer
71 views

When A is a point, is there any usage of >A notation besides for the 4th argument of \uput?

In pst-news10.pdf on page 3-4, the author introduces a new notation >A where A is a point of any type (whether a node or simply a literal (2,-1)). >A can be passed to the <point> argument ...
5
votes
1answer
311 views

Is it possible to make \pnode obey swapaxes? [duplicate]

Background: We can represent a point with (*<value> {<algebraic expression in x>}) syntax where the ordinate y is obtained by evaluating <algebraic expression in x for the given ...
4
votes
2answers
219 views

How to put a “coil” inside an ncline (between nodes)?, in PStricks

How to put a "coil" in an \ncline between nodes? similar to: I have viewed \pscoil and options as coilarm=0.5,.. but.... in \ncline or similars?, how? I have this code, for example \documentclass[...
4
votes
1answer
166 views

How to group many nodes? in pstricks

I have this code, and would like to know how to group many nodes. How to do it? I prefer grouping nodes calling nodes by name but... if it´s not possible, I was thinking about coding any similar to ...
4
votes
2answers
1k views

How to adjust radius for \cnodeput and \circlenode?

I am trying to change the global default or customise individual size of the node plotted in the following code, however regardless what I do it seems I can only have two input for each node, either "{...
4
votes
2answers
113 views

Change options of a pstricks node after it is printed

is there any possibility to change the options (for example color) of a printed node? I create a lot of nodes with multido and want to change their appearance. Is there any way to do it after it got ...
4
votes
1answer
151 views

Why does a curve connecting a node from a column to another node in another column disappear?

I want to show items, each with a curve pointing to a point on the right figure. But in the following code, the curves disappear. What is wrong? \documentclass{beamer} \usepackage{graphicx} \...
4
votes
2answers
237 views

What makes nodes gradually move down?

Please carefully consider the following diagram. What makes the \psframebox nodes gradually move down? \documentclass[preview,border=15pt]{standalone} \usepackage{pst-node} \addtopsstyle{gridstyle}{...
4
votes
1answer
306 views

Specify location from which a line starts in pstricks

I have a problem with the following code. The lines from h6 and h7 are supposed to start right below h6 and h7 and not at the left of h6 and h7. This worked with tree-dvips but pstricks seems to ...
4
votes
1answer
102 views

What is the difference between saveNodeCoors and \psGetNodeCenter?

\documentclass[border=15pt,pstricks,12pt]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid](5,3) \rput(1.5,0.5){\trinode{CN}{NodeA}} \rput(3.5,2.5){\trinode{EN}{NodeB}} \...
4
votes
1answer
2k views

Resize the text in \rput

I use \rput[B](4.0,0.5){text} inside pspicture to write a text at a specific position. The text is too long, and I need to shrink its size, make it smaller, could anyone help?
4
votes
1answer
209 views

How to get the nodes on which a line intersects the hypothetical frame box of \ncput?

I want to get the nodes on which the \*cline intersects the hypothetical edge of \ncput. The following animation shows my attempt to find the nodes by a trial & error approach. I need the nodes ...
4
votes
1answer
143 views

key values getting improperly passed through a property list getter function

I'm creating rather complicated diagram and would like to put all the controls all in one easy to find location and not scattered throughout the document. To do this, I've created setter and getter ...
3
votes
5answers
191 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} \...
3
votes
1answer
100 views

What makes the following expression produce a wrong rotated point?

I want to rotate point B 30 degrees counterclockwise about A to produce a new point C. However, I failed to get the correct C as illustrated below. The red circle helps us to notice the issue easily. ...
3
votes
1answer
2k views

Nodes in a flowchart with psmatrix environment

I'm trying to make a flowchart such as below in psmatrix environment using the pstricks package. but the problem is that I don't know how to make the node between the {3-1}(num<=100) and {5-1}(num &...
3
votes
2answers
567 views

PSTricks-NODES. How can I put 'Ñ' inside a circleNODE?

I want to type Ñ inside a circlenode, but it don´t appear in the final result. At the example, in the 3rd line of code. Are there any solution? \begin{pspicture}(-2,-2)(12,6) %\malla \rput(-1,-1){$...
3
votes
1answer
183 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{...
3
votes
2answers
495 views

XeLaTeX and pst-node

I have problems with XeLaTeX and pst-node: If I want to draw a line between two nodes, but there is nothing drawn in the pspicture. If I only put the nodes with some stuff withoud a line in, the nodes ...
3
votes
1answer
147 views

How can I prevent my labels from getting reflected?

The left triangle is the image of the right triangle about the vertical line in between them as the mirror. I only want geometric objects and label position (but excluding their labels) to be ...
3
votes
2answers
584 views

Maths expression in the coordinates of rput

I use \rput[B](1.5,4.1){\( 1 \)} to write a number at a specific place, now I would like to express an expression at the place of coordinates, for instance \rput[B](2+#1,4.1){\( 1 \)} where #1 is an ...
3
votes
1answer
60 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
2answers
75 views

How do I split the text into two lines when using ncangle and ncput?

How do I split text into two lines in an arc? \documentclass[pstricks,border=10mm]{standalone} \usepackage{pst-node} \begin{document} \begin{pspicture}[showgrid](10,6) \rput(2,1){\Rnode{r1}{}} \rput(...
3
votes
1answer
178 views

How can I get lines to join up using PSTricks?

Here is a minimum working example: \documentclass{book}[12pt] \usepackage{pstricks,pst-node,pst-tree} \begin{document} \begin{figure} \centering \psmatrix[colsep=.3cm,rowsep=.5cm,mnode=r] [...
3
votes
2answers
113 views

\nodexn and savedNodeCoors not playing nicely with each other

This question arose from trying to answer a different question previously posted by @StiffJokes (aka user:19356) but now deleted. Each of the following MWE produces different results for the ...
3
votes
2answers
93 views

How can I use a macro argument as a pst-node label?

In the following example: \documentclass{article} \usepackage{pstricks,pst-node} \begin{document} \def\working(#1,#2,#3, #4){ \rput(#1,#2){ \ovalnode{M5}{ #4 } }...
3
votes
1answer
98 views

Connecting line does not show up when using nodes in PSTricks

I was trying to understand the nodes feature in pst-node. I copied the following example exactly as written in the PSTricks readme. \documentclass{article} \usepackage{pstricks, pst-node} \begin{...
3
votes
1answer
46 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 ...
3
votes
1answer
166 views

What is the difference between pscurvepoints and curvepnodes?

What is the difference between \pscurvepoints (in pstricks-add) and \curvepnodes (in pst-node)? \documentclass[pstricks]{standalone} \usepackage{pst-node} \usepackage{pst-plot} \usepackage{pstricks-...
2
votes
2answers
419 views

Collapse table columns to vertical hierarchy

In constructing a table in LaTeX, I am exporting data from Excel with a hierarchical representation, but for more optimal printing I need to collapse the first four columns and replace the empty cells ...