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

space is missing due to exclamation marks in avms (semantics.tex) #101

Open stefan11 opened 3 years ago

stefan11 commented 3 years ago

grafik

There should be space after [2] and [3].

\avm{
    [phon & < \rm{every, dog, barks} >\\
    \ldots\ cont & [main & \tag{4a} {\normalfont \sffamily bark} ] \\
    sem &   [exc & \2 !{\normalfont \sffamily $\forall$x ($\phi$,$\psi$)}! \\
            inc & \4 !{\normalfont \sffamily bark(x)}!\\
            pts & <\2, \tag{2a}, \tag{2b}, \3, \tag{3a}, \4, \tag{4a}>]]
}
kopeckyf commented 3 years ago

Solution 1: use the customise option:

\documentclass{standalone}
\usepackage{langsci-avm}

\begin{document}
    \avmsetup{ customise = {\newcommand{\avmsf}{\normalfont\sffamily}} }    
    \avm{
        [phon & < \rm{every, dog, barks} >\\
        \ldots\ cont & [main & \tag{4a} {\avmsf bark} ] \\
        sem &   [exc & \2 {\avmsf $\forall$x ($\phi$,$\psi$)}\\
        inc & \4 {\avmsf bark(x)}\\
        pts & <\2, \tag{2a}, \tag{2b}, \3, \tag{3a}, \4, \tag{4a}>]]
    }
\end{document}

Solution 2: Use explicit spaces

\documentclass{standalone}
\usepackage{langsci-avm}

\begin{document}
\avm{
    [phon & < \rm{every, dog, barks} >\\
    \ldots\ cont & [main & \tag{4a} {\normalfont \sffamily bark} ] \\
    sem &   [exc & \2~!{\normalfont \sffamily $\forall$x ($\phi$,$\psi$)}! \\
    inc & \4~!{\normalfont \sffamily bark(x)}!\\
    pts & <\2, \tag{2a}, \tag{2b}, \3, \tag{3a}, \4, \tag{4a}>]]
}
\end{document}