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-tree]

{pst-tree} is about a PSTricks package addressing issues related to a high-level interface for making {trees}.

8
votes
3answers
1k views

pstree: How can I force a tree node to one side?

I'm drawing some binary search trees using pstricks and pstree, but I don't see anything in the docs to push a node to one side. In a binary search tree, every child must be either right or left, but ...
6
votes
1answer
3k views

pspicture environment overlays text in figure float

I have a strange problem witih PSTricks, pst-tree and the pspicture environment. I use a figure float and a simple tree. When I put a pspicture environment around it, the picture is placed above the ...
4
votes
2answers
1k views

Offset for node - psbrace around nodes

I already asked in the question Describing leaves of a tree with an underbrace using pstree/pstricks how to use a underbrace. Now I'd like to use \Tfan instead of \Tf, but the trick with the angle ...
4
votes
1answer
142 views

Why does adding one more subtree make a cropped output?

\documentclass[preview,border=12pt]{standalone} \usepackage{pst-tree} \psset{treemode=R,edge=\ncline} \def\ABCD{% \psTree{\Tcircle{A}} \psTree{\Tcircle{B}} \pstree{\Tcircle{...
4
votes
1answer
154 views

I cannot run pst-tree in my TeX Live 2013 environment

Why this does not work? \documentclass{minimal} \usepackage{pstricks} \usepackage{pst-node,pst-tree} \begin{document} \pstree{\Tdot} { \Tdot \pstree{\Tdot} { \Tdot \Tdot } } \end{...
4
votes
1answer
222 views

How to do y-split for tree nodes in pstree?

As I need to draw lines between edges, I'd like to have y-splits when there are multiple child nodes. At the moment I realized it through a hidden node and nodesep=0. Unfortunately, I don't know of ...
3
votes
2answers
1k views

\pstree and crossed branches [closed]

Still a TeX newbie. I'm working with PSTricks pstree, and wish a tree whose branches cross: I / \ G H / \ / \ F / E / \ / \ / / \ / / \ \ A B ...
3
votes
2answers
177 views

Compile a pspicture under Emacs

I copied the solution from this link to a file try.tex under Emacs: \documentclass{article} \usepackage{pst-tree} \begin{document} Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. Lorem ipsum. ...
3
votes
2answers
2k views

pstricks generated image doesn't fit into page.

I have a pstricks image in a document like \documentclass[12pt]{article} \usepackage{fullpage} \usepackage{pstricks} \usepackage{pst-eps} \usepackage{pstricks-add} \usepackage{pst-node} \usepackage{...
3
votes
1answer
317 views

Drawing a “feature tree” with PSTricks or Tikz

I know that Tikz and PSTricks both offer many packages and options to draw trees, but I have no clue how I would go about drawing a feature tree as seen in Karl Wiegers guide Software Requirements (...
3
votes
1answer
442 views

Create line between two edges in pstree

Basically I want to create a (dashed) line between two tree edges. I tried cheating a bit and created such line manually between two hidden nodes. The problem is, I don't get them hidden! There's ...
3
votes
1answer
554 views

Treating psTree object as a figure

I created the following probability tree diagram using psTree then running XeLaTeX in texmaker. \documentclass[12pt]{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} \...
3
votes
1answer
3k views

Vertical alignment of subfigures

So I have a document which in a lot of places uses one pstree (part of the pstricks package) and a simple tabular side by side...I do this with subfigures. The problem is that because the pstree image ...
2
votes
2answers
584 views

Describing leaves of a tree with an underbrace using pstree/pstricks

I'd like to have a discription for some of the leaves. It doesn't need to be an underbace, if somebody has better graphical suggestions... :) Consider this example: \pstree[levelsep=35pt]{\Tcircle{$\...
2
votes
1answer
180 views

How to get a tight output when using pst-tree package and standalone class?

\documentclass[preview,border=3pt,varwidth]{standalone} \usepackage{pst-tree} \psset{levelsep=2,treesep=-2,angleA=90,angleB=-90,arm=12pt} \def\psedge#1#2{\ncangle{#2}{#1}} \begin{document} \psTree{...
2
votes
1answer
192 views

Cannot draw graph with many nodes in LaTeX

Here is the LaTeX code generated by a package \documentclass[11pt]{article} \usepackage{auto-pst-pdf,pstricks,pst-node,pst-tree,geometry} \usepackage{lscape} \...
2
votes
2answers
442 views

Undefined control sequence problem with \pstree

I installed the latest MikTex2.9 and tested the following simple code trying to create a node in a tree diagram. \documentclass{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,...
2
votes
1answer
340 views

conflict with pst-tree and align: auto-pst-pdf problems?

There appears to be a problem when using the pst-tree package together with the align environment and pdflatex (dvi-ps-pdf works, but there are reasons for me not to use it). Attached is a code ...
2
votes
1answer
2k views

Error with pstree

\documentclass{article} \usepackage{graphics,graphicx} \usepackage{pstricks,pst-node,pst-tree} \begin{document} \pstree[levelsep=35pt]{\Tcircle{10}} { \Tcircle{11} \Tcircle{21} } \end{document} Why ...
2
votes
1answer
599 views

Alignment in pst-tree

In this example, using pst-tree package: \def\psedge{\ncangles[armA=.5, angleB=180, linearc=.2]} \pstree[treemode=R, levelsep=3cm] {\Toval{ root }} { \Toval{ Tom } \Toval{ Cat } \Toval{ Very ...
1
vote
3answers
396 views

drawing a horizonatl tree (graph) with variable break points

Part of what I work on involves sequential product multinomials, and analysis of same. In papers, or lectures, it is often useful to describe the underlying probability structure uing what we call a '...
1
vote
2answers
1k views

PSTree creates confusing Undefined control sequence

This bit of code generates an undefined control sequence on the last curly brace. What am I doing wrong? \psset{levelsep=1cm,treesep=.75cm,nodesep=4pt} \begin{center} \pstree{\Tr{$z$}} { \pstree{...
1
vote
1answer
31 views

shifting/aligning nodes with pst-tree

The following code produces nice trees with pst-trees. I have to gloss the leaves of the tree, so I put tabular environments in there and added the glosses. The problem is that the code does not align ...
1
vote
2answers
173 views

New here, using \pstree and want to put vertical dots between two edges

This is what I have so far. The vertical dots go beyond the two edges. I want them to end before they reach them. \documentclass[fleqn]{article} \usepackage{amsmath,amsthm,amssymb,amsfonts} \...
1
vote
1answer
296 views

Align horizontal tree node labels in pstree

I'm trying to create a listing, with pstricks, that has its entrys on top of the line. Unlike normal tree nodes/leaves, the entry is not at the end. The clue is now to left (or right) align all ...
1
vote
1answer
313 views

Highlighting/Bolding Tcircle elements

So I am using PSTricks PSTree package to build a tree using TCircle ... now I want to bold out some branches by making the lines of the circle and the connecting lines thicker ... can I do this ...
1
vote
1answer
150 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 ...
1
vote
0answers
760 views

How to draw phylogenetic tree? [closed]

I'm using Mac OSX Mavericks and have downloaded LaTex. I am currently learning how to draw phylogenetic tree. Can someone teach me? I have copied a sample of code for the phylogenetic tree. it uses ...
0
votes
2answers
232 views

What is the problem in the codes?

See the code given below. Actually, I am looking for a tree of number 36. Can somebody let me know what I did wrong? \documentclass[12pt, a4paper]{article} \usepackage[a4paper,top=1 in,bottom=1 in,...
-1
votes
1answer
664 views

How can i build the tree diagram? [closed]

I want as in the picture