Eu tenho a seguinte árvore em 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}
Quando compilo, a legenda fica longe da imagem. O motivo é a especificação de 6cm no ponto de controle. Parece tikz
levar em consideração o ponto de controle ao determinar o tamanho da imagem. Há algo que eu possa fazer sobre isso? Encurtei os 6cm mas isso dá outras curvas.
Responder1
Você pode colocar os \draw
comandos em um pgfinterruptboundingbox
ambiente.
\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}