
EsteBonita solución de CFR que permite utilizarlos nodos en el nivel 2 para darles estilo como anotación.
Un enfoque muy diferente alÉsteoAquéldonde se agregan nodos adicionalesafuerael mapa mental en sí.
Sin embargo estoy luchando con el anclaje level 2
para que se vea más armonioso como el siguiente (hice trampa en la pintura para mostrar el resultado esperado).
Me imagino que la idea es tener un ancla móvil ( east
para level 2
los nodos en el lado izquierdo, west
¿ancla en los nodos del lado derecho del mapa mental? ¿Más granularidad, inclinado para seguir el camino desde el nivel 1? No sé qué podría ser factible) . Dicho esto, no puedo tener un punto de partida sobre cómo diferenciar los casos:/
% original MWE from cfr.
\documentclass[border=10pt]{standalone}
\usepackage[condensed,math]{iwona}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees,positioning}
\tikzset{
set angles for level/.style={level #1/.append style={sibling angle=360/(\the\tikznumberofchildren+4)}},
level/.append code={
\edef\tempa{#1}\edef\tempb{1}
\ifx\tempa\tempb\tikzset{level 1/.append style={sibling angle=360/\the\tikznumberofchildren}}\else\tikzset{set angles for level=#1}\fi},
% set angles for level=#1},% solution 1
non-concept/.style={
rectangle,
text width=15em,
text=black,
align=left,
font=\large,
},
cncc/.style={ edge from parent path={ (\tikzparentnode.#1) to [bend right] (\tikzchildnode) } },
}
\begin{document}
\begin{tikzpicture}[level 1 concept/.append style={font=\large, level distance=150}]
\path[mindmap, concept color=Aquamarine, grow cyclic]
node[concept] {ICF Core \\ Competencies}%[clockwise from=45]
child[concept color=blue!20!white] {
node[concept] (def) {Setting the Foundation}
child[level distance=5cm] { node[non-concept] {Meeting Ethical Guidelines \& Professional Standards} edge from parent[cncc=west] }
child[level distance=5cm] { node[non-concept] {Establishing the Coaching Agreement} edge from parent[cncc=west] }
}
child[concept color=Pink] { node[concept] {Co-creating the \\ Relationship}
child[level distance=5cm] { node[non-concept] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc=south] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=south] }
}
child[concept color=Bisque]{ node[concept] {Communicating Effectively}
[clockwise from=0]
child[level distance=5cm] { node[non-concept] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc=east] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=east] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=south] }
}
child[concept color=Cyan] { node[concept] {Facilitating Learning \& Results}
[clockwise from=90]
child[level distance=5cm] { node[non-concept] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc=west] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=west] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=north] }
child[level distance=5cm] { node[non-concept] {Coaching Presence} edge from parent[cncc=east] }
};
\end{tikzpicture}
\end{document}
Respuesta1
Si quieres alinear perfectamente el camino con las entradas del nivel 2. Necesita ajustarlos manualmente. Porque depende del ancho del texto, tamaño mínimo y anclajes de las entradas. Agrego dos argumentos en el non-concept/.style
y un argumento más en el cncc/.style
. En non-concept/.style
, el primer argumento n.° 1 es para especificar el ancho del texto y el segundo argumento n.° 2 es para especificar el tamaño mínimo del nodo de nivel 2. En cncc/.style
, el primer argumento n.° 1 sigue siendo el ancla del nodo principal de nivel 1, el segundo argumento n.° 2 es el ancla del nodo secundario de nivel 2. También agrego marcos a cada entrada de nivel 2, para ver el efecto explícitamente (el comentario draw
no non-concept/.style
creará marcos). Puede ajustar esos argumentos para que la cifra se acerque al resultado esperado en su pregunta. Además, en algunos casos, es posible que necesite utilizar shift
para ajustar manualmente las ubicaciones de la entrada de nivel 2 (por ejemplo, child[shift={(2.5cm,-3cm)},level distance=5cm]
).
Aquí está el código:
% original MWE from cfr.
\documentclass[border=10pt]{standalone}
\usepackage[condensed,math]{iwona}
\usepackage[T1]{fontenc}
\usepackage[dvipsnames,svgnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{mindmap,trees,positioning}
\tikzset{
set angles for level/.style={level #1/.append style={sibling angle=360/(\the\tikznumberofchildren+4)}},
level/.append code={
\edef\tempa{#1}\edef\tempb{1}%
\ifx\tempa\tempb\tikzset{level 1/.append style={sibling angle=360/\the\tikznumberofchildren}}\else\tikzset{set angles for level=#1}\fi},
% set angles for level=#1},% solution 1
non-concept/.style 2 args={
draw, % comment to make no frames
minimum size=#2,
text width=#1,
text=black,
align=left,
font=\large,
},
cncc/.style n args={2}{ edge from parent path={ (\tikzparentnode.#1) to [bend right] (\tikzchildnode.#2) } },
}
\begin{document}
\begin{tikzpicture}[level 1 concept/.append style={font=\large, level distance=150}]
\path[mindmap, concept color=Aquamarine, grow cyclic]
node[concept] {ICF Core \\ Competencies}%[clockwise from=45]
child[concept color=blue!20!white] {
node[concept] (def) {Setting the Foundation}
child[level distance=5cm] { node[non-concept={14em}{1cm}] {Meeting Ethical Guidelines \& Professional Standards} edge from parent[cncc={west}{north}] }
child[shift={(-2cm,1.5cm)},level distance=5cm] { node[non-concept={12em}{1cm}] {Establishing the Coaching Agreement} edge from parent[cncc={west}{north west}]}
}
child[concept color=Pink] {
node[concept] {Co-creating the \\ Relationship}
child[level distance=5cm] { node[non-concept={14em}{1cm}] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc={south}{north west}] }
child[level distance=6cm] { node[non-concept={9em}{0.5cm}] {Coaching Presence} edge from parent[cncc={south}{south west}] }
}
child[text width=7em,concept color=Bisque]{ node[concept] {Communicating Effectively} [clockwise from=0]
child[shift={(2.5cm,-3cm)},level distance=5cm] { node[non-concept={14em}{1cm}] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc={east}{south west}] }
child[level distance=5cm] { node[non-concept={9em}{0.5cm}] {Coaching Presence} edge from parent[cncc={east}{west}] }
child[level distance=5cm] { node[non-concept={9em}{0.5cm}] {Coaching Presence} edge from parent[cncc={south}{north west}] }
}
child[concept color=Cyan] { node[concept] {Facilitating Learning \& Results}
[clockwise from=90]
child[level distance=5cm] { node[non-concept={14em}{1cm}] {Establishing Trust \& Intimacy with the Client} edge from parent[cncc={west}{north}] }
child[level distance=5cm] { node[non-concept={8.8em}{0.5cm}] {Coaching Presence} edge from parent[cncc={west}{north east}] }
child[level distance=5cm] { node[non-concept={8.8em}{0.5cm}] {Coaching Presence} edge from parent[cncc={north}{east}] }
child[level distance=5cm] { node[non-concept={8.8em}{0.5cm}] {Coaching Presence} edge from parent[cncc={east}{south east}] }
};
\end{tikzpicture}
\end{document}