\documentclass{article} \usepackage[usenames]{color} \usepackage{amsmath} \usepackage{fontspec} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{graphicx} \usepackage{longtable} \usepackage{wrapfig} \usepackage{rotating} \usepackage[normalem]{ulem} \usepackage{amsmath} \usepackage{amssymb} \usepackage{capt-of} \pagestyle{empty} % do not remove % The settings below are copied from fullpage.sty \setlength{\textwidth}{\paperwidth} \addtolength{\textwidth}{-3cm} \setlength{\oddsidemargin}{1.5cm} \addtolength{\oddsidemargin}{-2.54cm} \setlength{\evensidemargin}{\oddsidemargin} \setlength{\textheight}{\paperheight} \addtolength{\textheight}{-\headheight} \addtolength{\textheight}{-\headsep} \addtolength{\textheight}{-\footskip} \addtolength{\textheight}{-3cm} \setlength{\topmargin}{1.5cm} \addtolength{\topmargin}{-2.54cm} \usepackage[active, tightpage]{preview} \usepackage{tikz} \begin{document} \begin{preview} \usetikzlibrary{matrix,arrows,decorations.pathmorphing} \begin{tikzpicture}[scale=2.5,font=\footnotesize\sffamily] \node (A) at (2,2) {dc=test.dc=example.dc=org}; \node (B) at (0,1) {ou=aliases}; \node (C) at (1,1) {ou=people}; \node (D) at (2,1) {ou=group}; \node (E) at (3,1) {ou=smbhosts}; \node (F) at (4,1) {ou=automount}; \node (G) at (5,1) {ou=bozos}; \node (L) at (0,0) {ou=green-dept}; \node (M) at (1,0) {...}; \node (N) at (2,0) {ou=yellow-dept}; \path[-] (A) edge node{} (B) (A) edge node{} (C) (A) edge node{} (D) (A) edge node{} (E) (A) edge node{} (F) (A) edge node{} (G) (C) edge node{} (L) (C) edge node{} (M) (C) edge node{} (N); \end{tikzpicture} \end{preview} \end{document}