9

This is happening because the contents of your pspicture are extending outside of its bounds. If you add the line \psgrid immediately after your \begin{pspicture}, you'll see that you get There are many ways to fix this- the easiest is perhaps to change the viewing window of your pspicture, to something like \begin{pspicture}(5,-5) The general syntax is ...


6

The following answer perhaps should be a comment, but it's too big. Why don't you ask this question at the mailing list? pstricks accepts different kinds of coordinate input. Normally you use (x,y), but you can use other input methods like (! x y ) A small collection is shown below: (x,y) -- normal Cartesian input (r;a) -- r=radius; a=angle -- polar ...


5

You could do this using TikZ. You can use [missing] to create "empty" branches that maintain the correct spacing but don't draw any objects. By doubling the level distance and sibling distance for the third level compared to the first two levels, the branches will cross while the angles of the branches are constant all throughout the tree (I'm not sure if ...


4

Here's a solution using pst-tree. You can tweak the parameters treesep and perhaps add a few more null nodes \Tn to get the spacing the way you want. To get the lines to cross, I (perhaps cheated and) gave the relevant nodes names, and then connected them using an \ncline. \documentclass{article} \usepackage{pst-tree} \begin{document} \pstree[nodesep=...


4

This is only sort-of an Emacs issue. As David Carlisle points out, you can't compile your example with pdflatex, you need regular latex. The fact that you don't get regular latex by default with Emacs suggests that you've enabled TeX-PDF-mode. You can turn that off again with M-x TeX-PDF-mode, and then compile as usual with C-c C-c.


4

You might like the flexibility of Metapost for this type of diagram. I've used the boxes library to define the text but then drawn them without boundaries. prologues := 3; outputtemplate := "%j%c.eps"; input boxes; verbatimtex \font\sf=phvr8r at 10pt \def\s#1{\vbox{\halign{\hss{\sf ##}\hss\cr#1\crcr}}}\let\\\cr etex beginfig(1); boxit.A(btex \s{marked ...


3

Just add the option[t]$ to thetabular_ environment: \documentclass{article} \usepackage{pst-tree} \psset{nodesep=5pt} \psset{linewidth=0.5pt} \makeatletter \def\tree{\@ifnextchar[{\@tree}{\@tree[top]}} \def\@tree[#1]#2#3{% \renewcommand\psedge{\ncdiag[arm=0,angleA=270,angleB=90,linewidth=.5pt]} \pstree[levelsep=*2.8ex,nodesep=3pt,treesep=.5cm]{\TR[...


3

Instead of treesep=-2 use treesep=2, treeflip which mirrors the orientation and calculates the bounding box correct. Code \documentclass[preview,border=3pt,varwidth]{standalone} \usepackage{pst-tree} \psset{levelsep=2,treesep=2,treeflip,angleA=90,angleB=-90,arm=12pt} \def\psedge#1#2{\ncangle{#2}{#1}} \begin{document} \psTree{\Tcircle{36}} \...


3

Every tree works like a node. SO you can name the node to use it later. The brace is drawn with \psbrace: \documentclass{scrartcl} \usepackage{pstricks} \usepackage{pst-node,pst-tree} \usepackage{pstricks-add} \begin{document} \pstree[levelsep=35pt]{\Tcircle{$\rho$}} { \Tf*[name=first] \Tf* {\psset{linestyle=none} \Tr{$\cdots$}} \Tf*[name=...


2

You can use \psset{unit=0.5cm} before command \begin{pspicture} to scale entire picture by changing the value of the unit. Obviously 0.5cm above was randomly choosen. You sholuld play little bit to figure out which scale works for you.


2

Here is a way. I removed unnecessary packages. Note it doesn't produce any result with pdflatex and auto-pst-pdf, but works with xelatex and, of course with latex: \documentclass[fleqn]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath, amssymb,amsfonts} \usepackage{fouriernc} \usepackage[T1]{fontenc} \usepackage{fancyhdr} \pagestyle{fancy} \...


2

forest is always an option: \documentclass[12pt, tikz]{standalone} \usepackage{forest} \begin{document} \forestset{ skip me/.style={ shape=coordinate, inner sep=0pt, outer sep=0pt, }, my label/.style n args=2{ edge label={node [midway, sloped, #1, font=\scriptsize, inner sep=1pt] {#2}}, }, } \begin{forest} for tree={ grow'=0, ...


2

My crystal ball reports that the first error you got is ! Undefined control sequence. <recently read> \c@lor@to@ps then multiple errors of the form ! Undefined control sequence. \XC@usec@lor ...string \color@ #1#2\endcsname \@@ \fi \space l.25 \Tcircle{2} Tcircle here is just the location of the ...


2

Instead of using a tree library with complicated nesting syntax and restrictions, relying on automatic positioning, I would use the standard TikZ syntax in a handy way. Define styles for different kinds of nodes Place main coordinates, use calc syntax to divide distances Place the main nodes at those coordinates Place further nodes, as it's visually nice, ...


1

minimal effort question ⇒ minimal effort answer \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs,graphdrawing} \usegdlibrary{trees} \begin{document} \begin{tikzpicture} \graph[tree layout,grow=right,fresh nodes] { "" -- { "1" -- { "3 (1,3)", "5 (1,5)" }, "2" -- { "3 (2,3)", "5 (2,5)" ...


1

Just for fun, here's a forest version. Note that the actual tree specification is very concise: [ [, tikz={ \draw [dotted] ($()!1/3!(!u)$) -- ($(!s)!1/3!(!u)$); } [[][]] [[][]] ] [ [[][]] [[][]] ] ] The tikz bit is responsible for drawing the vertical dotted line. Everything else is done in the ...


1

Step 1: Create the diagram. % filename: diagram.tex % compile it with the following sequence to get diagram.pdf % latex diagram % dvips diagram % ps2pdf -dAutoRotatePages=/None diagram.ps \documentclass[preview,border=12pt,12pt]{standalone} \usepackage{pst-tree} \psset{treemode=R} \begin{document} \psTree{\Tcircle{16}} \pstree{\Tcircle{11}\taput{$\...


1

This is clearly unrelated to the editor you use. You don't show the exact error you got but I would guess it is ! Undefined control sequence. <recently read> \c@lor@to@ps l.13 \pstree {\Tcircle{ }} which means that you have used pdflatex which doesn't work for pstricks, you need to use latex then dvips then ps2pdf. This seems to ...


Only top voted, non community-wiki answers of a minimum length are eligible