New answers tagged

0

Here's a Forest solution which automatically calculates angles for the edges based on the total number of children and the node's position in the sequence of children. One major selling point of Forest is that the specification of the tree itself is very concise, once the tree's preamble is configured. If you need the same style of tree several times, you ...


5

You can use options child anchor=west, edge from parent macro=\myedgefromparent, with \def\myedgefromparent#1#2{ [style=edge from parent,#1] (\tikzparentnode\tikzparentanchor) to #2 (\tikzchildnode\tikzchildanchor) } to get Code: \documentclass[margin=5pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ grow = right, ...


2

Using TikZ, this would be another option (following this answer): \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning,decorations.pathreplacing} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \begin{document} \begin{tikzpicture} \hyphenpenalty10000 \node (main) {}; \begin{scope}[node distance=1em, text ...


8

Schemata is a package designed to draw, well, schemata basically. It defines a series of macros to facilitate the drawing and adjustment of this type of diagram. The easiest way to use it is to follow the manual. Create a basic schemata first using only \schema and \schemabox. Then adjust as required from right to left, adding a \smallskip or so between ...


5

I can offer no flexible solution, but two different ones. The first creates something similar to your original MWE, but with better spacing. I placed everything in minipages to stay uniform, you might want to change that: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[spanish]{babel} \usepackage{amsmath} \begin{...


6

As I suggested in my comment, the use of my answer here, Multiple brackets or parentheses with a text inside, can eliminate the squeezed groups noticed by the OP. Plus, it allows item markers as well as variable column width definitions, so that manual line breaking is not necessary (though here, all columns are fixed at 0.6in). EDITED to improve that ...


1

If forest is an option, it will automatically figure out the spacing for you. \documentclass[tikz,border=10pt,multi]{standalone} \usepackage{array} \usepackage[edges]{forest} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \begin{document} \begin{forest} forked edges, for tree={ align={c}, inner xsep=0pt, draw, } [Sous-préfet [...


1

It seems that you for sibling distance use level distance ... See, if the following code gives what you looking for: \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{trees} \usepackage[utf8]{inputenc} \begin{document} \begin{tikzpicture}[ edge from parent fork down, sibling distance = 44mm, level distance = 22mm, every node/.style = {...



Top 50 recent answers are included