Tag Info

New answers tagged

2

Here's a (very badly designed) custom shape, just to illustrate an alternative method which enables the parametrization of the parent anchor according to the number of the child. Only two children are permitted, but each node can use the circle 1 and circle 1 keys to specify the style for the inner circles: \documentclass[tikz,border=5]{standalone} ...


2

I think this solution is more clean. \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \newcommand{\twonodes}[2]{% \begin{tikzpicture}[remember picture,node distance=0.6cm] \node[ circle, fill=gray] (#1) {}; \node[circle, below of = #1](#2) {}; ...


4

Remark For a version working in PGF version 2.10, please see the bottom of the answer. Here's a possibility using TikZ and its pic path, as Claudio Fiandrino suggested in his comment: The code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,fit} \tikzset{ mynode/.pic={ \node[overlay,draw,circle,inner sep=3pt] at (0,-7.5pt) ...


2

You can get it using the stackengine package, for instance. Demo with two alignments, center and left-aligned: \documentclass[1pt, pdf, svgnames]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{fourier} \usepackage{pstricks-add, pst-tree} \usepackage{stackengine} \usepackage{xcolor} \setstackEOL{\\} \begin{document} ...


1

You might try using a matrix of nodes: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{shapes.geometric,matrix} \tikzset { treenode/.style = {circle, draw=black, align=center, text centered, minimum size=1cm}, subtree/.style = {isosceles triangle, draw=black, align=center, minimum height=0.5cm, minimum width=0.5cm, shape border rotate=90}, ...


1

You can also try with a tree. Next example is done with forest package \documentclass[tikz,border=2mm]{standalone} \usepackage{forest} \usepackage{lipsum} \begin{document} \begin{forest} for tree={grow'=0,l=2cm, anchor=west, child anchor=west, edge=->}, for descendants={node options={text width=8cm,align=left}} [root ...


1

Here is an illustration of how to use \tikz and \tikzmark to add arrows between specific points int he document. You mark the positions with \tikzmark and then invoke the \DrawArrow macro to connect each of the points. Notes: This is intended only to show you how to draw the arrows as I did not pay much attention to the text placement (which does not ...



Top 50 recent answers are included