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.

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 } }...
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}} \...
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, ...
2
votes
2answers
67 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
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
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
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{...
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} ...
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} \...
1
vote
1answer
143 views

Trouble drawing Role and Reference grammar trees in latex using rrgtrees package

I'm currently trying to draw trees using the rrgtrees package in latex. This package is used to draw syntactical trees for Role and Reference Grammar. Here is the link to the package and the ...
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 ...
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(...
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 %...
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
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 ...
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 ...
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}{...
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 &...
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) ...
14
votes
4answers
4k views
2
votes
2answers
148 views

Circuit Drawing, \vco Causes Error

I want to draw a circuit using this code but it gives me errors Where is the problem?. \documentclass[preview]{standalone} \usepackage[utf8]{inputenc} \usepackage{amsmath} \...
1
vote
2answers
97 views

Cnodeput offcentered when using fractions

Here is the following code: \documentclass[multi,pstricks]{standalone} \usepackage{pstricks-add,amsmath} \begin{document} \begin{pspicture}(2,2) \Cnodeput[radius=.7](1,1){a}{$\dfrac{a_b}{a}$} \psdot(...
1
vote
2answers
512 views

Text Alignment within \psframebox

I'm trying to represent the functionning of a device. It has 2 ports, and make computations on the payload of a data packet. I use pst-node from the PSTricks suite to realise it, b I came across some ...
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] [...
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 ...
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
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 ...
2
votes
1answer
81 views

Why do we need to buffer the pst-eucl nodes before passing them to \rput?

Behavior of nodes defined pst-eucl seems to be different from those defined in pst-plot. In the section titled Direct node, I attempted to create a square with pq as it base inclined at a slope of ...
1
vote
1answer
56 views

What is the increment step of \fnpnodes?

Case 0 uses \fnpnodes and case 1 uses \curvepnodes to create nodes based on the given function(s). \def\method#1{% \ifcase#1 \fnpnodes[plotpoints=8]{1}{8}{\f[x]}{P} \psxTick(/dx \...
2
votes
1answer
99 views

Different outputs from two different syntax that should produce the same output

A node A will be constructed by using 2 syntax. \pnode(!2 3 0 p2c exch 3 add exch 2 add){A} \pnode[3,2](!2 3 0 p2c){A} Each constructs the node A by translating a point (!2 3 0 p2c) (which is on an ...
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} \...
2
votes
1answer
97 views

What´s the best/practical way to do trees with pstricks pictures in nodes?, with PSTricks, Pst-node

I have test that psmatrix is a good way to do diagrams, but ... to do diagrams where the nodes is not displayed as a "perfect matrix/table". What is the recommended way to do any similar to, with ps ...
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 ...
2
votes
1answer
413 views

How to correct the nclines in this psmatrix flowchart?

I was tryin and trying , and I have no solution. I program many nclines but only appears 2 Why don´t show nclines from line 166? Only shows 2 lines. \documentclass[12pt,a4paper]{article} \...
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]{...
2
votes
1answer
114 views

pst-node help formatting

I'm trying to center the fifth row and make the $\{...\}$ closer together, unfortunately I don't know much latex. \psset{nodesep=2pt} \newpsstyle{DblDash}{linestyle=dashed, dash=1pt 1.5pt, doubleline}...
1
vote
1answer
884 views

How do I put a label to left of a horizontal ncline in psmatrix?

The MWE example below does everything I want it to do, except the line \tlput{$\delta$} does nothing. I want the $\delta$ to the left of the dashed line. Here is the MWE: \documentclass{article} \...
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 ...
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. ...
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$} ...
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 ...
2
votes
0answers
65 views

Why can't the abscissa and ordinate obtained from \psGetNodeCenter be reflected? [duplicate]

Consider the following simplified code. \documentclass[pstricks,border=2cm]{standalone} \usepackage{pst-eucl} \psset{saveNodeCoors} %\def\xy#1{!\psGetNodeCenter{#1} #1.x #1.y}% cannot be ...
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 "{...
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 ...
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 ...
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{...
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} \...
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 ...
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....