Hello,
Is there a way to easily reproduce this?
Thank you in advance.
EDIT: I've found Tikz package and now I'm trying to use it. Take a loot at this message (in this very topic) to see my new doubts.
Text Formatting ⇒ Trees and tikZ
-
- Posts: 9
- Joined: Sat Feb 13, 2010 3:37 pm
Trees and tikZ
- Attachments
-
- reproduzir.png (16.9 KiB) Viewed 4334 times
Last edited by revberaldo on Sat May 15, 2010 5:22 pm, edited 3 times in total.
NEW: TikZ book now 40% off at Amazon.com for a short time.
-
- Posts: 351
- Joined: Sat Aug 02, 2008 8:47 am
Trees and tikZ
see http://tug.org/PSTricks/main.cgi?file=pst-tree/pst-treerevberaldo wrote: Is there a way to easyly reproduce this?
and http://mirror.ctan.org/graphics/pstrick ... /pst-tree/
for the package documentation
Herbert
-
- Posts: 9
- Joined: Sat Feb 13, 2010 3:37 pm
Trees and tikZ
I took a look at pst-tree but then I found Tikz. Anyway, the output isn't what I was expecting.
My code:
An image of the output is attached.
Also, is there a way to invert the nodes position, so that ``Pirâmide social'' would be the first one to appear and so on?
My code:
Code: Select all
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb,brazilian]{babel}
\usepackage[osf]{libertine}
\usepackage{tikz}
\usetikzlibrary{trees,arrows,positioning}
\begin{document}
\begin{tikzpicture}[grow=right]
\node {\textsc{Relações Sociais}}
child {node {Pirâmide social}}
child {node {Trapézio (hierarquia, cargos, patentes)}}
child {node {Status como suprema missão}}
child {node {Olhar moralista}
};
\end{tikzpicture}
\end{document}
Also, is there a way to invert the nodes position, so that ``Pirâmide social'' would be the first one to appear and so on?
- Attachments
-
- trees.png (27.88 KiB) Viewed 4324 times
-
- Posts: 162
- Joined: Wed Jun 17, 2009 10:18 pm
Trees and tikZ
You can simply reverse the order of the nodes in the code.revberaldo wrote:Also, is there a way to invert the nodes position, so that ``Pirâmide social'' would be the first one to appear and so on?
Here I've also changed the distance between the nodes, to get a better result.
Code: Select all
\documentclass[11pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[frenchb,brazilian]{babel}
\usepackage[osf]{libertine}
\usepackage{tikz}
\usetikzlibrary{trees,arrows,positioning}
\begin{document}
\begin{tikzpicture}[grow=right,level distance=8em,sibling distance=2em,every node/.style={right}]
\node {\textsc{Relações Sociais}}
child {node {Olhar moralista}}
child {node {Status como suprema missão}}
child {node {Trapézio (hierarquia, cargos, patentes)}}
child {node {Pirâmide social}};
\end{tikzpicture}
\end{document}
-
- Posts: 9
- Joined: Sat Feb 13, 2010 3:37 pm
Re: Trees and tikZ
Hey!,
That works pretty well. I'm satisfied with the output.
Thank you!
That works pretty well. I'm satisfied with the output.
Thank you!