どうか助けてください。 forest パッケージのオプション linguistics を使用して、構文句構造ツリーをいくつか描画しています。問題は、ツリーが大きくなるとページに収まらないことです。そこで、ツリーを回転させたいと思いました。問題は、grow オプションを使用するとツリーは回転しますが、ノードは一緒に回転しないことです。誰か助けていただけませんか? これが私の最小限のコードです:
\documentclass[10pt,a4paper]{article}
\usepackage[linguistics]{forest}
\usepackage{linguex}
\begin{document}
\ex. \begin{forest}
for tree={s sep=10mm, inner sep=0, l=0, grow=0}
[IP
[DP[The cat, roof]]
[I$'$[VP[scratched the furniture, roof]]]
]
\end{forest}
\end{document}
しかし、私が達成したいのはこれです:
答え1
これは良いアイデアではないと思いますが、コマンド内にツリーを配置するだけで済みます\rotatebox
。
\documentclass{article}
\usepackage{graphicx}
\usepackage[linguistics]{forest}
\usepackage{linguex}
\begin{document}
This is some text.
\ex.
\rotatebox{90}{\begin{forest}
for tree={s sep=10mm, inner sep=0,}
[IP
[DP[The cat, roof]]
[I$'$[VP[scratched the furniture, roof]]]
]
\end{forest}}
This is some more text.
\end{document}