放大一棵树(lyx 和 forest 包)

放大一棵树(lyx 和 forest 包)

我正在使用 Lyx 和森林包来创建一棵非常复杂的树。我刚刚完成它,它很好,但是当我生成 pdf 时,结果太小了。我需要一个代码来放大树(95184 M 和 1234 56789 (Murbacensis)(*) 之间的线也不可见,可能是因为尺寸太小)。有人能帮帮我吗?提前谢谢 :)

\@ifpackagelater{forest}{2016/02/20}{%
\useforestlibrary*{linguistics}
}{}

\makeatother

\usepackage{babel}
\begin{document}
\selectlanguage{italian}%
\begin{sidewaysfigure}
\begin{forest}
GP1[, fit=rectangle
[[14, edge=dashed, name=m[214936\\(Treuirensis)\\({*}), edge=dashed,        name=g[[21493\\S F, calign=first][21493[, fit=rectangle[23\\C[, phantom              [2367\\$\varphi$, name=d]]]][2149\\L]]]]]]
[[2367, edge=dashed, fit=rectangle, name=p[3\\(Gyr.)\\({*}{*}),      edge=dashed][23678, fit=band, name=a[23+678, name=o[1234+678, name=l[1234     56789\\(Murbacensis) ({*}), fit=rectangle, name=h[95184\\M]]]]]]]
[[8, edge=dashed, fit=band, name=b]]
[[95, edge=dashed, fit=band, name=f[67849\\G, name=i][95,   edge=dashed[95, edge=dashed,  fit=band[6785\\B, edge=dashed][95\\F P\\(D   R), edge=dashed[, phantom [8\\(Frag. Cuaiac.)\\({*}), fit=band,    name=c]]]]]]
 ]]]]]
 \draw[dashed,-] (b) to [out=180, in=400] (a);
 \draw[dashed,-] (a) to [out=south east, in=north west] (c);
 \draw[-] (a) to [out=200, in=350] (d);
 \draw[dashed,-] (f) to [out=150, in=400] (g);
 \draw[dashed,-] (f) to [out=south west, in=east] (h);
 \draw[dashed,-] (i) to [out=west, in=east] (l);
 \draw[dashed,-] (m) to [out=south east, in=west] (l);
 \draw[dashed,-] (g) to [out=south east, in=south west] (o);
 \end{forest}
 \centering
 \end{sidewaysfigure}
 \selectlanguage{english}%

 \end{document}

答案1

可能我误解了你想要实现的目标。利用我上面评论中提到的加法,我得到了下面的树的图片:

在此处输入图片描述

与使用您的代码获得的图片相比,节点之间的距离增加了。这是您想要的吗?

与您的代码的区别是:

\documentclass{article}
\usepackage[showframe]{geometry}
\usepackage{rotating}
\usepackage{forest}
\useforestlibrary*{linguistics}

\begin{document}%
%\begin{sidewaysfigure}
\centering
\begin{forest}
    GP1,
    for tree={ 
    l sep=7mm, % set minimal level distance between nodes
    s sep=5mm  % set minimal sibling distance between nodes
            },
[, fit=rectangle
... <the rest of your code> ...
 \end{forest}
% \end{sidewaysfigure}
\end{document}

我不使用sidewaysfigure环境,因为我估计图像方向不会限制图片大小。

相关内容