多列中的 linguex 森林大于边距

多列中的 linguex 森林大于边距

我想在一行中放置两片森林。不幸的是,它略微超出了页边距。我是乳胶新手。您有什么建议给我吗?

\documentclass[a4paper,12pt,DIV=15,BCOR=12mm,oneside,numbers=noenddot,leqno,headsepline,headings=small]{scrbook}
\setlength{\parskip}{0pt}

\usepackage{linguex}
\usepackage{multicol}
\usepackage{forest}

\begin{document}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit in~\ref{ex: test2}, At vero eos et accusam et justo duo dolores et ea  in~\ref{ex: test3}.

\begin{multicols}{2}
\ex. \label{ex: test1} \a. 
\begin{forest}  baseline,
        [
   [tester3,l*=3]
   [
 [tester2,l*=2]
 [
   [tester]
   [tester]
 ]]]
\label{ex: test2}
    \end{forest}
\b.\begin{forest}  baseline,
     [ [ [
   [tester]
     [tester]
   ]
  [tester2,l*=2]
        ]
 [tester3,l*=3]
  ]
\label{ex: test3}
    \end{forest}

\end{multicols}
\end{document}

答案1

欢迎来到 TeX.SE!有很多选择,但考虑到树的形状,我建议将它们向左移动并使项目之间的水平距离稍微小一点可能就足够了。

\documentclass[a4paper,12pt,DIV=15,BCOR=12mm,oneside,numbers=noenddot,leqno,headsepline,headings=small]{scrbook}
\setlength{\parskip}{0pt}

\usepackage{linguex}
\usepackage{multicol}
\usepackage{forest}

\begin{document}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit in~\ref{ex: test2}, At vero eos et accusam et justo duo dolores et ea  in~\ref{ex: test3}.

\begin{multicols}{2}
\ex. \label{ex: test1} 
\a.\hspace*{-3mm}\begin{forest}  
baseline,
for tree={s sep=1mm}
        [
   [tester3,l*=3]
   [
 [tester2,l*=2]
 [
   [tester]
   [tester]
 ]]]
\label{ex: test2}
    \end{forest}
\b.\hspace*{-3mm}\begin{forest}
baseline,
for tree={s sep=1mm}
     [ [ [
   [tester]
     [tester]
   ]
  [tester2,l*=2]
        ]
 [tester3,l*=3]
  ]
\label{ex: test3}
    \end{forest}

\end{multicols}
\end{document}

在此处输入图片描述

答案2

您可以减少每个节点的填充。这里我将其归零,这可能有点极端,但您可以根据需要调整该值。

\documentclass[a4paper,12pt,DIV=15,BCOR=12mm,oneside,numbers=noenddot,leqno,headsepline,headings=small]{scrbook}
    % \setlength{\parskip}{0pt}% Don't do this!!
\usepackage{linguex}
\usepackage{multicol}
\usepackage[linguistics]{forest}

\begin{document}

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit in~\ref{ex: test2}, At vero eos et accusam et justo duo dolores et ea  in~\ref{ex: test3}.




\begin{multicols}{2}
\ex. \label{ex: test1} \a. 
\begin{forest}
  where n children=0{tier=terminus}{} ,before drawing tree={ tempdima/.max={>O{y}}{fake=root,leaves}, delay={where n children=0{y/.register=tempdima}{}} },  for tree={inner sep=0pt}
  [
  [tester3]
  [
  [tester2]
  [
  [tester]
  [tester]
  ]]]
  \label{ex: test2}
\end{forest}%
\b.\begin{forest}
  where n children=0{tier=terminus}{} ,before drawing tree={ tempdima/.max={>O{y}}{fake=root,leaves}, delay={where n children=0{y/.register=tempdima}{}} },  for tree={inner sep=0pt}
  [ [ [
  [tester]
  [tester]
  ]
  [tester2,l*=2]
  ]
  [tester3,l*=3]
  ]
  \label{ex: test3}
\end{forest}

\end{multicols}
\end{document}

更宽敞?

相关内容