我没有设法处理对象的包装。该对象是由函数(我发现这里),这是一个 LFG f 结构。我想将其放在页面的右侧,并在左侧用文本包裹。所有代码:
% META
\documentclass{article}
\usepackage{lipsum}
\usepackage{array}
\usepackage{tikz}
% ADDITIONAL FUNCTIONS
\def\lfgms#1{ % creating figure with f-structure from LFG.
\mbox{
\tabcolsep0pt\arraycolsep0pt
$
\left[%
\begin{tabular}{@{}>{\scshape}l@{\hspace{5pt}}>{\small}l@{}}%
#1%
\end{tabular}%
\rule{0mm}{5mm}%
\right]%
$%
}\vspace{1mm}
}
\newcommand{\mynode}[2] %creating nodes for tikz-lines
{\tikz[baseline=(#1.base), remember picture]\node[outer sep=0pt, inner sep=0pt] (#1) {#2};}
%DOCUMENT
\begin{document}
\lipsum[1]
\lfgms{
~pred & ~‘want\;\guilsinglleft\textsc{subj comp}\guilsinglright’~~\\
\\
~tam & ~PRS\\
\\
~foc & \mynode{foc4_1}{}\\
\\
~subj & \mynode{zaur4}{\lfgms{ ~pred & `Zaur'~~\\
~case & GEN~}}\\
\\
~comp & \lfgms{ ~pred & ~‘come\;\guilsinglleft\textsc{subj}\guilsinglright’~~\\
\\
~tam & ~ PAST \\
\\
~foc & \mynode{foc4_2}{}\\
\\
~subj & \mynode{alan4}{\lfgms{
~pred & ~‘Alan'~~\\
\\
~case & ~NOM~\\
}}
}
}
\begin{tikzpicture}[overlay,remember picture]
\draw[-] (foc4_1.east) -- (zaur4.east);
\draw[-] (foc4_2.east) -- (alan4.east);
\end{tikzpicture}
\end{document}
现在它们被摆放如下:
所以我想让所有段落都包裹右侧的对象。我尝试应用 wrapfigure 但没有结果。
PS 编译器是 xelatex