Tengo el siguiente árbol en forest
:
\documentclass{article}
\usepackage{forest}
\usetikzlibrary{arrows}
\tikzset{
%Define standard arrow tip
>=stealth'}
\begin{document}
\begin{figure}
\begin{forest}
for tree={parent anchor=south, child anchor=north,align=center,base=bottom}
[AgrP
[Spec-AgrP,name=specagr]
[Agr$'$
[Agr
[\textit{-ait},name=ait]]
[NegP
[Spec-NegP
[\textit{pas},name=pas]]
[Neg$'$
[Neg
[\textit{ne},name=ne]]
[TP
[Spec-TP]
[T$'$
[T
[\textit{-er-},name=er]]
[VP
[Spec-VP
[\textit{Marie},name=marie]]
[V$'$
[V
[\textit{parl-},name=parl]]]]]]]]]]
\draw[->,dotted] (parl.south west) .. controls +(225:1cm) and +(south:0.4cm) .. (er.south);
\draw[->,dotted] (er.south west) .. controls +(left:1cm) and +(south:0.4cm) .. (ne.south);
\draw[->,dotted] (ne.south west) .. controls +(left:1cm) and +(south:0.4cm) .. (ait.south);
\draw[->,dotted] (marie.-90) .. controls +(225:6cm) and +(250:3cm) .. (specagr.-90);
\end{forest}
\caption{\label{abb-Pollock} Pollock's Analysis of \emph{Marie ne parlerait pas}}
\end{figure}
\end{document}
Cuando lo compilo, el título está muy alejado de la imagen. El motivo es la especificación de 6 cm en el punto de control. Por eso tikz
parece tener en cuenta el punto de control a la hora de determinar el tamaño de la imagen. ¿Hay algo que pueda hacer al respecto? Acorté los 6cm pero esto da otras curvas.
Respuesta1
Puede colocar los \draw
comandos en un pgfinterruptboundingbox
entorno.
\documentclass{article}
\usepackage{forest}
\usetikzlibrary{arrows}
\tikzset{
%Define standard arrow tip
>=stealth'}
\begin{document}
\begin{figure}
\centering
\begin{forest}
for tree={parent anchor=south, child anchor=north,align=center,base=bottom}
[AgrP
[Spec-AgrP,name=specagr]
[Agr$'$
[Agr
[\textit{-ait},name=ait]]
[NegP
[Spec-NegP
[\textit{pas},name=pas]]
[Neg$'$
[Neg
[\textit{ne},name=ne]]
[TP
[Spec-TP]
[T$'$
[T
[\textit{-er-},name=er]]
[VP
[Spec-VP
[\textit{Marie},name=marie]]
[V$'$
[V
[\textit{parl-},name=parl]]]]]]]]]]
\begin{pgfinterruptboundingbox}
\draw[->,dotted] (parl.south west) .. controls +(225:1cm) and +(south:0.4cm) .. (er.south);
\draw[->,dotted] (er.south west) .. controls +(left:1cm) and +(south:0.4cm) .. (ne.south);
\draw[->,dotted] (ne.south west) .. controls +(left:1cm) and +(south:0.4cm) .. (ait.south);
\draw[->,dotted] (marie.-90) .. controls +(225:6cm) and +(250:3cm) .. (specagr.-90);
\end{pgfinterruptboundingbox}
\end{forest}
\caption{\label{abb-Pollock} Pollock's Analysis of \emph{Marie ne parlerait pas}}
\end{figure}
\end{document}