langsci / 259

Müller, Stefan et al. (eds): Head-Driven Phrase Structure Grammar: The handbook
Creative Commons Attribution 4.0 International
22 stars 7 forks source link

something is needed for aligning AVM at top \atop does not seem to work agreement.tex #93

Open stefan11 opened 3 years ago

stefan11 commented 3 years ago

I want both AVMs to appear at the top right below the heading.

grafik

\attop does not work since it puts the following AVM on the next line.

\ea
\label{entryfori}
Simplified lexical signs for  \textit{I} and \textit{she}: \\*
\avm{
[\phon < I > \\
head &  [\type*{noun}
        pers & 1st \\
        num & sg ] ] 
}\hspace{1cm}
\avm{
[\phon  < she > \\
head &  [\type*{noun}
        pers & 3rd \\
        num & sg \\
        gen & fem ] ] 
}
\z
kopeckyf commented 3 years ago

This is a common problem with objects in example or figure environments and not specific to AVMs. There are two solutions to this problem, as detailed here: https://tex.stackexchange.com/q/325869

Here's the solution with minipages + vspace. Have a look though at the raisebox solution in egreg's answer, since it does not depend on specifying a width for the objects:

\ea
\label{entryfori}
Simplified lexical signs for  \textit{I} and \textit{she}: \\
\begin{minipage}[t]{.5\linewidth}\centering\vspace{0pt}
\avm{
    [\phon < I > \\
    head &  [\type*{noun}
    pers & 1st \\
    num & sg ] ] 
}\end{minipage}%
\begin{minipage}[t]{.5\linewidth}\centering\vspace{0pt}
\avm{
    [\phon  < she > \\
    head &  [\type*{noun}
    pers & 3rd \\
    num & sg \\
    gen & fem ] ] 
}
\end{minipage}%
\z
stefan11 commented 3 years ago

Could that be turned into an option for calling \avm? And if so? Could forest enable this by default?