我有以下樹木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}
當我編譯它時,標題離圖片很遠。原因是控制點的規格為6cm。所以tikz
在決定影像尺寸時似乎考慮了控制點。我能做些什麼嗎?我縮短了 6 厘米,但這給了其他曲線。
答案1
您可以將\draw
命令放置在pgfinterruptboundingbox
環境中。
\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}